blob: c91e6059103870ebad776a0921bec41b5a34f20c [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'o91d11da2012-09-06 23:01:14 -04003# Generated by GNU Autoconf 2.69.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005#
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018 emulate sh
19 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040023 setopt NO_GLOB_SUBST
24else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040030esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040032
33
Scott James Remnant39fd3d42009-05-14 13:03:25 +010034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050041# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010048 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050058 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010059 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050079fi
80
Theodore Ts'oe1052142006-10-21 21:46:47 -040081
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040087IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040090as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050091case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050094for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
Theodore Ts'oe1052142006-10-21 21:46:47 -0400100IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500101
Theodore Ts'oe1052142006-10-21 21:46:47 -0400102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500111 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -0400112fi
113
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -0400121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400131
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500356
357
358} # as_fn_mkdir_p
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400407# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500408as_fn_error ()
409{
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500414 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400415 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500416 as_fn_exit $as_status
417} # as_fn_error
418
Theodore Ts'oe1052142006-10-21 21:46:47 -0400419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400437
Theodore Ts'oe1052142006-10-21 21:46:47 -0400438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100442$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -0400463
464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500474 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500479 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500482 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500484 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400485 chmod +x "$as_me.lineno" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500486 { $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 -0500487
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500496 # Exit status is that of the last command.
497 exit
498}
499
Theodore Ts'oe1052142006-10-21 21:46:47 -0400500ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500501case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -0400502-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500503 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -0400504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400508 esac;;
509*)
510 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500511esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500512
513rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100518 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400519fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400526 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400528 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400532 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100533 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500534else
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400535 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500539
540if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500541 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559
560# Name of the host.
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565#
566# Initializations.
567#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000568ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400569ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500570ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400571LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500583PACKAGE_URL=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <sys/types.h>
591#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400592#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500593# include <sys/stat.h>
594#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400595#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500596# include <stdlib.h>
597# include <stddef.h>
598#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400599# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500600# include <stdlib.h>
601# endif
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500605# include <memory.h>
606# endif
607# include <string.h>
608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500610# include <strings.h>
611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400614#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400615#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500617#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400618#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500619# include <unistd.h>
620#endif"
621
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400622ac_header_list=
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100623ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400624LIBOBJS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100625BUILD_LDFLAGS
626BUILD_CFLAGS
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400627INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100628DO_TEST_SUITE
629ET_DIR
630SS_DIR
631LDFLAG_STATIC
632root_sysconfdir
633root_libdir
634root_sbindir
635root_bindir
636root_prefix
637UNIX_CMT
638CYGWIN_CMT
639LINUX_CMT
640UNI_DIFF_OPTS
641SEM_INIT_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100642SOCKET_LIB
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400643SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100644SIZEOF_LONG_LONG
645SIZEOF_LONG
646SIZEOF_INT
647SIZEOF_SHORT
648BUILD_CC
649MAKEINFO
650STRIP
651AR
652LDCONFIG
653PERL
654SED
655AWK
656CHMOD
657RM
658CP
659MV
660LN_S
661LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400662ifNotGNUmake
663ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100664BINARY_TYPE
665POSUB
666LTLIBINTL
667LIBINTL
668INTLLIBS
669INTL_LIBTOOL_SUFFIX_PREFIX
670INTLOBJS
671GENCAT
672INSTOBJEXT
673DATADIRNAME
674CATOBJEXT
675USE_INCLUDED_LIBINTL
676BUILD_INCLUDED_LIBINTL
677INTLBISON
678LTLIBICONV
679LIBICONV
680HAVE_WPRINTF
681HAVE_SNPRINTF
682HAVE_ASPRINTF
683HAVE_POSIX_PRINTF
684GLIBC21
685ALLOCA
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400686EGREP
687GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100688RANLIB
689MSGMERGE
690XGETTEXT
691GMSGFMT
692MSGFMT
693USE_NLS
694MKINSTALLDIRS
695INSTALL_DATA
696INSTALL_SCRIPT
697INSTALL_PROGRAM
698SET_MAKE
699VERSION
700PACKAGE
701GETTEXT_PACKAGE
702UUIDD_CMT
703E2INITRD_MAN
704E2INITRD_PROG
705FSCK_MAN
706FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500707DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100708RESIZER_CMT
709IMAGER_CMT
710DEBUGFS_CMT
Aditya Kalif239fef2011-07-20 11:40:02 -0700711QUOTA_CMT
712DEPPROFILED_LIBQUOTA
713PROFILED_LIBQUOTA
714DEPSTATIC_LIBQUOTA
715STATIC_LIBQUOTA
716DEPLIBQUOTA
717LIBQUOTA
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100718BLKID_CMT
719DEPPROFILED_LIBBLKID
720PROFILED_LIBBLKID
721DEPSTATIC_LIBBLKID
722STATIC_LIBBLKID
723DEPLIBBLKID
724LIBBLKID
725UUID_CMT
726DEPPROFILED_LIBUUID
727PROFILED_LIBUUID
728DEPSTATIC_LIBUUID
729STATIC_LIBUUID
730DEPLIBUUID
731LIBUUID
732PKG_CONFIG
733TEST_IO_CMT
734PRIVATE_LIBS_CMT
735LDFLAG_DYNAMIC
736PROFILED_LIB_EXT
737STATIC_LIB_EXT
738LIB_EXT
739CHECKER_CMT
740PROFILE_CMT
741BSDLIB_CMT
742ELF_CMT
743HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400744Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400745ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400746E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400747LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400748SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400749LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100750MAINTAINER_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100751CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400752RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500753DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100754OBJEXT
755EXEEXT
756ac_ct_CC
757CPPFLAGS
758LDFLAGS
759CFLAGS
760CC
761host_os
762host_vendor
763host_cpu
764host
765build_os
766build_vendor
767build_cpu
768build
769E2FSPROGS_PKGVER
770E2FSPROGS_VERSION
771E2FSPROGS_DAY
772E2FSPROGS_MONTH
773E2FSPROGS_YEAR
774target_alias
775host_alias
776build_alias
777LIBS
778ECHO_T
779ECHO_N
780ECHO_C
781DEFS
782mandir
783localedir
784libdir
785psdir
786pdfdir
787dvidir
788htmldir
789infodir
790docdir
791oldincludedir
792includedir
793localstatedir
794sharedstatedir
795sysconfdir
796datadir
797datarootdir
798libexecdir
799sbindir
800bindir
801program_transform_name
802prefix
803exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500804PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100805PACKAGE_BUGREPORT
806PACKAGE_STRING
807PACKAGE_VERSION
808PACKAGE_TARNAME
809PACKAGE_NAME
810PATH_SEPARATOR
811SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400812ac_subst_files='MCONFIG
813MAKEFILE_ELF
814MAKEFILE_BSDLIB
815MAKEFILE_PROFILE
816MAKEFILE_CHECKER
817MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400818ASM_TYPES_HEADER
819PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100820ac_user_opts='
821enable_option_checking
822with_diet_libc
823with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100824with_ccopts
825with_ldopts
826with_root_prefix
827enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400828enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400829enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400830enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400831enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400832enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100833enable_compression
834enable_htree
835enable_elf_shlibs
836enable_bsd_shlibs
837enable_profile
838enable_checker
839enable_jbd_debug
840enable_blkid_debug
841enable_testio_debug
842enable_libuuid
843enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500844enable_quota
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100845enable_debugfs
846enable_imager
847enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500848enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100849enable_fsck
850enable_e2initrd_helper
851enable_tls
852enable_uuidd
853enable_nls
854with_gnu_ld
855enable_rpath
856with_libiconv_prefix
857with_included_gettext
858with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400859with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100860'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400861 ac_precious_vars='build_alias
862host_alias
863target_alias
864CC
865CFLAGS
866LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400867LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400868CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400869CPP
870PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400871
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000872
873# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500874ac_init_help=
875ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100876ac_unrecognized_opts=
877ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000878# The variables have the same names as the options, with
879# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500880cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000881exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000882no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000883no_recursion=
884prefix=NONE
885program_prefix=NONE
886program_suffix=NONE
887program_transform_name=s,x,x,
888silent=
889site=
890srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000891verbose=
892x_includes=NONE
893x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500894
895# Installation directory options.
896# These are left unexpanded so users can "make install exec_prefix=/foo"
897# and all the variables that are supposed to be based on exec_prefix
898# by default will actually change.
899# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400900# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000901bindir='${exec_prefix}/bin'
902sbindir='${exec_prefix}/sbin'
903libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400904datarootdir='${prefix}/share'
905datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000906sysconfdir='${prefix}/etc'
907sharedstatedir='${prefix}/com'
908localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000909includedir='${prefix}/include'
910oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400911docdir='${datarootdir}/doc/${PACKAGE}'
912infodir='${datarootdir}/info'
913htmldir='${docdir}'
914dvidir='${docdir}'
915pdfdir='${docdir}'
916psdir='${docdir}'
917libdir='${exec_prefix}/lib'
918localedir='${datarootdir}/locale'
919mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000920
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000921ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400922ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000923for ac_option
924do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000925 # If the previous option needs an argument, assign it.
926 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400927 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000928 ac_prev=
929 continue
930 fi
931
Theodore Ts'oe1052142006-10-21 21:46:47 -0400932 case $ac_option in
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400933 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 *=) ac_optarg= ;;
935 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400936 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000937
938 # Accept the important Cygnus configure options, so we can diagnose typos.
939
Theodore Ts'oe1052142006-10-21 21:46:47 -0400940 case $ac_dashdash$ac_option in
941 --)
942 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000943
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000944 -bindir | --bindir | --bindi | --bind | --bin | --bi)
945 ac_prev=bindir ;;
946 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500947 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000948
949 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500950 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000951 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500952 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000953
954 -cache-file | --cache-file | --cache-fil | --cache-fi \
955 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
956 ac_prev=cache_file ;;
957 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
958 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500959 cache_file=$ac_optarg ;;
960
961 --config-cache | -C)
962 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000963
Theodore Ts'oe1052142006-10-21 21:46:47 -0400964 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000965 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400966 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500967 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000968
Theodore Ts'oe1052142006-10-21 21:46:47 -0400969 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
970 | --dataroo | --dataro | --datar)
971 ac_prev=datarootdir ;;
972 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
973 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
974 datarootdir=$ac_optarg ;;
975
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000976 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100977 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000978 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400980 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985"enable_$ac_useropt"
986"*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400991
992 -docdir | --docdir | --docdi | --doc | --do)
993 ac_prev=docdir ;;
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995 docdir=$ac_optarg ;;
996
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998 ac_prev=dvidir ;;
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001001
1002 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001003 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001004 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001006 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1010 *"
1011"enable_$ac_useropt"
1012"*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001017
1018 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020 | --exec | --exe | --ex)
1021 ac_prev=exec_prefix ;;
1022 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001025 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001026
1027 -gas | --gas | --ga | --g)
1028 # Obsolete; use --with-gas.
1029 with_gas=yes ;;
1030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001031 -help | --help | --hel | --he | -h)
1032 ac_init_help=long ;;
1033 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034 ac_init_help=recursive ;;
1035 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001037
1038 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001039 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001040 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001041 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001042
Theodore Ts'oe1052142006-10-21 21:46:47 -04001043 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044 ac_prev=htmldir ;;
1045 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046 | --ht=*)
1047 htmldir=$ac_optarg ;;
1048
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001049 -includedir | --includedir | --includedi | --included | --include \
1050 | --includ | --inclu | --incl | --inc)
1051 ac_prev=includedir ;;
1052 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001054 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001055
1056 -infodir | --infodir | --infodi | --infod | --info | --inf)
1057 ac_prev=infodir ;;
1058 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001059 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001060
1061 -libdir | --libdir | --libdi | --libd)
1062 ac_prev=libdir ;;
1063 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001064 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001065
1066 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067 | --libexe | --libex | --libe)
1068 ac_prev=libexecdir ;;
1069 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001071 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001072
Theodore Ts'oe1052142006-10-21 21:46:47 -04001073 -localedir | --localedir | --localedi | --localed | --locale)
1074 ac_prev=localedir ;;
1075 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076 localedir=$ac_optarg ;;
1077
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001078 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001079 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001080 ac_prev=localstatedir ;;
1081 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001082 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001083 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001084
1085 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086 ac_prev=mandir ;;
1087 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001088 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001089
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001090 -nfp | --nfp | --nf)
1091 # Obsolete; use --without-fp.
1092 with_fp=no ;;
1093
1094 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001095 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001096 no_create=yes ;;
1097
1098 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100 no_recursion=yes ;;
1101
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001102 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104 | --oldin | --oldi | --old | --ol | --o)
1105 ac_prev=oldincludedir ;;
1106 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001109 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001110
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001111 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112 ac_prev=prefix ;;
1113 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001114 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001115
1116 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117 | --program-pre | --program-pr | --program-p)
1118 ac_prev=program_prefix ;;
1119 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001121 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001122
1123 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124 | --program-suf | --program-su | --program-s)
1125 ac_prev=program_suffix ;;
1126 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001128 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001129
1130 -program-transform-name | --program-transform-name \
1131 | --program-transform-nam | --program-transform-na \
1132 | --program-transform-n | --program-transform- \
1133 | --program-transform | --program-transfor \
1134 | --program-transfo | --program-transf \
1135 | --program-trans | --program-tran \
1136 | --progr-tra | --program-tr | --program-t)
1137 ac_prev=program_transform_name ;;
1138 -program-transform-name=* | --program-transform-name=* \
1139 | --program-transform-nam=* | --program-transform-na=* \
1140 | --program-transform-n=* | --program-transform-=* \
1141 | --program-transform=* | --program-transfor=* \
1142 | --program-transfo=* | --program-transf=* \
1143 | --program-trans=* | --program-tran=* \
1144 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001145 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001146
Theodore Ts'oe1052142006-10-21 21:46:47 -04001147 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148 ac_prev=pdfdir ;;
1149 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150 pdfdir=$ac_optarg ;;
1151
1152 -psdir | --psdir | --psdi | --psd | --ps)
1153 ac_prev=psdir ;;
1154 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155 psdir=$ac_optarg ;;
1156
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158 | -silent | --silent | --silen | --sile | --sil)
1159 silent=yes ;;
1160
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 ac_prev=sbindir ;;
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001165 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001166
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1170 | --sha | --sh)
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001176 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001177
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001178 -site | --site | --sit)
1179 ac_prev=site ;;
1180 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001181 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001182
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 ac_prev=srcdir ;;
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001186 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001187
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001193 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001194
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001195 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001196 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001198 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001199
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 verbose=yes ;;
1202
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001205
1206 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001208 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001210 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215"with_$ac_useropt"
1216"*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001221
1222 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001224 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001226 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231"with_$ac_useropt"
1232"*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001237
1238 --x)
1239 # Obsolete; use --with-x.
1240 with_x=yes ;;
1241
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001247 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001248
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001254 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001255
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001256 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1257Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001258 ;;
1259
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001263 case $ac_envvar in #(
1264 '' | [0-9]* | *[!_$as_cr_alnum]* )
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001265 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001266 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001267 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001268 export $ac_envvar ;;
1269
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001270 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001271 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001272 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001274 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001276 ;;
1277
1278 esac
1279done
1280
1281if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001283 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001284fi
1285
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001286if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1288 no) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001290 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 esac
1292fi
1293
1294# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001295for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001299do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001300 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001301 # Remove trailing slashes.
1302 case $ac_val in
1303 */ )
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1306 esac
1307 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001308 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001311 esac
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001313done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001314
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001315# There might be people who depend on the old broken behavior: `$host'
1316# used to hold the argument of --host etc.
1317# FIXME: To remove some day.
1318build=$build_alias
1319host=$host_alias
1320target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001321
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001322# FIXME: To remove some day.
1323if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1328 fi
1329fi
1330
1331ac_tool_prefix=
1332test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334test "$silent" = yes && exec 6>/dev/null
1335
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001336
Theodore Ts'oe1052142006-10-21 21:46:47 -04001337ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338ac_ls_di=`ls -di .` &&
1339ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001340 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001341test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001342 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001343
1344
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001345# Find the source files, if location was not specified.
1346if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001348 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\).*/{
1368 s//\1/
1369 q
1370 }
1371 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001372 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001373 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001374 srcdir=..
1375 fi
1376else
1377 ac_srcdir_defaulted=no
1378fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001379if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001382fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001383ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384ac_abs_confdir=`(
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001386 pwd)`
1387# When building in place, set srcdir=.
1388if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390fi
1391# Remove unnecessary trailing slashes from srcdir.
1392# Double slashes in file names in object file debugging info
1393# mess up M-x gdb in Emacs.
1394case $srcdir in
1395*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396esac
1397for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001403
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001404#
1405# Report the --help message.
1406#
1407if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411\`configure' configures this package to adapt to many kinds of systems.
1412
1413Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416VAR=VALUE. See below for descriptions of some of the useful variables.
1417
1418Defaults for the options are specified in brackets.
1419
1420Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001425 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001431Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001433 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001435 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001436
1437By default, \`make install' will install all the files in
1438\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440for instance \`--prefix=\$HOME'.
1441
1442For better control, use the options below.
1443
1444Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001464_ACEOF
1465
1466 cat <<\_ACEOF
1467
1468System types:
1469 --build=BUILD configure for building on BUILD [guessed]
1470 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1471_ACEOF
1472fi
1473
1474if test -n "$ac_init_help"; then
1475
1476 cat <<\_ACEOF
1477
1478Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001479 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001482 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001483 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001484 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001485
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001486 --enable-symlink-build use symlinks while building instead of hard links
1487 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001488 --enable-compression enable EXPERIMENTAL compression support
1489 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001490 --enable-elf-shlibs select ELF shared libraries
1491 --enable-bsd-shlibs select BSD shared libraries
1492 --enable-profile build profiling libraries
1493 --enable-checker build checker libraries
1494 --enable-jbd-debug enable journal debugging
1495 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001496 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001497 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001498 --disable-libblkid do not build private blkid library
Eric Sandeen7b8912e2012-11-27 12:21:56 -06001499 --enable-quota enable quota support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001500 --disable-debugfs disable support of debugfs program
1501 --disable-imager disable support of e2image program
1502 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001503 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001504 --enable-fsck build fsck wrapper program
1505 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001506 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001507 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001508 --disable-nls do not use Native Language Support
1509 --disable-rpath do not hardcode runtime library paths
1510
1511Optional Packages:
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001514 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001515 --with-cc no longer supported, use CC= instead
1516 --with-ccopts no longer supported, use CFLAGS= instead
1517 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001518 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1519 --with-gnu-ld assume the C compiler uses GNU ld default=no
1520 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1521 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1522 --with-included-gettext use the GNU gettext library included here
1523 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1524 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001525 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001526
1527Some influential environment variables:
1528 CC C compiler command
1529 CFLAGS C compiler flags
1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1531 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001532 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001533 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001534 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001535 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001536 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001537
1538Use these variables to override the choices made by `configure' or to help
1539it to find libraries and programs with nonstandard names/locations.
1540
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001541Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001542_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001543ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001544fi
1545
1546if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001549 test -d "$ac_dir" ||
1550 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001552 ac_builddir=.
1553
Theodore Ts'oe1052142006-10-21 21:46:47 -04001554case "$ac_dir" in
1555.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001558 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 esac ;;
1564esac
1565ac_abs_top_builddir=$ac_pwd
1566ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567# for backward compatibility:
1568ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001569
1570case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001571 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001572 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001576 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1579 *) # Relative name.
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001583esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001584ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001585
Theodore Ts'oe1052142006-10-21 21:46:47 -04001586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for guested configure.
1588 if test -f "$ac_srcdir/configure.gnu"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001594 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001595 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001596 fi || ac_status=$?
1597 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001598 done
1599fi
1600
Theodore Ts'oe1052142006-10-21 21:46:47 -04001601test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001602if $ac_init_version; then
1603 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001604configure
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001605generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001606
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001607Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001608This configure script is free software; the Free Software Foundation
1609gives unlimited permission to copy, distribute and modify it.
1610_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001611 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001612fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001613
1614## ------------------------ ##
1615## Autoconf initialization. ##
1616## ------------------------ ##
1617
1618# ac_fn_c_try_compile LINENO
1619# --------------------------
1620# Try to compile conftest.$ac_ext, and return whether this succeeded.
1621ac_fn_c_try_compile ()
1622{
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext
1625 if { { ac_try="$ac_compile"
1626case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext; then :
1644 ac_retval=0
1645else
1646 $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001652 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001653
1654} # ac_fn_c_try_compile
1655
1656# ac_fn_c_try_link LINENO
1657# -----------------------
1658# Try to link conftest.$ac_ext, and return whether this succeeded.
1659ac_fn_c_try_link ()
1660{
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext conftest$ac_exeext
1663 if { { ac_try="$ac_link"
1664case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_link") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest$ac_exeext && {
1682 test "$cross_compiling" = yes ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001683 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001684 }; then :
1685 ac_retval=0
1686else
1687 $as_echo "$as_me: failed program was:" >&5
1688sed 's/^/| /' conftest.$ac_ext >&5
1689
1690 ac_retval=1
1691fi
1692 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1693 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1694 # interfere with the next link command; also delete a directory that is
1695 # left behind by Apple's compiler. We do this before executing the actions.
1696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001698 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001699
1700} # ac_fn_c_try_link
1701
1702# ac_fn_c_try_cpp LINENO
1703# ----------------------
1704# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1705ac_fn_c_try_cpp ()
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_cpp conftest.$ac_ext"
1709case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1716 ac_status=$?
1717 if test -s conftest.err; then
1718 grep -v '^ *+' conftest.err >conftest.er1
1719 cat conftest.er1 >&5
1720 mv -f conftest.er1 conftest.err
1721 fi
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001723 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1725 test ! -s conftest.err
1726 }; then :
1727 ac_retval=0
1728else
1729 $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=1
1733fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001735 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001736
1737} # ac_fn_c_try_cpp
1738
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001739# ac_fn_c_try_run LINENO
1740# ----------------------
1741# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1742# that executables *can* be run.
1743ac_fn_c_try_run ()
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_link"
1747case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_link") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1757 { { case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_try") 2>&5
1764 ac_status=$?
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; }; }; then :
1767 ac_retval=0
1768else
1769 $as_echo "$as_me: program exited with status $ac_status" >&5
1770 $as_echo "$as_me: failed program was:" >&5
1771sed 's/^/| /' conftest.$ac_ext >&5
1772
1773 ac_retval=$ac_status
1774fi
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001777 as_fn_set_status $ac_retval
1778
1779} # ac_fn_c_try_run
1780
1781# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1782# -------------------------------------------
1783# Tests whether TYPE exists after having included INCLUDES, setting cache
1784# variable VAR accordingly.
1785ac_fn_c_check_type ()
1786{
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001790if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001791 $as_echo_n "(cached) " >&6
1792else
1793 eval "$3=no"
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h. */
1796$4
1797int
1798main ()
1799{
1800if (sizeof ($2))
1801 return 0;
1802 ;
1803 return 0;
1804}
1805_ACEOF
1806if ac_fn_c_try_compile "$LINENO"; then :
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808/* end confdefs.h. */
1809$4
1810int
1811main ()
1812{
1813if (sizeof (($2)))
1814 return 0;
1815 ;
1816 return 0;
1817}
1818_ACEOF
1819if ac_fn_c_try_compile "$LINENO"; then :
1820
1821else
1822 eval "$3=yes"
1823fi
1824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827fi
1828eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001832
1833} # ac_fn_c_check_type
1834
1835# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1836# -------------------------------------------------------
1837# Tests whether HEADER exists and can be compiled using the include files in
1838# INCLUDES, setting the cache variable VAR accordingly.
1839ac_fn_c_check_header_compile ()
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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001844if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001845 $as_echo_n "(cached) " >&6
1846else
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848/* end confdefs.h. */
1849$4
1850#include <$2>
1851_ACEOF
1852if ac_fn_c_try_compile "$LINENO"; then :
1853 eval "$3=yes"
1854else
1855 eval "$3=no"
1856fi
1857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1858fi
1859eval ac_res=\$$3
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001863
1864} # ac_fn_c_check_header_compile
1865
1866# ac_fn_c_check_func LINENO FUNC VAR
1867# ----------------------------------
1868# Tests whether FUNC exists, setting the cache variable VAR accordingly
1869ac_fn_c_check_func ()
1870{
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001874if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001875 $as_echo_n "(cached) " >&6
1876else
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878/* end confdefs.h. */
1879/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1881#define $2 innocuous_$2
1882
1883/* System header to define __stub macros and hopefully few prototypes,
1884 which can conflict with char $2 (); below.
1885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1886 <limits.h> exists even on freestanding compilers. */
1887
1888#ifdef __STDC__
1889# include <limits.h>
1890#else
1891# include <assert.h>
1892#endif
1893
1894#undef $2
1895
1896/* Override any GCC internal prototype to avoid an error.
1897 Use char because int might match the return type of a GCC
1898 builtin and then its argument prototype would still apply. */
1899#ifdef __cplusplus
1900extern "C"
1901#endif
1902char $2 ();
1903/* The GNU C library defines this for functions which it implements
1904 to always fail with ENOSYS. Some functions are actually named
1905 something starting with __ and the normal name is an alias. */
1906#if defined __stub_$2 || defined __stub___$2
1907choke me
1908#endif
1909
1910int
1911main ()
1912{
1913return $2 ();
1914 ;
1915 return 0;
1916}
1917_ACEOF
1918if ac_fn_c_try_link "$LINENO"; then :
1919 eval "$3=yes"
1920else
1921 eval "$3=no"
1922fi
1923rm -f core conftest.err conftest.$ac_objext \
1924 conftest$ac_exeext conftest.$ac_ext
1925fi
1926eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001930
1931} # ac_fn_c_check_func
1932
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001933# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1934# -------------------------------------------------------
1935# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1936# the include files in INCLUDES and setting the cache variable VAR
1937# accordingly.
1938ac_fn_c_check_header_mongrel ()
1939{
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001941 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001944if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001945 $as_echo_n "(cached) " >&6
1946fi
1947eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
1950else
1951 # Is the header compilable?
1952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1953$as_echo_n "checking $2 usability... " >&6; }
1954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955/* end confdefs.h. */
1956$4
1957#include <$2>
1958_ACEOF
1959if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_header_compiler=yes
1961else
1962 ac_header_compiler=no
1963fi
1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1966$as_echo "$ac_header_compiler" >&6; }
1967
1968# Is the header present?
1969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1970$as_echo_n "checking $2 presence... " >&6; }
1971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h. */
1973#include <$2>
1974_ACEOF
1975if ac_fn_c_try_cpp "$LINENO"; then :
1976 ac_header_preproc=yes
1977else
1978 ac_header_preproc=no
1979fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001980rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1982$as_echo "$ac_header_preproc" >&6; }
1983
1984# So? What about this header?
1985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1986 yes:no: )
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1988$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1990$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 ;;
1992 no:yes:* )
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1994$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1996$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1998$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2000$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2003 ;;
2004esac
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002007if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002008 $as_echo_n "(cached) " >&6
2009else
2010 eval "$3=\$ac_header_compiler"
2011fi
2012eval ac_res=\$$3
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014$as_echo "$ac_res" >&6; }
2015fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002017
2018} # ac_fn_c_check_header_mongrel
2019
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002020# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2021# --------------------------------------------
2022# Tries to find the compile-time value of EXPR in a program that includes
2023# INCLUDES, setting VAR accordingly. Returns whether the value could be
2024# computed
2025ac_fn_c_compute_int ()
2026{
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 if test "$cross_compiling" = yes; then
2029 # Depending upon the size, compute the lo and hi bounds.
2030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h. */
2032$4
2033int
2034main ()
2035{
2036static int test_array [1 - 2 * !(($2) >= 0)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002037test_array [0] = 0;
2038return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002039
2040 ;
2041 return 0;
2042}
2043_ACEOF
2044if ac_fn_c_try_compile "$LINENO"; then :
2045 ac_lo=0 ac_mid=0
2046 while :; do
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048/* end confdefs.h. */
2049$4
2050int
2051main ()
2052{
2053static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002054test_array [0] = 0;
2055return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002056
2057 ;
2058 return 0;
2059}
2060_ACEOF
2061if ac_fn_c_try_compile "$LINENO"; then :
2062 ac_hi=$ac_mid; break
2063else
2064 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2065 if test $ac_lo -le $ac_mid; then
2066 ac_lo= ac_hi=
2067 break
2068 fi
2069 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2070fi
2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 done
2073else
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h. */
2076$4
2077int
2078main ()
2079{
2080static int test_array [1 - 2 * !(($2) < 0)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002081test_array [0] = 0;
2082return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002083
2084 ;
2085 return 0;
2086}
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_hi=-1 ac_mid=-1
2090 while :; do
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h. */
2093$4
2094int
2095main ()
2096{
2097static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002098test_array [0] = 0;
2099return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002100
2101 ;
2102 return 0;
2103}
2104_ACEOF
2105if ac_fn_c_try_compile "$LINENO"; then :
2106 ac_lo=$ac_mid; break
2107else
2108 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2109 if test $ac_mid -le $ac_hi; then
2110 ac_lo= ac_hi=
2111 break
2112 fi
2113 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2114fi
2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 done
2117else
2118 ac_lo= ac_hi=
2119fi
2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121fi
2122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123# Binary search between lo and hi bounds.
2124while test "x$ac_lo" != "x$ac_hi"; do
2125 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127/* end confdefs.h. */
2128$4
2129int
2130main ()
2131{
2132static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002133test_array [0] = 0;
2134return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002135
2136 ;
2137 return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_hi=$ac_mid
2142else
2143 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2144fi
2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146done
2147case $ac_lo in #((
2148?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2149'') ac_retval=1 ;;
2150esac
2151 else
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h. */
2154$4
2155static long int longval () { return $2; }
2156static unsigned long int ulongval () { return $2; }
2157#include <stdio.h>
2158#include <stdlib.h>
2159int
2160main ()
2161{
2162
2163 FILE *f = fopen ("conftest.val", "w");
2164 if (! f)
2165 return 1;
2166 if (($2) < 0)
2167 {
2168 long int i = longval ();
2169 if (i != ($2))
2170 return 1;
2171 fprintf (f, "%ld", i);
2172 }
2173 else
2174 {
2175 unsigned long int i = ulongval ();
2176 if (i != ($2))
2177 return 1;
2178 fprintf (f, "%lu", i);
2179 }
2180 /* Do not output a trailing newline, as this causes \r\n confusion
2181 on some platforms. */
2182 return ferror (f) || fclose (f) != 0;
2183
2184 ;
2185 return 0;
2186}
2187_ACEOF
2188if ac_fn_c_try_run "$LINENO"; then :
2189 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2190else
2191 ac_retval=1
2192fi
2193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2194 conftest.$ac_objext conftest.beam conftest.$ac_ext
2195rm -f conftest.val
2196
2197 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002199 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002200
2201} # ac_fn_c_compute_int
2202
2203# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2204# ----------------------------------------------------
2205# Tries to find if the field MEMBER exists in type AGGR, after including
2206# INCLUDES, setting cache variable VAR accordingly.
2207ac_fn_c_check_member ()
2208{
2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2211$as_echo_n "checking for $2.$3... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002212if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002213 $as_echo_n "(cached) " >&6
2214else
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216/* end confdefs.h. */
2217$5
2218int
2219main ()
2220{
2221static $2 ac_aggr;
2222if (ac_aggr.$3)
2223return 0;
2224 ;
2225 return 0;
2226}
2227_ACEOF
2228if ac_fn_c_try_compile "$LINENO"; then :
2229 eval "$4=yes"
2230else
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232/* end confdefs.h. */
2233$5
2234int
2235main ()
2236{
2237static $2 ac_aggr;
2238if (sizeof ac_aggr.$3)
2239return 0;
2240 ;
2241 return 0;
2242}
2243_ACEOF
2244if ac_fn_c_try_compile "$LINENO"; then :
2245 eval "$4=yes"
2246else
2247 eval "$4=no"
2248fi
2249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250fi
2251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252fi
2253eval ac_res=\$$4
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002257
2258} # ac_fn_c_check_member
2259
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002260# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2261# ---------------------------------------------
2262# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2263# accordingly.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002264ac_fn_c_check_decl ()
2265{
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002267 as_decl_name=`echo $2|sed 's/ *(.*//'`
2268 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2270$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2271if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002272 $as_echo_n "(cached) " >&6
2273else
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275/* end confdefs.h. */
2276$4
2277int
2278main ()
2279{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002280#ifndef $as_decl_name
2281#ifdef __cplusplus
2282 (void) $as_decl_use;
2283#else
2284 (void) $as_decl_name;
2285#endif
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002286#endif
2287
2288 ;
2289 return 0;
2290}
2291_ACEOF
2292if ac_fn_c_try_compile "$LINENO"; then :
2293 eval "$3=yes"
2294else
2295 eval "$3=no"
2296fi
2297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298fi
2299eval ac_res=\$$3
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2301$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002302 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002303
2304} # ac_fn_c_check_decl
Theodore Ts'oe1052142006-10-21 21:46:47 -04002305cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002306This file contains any messages produced by compilers while
2307running configure, to aid debugging if configure makes a mistake.
2308
2309It was created by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002310generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002311
2312 $ $0 $@
2313
2314_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002315exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002316{
2317cat <<_ASUNAME
2318## --------- ##
2319## Platform. ##
2320## --------- ##
2321
2322hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2323uname -m = `(uname -m) 2>/dev/null || echo unknown`
2324uname -r = `(uname -r) 2>/dev/null || echo unknown`
2325uname -s = `(uname -s) 2>/dev/null || echo unknown`
2326uname -v = `(uname -v) 2>/dev/null || echo unknown`
2327
2328/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2329/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2330
2331/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2332/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2333/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002334/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002335/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2336/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2337/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2338
2339_ASUNAME
2340
2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342for as_dir in $PATH
2343do
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002346 $as_echo "PATH: $as_dir"
2347 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002348IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002349
2350} >&5
2351
2352cat >&5 <<_ACEOF
2353
2354
2355## ----------- ##
2356## Core tests. ##
2357## ----------- ##
2358
2359_ACEOF
2360
2361
2362# Keep a trace of the command line.
2363# Strip out --no-create and --no-recursion so they do not pile up.
2364# Strip out --silent because we don't want to record it for future runs.
2365# Also quote any args containing shell meta-characters.
2366# Make two passes to allow for proper duplicate-argument suppression.
2367ac_configure_args=
2368ac_configure_args0=
2369ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002370ac_must_keep_next=false
2371for ac_pass in 1 2
2372do
2373 for ac_arg
2374 do
2375 case $ac_arg in
2376 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2378 | -silent | --silent | --silen | --sile | --sil)
2379 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002380 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002381 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002382 esac
2383 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002384 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002385 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002386 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002387 if test $ac_must_keep_next = true; then
2388 ac_must_keep_next=false # Got value, back to normal.
2389 else
2390 case $ac_arg in
2391 *=* | --config-cache | -C | -disable-* | --disable-* \
2392 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2393 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2394 | -with-* | --with-* | -without-* | --without-* | --x)
2395 case "$ac_configure_args0 " in
2396 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2397 esac
2398 ;;
2399 -* ) ac_must_keep_next=true ;;
2400 esac
2401 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002402 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002403 ;;
2404 esac
2405 done
2406done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002407{ ac_configure_args0=; unset ac_configure_args0;}
2408{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002409
2410# When interrupted or exit'd, cleanup temporary files, and complete
2411# config.log. We remove comments because anyway the quotes in there
2412# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002413# WARNING: Use '\'' to represent an apostrophe within the trap.
2414# 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 -05002415trap 'exit_status=$?
2416 # Save into config.log some information that might help in debugging.
2417 {
2418 echo
2419
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002420 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002421## Cache variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002422## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002423 echo
2424 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002425(
2426 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2427 eval ac_val=\$$ac_var
2428 case $ac_val in #(
2429 *${as_nl}*)
2430 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002431 *_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 +01002432$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002433 esac
2434 case $ac_var in #(
2435 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002436 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002437 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002438 esac ;;
2439 esac
2440 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002441 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002442 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2443 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002444 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002445 "s/'\''/'\''\\\\'\'''\''/g;
2446 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2447 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002448 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002449 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002450 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002451 esac |
2452 sort
2453)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002454 echo
2455
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002456 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002457## Output variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002458## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002459 echo
2460 for ac_var in $ac_subst_vars
2461 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002462 eval ac_val=\$$ac_var
2463 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002465 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002466 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002467 done | sort
2468 echo
2469
2470 if test -n "$ac_subst_files"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002471 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002472## File substitutions. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002473## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002474 echo
2475 for ac_var in $ac_subst_files
2476 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002477 eval ac_val=\$$ac_var
2478 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002479 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002480 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002481 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002482 done | sort
2483 echo
2484 fi
2485
2486 if test -s confdefs.h; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002487 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002488## confdefs.h. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002489## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002490 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002491 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002492 echo
2493 fi
2494 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002495 $as_echo "$as_me: caught signal $ac_signal"
2496 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002497 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002498 rm -f core *.core core.conftest.* &&
2499 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002500 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002501' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002502for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002503 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002504done
2505ac_signal=0
2506
2507# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002508rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002509
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002510$as_echo "/* confdefs.h */" > confdefs.h
2511
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002512# Predefined preprocessor variables.
2513
2514cat >>confdefs.h <<_ACEOF
2515#define PACKAGE_NAME "$PACKAGE_NAME"
2516_ACEOF
2517
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002518cat >>confdefs.h <<_ACEOF
2519#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2520_ACEOF
2521
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002522cat >>confdefs.h <<_ACEOF
2523#define PACKAGE_VERSION "$PACKAGE_VERSION"
2524_ACEOF
2525
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002526cat >>confdefs.h <<_ACEOF
2527#define PACKAGE_STRING "$PACKAGE_STRING"
2528_ACEOF
2529
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002530cat >>confdefs.h <<_ACEOF
2531#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2532_ACEOF
2533
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002534cat >>confdefs.h <<_ACEOF
2535#define PACKAGE_URL "$PACKAGE_URL"
2536_ACEOF
2537
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002538
2539# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002540# Prefer an explicitly selected file to automatically selected ones.
2541ac_site_file1=NONE
2542ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002543if test -n "$CONFIG_SITE"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002544 # We do not want a PATH search for config.site.
2545 case $CONFIG_SITE in #((
2546 -*) ac_site_file1=./$CONFIG_SITE;;
2547 */*) ac_site_file1=$CONFIG_SITE;;
2548 *) ac_site_file1=./$CONFIG_SITE;;
2549 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002550elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002551 ac_site_file1=$prefix/share/config.site
2552 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002553else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002554 ac_site_file1=$ac_default_prefix/share/config.site
2555 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002556fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002557for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002558do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002559 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002560 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002561 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002562$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002563 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002564 . "$ac_site_file" \
2565 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567as_fn_error $? "failed to load site script $ac_site_file
2568See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002569 fi
2570done
2571
2572if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002573 # Some versions of bash will fail to source /dev/null (special files
2574 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2575 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002576 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002577$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002578 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002579 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2580 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002581 esac
2582 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002583else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002584 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002585$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002586 >$cache_file
2587fi
2588
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002589as_fn_append ac_header_list " stdlib.h"
2590as_fn_append ac_header_list " unistd.h"
2591as_fn_append ac_header_list " sys/param.h"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002592# Check that the precious variables saved in the cache have kept the same
2593# value.
2594ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002595for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002596 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2597 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002598 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2599 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002600 case $ac_old_set,$ac_new_set in
2601 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002602 { $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 +01002603$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 -05002604 ac_cache_corrupted=: ;;
2605 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002606 { $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 +01002607$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002608 ac_cache_corrupted=: ;;
2609 ,);;
2610 *)
2611 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002612 # differences in whitespace do not lead to failure.
2613 ac_old_val_w=`echo x $ac_old_val`
2614 ac_new_val_w=`echo x $ac_new_val`
2615 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002616 { $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 +01002617$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2618 ac_cache_corrupted=:
2619 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002620 { $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 +01002621$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2622 eval $ac_var=\$ac_old_val
2623 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002624 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002625$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002626 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002627$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002628 fi;;
2629 esac
2630 # Pass precious variables to config.status.
2631 if test "$ac_new_set" = set; then
2632 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002633 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002634 *) ac_arg=$ac_var=$ac_new_val ;;
2635 esac
2636 case " $ac_configure_args " in
2637 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002638 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002639 esac
2640 fi
2641done
2642if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002645 { $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 +01002646$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002647 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002648fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002649## -------------------- ##
2650## Main body of script. ##
2651## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002652
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002653ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002654ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002658
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002659
2660
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002661ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002662for ac_dir in config "$srcdir"/config; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002663 if test -f "$ac_dir/install-sh"; then
2664 ac_aux_dir=$ac_dir
2665 ac_install_sh="$ac_aux_dir/install-sh -c"
2666 break
2667 elif test -f "$ac_dir/install.sh"; then
2668 ac_aux_dir=$ac_dir
2669 ac_install_sh="$ac_aux_dir/install.sh -c"
2670 break
2671 elif test -f "$ac_dir/shtool"; then
2672 ac_aux_dir=$ac_dir
2673 ac_install_sh="$ac_aux_dir/shtool install -c"
2674 break
2675 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002676done
2677if test -z "$ac_aux_dir"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002678 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 +00002679fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002680
2681# These three variables are undocumented and unsupported,
2682# and are intended to be withdrawn in a future Autoconf release.
2683# They can cause serious problems if a builder's source tree is in a directory
2684# whose full name contains unusual characters.
2685ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2686ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2687ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2688
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002689
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002690ac_config_headers="$ac_config_headers lib/config.h"
2691
2692
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002693MCONFIG=./MCONFIG
2694
Theodore Ts'o74becf31997-04-26 14:37:06 +00002695BINARY_TYPE=bin
2696E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2697 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2698DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2699 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002700E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002701MONTH=`echo $DATE | awk -F- '{print $2}'`
2702YEAR=`echo $DATE | awk -F- '{print $3}'`
2703
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002704if expr $YEAR ">" 1900 > /dev/null ; then
2705 E2FSPROGS_YEAR=$YEAR
2706elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002707 E2FSPROGS_YEAR=19$YEAR
2708else
2709 E2FSPROGS_YEAR=20$YEAR
2710fi
2711
2712case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002713Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2714Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2715Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2716Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2717May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2718Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2719Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2720Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2721Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2722Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2723Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2724Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002725*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002726$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002727esac
2728
Andreas Dilger927566a2006-11-12 19:41:25 -05002729base_ver=`echo $E2FSPROGS_VERSION | \
2730 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002731
2732date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2733
2734case $E2FSPROGS_VERSION in
2735*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002736 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002737 ;;
2738*)
2739 E2FSPROGS_PKGVER="$base_ver"
2740 ;;
2741esac
2742
2743unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002744{ $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 +01002745$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002747$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002748
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002749
2750
2751
Andreas Dilger927566a2006-11-12 19:41:25 -05002752
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002753# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002754$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002755 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002756
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002758$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002759if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002760 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002761else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002762 ac_build_alias=$build_alias
2763test "x$ac_build_alias" = x &&
2764 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2765test "x$ac_build_alias" = x &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002766 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002767ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002768 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002769
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002770fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002772$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002773case $ac_cv_build in
2774*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002775*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002776esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002777build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002778ac_save_IFS=$IFS; IFS='-'
2779set x $ac_cv_build
2780shift
2781build_cpu=$1
2782build_vendor=$2
2783shift; shift
2784# Remember, the first character of IFS is used to create $*,
2785# except with old shells:
2786build_os=$*
2787IFS=$ac_save_IFS
2788case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002789
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002790
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002792$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002793if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002794 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002795else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002796 if test "x$host_alias" = x; then
2797 ac_cv_host=$ac_cv_build
2798else
2799 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002800 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002801fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002802
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002803fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002805$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002806case $ac_cv_host in
2807*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002808*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002809esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002810host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002811ac_save_IFS=$IFS; IFS='-'
2812set x $ac_cv_host
2813shift
2814host_cpu=$1
2815host_vendor=$2
2816shift; shift
2817# Remember, the first character of IFS is used to create $*,
2818# except with old shells:
2819host_os=$*
2820IFS=$ac_save_IFS
2821case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002822
2823
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002824DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002825ac_ext=c
2826ac_cpp='$CPP $CPPFLAGS'
2827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2832set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002834$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002835if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002836 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002837else
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2840else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002846 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002848 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002850 break 2
2851 fi
2852done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002853 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002854IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002855
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002856fi
2857fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002858CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002859if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002861$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002862else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002864$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002865fi
2866
Theodore Ts'oe1052142006-10-21 21:46:47 -04002867
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002868fi
2869if test -z "$ac_cv_prog_CC"; then
2870 ac_ct_CC=$CC
2871 # Extract the first word of "gcc", so it can be a program name with args.
2872set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002874$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002875if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002876 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002877else
2878 if test -n "$ac_ct_CC"; then
2879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002886 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002888 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002890 break 2
2891 fi
2892done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002893 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002894IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002895
2896fi
2897fi
2898ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002901$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002902else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002904$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002905fi
2906
Theodore Ts'oe1052142006-10-21 21:46:47 -04002907 if test "x$ac_ct_CC" = x; then
2908 CC=""
2909 else
2910 case $cross_compiling:$ac_tool_warned in
2911yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002912{ $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 +01002913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002914ac_tool_warned=yes ;;
2915esac
2916 CC=$ac_ct_CC
2917 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002918else
2919 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002920fi
2921
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002922if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002923 if test -n "$ac_tool_prefix"; then
2924 # 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 -05002925set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002927$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002928if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002929 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002930else
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2933else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935for as_dir in $PATH
2936do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002939 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002941 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002943 break 2
2944 fi
2945done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002946 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002947IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002948
2949fi
2950fi
2951CC=$ac_cv_prog_CC
2952if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002954$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002955else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002957$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002958fi
2959
Theodore Ts'oe1052142006-10-21 21:46:47 -04002960
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002961 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002962fi
2963if test -z "$CC"; then
2964 # Extract the first word of "cc", so it can be a program name with args.
2965set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002967$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002968if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002969 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002970else
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002974 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002980 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002982 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2983 ac_prog_rejected=yes
2984 continue
2985 fi
2986 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002988 break 2
2989 fi
2990done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002991 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002992IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002993
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002994if test $ac_prog_rejected = yes; then
2995 # We found a bogon in the path, so make sure we never use it.
2996 set dummy $ac_cv_prog_CC
2997 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002998 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002999 # We chose a different compiler from the bogus one.
3000 # However, it has the same basename, so the bogon will be chosen
3001 # first if we set CC to just the basename; use the full file name.
3002 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003003 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003004 fi
3005fi
3006fi
3007fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003008CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003009if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003011$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003012else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003014$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003015fi
3016
Theodore Ts'oe1052142006-10-21 21:46:47 -04003017
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003018fi
3019if test -z "$CC"; then
3020 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003021 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003022 do
3023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3024set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003026$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003027if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003028 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003029else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003038 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003042 break 2
3043 fi
3044done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003045 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003046IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003047
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003048fi
3049fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003050CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003051if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003053$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003054else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003056$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003057fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003058
Theodore Ts'oe1052142006-10-21 21:46:47 -04003059
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003060 test -n "$CC" && break
3061 done
3062fi
3063if test -z "$CC"; then
3064 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003065 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003066do
3067 # Extract the first word of "$ac_prog", so it can be a program name with args.
3068set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003070$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003071if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003072 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003073else
3074 if test -n "$ac_ct_CC"; then
3075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3076else
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003082 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003084 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003086 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003087 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003088done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003089 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003090IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003091
3092fi
3093fi
3094ac_ct_CC=$ac_cv_prog_ac_ct_CC
3095if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003097$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003098else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003100$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003101fi
3102
Theodore Ts'oe1052142006-10-21 21:46:47 -04003103
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003104 test -n "$ac_ct_CC" && break
3105done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003106
Theodore Ts'oe1052142006-10-21 21:46:47 -04003107 if test "x$ac_ct_CC" = x; then
3108 CC=""
3109 else
3110 case $cross_compiling:$ac_tool_warned in
3111yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003112{ $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 +01003113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003114ac_tool_warned=yes ;;
3115esac
3116 CC=$ac_ct_CC
3117 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003118fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003119
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003120fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003121
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003122
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003123test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003125as_fn_error $? "no acceptable C compiler found in \$PATH
3126See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003127
3128# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003129$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003130set X $ac_compile
3131ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003132for ac_option in --version -v -V -qversion; do
3133 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139$as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003141 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003142 if test -s conftest.err; then
3143 sed '10a\
3144... rest of stderr output deleted ...
3145 10q' conftest.err >conftest.er1
3146 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003147 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003148 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }
3151done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003152
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003154/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003155
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003165ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003166# Try to create an executable without -o first, disregard a.out.
3167# It will help us diagnose broken compilers, and finding out an intuition
3168# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3170$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003171ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3172
3173# The possible output files:
3174ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3175
Theodore Ts'oe1052142006-10-21 21:46:47 -04003176ac_rmfiles=
3177for ac_file in $ac_files
3178do
3179 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003181 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3182 esac
3183done
3184rm -f $ac_rmfiles
3185
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003186if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003187case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003193 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003194 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003197 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3198# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3199# in a Makefile. We should not override ac_cv_exeext if it was cached,
3200# so that the user can short-circuit this test for compilers unknown to
3201# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003202for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003203do
3204 test -f "$ac_file" || continue
3205 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003207 ;;
3208 [ab].out )
3209 # We found the default executable, but exeext='' is most
3210 # certainly right.
3211 break;;
3212 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003213 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003214 then :; else
3215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3216 fi
3217 # We set ac_cv_exeext here because the later test for it is not
3218 # safe: cross compilers may not add the suffix if given an `-o'
3219 # argument, so we may need to know it at that point already.
3220 # Even if this section looks crufty: it has the advantage of
3221 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003222 break;;
3223 * )
3224 break;;
3225 esac
3226done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003227test "$ac_cv_exeext" = no && ac_cv_exeext=
3228
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003229else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003230 ac_file=''
3231fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003232if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234$as_echo "no" >&6; }
3235$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003236sed 's/^/| /' conftest.$ac_ext >&5
3237
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003238{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003240as_fn_error 77 "C compiler cannot create executables
3241See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003242else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3244$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003245fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3247$as_echo_n "checking for C compiler default output file name... " >&6; }
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3249$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003250ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003251
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003252rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003253ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003255$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003256if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003257case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003263 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003264 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3268# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3269# work properly (i.e., refer to `conftest.exe'), while it won't with
3270# `rm'.
3271for ac_file in conftest.exe conftest conftest.*; do
3272 test -f "$ac_file" || continue
3273 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003276 break;;
3277 * ) break;;
3278 esac
3279done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003280else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003283as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3284See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003285fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003286rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003288$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003289
3290rm -f conftest.$ac_ext
3291EXEEXT=$ac_cv_exeext
3292ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294/* end confdefs.h. */
3295#include <stdio.h>
3296int
3297main ()
3298{
3299FILE *f = fopen ("conftest.out", "w");
3300 return ferror (f) || fclose (f) != 0;
3301
3302 ;
3303 return 0;
3304}
3305_ACEOF
3306ac_clean_files="$ac_clean_files conftest.out"
3307# Check that the compiler produces executables we can run. If not, either
3308# the compiler is broken, or we cross compile.
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3310$as_echo_n "checking whether we are cross compiling... " >&6; }
3311if test "$cross_compiling" != yes; then
3312 { { ac_try="$ac_link"
3313case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316esac
3317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318$as_echo "$ac_try_echo"; } >&5
3319 (eval "$ac_link") 2>&5
3320 ac_status=$?
3321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }
3323 if { ac_try='./conftest$ac_cv_exeext'
3324 { { case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327esac
3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329$as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_try") 2>&5
3331 ac_status=$?
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; }; then
3334 cross_compiling=no
3335 else
3336 if test "$cross_compiling" = maybe; then
3337 cross_compiling=yes
3338 else
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003341as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003342If you meant to cross compile, use \`--host'.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003343See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003344 fi
3345 fi
3346fi
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3348$as_echo "$cross_compiling" >&6; }
3349
3350rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3351ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003353$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003354if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003355 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003356else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003358/* end confdefs.h. */
3359
3360int
3361main ()
3362{
3363
3364 ;
3365 return 0;
3366}
3367_ACEOF
3368rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003369if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003370case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003376 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003377 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003380 for ac_file in conftest.o conftest.obj conftest.*; do
3381 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003382 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003384 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3385 break;;
3386 esac
3387done
3388else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003389 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003390sed 's/^/| /' conftest.$ac_ext >&5
3391
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003392{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003394as_fn_error $? "cannot compute suffix of object files: cannot compile
3395See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003396fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003397rm -f conftest.$ac_cv_objext conftest.$ac_ext
3398fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003400$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003401OBJEXT=$ac_cv_objext
3402ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003403{ $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 +01003404$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003405if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003406 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003407else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003409/* end confdefs.h. */
3410
3411int
3412main ()
3413{
3414#ifndef __GNUC__
3415 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003416#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003417
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003418 ;
3419 return 0;
3420}
3421_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003422if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003423 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003424else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003425 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003428ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003429
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003430fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003432$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3433if test $ac_compiler_gnu = yes; then
3434 GCC=yes
3435else
3436 GCC=
3437fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003438ac_test_CFLAGS=${CFLAGS+set}
3439ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003441$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003442if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003443 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003444else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003445 ac_save_c_werror_flag=$ac_c_werror_flag
3446 ac_c_werror_flag=yes
3447 ac_cv_prog_cc_g=no
3448 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003450/* end confdefs.h. */
3451
3452int
3453main ()
3454{
3455
3456 ;
3457 return 0;
3458}
3459_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003460if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003461 ac_cv_prog_cc_g=yes
3462else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003463 CFLAGS=""
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003465/* end confdefs.h. */
3466
3467int
3468main ()
3469{
3470
3471 ;
3472 return 0;
3473}
3474_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003475if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003476
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003477else
3478 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003479 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003481/* end confdefs.h. */
3482
3483int
3484main ()
3485{
3486
3487 ;
3488 return 0;
3489}
3490_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003491if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003492 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003493fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003495fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_c_werror_flag=$ac_save_c_werror_flag
3500fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003502$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003503if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003504 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003505elif test $ac_cv_prog_cc_g = yes; then
3506 if test "$GCC" = yes; then
3507 CFLAGS="-g -O2"
3508 else
3509 CFLAGS="-g"
3510 fi
3511else
3512 if test "$GCC" = yes; then
3513 CFLAGS="-O2"
3514 else
3515 CFLAGS=
3516 fi
3517fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003519$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003520if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003521 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003522else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003523 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003524ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003526/* end confdefs.h. */
3527#include <stdarg.h>
3528#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003529struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003530/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3531struct buf { int x; };
3532FILE * (*rcsopen) (struct buf *, struct stat *, int);
3533static char *e (p, i)
3534 char **p;
3535 int i;
3536{
3537 return p[i];
3538}
3539static char *f (char * (*g) (char **, int), char **p, ...)
3540{
3541 char *s;
3542 va_list v;
3543 va_start (v,p);
3544 s = g (p, va_arg (v,int));
3545 va_end (v);
3546 return s;
3547}
3548
3549/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3550 function prototypes and stuff, but not '\xHH' hex character constants.
3551 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003552 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3554 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003555 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003556int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3557
Theodore Ts'oe1052142006-10-21 21:46:47 -04003558/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3559 inside strings and character constants. */
3560#define FOO(x) 'x'
3561int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3562
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003563int test (int i, double x);
3564struct s1 {int (*f) (int a);};
3565struct s2 {int (*f) (double a);};
3566int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3567int argc;
3568char **argv;
3569int
3570main ()
3571{
3572return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3573 ;
3574 return 0;
3575}
3576_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003577for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003579do
3580 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003581 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003582 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003583fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003584rm -f core conftest.err conftest.$ac_objext
3585 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003586done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003587rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003588CC=$ac_save_CC
3589
3590fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003591# AC_CACHE_VAL
3592case "x$ac_cv_prog_cc_c89" in
3593 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003595$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003596 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003598$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003599 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003600 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003602$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003603esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003604if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003605
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003606fi
3607
3608ac_ext=c
3609ac_cpp='$CPP $CPPFLAGS'
3610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3616$as_echo_n "checking for dlopen in -ldl... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003617if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003618 $as_echo_n "(cached) " >&6
3619else
3620 ac_check_lib_save_LIBS=$LIBS
3621LIBS="-ldl $LIBS"
3622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623/* end confdefs.h. */
3624
3625/* Override any GCC internal prototype to avoid an error.
3626 Use char because int might match the return type of a GCC
3627 builtin and then its argument prototype would still apply. */
3628#ifdef __cplusplus
3629extern "C"
3630#endif
3631char dlopen ();
3632int
3633main ()
3634{
3635return dlopen ();
3636 ;
3637 return 0;
3638}
3639_ACEOF
3640if ac_fn_c_try_link "$LINENO"; then :
3641 ac_cv_lib_dl_dlopen=yes
3642else
3643 ac_cv_lib_dl_dlopen=no
3644fi
3645rm -f core conftest.err conftest.$ac_objext \
3646 conftest$ac_exeext conftest.$ac_ext
3647LIBS=$ac_check_lib_save_LIBS
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3650$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003651if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003652 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003653
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003654$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3655
3656fi
3657
3658
3659WITH_DIET_LIBC=
3660
3661# Check whether --with-diet-libc was given.
3662if test "${with_diet_libc+set}" = set; then :
3663 withval=$with_diet_libc; CC="diet cc -nostdinc"
3664WITH_DIET_LIBC=yes
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3666$as_echo "CC=$CC" >&6; }
3667fi
3668
3669# Check whether --with-cc was given.
3670if test "${with_cc+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003671 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003672fi
3673
3674
3675# Check whether --with-ccopts was given.
3676if test "${with_ccopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003677 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003678fi
3679
3680
3681# Check whether --with-ldopts was given.
3682if test "${with_ldopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003683 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003684fi
3685
3686ac_ext=c
3687ac_cpp='$CPP $CPPFLAGS'
3688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691if test -n "$ac_tool_prefix"; then
3692 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3693set dummy ${ac_tool_prefix}gcc; ac_word=$2
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003696if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003697 $as_echo_n "(cached) " >&6
3698else
3699 if test -n "$CC"; then
3700 ac_cv_prog_CC="$CC" # Let the user override the test.
3701else
3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703for as_dir in $PATH
3704do
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003709 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 break 2
3712 fi
3713done
3714 done
3715IFS=$as_save_IFS
3716
3717fi
3718fi
3719CC=$ac_cv_prog_CC
3720if test -n "$CC"; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3722$as_echo "$CC" >&6; }
3723else
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725$as_echo "no" >&6; }
3726fi
3727
3728
3729fi
3730if test -z "$ac_cv_prog_CC"; then
3731 ac_ct_CC=$CC
3732 # Extract the first word of "gcc", so it can be a program name with args.
3733set dummy gcc; ac_word=$2
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003736if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003737 $as_echo_n "(cached) " >&6
3738else
3739 if test -n "$ac_ct_CC"; then
3740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741else
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003749 ac_cv_prog_ac_ct_CC="gcc"
3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3752 fi
3753done
3754 done
3755IFS=$as_save_IFS
3756
3757fi
3758fi
3759ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760if test -n "$ac_ct_CC"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3762$as_echo "$ac_ct_CC" >&6; }
3763else
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765$as_echo "no" >&6; }
3766fi
3767
3768 if test "x$ac_ct_CC" = x; then
3769 CC=""
3770 else
3771 case $cross_compiling:$ac_tool_warned in
3772yes:)
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3775ac_tool_warned=yes ;;
3776esac
3777 CC=$ac_ct_CC
3778 fi
3779else
3780 CC="$ac_cv_prog_CC"
3781fi
3782
3783if test -z "$CC"; then
3784 if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3786set dummy ${ac_tool_prefix}cc; ac_word=$2
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003789if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003790 $as_echo_n "(cached) " >&6
3791else
3792 if test -n "$CC"; then
3793 ac_cv_prog_CC="$CC" # Let the user override the test.
3794else
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003802 ac_cv_prog_CC="${ac_tool_prefix}cc"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3805 fi
3806done
3807 done
3808IFS=$as_save_IFS
3809
3810fi
3811fi
3812CC=$ac_cv_prog_CC
3813if test -n "$CC"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3815$as_echo "$CC" >&6; }
3816else
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818$as_echo "no" >&6; }
3819fi
3820
3821
3822 fi
3823fi
3824if test -z "$CC"; then
3825 # Extract the first word of "cc", so it can be a program name with args.
3826set dummy cc; ac_word=$2
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003829if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003830 $as_echo_n "(cached) " >&6
3831else
3832 if test -n "$CC"; then
3833 ac_cv_prog_CC="$CC" # Let the user override the test.
3834else
3835 ac_prog_rejected=no
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003843 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3844 ac_prog_rejected=yes
3845 continue
3846 fi
3847 ac_cv_prog_CC="cc"
3848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 break 2
3850 fi
3851done
3852 done
3853IFS=$as_save_IFS
3854
3855if test $ac_prog_rejected = yes; then
3856 # We found a bogon in the path, so make sure we never use it.
3857 set dummy $ac_cv_prog_CC
3858 shift
3859 if test $# != 0; then
3860 # We chose a different compiler from the bogus one.
3861 # However, it has the same basename, so the bogon will be chosen
3862 # first if we set CC to just the basename; use the full file name.
3863 shift
3864 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3865 fi
3866fi
3867fi
3868fi
3869CC=$ac_cv_prog_CC
3870if test -n "$CC"; then
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3872$as_echo "$CC" >&6; }
3873else
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875$as_echo "no" >&6; }
3876fi
3877
3878
3879fi
3880if test -z "$CC"; then
3881 if test -n "$ac_tool_prefix"; then
3882 for ac_prog in cl.exe
3883 do
3884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3885set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003888if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003889 $as_echo_n "(cached) " >&6
3890else
3891 if test -n "$CC"; then
3892 ac_cv_prog_CC="$CC" # Let the user override the test.
3893else
3894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895for as_dir in $PATH
3896do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003901 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 break 2
3904 fi
3905done
3906 done
3907IFS=$as_save_IFS
3908
3909fi
3910fi
3911CC=$ac_cv_prog_CC
3912if test -n "$CC"; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3914$as_echo "$CC" >&6; }
3915else
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917$as_echo "no" >&6; }
3918fi
3919
3920
3921 test -n "$CC" && break
3922 done
3923fi
3924if test -z "$CC"; then
3925 ac_ct_CC=$CC
3926 for ac_prog in cl.exe
3927do
3928 # Extract the first word of "$ac_prog", so it can be a program name with args.
3929set dummy $ac_prog; ac_word=$2
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003932if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003933 $as_echo_n "(cached) " >&6
3934else
3935 if test -n "$ac_ct_CC"; then
3936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3937else
3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939for as_dir in $PATH
3940do
3941 IFS=$as_save_IFS
3942 test -z "$as_dir" && as_dir=.
3943 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003945 ac_cv_prog_ac_ct_CC="$ac_prog"
3946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 break 2
3948 fi
3949done
3950 done
3951IFS=$as_save_IFS
3952
3953fi
3954fi
3955ac_ct_CC=$ac_cv_prog_ac_ct_CC
3956if test -n "$ac_ct_CC"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3958$as_echo "$ac_ct_CC" >&6; }
3959else
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961$as_echo "no" >&6; }
3962fi
3963
3964
3965 test -n "$ac_ct_CC" && break
3966done
3967
3968 if test "x$ac_ct_CC" = x; then
3969 CC=""
3970 else
3971 case $cross_compiling:$ac_tool_warned in
3972yes:)
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3975ac_tool_warned=yes ;;
3976esac
3977 CC=$ac_ct_CC
3978 fi
3979fi
3980
3981fi
3982
3983
3984test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003986as_fn_error $? "no acceptable C compiler found in \$PATH
3987See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003988
3989# Provide some information about the compiler.
3990$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3991set X $ac_compile
3992ac_compiler=$2
3993for ac_option in --version -v -V -qversion; do
3994 { { ac_try="$ac_compiler $ac_option >&5"
3995case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998esac
3999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000$as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4002 ac_status=$?
4003 if test -s conftest.err; then
4004 sed '10a\
4005... rest of stderr output deleted ...
4006 10q' conftest.err >conftest.er1
4007 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004008 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004009 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011 test $ac_status = 0; }
4012done
4013
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4015$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004016if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004017 $as_echo_n "(cached) " >&6
4018else
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020/* end confdefs.h. */
4021
4022int
4023main ()
4024{
4025#ifndef __GNUC__
4026 choke me
4027#endif
4028
4029 ;
4030 return 0;
4031}
4032_ACEOF
4033if ac_fn_c_try_compile "$LINENO"; then :
4034 ac_compiler_gnu=yes
4035else
4036 ac_compiler_gnu=no
4037fi
4038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039ac_cv_c_compiler_gnu=$ac_compiler_gnu
4040
4041fi
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4043$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4044if test $ac_compiler_gnu = yes; then
4045 GCC=yes
4046else
4047 GCC=
4048fi
4049ac_test_CFLAGS=${CFLAGS+set}
4050ac_save_CFLAGS=$CFLAGS
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4052$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004053if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004054 $as_echo_n "(cached) " >&6
4055else
4056 ac_save_c_werror_flag=$ac_c_werror_flag
4057 ac_c_werror_flag=yes
4058 ac_cv_prog_cc_g=no
4059 CFLAGS="-g"
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061/* end confdefs.h. */
4062
4063int
4064main ()
4065{
4066
4067 ;
4068 return 0;
4069}
4070_ACEOF
4071if ac_fn_c_try_compile "$LINENO"; then :
4072 ac_cv_prog_cc_g=yes
4073else
4074 CFLAGS=""
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076/* end confdefs.h. */
4077
4078int
4079main ()
4080{
4081
4082 ;
4083 return 0;
4084}
4085_ACEOF
4086if ac_fn_c_try_compile "$LINENO"; then :
4087
4088else
4089 ac_c_werror_flag=$ac_save_c_werror_flag
4090 CFLAGS="-g"
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092/* end confdefs.h. */
4093
4094int
4095main ()
4096{
4097
4098 ;
4099 return 0;
4100}
4101_ACEOF
4102if ac_fn_c_try_compile "$LINENO"; then :
4103 ac_cv_prog_cc_g=yes
4104fi
4105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106fi
4107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108fi
4109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 ac_c_werror_flag=$ac_save_c_werror_flag
4111fi
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4113$as_echo "$ac_cv_prog_cc_g" >&6; }
4114if test "$ac_test_CFLAGS" = set; then
4115 CFLAGS=$ac_save_CFLAGS
4116elif test $ac_cv_prog_cc_g = yes; then
4117 if test "$GCC" = yes; then
4118 CFLAGS="-g -O2"
4119 else
4120 CFLAGS="-g"
4121 fi
4122else
4123 if test "$GCC" = yes; then
4124 CFLAGS="-O2"
4125 else
4126 CFLAGS=
4127 fi
4128fi
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4130$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004131if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004132 $as_echo_n "(cached) " >&6
4133else
4134 ac_cv_prog_cc_c89=no
4135ac_save_CC=$CC
4136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137/* end confdefs.h. */
4138#include <stdarg.h>
4139#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004140struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004141/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4142struct buf { int x; };
4143FILE * (*rcsopen) (struct buf *, struct stat *, int);
4144static char *e (p, i)
4145 char **p;
4146 int i;
4147{
4148 return p[i];
4149}
4150static char *f (char * (*g) (char **, int), char **p, ...)
4151{
4152 char *s;
4153 va_list v;
4154 va_start (v,p);
4155 s = g (p, va_arg (v,int));
4156 va_end (v);
4157 return s;
4158}
4159
4160/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4161 function prototypes and stuff, but not '\xHH' hex character constants.
4162 These don't provoke an error unfortunately, instead are silently treated
4163 as 'x'. The following induces an error, until -std is added to get
4164 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4165 array size at least. It's necessary to write '\x00'==0 to get something
4166 that's true only with -std. */
4167int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4168
4169/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4170 inside strings and character constants. */
4171#define FOO(x) 'x'
4172int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4173
4174int test (int i, double x);
4175struct s1 {int (*f) (int a);};
4176struct s2 {int (*f) (double a);};
4177int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4178int argc;
4179char **argv;
4180int
4181main ()
4182{
4183return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4184 ;
4185 return 0;
4186}
4187_ACEOF
4188for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4189 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4190do
4191 CC="$ac_save_CC $ac_arg"
4192 if ac_fn_c_try_compile "$LINENO"; then :
4193 ac_cv_prog_cc_c89=$ac_arg
4194fi
4195rm -f core conftest.err conftest.$ac_objext
4196 test "x$ac_cv_prog_cc_c89" != "xno" && break
4197done
4198rm -f conftest.$ac_ext
4199CC=$ac_save_CC
4200
4201fi
4202# AC_CACHE_VAL
4203case "x$ac_cv_prog_cc_c89" in
4204 x)
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4206$as_echo "none needed" >&6; } ;;
4207 xno)
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4209$as_echo "unsupported" >&6; } ;;
4210 *)
4211 CC="$CC $ac_cv_prog_cc_c89"
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4213$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4214esac
4215if test "x$ac_cv_prog_cc_c89" != xno; then :
4216
4217fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004218
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004219ac_ext=c
4220ac_cpp='$CPP $CPPFLAGS'
4221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223ac_compiler_gnu=$ac_cv_c_compiler_gnu
4224
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004225if test "$GCC" = yes; then
4226 RDYNAMIC="-rdynamic"
4227
4228fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004229ac_ext=c
4230ac_cpp='$CPP $CPPFLAGS'
4231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004235$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004236# On Suns, sometimes $CPP names a directory.
4237if test -n "$CPP" && test -d "$CPP"; then
4238 CPP=
4239fi
4240if test -z "$CPP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004241 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004242 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004243else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004244 # Double quotes because CPP needs to be expanded
4245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4246 do
4247 ac_preproc_ok=false
4248for ac_c_preproc_warn_flag in '' yes
4249do
4250 # Use a header file that comes with gcc, so configuring glibc
4251 # with a fresh cross-compiler works.
4252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4253 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004254 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004255 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004257/* end confdefs.h. */
4258#ifdef __STDC__
4259# include <limits.h>
4260#else
4261# include <assert.h>
4262#endif
4263 Syntax error
4264_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004265if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004266
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004267else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004268 # Broken: fails on valid input.
4269continue
4270fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004271rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004272
Theodore Ts'oe1052142006-10-21 21:46:47 -04004273 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004274 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004276/* end confdefs.h. */
4277#include <ac_nonexistent.h>
4278_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004279if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004280 # Broken: success on invalid input.
4281continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004282else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004283 # Passes both tests.
4284ac_preproc_ok=:
4285break
4286fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004287rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004288
4289done
4290# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004291rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004292if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004293 break
4294fi
4295
4296 done
4297 ac_cv_prog_CPP=$CPP
4298
4299fi
4300 CPP=$ac_cv_prog_CPP
4301else
4302 ac_cv_prog_CPP=$CPP
4303fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004305$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004306ac_preproc_ok=false
4307for ac_c_preproc_warn_flag in '' yes
4308do
4309 # Use a header file that comes with gcc, so configuring glibc
4310 # with a fresh cross-compiler works.
4311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4312 # <limits.h> exists even on freestanding compilers.
4313 # On the NeXT, cc -E runs the code through the compiler's parser,
4314 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004316/* end confdefs.h. */
4317#ifdef __STDC__
4318# include <limits.h>
4319#else
4320# include <assert.h>
4321#endif
4322 Syntax error
4323_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004324if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004325
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004326else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004327 # Broken: fails on valid input.
4328continue
4329fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004330rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004331
Theodore Ts'oe1052142006-10-21 21:46:47 -04004332 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004333 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004335/* end confdefs.h. */
4336#include <ac_nonexistent.h>
4337_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004338if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004339 # Broken: success on invalid input.
4340continue
4341else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004342 # Passes both tests.
4343ac_preproc_ok=:
4344break
4345fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004346rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004347
4348done
4349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004350rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004351if $ac_preproc_ok; then :
4352
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004353else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004356as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4357See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004358fi
4359
4360ac_ext=c
4361ac_cpp='$CPP $CPPFLAGS'
4362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004367$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004368if test "$GCC" = yes
4369then
4370 case "$host_cpu" in
4371 alpha) addcflags="-mieee" ;;
4372 esac
4373fi
4374if test "x$addcflags" != x
4375then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004377$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004378 CFLAGS="$addcflags $CFLAGS"
4379else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004381$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004382fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004383LIB_EXT=.a
4384STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004385PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004386
Theodore Ts'oe1052142006-10-21 21:46:47 -04004387# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004388if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004389 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004390else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004391 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004392fi
4393# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004394if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004395 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004396then
4397 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004399$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004400else
4401 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004403$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004404fi
4405
4406else
4407 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004409$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004410
Theodore Ts'oe1052142006-10-21 21:46:47 -04004411fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004412
Theodore Ts'oe1052142006-10-21 21:46:47 -04004413
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004414# Check whether --enable-symlink-install was given.
4415if test "${enable_symlink_install+set}" = set; then :
4416 enableval=$enable_symlink_install; if test "$enableval" = "no"
4417then
4418 LINK_INSTALL_FLAGS=-f
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4420$as_echo "Disabling symlinks for install" >&6; }
4421else
4422 LINK_INSTALL_FLAGS=-sf
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4424$as_echo "Enabling symlinks for install" >&6; }
4425fi
4426
4427else
4428 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4430$as_echo "Disabling symlinks for install by default" >&6; }
4431
4432fi
4433
4434
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004435relative_symlink_defined=
4436# Check whether --enable-relative-symlinks was given.
4437if test "${enable_relative_symlinks+set}" = set; then :
4438 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004439then
4440 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004441 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4443$as_echo "Disabling relative symlinks for install" >&6; }
4444else
4445 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004446 relative_symlink_defined=yes
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4448$as_echo "Enabling relative symlinks for install" >&6; }
4449fi
4450fi
4451
4452# Check whether --enable-symlink-relative-symlinks was given.
4453if test "${enable_symlink_relative_symlinks+set}" = set; then :
4454 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4455then
4456 SYMLINK_RELATIVE=yes
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4458$as_echo "Disabling relative symlinks for install" >&6; }
4459else
4460 SYMLINK_RELATIVE=--relative
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4462$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004463fi
4464
4465else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004466 if test -z "$relative_symlink_defined"
4467then
4468 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4470$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004471fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004472
4473fi
4474
4475
4476# Check whether --enable-symlink-build was given.
4477if test "${enable_symlink_build+set}" = set; then :
4478 enableval=$enable_symlink_build; if test "$enableval" = "no"
4479then
4480 LINK_BUILD_FLAGS=
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4482$as_echo "Disabling symlinks for build" >&6; }
4483else
4484 LINK_BUILD_FLAGS=-s
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4486$as_echo "Enabling symlinks for build" >&6; }
4487fi
4488
4489else
4490 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4492$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004493
4494fi
4495
4496
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004497# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004498if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004499 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4500then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004502$as_echo "Disabling verbose make commands" >&6; }
4503 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004504 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004505 Q=@
4506else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004508$as_echo "Enabling verbose make commands" >&6; }
4509 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004510 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004511 Q=
4512fi
4513
4514else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004516$as_echo "Disabling verbose make commands" >&6; }
4517E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004518ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004519Q=@
4520
4521fi
4522
4523
4524
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004525
Theodore Ts'oe1052142006-10-21 21:46:47 -04004526# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004527if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004528 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004529then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004531$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004532else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004533
4534$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004535
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004537$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004539$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004540fi
4541
4542else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004544$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004545
Theodore Ts'oe1052142006-10-21 21:46:47 -04004546fi
4547
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004548
Theodore Ts'oe1052142006-10-21 21:46:47 -04004549# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004550if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004551 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004552then
4553 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004555$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004556else
4557 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004558 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004559
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004561$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004562fi
4563
4564else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004565 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004566$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004567
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004569$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004570
Theodore Ts'oe1052142006-10-21 21:46:47 -04004571fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004572
Theodore Ts'oe1052142006-10-21 21:46:47 -04004573
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004574E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004575LDFLAG_DYNAMIC=
4576PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004577# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004578if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004579 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004580then
4581 ELF_CMT=#
4582 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004584$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004585else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004586 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004587 ELF_CMT=
4588 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004589 case "$host_os" in
4590 solaris2.*)
4591 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4592 ;;
4593 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004594 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004595 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004596 PRIVATE_LIBS_CMT=#
4597 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004599$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004600fi
4601
4602else
4603 MAKEFILE_ELF=/dev/null
4604ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004606$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004607
Theodore Ts'oe1052142006-10-21 21:46:47 -04004608fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004609
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004610
Theodore Ts'oe1052142006-10-21 21:46:47 -04004611
4612# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004613if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004614 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004615then
4616 BSDLIB_CMT=#
4617 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004619$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004620else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004621 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004622 BSDLIB_CMT=
4623 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004624 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004625 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004626 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004627 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4628 LIB_EXT=.dylib
4629 ;;
4630 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004632$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004633fi
4634
4635else
4636 MAKEFILE_BSDLIB=/dev/null
4637BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004639$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004640
Theodore Ts'oe1052142006-10-21 21:46:47 -04004641fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004642
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004643
Theodore Ts'oe1052142006-10-21 21:46:47 -04004644
4645# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004646if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004647 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004648then
4649 PROFILE_CMT=#
4650 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004652$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004653else
4654 PROFILE_CMT=
4655 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4656 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004658$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004659fi
4660
4661else
4662 PROFILE_CMT=#
4663MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004665$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004666
Theodore Ts'oe1052142006-10-21 21:46:47 -04004667fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004668
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004669
Theodore Ts'oe1052142006-10-21 21:46:47 -04004670
4671# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004672if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004673 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004674then
4675 CHECKER_CMT=#
4676 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004678$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004679else
4680 CHECKER_CMT=
4681 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004683$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004684fi
4685
4686else
4687 CHECKER_CMT=#
4688MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004690$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004691
Theodore Ts'oe1052142006-10-21 21:46:47 -04004692fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004693
4694
4695
4696
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004697
Theodore Ts'oe1052142006-10-21 21:46:47 -04004698
Theodore Ts'o55da9872008-09-02 23:12:38 -04004699
4700
Theodore Ts'oe1052142006-10-21 21:46:47 -04004701# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004702if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004703 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004704then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004706$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004707else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004708
4709$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004710
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004712$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004713fi
4714
4715else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004717$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004718
Theodore Ts'oe1052142006-10-21 21:46:47 -04004719fi
4720
4721# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004722if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004723 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004724then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004726$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004727else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004728
4729$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004730
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004732$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004733fi
4734
4735else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004737$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004738
Theodore Ts'oe1052142006-10-21 21:46:47 -04004739fi
4740
4741# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004742if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004743 enableval=$enable_testio_debug;
4744if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004745then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004747$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004748 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004749else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004750 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004751 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004752
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004754$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004755fi
4756
4757else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004759$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004760$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004761
4762TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004763
Theodore Ts'oe1052142006-10-21 21:46:47 -04004764fi
4765
Theodore Ts'oaf773652008-09-01 11:27:27 -04004766
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004767
4768
4769if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4770 if test -n "$ac_tool_prefix"; then
4771 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4772set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004774$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004775if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004776 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004777else
4778 case $PKG_CONFIG in
4779 [\\/]* | ?:[\\/]*)
4780 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4781 ;;
4782 *)
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004788 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004790 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004792 break 2
4793 fi
4794done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004795 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004796IFS=$as_save_IFS
4797
4798 ;;
4799esac
4800fi
4801PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4802if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004804$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004805else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004807$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004808fi
4809
4810
4811fi
4812if test -z "$ac_cv_path_PKG_CONFIG"; then
4813 ac_pt_PKG_CONFIG=$PKG_CONFIG
4814 # Extract the first word of "pkg-config", so it can be a program name with args.
4815set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004817$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004818if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004819 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004820else
4821 case $ac_pt_PKG_CONFIG in
4822 [\\/]* | ?:[\\/]*)
4823 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4824 ;;
4825 *)
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827for as_dir in $PATH
4828do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004831 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004833 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004835 break 2
4836 fi
4837done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004838 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004839IFS=$as_save_IFS
4840
4841 ;;
4842esac
4843fi
4844ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4845if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004847$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004848else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004850$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004851fi
4852
4853 if test "x$ac_pt_PKG_CONFIG" = x; then
4854 PKG_CONFIG=""
4855 else
4856 case $cross_compiling:$ac_tool_warned in
4857yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004858{ $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 +01004859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004860ac_tool_warned=yes ;;
4861esac
4862 PKG_CONFIG=$ac_pt_PKG_CONFIG
4863 fi
4864else
4865 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4866fi
4867
4868fi
4869if test -n "$PKG_CONFIG"; then
4870 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004871 { $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 +01004872$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004873 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004875$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004876 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004878$as_echo "no" >&6; }
4879 PKG_CONFIG=""
4880 fi
4881
4882fi
4883LIBUUID=
4884DEPLIBUUID=
4885STATIC_LIBUUID=
4886DEPSTATIC_LIBUUID=
4887PROFILED_LIBUUID=
4888DEPPROFILED_LIBUUID=
4889UUID_CMT=
4890# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004891if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004892 enableval=$enable_libuuid; if test "$enableval" = "no"
4893then
4894 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004895 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004896 fi
4897
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004899$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004900if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004901 $as_echo_n "(cached) " >&6
4902else
4903 ac_check_lib_save_LIBS=$LIBS
4904LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004906/* end confdefs.h. */
4907
4908/* Override any GCC internal prototype to avoid an error.
4909 Use char because int might match the return type of a GCC
4910 builtin and then its argument prototype would still apply. */
4911#ifdef __cplusplus
4912extern "C"
4913#endif
4914char uuid_generate ();
4915int
4916main ()
4917{
4918return uuid_generate ();
4919 ;
4920 return 0;
4921}
4922_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004923if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004924 ac_cv_lib_uuid_uuid_generate=yes
4925else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004926 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004927fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004928rm -f core conftest.err conftest.$ac_objext \
4929 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004930LIBS=$ac_check_lib_save_LIBS
4931fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004933$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004934if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004935 LIBUUID=`$PKG_CONFIG --libs uuid`;
4936 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4937else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004938 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004939fi
4940
4941 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004943$as_echo "Disabling private uuid library" >&6; }
4944else
4945 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4946 DEPLIBUUID=$LIBUUID
4947 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4948 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4949 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4950 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004952$as_echo "Enabling private uuid library" >&6; }
4953fi
4954
4955else
4956 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4957DEPLIBUUID=$LIBUUID
4958STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4959DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4960PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4961DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004963$as_echo "Enabling private uuid library by default" >&6; }
4964
4965fi
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4977 if test -n "$ac_tool_prefix"; then
4978 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4979set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004981$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004982if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004983 $as_echo_n "(cached) " >&6
4984else
4985 case $PKG_CONFIG in
4986 [\\/]* | ?:[\\/]*)
4987 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4988 ;;
4989 *)
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991for as_dir in $PATH
4992do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004995 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004997 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004999 break 2
5000 fi
5001done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005002 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005003IFS=$as_save_IFS
5004
5005 ;;
5006esac
5007fi
5008PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5009if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005011$as_echo "$PKG_CONFIG" >&6; }
5012else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005014$as_echo "no" >&6; }
5015fi
5016
5017
5018fi
5019if test -z "$ac_cv_path_PKG_CONFIG"; then
5020 ac_pt_PKG_CONFIG=$PKG_CONFIG
5021 # Extract the first word of "pkg-config", so it can be a program name with args.
5022set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005024$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005025if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005026 $as_echo_n "(cached) " >&6
5027else
5028 case $ac_pt_PKG_CONFIG in
5029 [\\/]* | ?:[\\/]*)
5030 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5031 ;;
5032 *)
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005038 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005040 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005042 break 2
5043 fi
5044done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005045 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005046IFS=$as_save_IFS
5047
5048 ;;
5049esac
5050fi
5051ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5052if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005054$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5055else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005057$as_echo "no" >&6; }
5058fi
5059
5060 if test "x$ac_pt_PKG_CONFIG" = x; then
5061 PKG_CONFIG=""
5062 else
5063 case $cross_compiling:$ac_tool_warned in
5064yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005065{ $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 +01005066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5067ac_tool_warned=yes ;;
5068esac
5069 PKG_CONFIG=$ac_pt_PKG_CONFIG
5070 fi
5071else
5072 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5073fi
5074
5075fi
5076if test -n "$PKG_CONFIG"; then
5077 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005078 { $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 +01005079$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5080 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005082$as_echo "yes" >&6; }
5083 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005085$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005086 PKG_CONFIG=""
5087 fi
5088
5089fi
5090LIBBLKID=
5091DEPLIBBLKID=
5092STATIC_LIBBLKID=
5093DEPSTATIC_LIBBLKID=
5094PROFILED_LIBBLKID=
5095DEPPROFILED_LIBBLKID=
5096BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005097
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005098# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005099if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005100 enableval=$enable_libblkid; if test "$enableval" = "no"
5101then
5102 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005103 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005104 fi
5105
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005107$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005108if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005109 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005110else
5111 ac_check_lib_save_LIBS=$LIBS
5112LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005114/* end confdefs.h. */
5115
5116/* Override any GCC internal prototype to avoid an error.
5117 Use char because int might match the return type of a GCC
5118 builtin and then its argument prototype would still apply. */
5119#ifdef __cplusplus
5120extern "C"
5121#endif
5122char blkid_get_cache ();
5123int
5124main ()
5125{
5126return blkid_get_cache ();
5127 ;
5128 return 0;
5129}
5130_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005131if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005132 ac_cv_lib_blkid_blkid_get_cache=yes
5133else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005134 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005135fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005136rm -f core conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005138LIBS=$ac_check_lib_save_LIBS
5139fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005141$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005142if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005143 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5144 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5145else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005146 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005147fi
5148
5149 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005151$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005152else
5153 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5154 DEPLIBBLKID=$LIBBLKID
5155 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5156 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5157 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5158 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005159 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005160
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005162$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005163fi
5164
5165else
5166 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5167DEPLIBBLKID=$LIBBLKID
5168STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5169DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5170PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5171DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005172$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005173
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005175$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005176
5177fi
5178
5179
5180
5181
5182
5183
5184
5185
Aditya Kalif239fef2011-07-20 11:40:02 -07005186
5187
5188if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5189 if test -n "$ac_tool_prefix"; then
5190 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5191set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005194if ${ac_cv_path_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005195 $as_echo_n "(cached) " >&6
5196else
5197 case $PKG_CONFIG in
5198 [\\/]* | ?:[\\/]*)
5199 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5200 ;;
5201 *)
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005209 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213done
5214 done
5215IFS=$as_save_IFS
5216
5217 ;;
5218esac
5219fi
5220PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5221if test -n "$PKG_CONFIG"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5223$as_echo "$PKG_CONFIG" >&6; }
5224else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
5227fi
5228
5229
5230fi
5231if test -z "$ac_cv_path_PKG_CONFIG"; then
5232 ac_pt_PKG_CONFIG=$PKG_CONFIG
5233 # Extract the first word of "pkg-config", so it can be a program name with args.
5234set dummy pkg-config; ac_word=$2
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005237if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005238 $as_echo_n "(cached) " >&6
5239else
5240 case $ac_pt_PKG_CONFIG in
5241 [\\/]* | ?:[\\/]*)
5242 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5243 ;;
5244 *)
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246for as_dir in $PATH
5247do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005252 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5255 fi
5256done
5257 done
5258IFS=$as_save_IFS
5259
5260 ;;
5261esac
5262fi
5263ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5264if test -n "$ac_pt_PKG_CONFIG"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5266$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5267else
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269$as_echo "no" >&6; }
5270fi
5271
5272 if test "x$ac_pt_PKG_CONFIG" = x; then
5273 PKG_CONFIG=""
5274 else
5275 case $cross_compiling:$ac_tool_warned in
5276yes:)
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5279ac_tool_warned=yes ;;
5280esac
5281 PKG_CONFIG=$ac_pt_PKG_CONFIG
5282 fi
5283else
5284 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5285fi
5286
5287fi
5288if test -n "$PKG_CONFIG"; then
5289 _pkg_min_version=0.9.0
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5291$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5292 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5294$as_echo "yes" >&6; }
5295 else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297$as_echo "no" >&6; }
5298 PKG_CONFIG=""
5299 fi
5300
5301fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005302
5303# Check whether --enable-quota was given.
5304if test "${enable_quota+set}" = set; then :
5305 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005306then
Theodore Ts'o7becb202011-11-14 10:40:43 -05005307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5308$as_echo "Disabling quota support" >&6; }
5309else
5310 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005311
Theodore Ts'o7becb202011-11-14 10:40:43 -05005312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5313$as_echo "Enabling quota support" >&6; }
Aditya Kalif239fef2011-07-20 11:40:02 -07005314fi
5315
5316else
Theodore Ts'o7becb202011-11-14 10:40:43 -05005317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5318$as_echo "Disabling quota support by default" >&6; }
5319
5320fi
5321
5322LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005323DEPLIBQUOTA=$LIBQUOTA
5324STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5325DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5326PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5327DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005328
5329
5330
5331
5332
5333
5334
Theodore Ts'oe1052142006-10-21 21:46:47 -04005335# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005336if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005337 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005338then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005340$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005341 DEBUGFS_CMT="#"
5342else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005343 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005345$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005346fi
5347
5348else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005350$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005351DEBUGFS_CMT=
5352
Theodore Ts'oe1052142006-10-21 21:46:47 -04005353fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005354
Theodore Ts'oe1052142006-10-21 21:46:47 -04005355
5356# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005357if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005358 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005359then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005361$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005362 IMAGER_CMT="#"
5363else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005364 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005366$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005367fi
5368
5369else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005371$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005372IMAGER_CMT=
5373
Theodore Ts'oe1052142006-10-21 21:46:47 -04005374fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005375
Theodore Ts'oe1052142006-10-21 21:46:47 -04005376
5377# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005378if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005379 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005380then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005382$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005383 RESIZER_CMT="#"
5384else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005385 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005387$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005388fi
5389
5390else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005392$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005393RESIZER_CMT=
5394
Theodore Ts'oe1052142006-10-21 21:46:47 -04005395fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005396
Theodore Ts'oe1052142006-10-21 21:46:47 -04005397
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005398# Check whether --enable-defrag was given.
5399if test "${enable_defrag+set}" = set; then :
5400 enableval=$enable_defrag; if test "$enableval" = "no"
5401then
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5403$as_echo "Disabling e4defrag support" >&6; }
5404 DEFRAG_CMT="#"
5405else
5406 DEFRAG_CMT=
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5408$as_echo "Enabling e4defrag support" >&6; }
5409fi
5410
5411else
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5413$as_echo "Enabling e4defrag support by default" >&6; }
5414DEFRAG_CMT=
5415
5416fi
5417
5418
Theodore Ts'oe1052142006-10-21 21:46:47 -04005419# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005420if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005421 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005422then
5423 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005425$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005426else
5427 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005429$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005430fi
5431
5432else
5433 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005434 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005435 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005437$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005438 ;;
5439 *)
5440 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005442$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005443esac
5444
Theodore Ts'oe1052142006-10-21 21:46:47 -04005445fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005446
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005447
Theodore Ts'oe1052142006-10-21 21:46:47 -04005448
5449# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005450if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005451 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005452then
5453 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005455$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005456else
5457 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005459$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005460fi
5461
5462else
5463 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005465$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005466
Theodore Ts'oe1052142006-10-21 21:46:47 -04005467fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005468
5469
Theodore Ts'oe1052142006-10-21 21:46:47 -04005470
Theodore Ts'o32493942007-12-31 10:45:01 -05005471# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005472if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005473 enableval=$enable_tls; if test "$enableval" = "no"
5474then
5475 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005477$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005478else
5479 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005481$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005482fi
5483
5484else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005485 if test -n "$WITH_DIET_LIBC"
5486then
5487 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005488 { $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 +01005489$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005490else
5491 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005493$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005494fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005495
5496fi
5497
5498if test "$try_tls" = "yes"
5499then
5500
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005502$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005503 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005504 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005505else
5506
5507 ax_tls_keywords="__thread __declspec(thread) none"
5508 for ax_tls_keyword in $ax_tls_keywords; do
5509 case $ax_tls_keyword in
5510 none) ac_cv_tls=none ; break ;;
5511 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005513/* end confdefs.h. */
5514#include <stdlib.h>
5515 static void
5516 foo(void) {
5517 static $ax_tls_keyword int bar;
5518 exit(1);
5519 }
5520int
5521main ()
5522{
5523
5524 ;
5525 return 0;
5526}
5527_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005528if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005529 ac_cv_tls=$ax_tls_keyword ; break
5530else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005531 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005532
5533fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 esac
5536 done
5537
5538fi
5539
5540
5541 if test "$ac_cv_tls" != "none"; then
5542
5543cat >>confdefs.h <<_ACEOF
5544#define TLS $ac_cv_tls
5545_ACEOF
5546
5547 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005549$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005550
5551fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005552
Theodore Ts'o5610f992007-12-31 11:16:56 -05005553# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005554if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005555 enableval=$enable_uuidd; if test "$enableval" = "no"
5556then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005558$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005559 UUIDD_CMT="#"
5560else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005561 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005562
5563 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005565$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005566fi
5567
5568else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005569 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005570
5571UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005573$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005574
5575fi
5576
5577
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005578MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5579
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005580GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005581PACKAGE=e2fsprogs
5582VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005583VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005584
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005585cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005586#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005587_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005588
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005589
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005590cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005591#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005592_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005593
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005594
5595
5596
5597
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005599$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5600set x ${MAKE-make}
5601ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005602if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005603 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005604else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005605 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005606SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005607all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005608 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005609_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005610# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005611case `${MAKE-make} -f conftest.make 2>/dev/null` in
5612 *@@@%%%=?*=@@@%%%*)
5613 eval ac_cv_prog_make_${ac_make}_set=yes;;
5614 *)
5615 eval ac_cv_prog_make_${ac_make}_set=no;;
5616esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005617rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005618fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005619if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005621$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005622 SET_MAKE=
5623else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005625$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005626 SET_MAKE="MAKE=${MAKE-make}"
5627fi
5628
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005629# Find a good install program. We prefer a C program (faster),
5630# so one script is as good as another. But avoid the broken or
5631# incompatible versions:
5632# SysV /etc/install, /usr/sbin/install
5633# SunOS /usr/etc/install
5634# IRIX /sbin/install
5635# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005636# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005637# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5638# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5639# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005640# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005641# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005642# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005644$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005645if test -z "$INSTALL"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005646if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005647 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005648else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650for as_dir in $PATH
5651do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005654 # Account for people who put trailing slashes in PATH elements.
5655case $as_dir/ in #((
5656 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005657 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005658 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005659 /usr/ucb/* ) ;;
5660 *)
5661 # OSF1 and SCO ODT 3.0 have their own names for install.
5662 # Don't use installbsd from OSF since it installs stuff as root
5663 # by default.
5664 for ac_prog in ginstall scoinst install; do
5665 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005666 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005667 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005668 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005669 # AIX install. It has an incompatible calling convention.
5670 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005671 elif test $ac_prog = install &&
5672 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5673 # program-specific install script used by HP pwplus--don't use.
5674 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005675 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005676 rm -rf conftest.one conftest.two conftest.dir
5677 echo one > conftest.one
5678 echo two > conftest.two
5679 mkdir conftest.dir
5680 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5681 test -s conftest.one && test -s conftest.two &&
5682 test -s conftest.dir/conftest.one &&
5683 test -s conftest.dir/conftest.two
5684 then
5685 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5686 break 3
5687 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005688 fi
5689 fi
5690 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005691 done
5692 ;;
5693esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005694
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005695 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005696IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005697
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005698rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005699
5700fi
5701 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005702 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005703 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005704 # As a last resort, use the slow shell script. Don't cache a
5705 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005706 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005707 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005708 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005709 fi
5710fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005712$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005713
5714# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5715# It thinks the first close brace ends the variable substitution.
5716test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5717
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005718test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005719
5720test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5721
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005722
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005723 MKINSTALLDIRS=
5724 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005725 case "$ac_aux_dir" in
5726 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5727 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5728 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005729 fi
5730 if test -z "$MKINSTALLDIRS"; then
5731 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5732 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005733
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005734
5735
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005737$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005738 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005739if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005740 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005741else
5742 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005743fi
5744
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005746$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005747
5748
5749
5750
5751
5752
5753# Prepare PATH_SEPARATOR.
5754# The user is always right.
5755if test "${PATH_SEPARATOR+set}" != set; then
5756 echo "#! /bin/sh" >conf$$.sh
5757 echo "exit 0" >>conf$$.sh
5758 chmod +x conf$$.sh
5759 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5760 PATH_SEPARATOR=';'
5761 else
5762 PATH_SEPARATOR=:
5763 fi
5764 rm -f conf$$.sh
5765fi
5766
5767# Find out how to test for executable files. Don't use a zero-byte file,
5768# as systems may use methods other than mode bits to determine executability.
5769cat >conf$$.file <<_ASEOF
5770#! /bin/sh
5771exit 0
5772_ASEOF
5773chmod +x conf$$.file
5774if test -x conf$$.file >/dev/null 2>&1; then
5775 ac_executable_p="test -x"
5776else
5777 ac_executable_p="test -f"
5778fi
5779rm -f conf$$.file
5780
5781# Extract the first word of "msgfmt", so it can be a program name with args.
5782set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005784$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005785if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005786 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005787else
5788 case "$MSGFMT" in
5789 [\\/]* | ?:[\\/]*)
5790 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5791 ;;
5792 *)
5793 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5794 for ac_dir in $PATH; do
5795 IFS="$ac_save_IFS"
5796 test -z "$ac_dir" && ac_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5799 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5800 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5801 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5802 break 2
5803 fi
5804 fi
5805 done
5806 done
5807 IFS="$ac_save_IFS"
5808 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5809 ;;
5810esac
5811fi
5812MSGFMT="$ac_cv_path_MSGFMT"
5813if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005815$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005816else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005818$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005819fi
5820
5821 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5822set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005824$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005825if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005826 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005827else
5828 case $GMSGFMT in
5829 [\\/]* | ?:[\\/]*)
5830 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5831 ;;
5832 *)
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005838 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005840 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005842 break 2
5843 fi
5844done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005845 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005846IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005847
5848 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5849 ;;
5850esac
5851fi
5852GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005853if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005855$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005856else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005858$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005859fi
5860
5861
5862
Theodore Ts'oe1052142006-10-21 21:46:47 -04005863
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005864# Prepare PATH_SEPARATOR.
5865# The user is always right.
5866if test "${PATH_SEPARATOR+set}" != set; then
5867 echo "#! /bin/sh" >conf$$.sh
5868 echo "exit 0" >>conf$$.sh
5869 chmod +x conf$$.sh
5870 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5871 PATH_SEPARATOR=';'
5872 else
5873 PATH_SEPARATOR=:
5874 fi
5875 rm -f conf$$.sh
5876fi
5877
5878# Find out how to test for executable files. Don't use a zero-byte file,
5879# as systems may use methods other than mode bits to determine executability.
5880cat >conf$$.file <<_ASEOF
5881#! /bin/sh
5882exit 0
5883_ASEOF
5884chmod +x conf$$.file
5885if test -x conf$$.file >/dev/null 2>&1; then
5886 ac_executable_p="test -x"
5887else
5888 ac_executable_p="test -f"
5889fi
5890rm -f conf$$.file
5891
5892# Extract the first word of "xgettext", so it can be a program name with args.
5893set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005895$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005896if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005897 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005898else
5899 case "$XGETTEXT" in
5900 [\\/]* | ?:[\\/]*)
5901 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5902 ;;
5903 *)
5904 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5905 for ac_dir in $PATH; do
5906 IFS="$ac_save_IFS"
5907 test -z "$ac_dir" && ac_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5910 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5911 (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
5912 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5913 break 2
5914 fi
5915 fi
5916 done
5917 done
5918 IFS="$ac_save_IFS"
5919 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5920 ;;
5921esac
5922fi
5923XGETTEXT="$ac_cv_path_XGETTEXT"
5924if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005926$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005927else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005929$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005930fi
5931
5932 rm -f messages.po
5933
5934
5935# Prepare PATH_SEPARATOR.
5936# The user is always right.
5937if test "${PATH_SEPARATOR+set}" != set; then
5938 echo "#! /bin/sh" >conf$$.sh
5939 echo "exit 0" >>conf$$.sh
5940 chmod +x conf$$.sh
5941 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5942 PATH_SEPARATOR=';'
5943 else
5944 PATH_SEPARATOR=:
5945 fi
5946 rm -f conf$$.sh
5947fi
5948
5949# Find out how to test for executable files. Don't use a zero-byte file,
5950# as systems may use methods other than mode bits to determine executability.
5951cat >conf$$.file <<_ASEOF
5952#! /bin/sh
5953exit 0
5954_ASEOF
5955chmod +x conf$$.file
5956if test -x conf$$.file >/dev/null 2>&1; then
5957 ac_executable_p="test -x"
5958else
5959 ac_executable_p="test -f"
5960fi
5961rm -f conf$$.file
5962
5963# Extract the first word of "msgmerge", so it can be a program name with args.
5964set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005966$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005967if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005968 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005969else
5970 case "$MSGMERGE" in
5971 [\\/]* | ?:[\\/]*)
5972 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5973 ;;
5974 *)
5975 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5976 for ac_dir in $PATH; do
5977 IFS="$ac_save_IFS"
5978 test -z "$ac_dir" && ac_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5981 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5982 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5983 break 2
5984 fi
5985 fi
5986 done
5987 done
5988 IFS="$ac_save_IFS"
5989 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5990 ;;
5991esac
5992fi
5993MSGMERGE="$ac_cv_path_MSGMERGE"
5994if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005996$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005997else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005999$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006000fi
6001
6002
6003 if test "$GMSGFMT" != ":"; then
6004 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6005 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6006 : ;
6007 else
6008 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006009 { $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 +01006010$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006011 GMSGFMT=":"
6012 fi
6013 fi
6014
6015 if test "$XGETTEXT" != ":"; then
6016 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6017 (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
6018 : ;
6019 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006020 { $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 +01006021$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006022 XGETTEXT=":"
6023 fi
6024 rm -f messages.po
6025 fi
6026
Theodore Ts'oe1052142006-10-21 21:46:47 -04006027 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006028
6029
6030if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6032set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006034$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006035if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006036 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006037else
6038 if test -n "$RANLIB"; then
6039 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6040else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006046 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006048 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006050 break 2
6051 fi
6052done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006053 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006054IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006055
6056fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006057fi
6058RANLIB=$ac_cv_prog_RANLIB
6059if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006061$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006062else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006064$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006065fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006066
Theodore Ts'oe1052142006-10-21 21:46:47 -04006067
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006068fi
6069if test -z "$ac_cv_prog_RANLIB"; then
6070 ac_ct_RANLIB=$RANLIB
6071 # Extract the first word of "ranlib", so it can be a program name with args.
6072set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006074$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006075if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006076 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006077else
6078 if test -n "$ac_ct_RANLIB"; then
6079 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6080else
6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082for as_dir in $PATH
6083do
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006086 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006088 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006090 break 2
6091 fi
6092done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006093 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006094IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006095
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006096fi
6097fi
6098ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6099if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006101$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006102else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006104$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006105fi
6106
Theodore Ts'oe1052142006-10-21 21:46:47 -04006107 if test "x$ac_ct_RANLIB" = x; then
6108 RANLIB=":"
6109 else
6110 case $cross_compiling:$ac_tool_warned in
6111yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006112{ $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 +01006113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006114ac_tool_warned=yes ;;
6115esac
6116 RANLIB=$ac_ct_RANLIB
6117 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006118else
6119 RANLIB="$ac_cv_prog_RANLIB"
6120fi
6121
6122
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006124$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006125if ${ac_cv_lib_cposix_strerror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006126 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006127else
6128 ac_check_lib_save_LIBS=$LIBS
6129LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006131/* end confdefs.h. */
6132
Theodore Ts'oe1052142006-10-21 21:46:47 -04006133/* Override any GCC internal prototype to avoid an error.
6134 Use char because int might match the return type of a GCC
6135 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006136#ifdef __cplusplus
6137extern "C"
6138#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006139char strerror ();
6140int
6141main ()
6142{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006143return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006144 ;
6145 return 0;
6146}
6147_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006148if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006149 ac_cv_lib_cposix_strerror=yes
6150else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006151 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006152fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006153rm -f core conftest.err conftest.$ac_objext \
6154 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006155LIBS=$ac_check_lib_save_LIBS
6156fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006158$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006159if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006160 LIBS="$LIBS -lcposix"
6161fi
6162
6163
6164
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006165
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6167$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006168if ${ac_cv_path_GREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006169 $as_echo_n "(cached) " >&6
6170else
6171 if test -z "$GREP"; then
6172 ac_path_GREP_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 grep ggrep; do
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006182 as_fn_executable_p "$ac_path_GREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006183# Check for GNU ac_path_GREP and select it if it is found.
6184 # Check for GNU $ac_path_GREP
6185case `"$ac_path_GREP" --version 2>&1` in
6186*GNU*)
6187 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_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 'GREP' >> "conftest.nl"
6197 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "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_GREP_max-0}; then
6201 # Best one so far, save it but keep looking for a better one
6202 ac_cv_path_GREP="$ac_path_GREP"
6203 ac_path_GREP_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_GREP_found && break 3
6212 done
6213 done
6214 done
6215IFS=$as_save_IFS
6216 if test -z "$ac_cv_path_GREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006217 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006218 fi
6219else
6220 ac_cv_path_GREP=$GREP
6221fi
6222
6223fi
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6225$as_echo "$ac_cv_path_GREP" >&6; }
6226 GREP="$ac_cv_path_GREP"
6227
6228
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6230$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006231if ${ac_cv_path_EGREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006232 $as_echo_n "(cached) " >&6
6233else
6234 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6235 then ac_cv_path_EGREP="$GREP -E"
6236 else
6237 if test -z "$EGREP"; then
6238 ac_path_EGREP_found=false
6239 # Loop through the user's path and test for each of PROGNAME-LIST
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6242do
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_prog in egrep; do
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006248 as_fn_executable_p "$ac_path_EGREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006249# Check for GNU ac_path_EGREP and select it if it is found.
6250 # Check for GNU $ac_path_EGREP
6251case `"$ac_path_EGREP" --version 2>&1` in
6252*GNU*)
6253 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6254*)
6255 ac_count=0
6256 $as_echo_n 0123456789 >"conftest.in"
6257 while :
6258 do
6259 cat "conftest.in" "conftest.in" >"conftest.tmp"
6260 mv "conftest.tmp" "conftest.in"
6261 cp "conftest.in" "conftest.nl"
6262 $as_echo 'EGREP' >> "conftest.nl"
6263 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6265 as_fn_arith $ac_count + 1 && ac_count=$as_val
6266 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6267 # Best one so far, save it but keep looking for a better one
6268 ac_cv_path_EGREP="$ac_path_EGREP"
6269 ac_path_EGREP_max=$ac_count
6270 fi
6271 # 10*(2^10) chars as input seems more than enough
6272 test $ac_count -gt 10 && break
6273 done
6274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6275esac
6276
6277 $ac_path_EGREP_found && break 3
6278 done
6279 done
6280 done
6281IFS=$as_save_IFS
6282 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006283 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006284 fi
6285else
6286 ac_cv_path_EGREP=$EGREP
6287fi
6288
6289 fi
6290fi
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6292$as_echo "$ac_cv_path_EGREP" >&6; }
6293 EGREP="$ac_cv_path_EGREP"
6294
6295
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6297$as_echo_n "checking for ANSI C header files... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006298if ${ac_cv_header_stdc+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006299 $as_echo_n "(cached) " >&6
6300else
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302/* end confdefs.h. */
6303#include <stdlib.h>
6304#include <stdarg.h>
6305#include <string.h>
6306#include <float.h>
6307
6308int
6309main ()
6310{
6311
6312 ;
6313 return 0;
6314}
6315_ACEOF
6316if ac_fn_c_try_compile "$LINENO"; then :
6317 ac_cv_header_stdc=yes
6318else
6319 ac_cv_header_stdc=no
6320fi
6321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322
6323if test $ac_cv_header_stdc = yes; then
6324 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326/* end confdefs.h. */
6327#include <string.h>
6328
6329_ACEOF
6330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6331 $EGREP "memchr" >/dev/null 2>&1; then :
6332
6333else
6334 ac_cv_header_stdc=no
6335fi
6336rm -f conftest*
6337
6338fi
6339
6340if test $ac_cv_header_stdc = yes; then
6341 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343/* end confdefs.h. */
6344#include <stdlib.h>
6345
6346_ACEOF
6347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6348 $EGREP "free" >/dev/null 2>&1; then :
6349
6350else
6351 ac_cv_header_stdc=no
6352fi
6353rm -f conftest*
6354
6355fi
6356
6357if test $ac_cv_header_stdc = yes; then
6358 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6359 if test "$cross_compiling" = yes; then :
6360 :
6361else
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363/* end confdefs.h. */
6364#include <ctype.h>
6365#include <stdlib.h>
6366#if ((' ' & 0x0FF) == 0x020)
6367# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6368# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6369#else
6370# define ISLOWER(c) \
6371 (('a' <= (c) && (c) <= 'i') \
6372 || ('j' <= (c) && (c) <= 'r') \
6373 || ('s' <= (c) && (c) <= 'z'))
6374# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6375#endif
6376
6377#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6378int
6379main ()
6380{
6381 int i;
6382 for (i = 0; i < 256; i++)
6383 if (XOR (islower (i), ISLOWER (i))
6384 || toupper (i) != TOUPPER (i))
6385 return 2;
6386 return 0;
6387}
6388_ACEOF
6389if ac_fn_c_try_run "$LINENO"; then :
6390
6391else
6392 ac_cv_header_stdc=no
6393fi
6394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6395 conftest.$ac_objext conftest.beam conftest.$ac_ext
6396fi
6397
6398fi
6399fi
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6401$as_echo "$ac_cv_header_stdc" >&6; }
6402if test $ac_cv_header_stdc = yes; then
6403
6404$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6405
6406fi
6407
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006409$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006410if ${ac_cv_c_const+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006411 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006412else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006414/* end confdefs.h. */
6415
6416int
6417main ()
6418{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006419
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006420#ifndef __cplusplus
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006421 /* Ultrix mips cc rejects this sort of thing. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006422 typedef int charset[2];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006423 const charset cs = { 0, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006424 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006425 char const *const *pcpcc;
6426 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006427 /* NEC SVR4.0.2 mips cc rejects this. */
6428 struct point {int x, y;};
6429 static struct point const zero = {0,0};
6430 /* AIX XL C 1.02.0.0 rejects this.
6431 It does not let you subtract one const X* pointer from another in
6432 an arm of an if-expression whose if-part is not a constant
6433 expression */
6434 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006435 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006436 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006437 ++pcpcc;
6438 ppc = (char**) pcpcc;
6439 pcpcc = (char const *const *) ppc;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006440 { /* SCO 3.2v4 cc rejects this sort of thing. */
6441 char tx;
6442 char *t = &tx;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006443 char const *s = 0 ? (char *) 0 : (char const *) 0;
6444
6445 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006446 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006447 }
6448 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6449 int x[] = {25, 17};
6450 const int *foo = &x[0];
6451 ++foo;
6452 }
6453 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6454 typedef const int *iptr;
6455 iptr p = 0;
6456 ++p;
6457 }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006458 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006459 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006460 struct s { int j; const int *ap[3]; } bx;
6461 struct s *b = &bx; b->j = 5;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006462 }
6463 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6464 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006465 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006466 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006467 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006468#endif
6469
6470 ;
6471 return 0;
6472}
6473_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006474if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006475 ac_cv_c_const=yes
6476else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006477 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006478fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006480fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006482$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006483if test $ac_cv_c_const = no; then
6484
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006485$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006486
6487fi
6488
6489
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006491$as_echo_n "checking for signed... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006492if ${bh_cv_c_signed+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006493 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006494else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006496/* end confdefs.h. */
6497
6498int
6499main ()
6500{
6501signed char x;
6502 ;
6503 return 0;
6504}
6505_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006506if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006507 bh_cv_c_signed=yes
6508else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006509 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006510fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006512fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006514$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006515 if test $bh_cv_c_signed = no; then
6516
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006517$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006518
6519 fi
6520
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006522$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006523if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006524 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006525else
6526 ac_cv_c_inline=no
6527for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006529/* end confdefs.h. */
6530#ifndef __cplusplus
6531typedef int foo_t;
6532static $ac_kw foo_t static_foo () {return 0; }
6533$ac_kw foo_t foo () {return 0; }
6534#endif
6535
6536_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006537if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006538 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006539fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006542done
6543
6544fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006546$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006547
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006548case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006549 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006550 *)
6551 case $ac_cv_c_inline in
6552 no) ac_val=;;
6553 *) ac_val=$ac_cv_c_inline;;
6554 esac
6555 cat >>confdefs.h <<_ACEOF
6556#ifndef __cplusplus
6557#define inline $ac_val
6558#endif
6559_ACEOF
6560 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006561esac
6562
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006563# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6564for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6565 inttypes.h stdint.h unistd.h
6566do :
6567 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6568ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6569"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006570if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006571 cat >>confdefs.h <<_ACEOF
6572#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6573_ACEOF
6574
6575fi
6576
6577done
6578
6579
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006580ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006581if test "x$ac_cv_type_off_t" = xyes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006582
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006583else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006584
6585cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006586#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006587_ACEOF
6588
6589fi
6590
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006591ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006592if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006594else
6595
6596cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006597#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006598_ACEOF
6599
6600fi
6601
6602
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006604$as_echo_n "checking for long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006605if ${ac_cv_type_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006606 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006607else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006609/* end confdefs.h. */
6610long long ll = 1LL; int i = 63;
6611int
6612main ()
6613{
6614long long llmax = (long long) -1;
6615 return ll << i | ll >> i | llmax / ll | llmax % ll;
6616 ;
6617 return 0;
6618}
6619_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006620if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006621 ac_cv_type_long_long=yes
6622else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006623 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006624fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006625rm -f core conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006627fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006629$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006630 if test $ac_cv_type_long_long = yes; then
6631
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006632$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006633
6634 fi
6635
6636
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006638$as_echo_n "checking for long double... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006639if ${gt_cv_c_long_double+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006640 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006641else
6642 if test "$GCC" = yes; then
6643 gt_cv_c_long_double=yes
6644 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006646/* end confdefs.h. */
6647
6648 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6649 long double foo = 0.0;
6650 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6651 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6652
6653int
6654main ()
6655{
6656
6657 ;
6658 return 0;
6659}
6660_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006661if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006662 gt_cv_c_long_double=yes
6663else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006664 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006665fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006667 fi
6668fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006670$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006671 if test $gt_cv_c_long_double = yes; then
6672
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006673$as_echo "#define HAVE_LONG_DOUBLE 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 wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006679$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006680if ${gt_cv_c_wchar_t+:} false; 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 <stddef.h>
6686 wchar_t foo = (wchar_t)'\0';
6687int
6688main ()
6689{
6690
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 gt_cv_c_wchar_t=yes
6697else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006698 gt_cv_c_wchar_t=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: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006703$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006704 if test $gt_cv_c_wchar_t = yes; then
6705
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006706$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006707
6708 fi
6709
6710
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006712$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006713if ${gt_cv_c_wint_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006714 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006715else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006717/* end confdefs.h. */
6718#include <wchar.h>
6719 wint_t foo = (wchar_t)'\0';
6720int
6721main ()
6722{
6723
6724 ;
6725 return 0;
6726}
6727_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006728if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006729 gt_cv_c_wint_t=yes
6730else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006731 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006732fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006734fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006736$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006737 if test $gt_cv_c_wint_t = yes; then
6738
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006739$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740
6741 fi
6742
6743
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006745$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006746if ${jm_ac_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006747 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006748else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006750/* end confdefs.h. */
6751#include <sys/types.h>
6752#include <inttypes.h>
6753int
6754main ()
6755{
6756uintmax_t i = (uintmax_t) -1;
6757 ;
6758 return 0;
6759}
6760_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006761if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006762 jm_ac_cv_header_inttypes_h=yes
6763else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006764 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006765fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006767fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006769$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006770 if test $jm_ac_cv_header_inttypes_h = yes; then
6771
6772cat >>confdefs.h <<_ACEOF
6773#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6774_ACEOF
6775
6776 fi
6777
6778
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006780$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006781if ${jm_ac_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006782 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006783else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006785/* end confdefs.h. */
6786#include <sys/types.h>
6787#include <stdint.h>
6788int
6789main ()
6790{
6791uintmax_t i = (uintmax_t) -1;
6792 ;
6793 return 0;
6794}
6795_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006796if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006797 jm_ac_cv_header_stdint_h=yes
6798else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006799 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006800fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006802fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006804$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006805 if test $jm_ac_cv_header_stdint_h = yes; then
6806
6807cat >>confdefs.h <<_ACEOF
6808#define HAVE_STDINT_H_WITH_UINTMAX 1
6809_ACEOF
6810
6811 fi
6812
6813
6814
6815
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006817$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006818if ${gt_cv_c_intmax_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006819 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006820else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006822/* end confdefs.h. */
6823
6824#include <stddef.h>
6825#include <stdlib.h>
6826#if HAVE_STDINT_H_WITH_UINTMAX
6827#include <stdint.h>
6828#endif
6829#if HAVE_INTTYPES_H_WITH_UINTMAX
6830#include <inttypes.h>
6831#endif
6832
6833int
6834main ()
6835{
6836intmax_t x = -1;
6837 ;
6838 return 0;
6839}
6840_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006841if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006842 gt_cv_c_intmax_t=yes
6843else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006844 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006845fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006847fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006849$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006850 if test $gt_cv_c_intmax_t = yes; then
6851
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006852$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006853
6854 fi
6855
6856
6857
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006859$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006860if ${gt_cv_func_printf_posix+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006861 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006862else
6863
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006864 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006865
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006867/* end confdefs.h. */
6868
6869#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6870 notposix
6871#endif
6872
6873_ACEOF
6874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006875 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006876 gt_cv_func_printf_posix="guessing no"
6877else
6878 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006879fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006880rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006881
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006882
6883else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006885/* end confdefs.h. */
6886
6887#include <stdio.h>
6888#include <string.h>
6889/* The string "%2$d %1$d", with dollar characters protected from the shell's
6890 dollar expansion (possibly an autoconf bug). */
6891static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6892static char buf[100];
6893int main ()
6894{
6895 sprintf (buf, format, 33, 55);
6896 return (strcmp (buf, "55 33") != 0);
6897}
6898_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006899if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006900 gt_cv_func_printf_posix=yes
6901else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006902 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006903fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6905 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006906fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006907
Theodore Ts'oe1052142006-10-21 21:46:47 -04006908
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006909fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006911$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006912 case $gt_cv_func_printf_posix in
6913 *yes)
6914
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006915$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006916
6917 ;;
6918 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006919
6920# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6921# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006923$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006924if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006925 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006926else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006928/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006929#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006930int
6931main ()
6932{
6933char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006934 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006935 ;
6936 return 0;
6937}
6938_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006939if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006940 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006941else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006942 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006943fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006944rm -f core conftest.err conftest.$ac_objext \
6945 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006946fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006948$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006949if test $ac_cv_working_alloca_h = yes; then
6950
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006951$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006952
6953fi
6954
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006956$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006957if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006958 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006959else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006961/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006962#ifdef __GNUC__
6963# define alloca __builtin_alloca
6964#else
6965# ifdef _MSC_VER
6966# include <malloc.h>
6967# define alloca _alloca
6968# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006969# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006970# include <alloca.h>
6971# else
6972# ifdef _AIX
6973 #pragma alloca
6974# else
6975# ifndef alloca /* predefined by HP cc +Olibcalls */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006976void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006977# endif
6978# endif
6979# endif
6980# endif
6981#endif
6982
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006983int
6984main ()
6985{
6986char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006987 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006988 ;
6989 return 0;
6990}
6991_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006992if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006993 ac_cv_func_alloca_works=yes
6994else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006995 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006996fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006997rm -f core conftest.err conftest.$ac_objext \
6998 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006999fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007001$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007002
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007003if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007004
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007005$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007006
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007007else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007008 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7009# that cause trouble. Some versions do not even contain alloca or
7010# contain a buggy version. If you still want to use their alloca,
7011# use ar to extract alloca.o from them instead of compiling alloca.c.
7012
Theodore Ts'oe1052142006-10-21 21:46:47 -04007013ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007014
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007015$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007016
7017
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007019$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007020if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007021 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007022else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007024/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007025#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007026webecray
7027#else
7028wenotbecray
7029#endif
7030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007031_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007033 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007034 ac_cv_os_cray=yes
7035else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007036 ac_cv_os_cray=no
7037fi
7038rm -f conftest*
7039
7040fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007042$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007043if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007044 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007045 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007046ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007047if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007048
7049cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007050#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007051_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007052
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007053 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007054fi
7055
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007056 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007057fi
7058
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007060$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007061if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007062 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007063else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007064 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007065 ac_cv_c_stack_direction=0
7066else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007068/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007069$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007070int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007071find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007072{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007073 int dir, dummy = 0;
7074 if (! addr)
7075 addr = &dummy;
7076 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7077 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7078 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007079}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007080
7081int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007082main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007083{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007084 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007085}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007086_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007087if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007088 ac_cv_c_stack_direction=1
7089else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007090 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007091fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7093 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007094fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007095
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007096fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007098$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007099cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007100#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007101_ACEOF
7102
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007103
7104fi
7105
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007106
7107
7108
7109 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007110do :
7111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007112ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7113"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007114if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007115 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007116#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007117_ACEOF
7118
7119fi
7120
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007121done
7122
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007123
7124
7125
7126
7127
7128
7129
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007130for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007131do :
7132 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007133if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007134 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007135#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007136_ACEOF
7137
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007138fi
7139done
7140
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007142$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007143if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007144 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007145else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007146 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007147 ac_cv_func_mmap_fixed_mapped=no
7148else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007150/* end confdefs.h. */
7151$ac_includes_default
7152/* malloc might have been renamed as rpl_malloc. */
7153#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007154
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007155/* Thanks to Mike Haertel and Jim Avera for this test.
7156 Here is a matrix of mmap possibilities:
7157 mmap private not fixed
7158 mmap private fixed at somewhere currently unmapped
7159 mmap private fixed at somewhere already mapped
7160 mmap shared not fixed
7161 mmap shared fixed at somewhere currently unmapped
7162 mmap shared fixed at somewhere already mapped
7163 For private mappings, we should verify that changes cannot be read()
7164 back from the file, nor mmap's back from the file at a different
7165 address. (There have been systems where private was not correctly
7166 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007167 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007168 like early versions of FreeBSD and possibly contemporary NetBSD.)
7169 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007170 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007171
7172 Grep wants private fixed already mapped.
7173 The main things grep needs to know about mmap are:
7174 * does it exist and is it safe to write into the mmap'd area
7175 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007176
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007177#include <fcntl.h>
7178#include <sys/mman.h>
7179
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007180#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007181char *malloc ();
7182#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007183
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007184/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007185#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007186# ifdef _SC_PAGESIZE
7187# define getpagesize() sysconf(_SC_PAGESIZE)
7188# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007189# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007190# include <sys/param.h>
7191# ifdef EXEC_PAGESIZE
7192# define getpagesize() EXEC_PAGESIZE
7193# else /* no EXEC_PAGESIZE */
7194# ifdef NBPG
7195# define getpagesize() NBPG * CLSIZE
7196# ifndef CLSIZE
7197# define CLSIZE 1
7198# endif /* no CLSIZE */
7199# else /* no NBPG */
7200# ifdef NBPC
7201# define getpagesize() NBPC
7202# else /* no NBPC */
7203# ifdef PAGESIZE
7204# define getpagesize() PAGESIZE
7205# endif /* PAGESIZE */
7206# endif /* no NBPC */
7207# endif /* no NBPG */
7208# endif /* no EXEC_PAGESIZE */
7209# else /* no HAVE_SYS_PARAM_H */
7210# define getpagesize() 8192 /* punt totally */
7211# endif /* no HAVE_SYS_PARAM_H */
7212# endif /* no _SC_PAGESIZE */
7213
7214#endif /* no HAVE_GETPAGESIZE */
7215
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007216int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007217main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007218{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007219 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007220 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007221 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007222 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007223
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007224 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007225
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007226 /* First, make a file with some known garbage in it. */
7227 data = (char *) malloc (pagesize);
7228 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007229 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007230 for (i = 0; i < pagesize; ++i)
7231 *(data + i) = rand ();
7232 umask (0);
7233 fd = creat ("conftest.mmap", 0600);
7234 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007235 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007236 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007237 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007238 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007239
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007240 /* Next, check that the tail of a page is zero-filled. File must have
7241 non-zero length, otherwise we risk SIGBUS for entire page. */
7242 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7243 if (fd2 < 0)
7244 return 4;
7245 cdata2 = "";
7246 if (write (fd2, cdata2, 1) != 1)
7247 return 5;
7248 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7249 if (data2 == MAP_FAILED)
7250 return 6;
7251 for (i = 0; i < pagesize; ++i)
7252 if (*(data2 + i))
7253 return 7;
7254 close (fd2);
7255 if (munmap (data2, pagesize))
7256 return 8;
7257
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007258 /* Next, try to mmap the file at a fixed address which already has
7259 something else allocated at it. If we can, also make sure that
7260 we see the same garbage. */
7261 fd = open ("conftest.mmap", O_RDWR);
7262 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007263 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007264 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7265 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007266 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007267 for (i = 0; i < pagesize; ++i)
7268 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007269 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007270
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007271 /* Finally, make sure that changes to the mapped area do not
7272 percolate back to the file as seen by read(). (This is a bug on
7273 some variants of i386 svr4.0.) */
7274 for (i = 0; i < pagesize; ++i)
7275 *(data2 + i) = *(data2 + i) + 1;
7276 data3 = (char *) malloc (pagesize);
7277 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007278 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007279 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007280 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007281 for (i = 0; i < pagesize; ++i)
7282 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007283 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007284 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007285 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007286}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007287_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007288if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007289 ac_cv_func_mmap_fixed_mapped=yes
7290else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007291 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007292fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007293rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7294 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007295fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007296
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007297fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007299$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007300if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007301
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007302$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007303
7304fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007305rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007306
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007307
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007308 { $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 +01007309$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007310if ${ac_cv_gnu_library_2_1+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007311 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007312else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007314/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007315
7316#include <features.h>
7317#ifdef __GNU_LIBRARY__
7318 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7319 Lucky GNU user
7320 #endif
7321#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007322
7323_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007325 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007326 ac_cv_gnu_library_2_1=yes
7327else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007328 ac_cv_gnu_library_2_1=no
7329fi
7330rm -f conftest*
7331
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007332
7333
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007334fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007336$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007337
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007338 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007339
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007340
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007341
7342
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007344$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007345if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007346 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007347else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007348
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007349 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007350
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007351 # Guess based on the CPU.
7352 case "$host_cpu" in
7353 alpha* | i3456786 | m68k | s390*)
7354 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7355 *)
7356 gt_cv_int_divbyzero_sigfpe="guessing no";;
7357 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007358
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007359else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007361/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007362
7363#include <stdlib.h>
7364#include <signal.h>
7365
7366static void
7367#ifdef __cplusplus
7368sigfpe_handler (int sig)
7369#else
7370sigfpe_handler (sig) int sig;
7371#endif
7372{
7373 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7374 exit (sig != SIGFPE);
7375}
7376
7377int x = 1;
7378int y = 0;
7379int z;
7380int nan;
7381
7382int main ()
7383{
7384 signal (SIGFPE, sigfpe_handler);
7385/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7386#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7387 signal (SIGTRAP, sigfpe_handler);
7388#endif
7389/* Linux/SPARC yields signal SIGILL. */
7390#if defined (__sparc__) && defined (__linux__)
7391 signal (SIGILL, sigfpe_handler);
7392#endif
7393
7394 z = x / y;
7395 nan = y / y;
7396 exit (1);
7397}
7398
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007399_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007400if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007401 gt_cv_int_divbyzero_sigfpe=yes
7402else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007403 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007404fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7406 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007407fi
7408
Theodore Ts'oe1052142006-10-21 21:46:47 -04007409
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007410fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007412$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007413 case "$gt_cv_int_divbyzero_sigfpe" in
7414 *yes) value=1;;
7415 *) value=0;;
7416 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007417
7418cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007419#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007420_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007421
7422
7423
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007425$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007426if ${ac_cv_type_unsigned_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007427 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007428else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007430/* end confdefs.h. */
7431unsigned long long ull = 1ULL; int i = 63;
7432int
7433main ()
7434{
7435unsigned long long ullmax = (unsigned long long) -1;
7436 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7437 ;
7438 return 0;
7439}
7440_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007441if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007442 ac_cv_type_unsigned_long_long=yes
7443else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007444 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007445fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007446rm -f core conftest.err conftest.$ac_objext \
7447 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007448fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007450$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007451 if test $ac_cv_type_unsigned_long_long = yes; then
7452
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007453$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007454
7455 fi
7456
7457
7458
7459
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007460 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 -05007461
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007462 test $ac_cv_type_unsigned_long_long = yes \
7463 && ac_type='unsigned long long' \
7464 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007465
7466cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007467#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007468_ACEOF
7469
7470 else
7471
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007472$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007473
7474 fi
7475
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007476
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007478$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007479if ${gt_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007480 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007481else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007482
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007484/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007485#include <sys/types.h>
7486#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007487int
7488main ()
7489{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007490
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007491 ;
7492 return 0;
7493}
7494_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007495if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007496 gt_cv_header_inttypes_h=yes
7497else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007498 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007499fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007501
7502fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007504$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007505 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007506
7507cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007508#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007509_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007510
7511 fi
7512
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007513
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007514
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007515 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007516 { $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 +01007517$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007518if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007519 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007520else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007521
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007523/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007524#include <inttypes.h>
7525#ifdef PRId32
7526char *p = PRId32;
7527#endif
7528
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007529int
7530main ()
7531{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007532
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007533 ;
7534 return 0;
7535}
7536_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007537if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007538 gt_cv_inttypes_pri_broken=no
7539else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007540 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007541fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007543
7544fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007546$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007547 fi
7548 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007549
7550cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007551#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007552_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007553
7554 fi
7555
7556
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007557 for ac_header in stdint.h
7558do :
7559 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007560if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007561 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007562#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007563_ACEOF
7564
7565fi
7566
7567done
7568
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007570$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007571 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007573/* end confdefs.h. */
7574
7575#include <limits.h>
7576#if HAVE_STDINT_H
7577#include <stdint.h>
7578#endif
7579#ifdef SIZE_MAX
7580Found it
7581#endif
7582
7583_ACEOF
7584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007585 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007586 result=yes
7587fi
7588rm -f conftest*
7589
7590 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007591 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 -05007592
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007593else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007594 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007595fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007596
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007597
7598 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7599
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007600else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007601 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007602fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007603
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007604
7605 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7606
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007607else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007608 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007609fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007610
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007611
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007612 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007614/* end confdefs.h. */
7615#include <stddef.h>
7616 extern size_t foo;
7617 extern unsigned long foo;
7618
7619int
7620main ()
7621{
7622
7623 ;
7624 return 0;
7625}
7626_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007627if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007628 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007629fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007631 fi
7632 if test -z "$result"; then
7633 if test "$fits_in_uint" = 1; then
7634 result="$res_hi$res_lo"U
7635 else
7636 result="$res_hi$res_lo"UL
7637 fi
7638 else
7639 result='~(size_t)0'
7640 fi
7641 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007643$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007644 if test "$result" != yes; then
7645
7646cat >>confdefs.h <<_ACEOF
7647#define SIZE_MAX $result
7648_ACEOF
7649
7650 fi
7651
7652
7653
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007654 for ac_header in stdint.h
7655do :
7656 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007657if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007658 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007659#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007660_ACEOF
7661
7662fi
7663
7664done
7665
7666
7667
7668 if test "X$prefix" = "XNONE"; then
7669 acl_final_prefix="$ac_default_prefix"
7670 else
7671 acl_final_prefix="$prefix"
7672 fi
7673 if test "X$exec_prefix" = "XNONE"; then
7674 acl_final_exec_prefix='${prefix}'
7675 else
7676 acl_final_exec_prefix="$exec_prefix"
7677 fi
7678 acl_save_prefix="$prefix"
7679 prefix="$acl_final_prefix"
7680 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7681 prefix="$acl_save_prefix"
7682
7683
Theodore Ts'oe1052142006-10-21 21:46:47 -04007684# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007685if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007686 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007687else
7688 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007689fi
7690
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007691# Prepare PATH_SEPARATOR.
7692# The user is always right.
7693if test "${PATH_SEPARATOR+set}" != set; then
7694 echo "#! /bin/sh" >conf$$.sh
7695 echo "exit 0" >>conf$$.sh
7696 chmod +x conf$$.sh
7697 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7698 PATH_SEPARATOR=';'
7699 else
7700 PATH_SEPARATOR=:
7701 fi
7702 rm -f conf$$.sh
7703fi
7704ac_prog=ld
7705if test "$GCC" = yes; then
7706 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007708$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007709 case $host in
7710 *-*-mingw*)
7711 # gcc leaves a trailing carriage return which upsets mingw
7712 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7713 *)
7714 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7715 esac
7716 case $ac_prog in
7717 # Accept absolute paths.
7718 [\\/]* | [A-Za-z]:[\\/]*)
7719 re_direlt='/[^/][^/]*/\.\./'
7720 # Canonicalize the path of ld
7721 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7722 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7723 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7724 done
7725 test -z "$LD" && LD="$ac_prog"
7726 ;;
7727 "")
7728 # If it fails, then pretend we aren't using GCC.
7729 ac_prog=ld
7730 ;;
7731 *)
7732 # If it is relative, then search for the first ld in PATH.
7733 with_gnu_ld=unknown
7734 ;;
7735 esac
7736elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007738$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007739else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007741$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007742fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007743if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007744 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007745else
7746 if test -z "$LD"; then
7747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7748 for ac_dir in $PATH; do
7749 test -z "$ac_dir" && ac_dir=.
7750 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7751 acl_cv_path_LD="$ac_dir/$ac_prog"
7752 # Check to see if the program is GNU ld. I'd rather use --version,
7753 # but apparently some GNU ld's only accept -v.
7754 # Break only if it was the GNU/non-GNU ld that we prefer.
7755 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7756 *GNU* | *'with BFD'*)
7757 test "$with_gnu_ld" != no && break ;;
7758 *)
7759 test "$with_gnu_ld" != yes && break ;;
7760 esac
7761 fi
7762 done
7763 IFS="$ac_save_ifs"
7764else
7765 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7766fi
7767fi
7768
7769LD="$acl_cv_path_LD"
7770if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007772$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007773else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007775$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007776fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007777test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007779$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007780if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007781 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007782else
7783 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7784case `$LD -v 2>&1 </dev/null` in
7785*GNU* | *'with BFD'*)
7786 acl_cv_prog_gnu_ld=yes ;;
7787*)
7788 acl_cv_prog_gnu_ld=no ;;
7789esac
7790fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007792$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007793with_gnu_ld=$acl_cv_prog_gnu_ld
7794
7795
7796
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007798$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007799if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007800 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007801else
7802
7803 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7804 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7805 . ./conftest.sh
7806 rm -f ./conftest.sh
7807 acl_cv_rpath=done
7808
7809fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007811$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007812 wl="$acl_cv_wl"
7813 libext="$acl_cv_libext"
7814 shlibext="$acl_cv_shlibext"
7815 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7816 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7817 hardcode_direct="$acl_cv_hardcode_direct"
7818 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007819 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007820if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007821 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007822else
7823 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007824fi
7825
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007826
7827
7828
7829
7830
7831
7832
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007833 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007834
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007835 acl_save_prefix="$prefix"
7836 prefix="$acl_final_prefix"
7837 acl_save_exec_prefix="$exec_prefix"
7838 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007839
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007840 eval additional_includedir=\"$includedir\"
7841 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007842
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007843 exec_prefix="$acl_save_exec_prefix"
7844 prefix="$acl_save_prefix"
7845
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007846
Theodore Ts'oe1052142006-10-21 21:46:47 -04007847# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007848if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007849 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007850 if test "X$withval" = "Xno"; then
7851 use_additional=no
7852 else
7853 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007854
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007855 acl_save_prefix="$prefix"
7856 prefix="$acl_final_prefix"
7857 acl_save_exec_prefix="$exec_prefix"
7858 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007859
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007860 eval additional_includedir=\"$includedir\"
7861 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007862
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007863 exec_prefix="$acl_save_exec_prefix"
7864 prefix="$acl_save_prefix"
7865
7866 else
7867 additional_includedir="$withval/include"
7868 additional_libdir="$withval/lib"
7869 fi
7870 fi
7871
Theodore Ts'oe1052142006-10-21 21:46:47 -04007872fi
7873
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007874 LIBICONV=
7875 LTLIBICONV=
7876 INCICONV=
7877 rpathdirs=
7878 ltrpathdirs=
7879 names_already_handled=
7880 names_next_round='iconv '
7881 while test -n "$names_next_round"; do
7882 names_this_round="$names_next_round"
7883 names_next_round=
7884 for name in $names_this_round; do
7885 already_handled=
7886 for n in $names_already_handled; do
7887 if test "$n" = "$name"; then
7888 already_handled=yes
7889 break
7890 fi
7891 done
7892 if test -z "$already_handled"; then
7893 names_already_handled="$names_already_handled $name"
7894 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7895 eval value=\"\$HAVE_LIB$uppername\"
7896 if test -n "$value"; then
7897 if test "$value" = yes; then
7898 eval value=\"\$LIB$uppername\"
7899 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7900 eval value=\"\$LTLIB$uppername\"
7901 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7902 else
7903 :
7904 fi
7905 else
7906 found_dir=
7907 found_la=
7908 found_so=
7909 found_a=
7910 if test $use_additional = yes; then
7911 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7912 found_dir="$additional_libdir"
7913 found_so="$additional_libdir/lib$name.$shlibext"
7914 if test -f "$additional_libdir/lib$name.la"; then
7915 found_la="$additional_libdir/lib$name.la"
7916 fi
7917 else
7918 if test -f "$additional_libdir/lib$name.$libext"; then
7919 found_dir="$additional_libdir"
7920 found_a="$additional_libdir/lib$name.$libext"
7921 if test -f "$additional_libdir/lib$name.la"; then
7922 found_la="$additional_libdir/lib$name.la"
7923 fi
7924 fi
7925 fi
7926 fi
7927 if test "X$found_dir" = "X"; then
7928 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007929
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007930 acl_save_prefix="$prefix"
7931 prefix="$acl_final_prefix"
7932 acl_save_exec_prefix="$exec_prefix"
7933 exec_prefix="$acl_final_exec_prefix"
7934 eval x=\"$x\"
7935 exec_prefix="$acl_save_exec_prefix"
7936 prefix="$acl_save_prefix"
7937
7938 case "$x" in
7939 -L*)
7940 dir=`echo "X$x" | sed -e 's/^X-L//'`
7941 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7942 found_dir="$dir"
7943 found_so="$dir/lib$name.$shlibext"
7944 if test -f "$dir/lib$name.la"; then
7945 found_la="$dir/lib$name.la"
7946 fi
7947 else
7948 if test -f "$dir/lib$name.$libext"; then
7949 found_dir="$dir"
7950 found_a="$dir/lib$name.$libext"
7951 if test -f "$dir/lib$name.la"; then
7952 found_la="$dir/lib$name.la"
7953 fi
7954 fi
7955 fi
7956 ;;
7957 esac
7958 if test "X$found_dir" != "X"; then
7959 break
7960 fi
7961 done
7962 fi
7963 if test "X$found_dir" != "X"; then
7964 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7965 if test "X$found_so" != "X"; then
7966 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7967 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7968 else
7969 haveit=
7970 for x in $ltrpathdirs; do
7971 if test "X$x" = "X$found_dir"; then
7972 haveit=yes
7973 break
7974 fi
7975 done
7976 if test -z "$haveit"; then
7977 ltrpathdirs="$ltrpathdirs $found_dir"
7978 fi
7979 if test "$hardcode_direct" = yes; then
7980 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7981 else
7982 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7983 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7984 haveit=
7985 for x in $rpathdirs; do
7986 if test "X$x" = "X$found_dir"; then
7987 haveit=yes
7988 break
7989 fi
7990 done
7991 if test -z "$haveit"; then
7992 rpathdirs="$rpathdirs $found_dir"
7993 fi
7994 else
7995 haveit=
7996 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007997
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007998 acl_save_prefix="$prefix"
7999 prefix="$acl_final_prefix"
8000 acl_save_exec_prefix="$exec_prefix"
8001 exec_prefix="$acl_final_exec_prefix"
8002 eval x=\"$x\"
8003 exec_prefix="$acl_save_exec_prefix"
8004 prefix="$acl_save_prefix"
8005
8006 if test "X$x" = "X-L$found_dir"; then
8007 haveit=yes
8008 break
8009 fi
8010 done
8011 if test -z "$haveit"; then
8012 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8013 fi
8014 if test "$hardcode_minus_L" != no; then
8015 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8016 else
8017 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8018 fi
8019 fi
8020 fi
8021 fi
8022 else
8023 if test "X$found_a" != "X"; then
8024 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8025 else
8026 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8027 fi
8028 fi
8029 additional_includedir=
8030 case "$found_dir" in
8031 */lib | */lib/)
8032 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8033 additional_includedir="$basedir/include"
8034 ;;
8035 esac
8036 if test "X$additional_includedir" != "X"; then
8037 if test "X$additional_includedir" != "X/usr/include"; then
8038 haveit=
8039 if test "X$additional_includedir" = "X/usr/local/include"; then
8040 if test -n "$GCC"; then
8041 case $host_os in
8042 linux*) haveit=yes;;
8043 esac
8044 fi
8045 fi
8046 if test -z "$haveit"; then
8047 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008048
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008049 acl_save_prefix="$prefix"
8050 prefix="$acl_final_prefix"
8051 acl_save_exec_prefix="$exec_prefix"
8052 exec_prefix="$acl_final_exec_prefix"
8053 eval x=\"$x\"
8054 exec_prefix="$acl_save_exec_prefix"
8055 prefix="$acl_save_prefix"
8056
8057 if test "X$x" = "X-I$additional_includedir"; then
8058 haveit=yes
8059 break
8060 fi
8061 done
8062 if test -z "$haveit"; then
8063 if test -d "$additional_includedir"; then
8064 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8065 fi
8066 fi
8067 fi
8068 fi
8069 fi
8070 if test -n "$found_la"; then
8071 save_libdir="$libdir"
8072 case "$found_la" in
8073 */* | *\\*) . "$found_la" ;;
8074 *) . "./$found_la" ;;
8075 esac
8076 libdir="$save_libdir"
8077 for dep in $dependency_libs; do
8078 case "$dep" in
8079 -L*)
8080 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8081 if test "X$additional_libdir" != "X/usr/lib"; then
8082 haveit=
8083 if test "X$additional_libdir" = "X/usr/local/lib"; then
8084 if test -n "$GCC"; then
8085 case $host_os in
8086 linux*) haveit=yes;;
8087 esac
8088 fi
8089 fi
8090 if test -z "$haveit"; then
8091 haveit=
8092 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008093
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008094 acl_save_prefix="$prefix"
8095 prefix="$acl_final_prefix"
8096 acl_save_exec_prefix="$exec_prefix"
8097 exec_prefix="$acl_final_exec_prefix"
8098 eval x=\"$x\"
8099 exec_prefix="$acl_save_exec_prefix"
8100 prefix="$acl_save_prefix"
8101
8102 if test "X$x" = "X-L$additional_libdir"; then
8103 haveit=yes
8104 break
8105 fi
8106 done
8107 if test -z "$haveit"; then
8108 if test -d "$additional_libdir"; then
8109 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8110 fi
8111 fi
8112 haveit=
8113 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008114
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008115 acl_save_prefix="$prefix"
8116 prefix="$acl_final_prefix"
8117 acl_save_exec_prefix="$exec_prefix"
8118 exec_prefix="$acl_final_exec_prefix"
8119 eval x=\"$x\"
8120 exec_prefix="$acl_save_exec_prefix"
8121 prefix="$acl_save_prefix"
8122
8123 if test "X$x" = "X-L$additional_libdir"; then
8124 haveit=yes
8125 break
8126 fi
8127 done
8128 if test -z "$haveit"; then
8129 if test -d "$additional_libdir"; then
8130 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8131 fi
8132 fi
8133 fi
8134 fi
8135 ;;
8136 -R*)
8137 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8138 if test "$enable_rpath" != no; then
8139 haveit=
8140 for x in $rpathdirs; do
8141 if test "X$x" = "X$dir"; then
8142 haveit=yes
8143 break
8144 fi
8145 done
8146 if test -z "$haveit"; then
8147 rpathdirs="$rpathdirs $dir"
8148 fi
8149 haveit=
8150 for x in $ltrpathdirs; do
8151 if test "X$x" = "X$dir"; then
8152 haveit=yes
8153 break
8154 fi
8155 done
8156 if test -z "$haveit"; then
8157 ltrpathdirs="$ltrpathdirs $dir"
8158 fi
8159 fi
8160 ;;
8161 -l*)
8162 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8163 ;;
8164 *.la)
8165 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8166 ;;
8167 *)
8168 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8169 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8170 ;;
8171 esac
8172 done
8173 fi
8174 else
8175 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8176 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8177 fi
8178 fi
8179 fi
8180 done
8181 done
8182 if test "X$rpathdirs" != "X"; then
8183 if test -n "$hardcode_libdir_separator"; then
8184 alldirs=
8185 for found_dir in $rpathdirs; do
8186 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8187 done
8188 acl_save_libdir="$libdir"
8189 libdir="$alldirs"
8190 eval flag=\"$hardcode_libdir_flag_spec\"
8191 libdir="$acl_save_libdir"
8192 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8193 else
8194 for found_dir in $rpathdirs; do
8195 acl_save_libdir="$libdir"
8196 libdir="$found_dir"
8197 eval flag=\"$hardcode_libdir_flag_spec\"
8198 libdir="$acl_save_libdir"
8199 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8200 done
8201 fi
8202 fi
8203 if test "X$ltrpathdirs" != "X"; then
8204 for found_dir in $ltrpathdirs; do
8205 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8206 done
8207 fi
8208
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008209
8210
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008211
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008212
8213
8214
8215
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008216 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008217if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008218
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008219else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008220
8221$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008222
8223
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008224fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008225
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008226 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 -04008227stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008228do :
8229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8230ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008231if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008232 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008233#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008234_ACEOF
8235
8236fi
8237
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008238done
8239
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008240 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008241mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8242strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8243__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008244do :
8245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8246ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008247if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008248 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008249#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008250_ACEOF
8251
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008252fi
8253done
8254
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008255
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008256
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008258$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008259if ${ac_cv_have_decl__snprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008260 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008261else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008263/* end confdefs.h. */
8264#include <stdio.h>
8265int
8266main ()
8267{
8268
8269#ifndef _snprintf
8270 char *p = (char *) _snprintf;
8271#endif
8272
8273 ;
8274 return 0;
8275}
8276_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008277if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008278 ac_cv_have_decl__snprintf=yes
8279else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008280 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008281fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008283fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008285$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008286 if test $ac_cv_have_decl__snprintf = yes; then
8287 gt_value=1
8288 else
8289 gt_value=0
8290 fi
8291
8292cat >>confdefs.h <<_ACEOF
8293#define HAVE_DECL__SNPRINTF $gt_value
8294_ACEOF
8295
8296
8297
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008299$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008300if ${ac_cv_have_decl__snwprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008301 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008302else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008304/* end confdefs.h. */
8305#include <stdio.h>
8306int
8307main ()
8308{
8309
8310#ifndef _snwprintf
8311 char *p = (char *) _snwprintf;
8312#endif
8313
8314 ;
8315 return 0;
8316}
8317_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008318if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008319 ac_cv_have_decl__snwprintf=yes
8320else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008321 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008322fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008324fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008326$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008327 if test $ac_cv_have_decl__snwprintf = yes; then
8328 gt_value=1
8329 else
8330 gt_value=0
8331 fi
8332
8333cat >>confdefs.h <<_ACEOF
8334#define HAVE_DECL__SNWPRINTF $gt_value
8335_ACEOF
8336
8337
8338
8339
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008341$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008342if ${ac_cv_have_decl_feof_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008343 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008344else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008346/* end confdefs.h. */
8347#include <stdio.h>
8348int
8349main ()
8350{
8351
8352#ifndef feof_unlocked
8353 char *p = (char *) feof_unlocked;
8354#endif
8355
8356 ;
8357 return 0;
8358}
8359_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008360if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008361 ac_cv_have_decl_feof_unlocked=yes
8362else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008363 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008364fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008366fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008368$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008369 if test $ac_cv_have_decl_feof_unlocked = yes; then
8370 gt_value=1
8371 else
8372 gt_value=0
8373 fi
8374
8375cat >>confdefs.h <<_ACEOF
8376#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8377_ACEOF
8378
8379
8380
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008382$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008383if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008384 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008385else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008387/* end confdefs.h. */
8388#include <stdio.h>
8389int
8390main ()
8391{
8392
8393#ifndef fgets_unlocked
8394 char *p = (char *) fgets_unlocked;
8395#endif
8396
8397 ;
8398 return 0;
8399}
8400_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008401if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008402 ac_cv_have_decl_fgets_unlocked=yes
8403else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008404 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008405fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008407fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008409$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008410 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8411 gt_value=1
8412 else
8413 gt_value=0
8414 fi
8415
8416cat >>confdefs.h <<_ACEOF
8417#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8418_ACEOF
8419
8420
8421
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008423$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008424if ${ac_cv_have_decl_getc_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008425 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008426else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008428/* end confdefs.h. */
8429#include <stdio.h>
8430int
8431main ()
8432{
8433
8434#ifndef getc_unlocked
8435 char *p = (char *) getc_unlocked;
8436#endif
8437
8438 ;
8439 return 0;
8440}
8441_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008442if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008443 ac_cv_have_decl_getc_unlocked=yes
8444else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008445 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008446fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008448fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008450$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008451 if test $ac_cv_have_decl_getc_unlocked = yes; then
8452 gt_value=1
8453 else
8454 gt_value=0
8455 fi
8456
8457cat >>confdefs.h <<_ACEOF
8458#define HAVE_DECL_GETC_UNLOCKED $gt_value
8459_ACEOF
8460
8461
8462
8463 case $gt_cv_func_printf_posix in
8464 *yes) HAVE_POSIX_PRINTF=1 ;;
8465 *) HAVE_POSIX_PRINTF=0 ;;
8466 esac
8467
8468 if test "$ac_cv_func_asprintf" = yes; then
8469 HAVE_ASPRINTF=1
8470 else
8471 HAVE_ASPRINTF=0
8472 fi
8473
8474 if test "$ac_cv_func_snprintf" = yes; then
8475 HAVE_SNPRINTF=1
8476 else
8477 HAVE_SNPRINTF=0
8478 fi
8479
8480 if test "$ac_cv_func_wprintf" = yes; then
8481 HAVE_WPRINTF=1
8482 else
8483 HAVE_WPRINTF=0
8484 fi
8485
8486
8487
8488
8489
8490
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008491
8492 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008493
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008494 for element in $INCICONV; do
8495 haveit=
8496 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008497
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008498 acl_save_prefix="$prefix"
8499 prefix="$acl_final_prefix"
8500 acl_save_exec_prefix="$exec_prefix"
8501 exec_prefix="$acl_final_exec_prefix"
8502 eval x=\"$x\"
8503 exec_prefix="$acl_save_exec_prefix"
8504 prefix="$acl_save_prefix"
8505
8506 if test "X$x" = "X$element"; then
8507 haveit=yes
8508 break
8509 fi
8510 done
8511 if test -z "$haveit"; then
8512 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8513 fi
8514 done
8515
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008516
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008518$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008519if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008520 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008521else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008522
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008523 am_cv_func_iconv="no, consider installing GNU libiconv"
8524 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008526/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008527#include <stdlib.h>
8528#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008529int
8530main ()
8531{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008532iconv_t cd = iconv_open("","");
8533 iconv(cd,NULL,NULL,NULL,NULL);
8534 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008535 ;
8536 return 0;
8537}
8538_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008539if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008540 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008541fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008542rm -f core conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008544 if test "$am_cv_func_iconv" != yes; then
8545 am_save_LIBS="$LIBS"
8546 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008548/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008549#include <stdlib.h>
8550#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008551int
8552main ()
8553{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008554iconv_t cd = iconv_open("","");
8555 iconv(cd,NULL,NULL,NULL,NULL);
8556 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008557 ;
8558 return 0;
8559}
8560_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008561if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008562 am_cv_lib_iconv=yes
8563 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008564fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008565rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008567 LIBS="$am_save_LIBS"
8568 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008569
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008570fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008572$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008573 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008574
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008575$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008576
8577 fi
8578 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008580$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008582$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008583 else
8584 CPPFLAGS="$am_save_CPPFLAGS"
8585 LIBICONV=
8586 LTLIBICONV=
8587 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008588
8589
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008590
8591 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008593$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008594 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008595 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008596else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008597
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008599/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008600
8601#include <stdlib.h>
8602#include <iconv.h>
8603extern
8604#ifdef __cplusplus
8605"C"
8606#endif
8607#if defined(__STDC__) || defined(__cplusplus)
8608size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8609#else
8610size_t iconv();
8611#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008612
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008613int
8614main ()
8615{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008616
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008617 ;
8618 return 0;
8619}
8620_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008621if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008622 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008623else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008624 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008625fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008627 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 +00008628fi
8629
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008630 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008632 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008633$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008634 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008635
8636cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008637#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008638_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008639
8640 fi
8641
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008642
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008644$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008645if ${am_cv_langinfo_codeset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008646 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008647else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008649/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008650#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008651int
8652main ()
8653{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008654char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008655 ;
8656 return 0;
8657}
8658_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008659if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008660 am_cv_langinfo_codeset=yes
8661else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008662 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008663fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008664rm -f core conftest.err conftest.$ac_objext \
8665 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008666
8667fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008669$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008670 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008671
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008672$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008673
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008674 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008675
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008676 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008677
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008679$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008680if ${am_cv_val_LC_MESSAGES+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008681 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008682else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008684/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008685#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008686int
8687main ()
8688{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008689return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008690 ;
8691 return 0;
8692}
8693_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008694if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008695 am_cv_val_LC_MESSAGES=yes
8696else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008697 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008698fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008699rm -f core conftest.err conftest.$ac_objext \
8700 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008701fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008703$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008704 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008705
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008706$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008707
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008708 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008709
8710 fi
8711
8712 for ac_prog in bison
8713do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008714 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008715set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008717$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008718if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008719 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008720else
8721 if test -n "$INTLBISON"; then
8722 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8723else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725for as_dir in $PATH
8726do
8727 IFS=$as_save_IFS
8728 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008729 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008731 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008733 break 2
8734 fi
8735done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008736 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008737IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008738
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008739fi
8740fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008741INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008742if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008744$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008745else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008747$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008748fi
8749
Theodore Ts'oe1052142006-10-21 21:46:47 -04008750
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008751 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008752done
8753
8754 if test -z "$INTLBISON"; then
8755 ac_verc_fail=yes
8756 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008758$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008759 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8760 case $ac_prog_version in
8761 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8762 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8763 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8764 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8765 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008767$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008768 fi
8769 if test $ac_verc_fail = yes; then
8770 INTLBISON=:
8771 fi
8772
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008773
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008774
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008775
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008776
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008777
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008778
8779
8780
8781
8782
8783
8784
8785
8786
8787
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008789$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008790 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008791if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008792 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008793else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008794 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008795fi
8796
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008798$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008799
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008800
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008801
8802
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008803 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008804 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008805
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008806 LIBINTL=
8807 LTLIBINTL=
8808 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008809
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008810 if test "$USE_NLS" = "yes"; then
8811 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008812
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008814$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008815
Theodore Ts'oe1052142006-10-21 21:46:47 -04008816# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008817if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008818 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008819else
8820 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008821fi
8822
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008824$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008825
8826 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8827 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008828
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008829
8830
8831
8832
8833
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008835$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008836if ${gt_cv_func_gnugettext1_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008837 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008838else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008840/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008841#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008842extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008843extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008844int
8845main ()
8846{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008847bindtextdomain ("", "");
8848return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008849 ;
8850 return 0;
8851}
8852_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008853if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008854 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008855else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008856 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008857fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008858rm -f core conftest.err conftest.$ac_objext \
8859 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008860fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008862$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008863
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008864 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008865
8866
8867
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008868 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008869
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008870 acl_save_prefix="$prefix"
8871 prefix="$acl_final_prefix"
8872 acl_save_exec_prefix="$exec_prefix"
8873 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008874
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008875 eval additional_includedir=\"$includedir\"
8876 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008877
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008878 exec_prefix="$acl_save_exec_prefix"
8879 prefix="$acl_save_prefix"
8880
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008881
Theodore Ts'oe1052142006-10-21 21:46:47 -04008882# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008883if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008884 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008885 if test "X$withval" = "Xno"; then
8886 use_additional=no
8887 else
8888 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008889
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008890 acl_save_prefix="$prefix"
8891 prefix="$acl_final_prefix"
8892 acl_save_exec_prefix="$exec_prefix"
8893 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008894
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008895 eval additional_includedir=\"$includedir\"
8896 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008897
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008898 exec_prefix="$acl_save_exec_prefix"
8899 prefix="$acl_save_prefix"
8900
8901 else
8902 additional_includedir="$withval/include"
8903 additional_libdir="$withval/lib"
8904 fi
8905 fi
8906
Theodore Ts'oe1052142006-10-21 21:46:47 -04008907fi
8908
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008909 LIBINTL=
8910 LTLIBINTL=
8911 INCINTL=
8912 rpathdirs=
8913 ltrpathdirs=
8914 names_already_handled=
8915 names_next_round='intl '
8916 while test -n "$names_next_round"; do
8917 names_this_round="$names_next_round"
8918 names_next_round=
8919 for name in $names_this_round; do
8920 already_handled=
8921 for n in $names_already_handled; do
8922 if test "$n" = "$name"; then
8923 already_handled=yes
8924 break
8925 fi
8926 done
8927 if test -z "$already_handled"; then
8928 names_already_handled="$names_already_handled $name"
8929 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8930 eval value=\"\$HAVE_LIB$uppername\"
8931 if test -n "$value"; then
8932 if test "$value" = yes; then
8933 eval value=\"\$LIB$uppername\"
8934 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8935 eval value=\"\$LTLIB$uppername\"
8936 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8937 else
8938 :
8939 fi
8940 else
8941 found_dir=
8942 found_la=
8943 found_so=
8944 found_a=
8945 if test $use_additional = yes; then
8946 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8947 found_dir="$additional_libdir"
8948 found_so="$additional_libdir/lib$name.$shlibext"
8949 if test -f "$additional_libdir/lib$name.la"; then
8950 found_la="$additional_libdir/lib$name.la"
8951 fi
8952 else
8953 if test -f "$additional_libdir/lib$name.$libext"; then
8954 found_dir="$additional_libdir"
8955 found_a="$additional_libdir/lib$name.$libext"
8956 if test -f "$additional_libdir/lib$name.la"; then
8957 found_la="$additional_libdir/lib$name.la"
8958 fi
8959 fi
8960 fi
8961 fi
8962 if test "X$found_dir" = "X"; then
8963 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008964
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008965 acl_save_prefix="$prefix"
8966 prefix="$acl_final_prefix"
8967 acl_save_exec_prefix="$exec_prefix"
8968 exec_prefix="$acl_final_exec_prefix"
8969 eval x=\"$x\"
8970 exec_prefix="$acl_save_exec_prefix"
8971 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008972
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008973 case "$x" in
8974 -L*)
8975 dir=`echo "X$x" | sed -e 's/^X-L//'`
8976 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8977 found_dir="$dir"
8978 found_so="$dir/lib$name.$shlibext"
8979 if test -f "$dir/lib$name.la"; then
8980 found_la="$dir/lib$name.la"
8981 fi
8982 else
8983 if test -f "$dir/lib$name.$libext"; then
8984 found_dir="$dir"
8985 found_a="$dir/lib$name.$libext"
8986 if test -f "$dir/lib$name.la"; then
8987 found_la="$dir/lib$name.la"
8988 fi
8989 fi
8990 fi
8991 ;;
8992 esac
8993 if test "X$found_dir" != "X"; then
8994 break
8995 fi
8996 done
8997 fi
8998 if test "X$found_dir" != "X"; then
8999 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9000 if test "X$found_so" != "X"; then
9001 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9002 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9003 else
9004 haveit=
9005 for x in $ltrpathdirs; do
9006 if test "X$x" = "X$found_dir"; then
9007 haveit=yes
9008 break
9009 fi
9010 done
9011 if test -z "$haveit"; then
9012 ltrpathdirs="$ltrpathdirs $found_dir"
9013 fi
9014 if test "$hardcode_direct" = yes; then
9015 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9016 else
9017 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9018 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9019 haveit=
9020 for x in $rpathdirs; do
9021 if test "X$x" = "X$found_dir"; then
9022 haveit=yes
9023 break
9024 fi
9025 done
9026 if test -z "$haveit"; then
9027 rpathdirs="$rpathdirs $found_dir"
9028 fi
9029 else
9030 haveit=
9031 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009032
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009033 acl_save_prefix="$prefix"
9034 prefix="$acl_final_prefix"
9035 acl_save_exec_prefix="$exec_prefix"
9036 exec_prefix="$acl_final_exec_prefix"
9037 eval x=\"$x\"
9038 exec_prefix="$acl_save_exec_prefix"
9039 prefix="$acl_save_prefix"
9040
9041 if test "X$x" = "X-L$found_dir"; then
9042 haveit=yes
9043 break
9044 fi
9045 done
9046 if test -z "$haveit"; then
9047 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9048 fi
9049 if test "$hardcode_minus_L" != no; then
9050 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9051 else
9052 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9053 fi
9054 fi
9055 fi
9056 fi
9057 else
9058 if test "X$found_a" != "X"; then
9059 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9060 else
9061 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9062 fi
9063 fi
9064 additional_includedir=
9065 case "$found_dir" in
9066 */lib | */lib/)
9067 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9068 additional_includedir="$basedir/include"
9069 ;;
9070 esac
9071 if test "X$additional_includedir" != "X"; then
9072 if test "X$additional_includedir" != "X/usr/include"; then
9073 haveit=
9074 if test "X$additional_includedir" = "X/usr/local/include"; then
9075 if test -n "$GCC"; then
9076 case $host_os in
9077 linux*) haveit=yes;;
9078 esac
9079 fi
9080 fi
9081 if test -z "$haveit"; then
9082 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009083
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009084 acl_save_prefix="$prefix"
9085 prefix="$acl_final_prefix"
9086 acl_save_exec_prefix="$exec_prefix"
9087 exec_prefix="$acl_final_exec_prefix"
9088 eval x=\"$x\"
9089 exec_prefix="$acl_save_exec_prefix"
9090 prefix="$acl_save_prefix"
9091
9092 if test "X$x" = "X-I$additional_includedir"; then
9093 haveit=yes
9094 break
9095 fi
9096 done
9097 if test -z "$haveit"; then
9098 if test -d "$additional_includedir"; then
9099 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9100 fi
9101 fi
9102 fi
9103 fi
9104 fi
9105 if test -n "$found_la"; then
9106 save_libdir="$libdir"
9107 case "$found_la" in
9108 */* | *\\*) . "$found_la" ;;
9109 *) . "./$found_la" ;;
9110 esac
9111 libdir="$save_libdir"
9112 for dep in $dependency_libs; do
9113 case "$dep" in
9114 -L*)
9115 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9116 if test "X$additional_libdir" != "X/usr/lib"; then
9117 haveit=
9118 if test "X$additional_libdir" = "X/usr/local/lib"; then
9119 if test -n "$GCC"; then
9120 case $host_os in
9121 linux*) haveit=yes;;
9122 esac
9123 fi
9124 fi
9125 if test -z "$haveit"; then
9126 haveit=
9127 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009128
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009129 acl_save_prefix="$prefix"
9130 prefix="$acl_final_prefix"
9131 acl_save_exec_prefix="$exec_prefix"
9132 exec_prefix="$acl_final_exec_prefix"
9133 eval x=\"$x\"
9134 exec_prefix="$acl_save_exec_prefix"
9135 prefix="$acl_save_prefix"
9136
9137 if test "X$x" = "X-L$additional_libdir"; then
9138 haveit=yes
9139 break
9140 fi
9141 done
9142 if test -z "$haveit"; then
9143 if test -d "$additional_libdir"; then
9144 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9145 fi
9146 fi
9147 haveit=
9148 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009149
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009150 acl_save_prefix="$prefix"
9151 prefix="$acl_final_prefix"
9152 acl_save_exec_prefix="$exec_prefix"
9153 exec_prefix="$acl_final_exec_prefix"
9154 eval x=\"$x\"
9155 exec_prefix="$acl_save_exec_prefix"
9156 prefix="$acl_save_prefix"
9157
9158 if test "X$x" = "X-L$additional_libdir"; then
9159 haveit=yes
9160 break
9161 fi
9162 done
9163 if test -z "$haveit"; then
9164 if test -d "$additional_libdir"; then
9165 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9166 fi
9167 fi
9168 fi
9169 fi
9170 ;;
9171 -R*)
9172 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9173 if test "$enable_rpath" != no; then
9174 haveit=
9175 for x in $rpathdirs; do
9176 if test "X$x" = "X$dir"; then
9177 haveit=yes
9178 break
9179 fi
9180 done
9181 if test -z "$haveit"; then
9182 rpathdirs="$rpathdirs $dir"
9183 fi
9184 haveit=
9185 for x in $ltrpathdirs; do
9186 if test "X$x" = "X$dir"; then
9187 haveit=yes
9188 break
9189 fi
9190 done
9191 if test -z "$haveit"; then
9192 ltrpathdirs="$ltrpathdirs $dir"
9193 fi
9194 fi
9195 ;;
9196 -l*)
9197 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9198 ;;
9199 *.la)
9200 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9201 ;;
9202 *)
9203 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9204 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9205 ;;
9206 esac
9207 done
9208 fi
9209 else
9210 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9211 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9212 fi
9213 fi
9214 fi
9215 done
9216 done
9217 if test "X$rpathdirs" != "X"; then
9218 if test -n "$hardcode_libdir_separator"; then
9219 alldirs=
9220 for found_dir in $rpathdirs; do
9221 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9222 done
9223 acl_save_libdir="$libdir"
9224 libdir="$alldirs"
9225 eval flag=\"$hardcode_libdir_flag_spec\"
9226 libdir="$acl_save_libdir"
9227 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9228 else
9229 for found_dir in $rpathdirs; do
9230 acl_save_libdir="$libdir"
9231 libdir="$found_dir"
9232 eval flag=\"$hardcode_libdir_flag_spec\"
9233 libdir="$acl_save_libdir"
9234 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9235 done
9236 fi
9237 fi
9238 if test "X$ltrpathdirs" != "X"; then
9239 for found_dir in $ltrpathdirs; do
9240 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9241 done
9242 fi
9243
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009245$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009246if ${gt_cv_func_gnugettext1_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009247 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009248else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009249 gt_save_CPPFLAGS="$CPPFLAGS"
9250 CPPFLAGS="$CPPFLAGS $INCINTL"
9251 gt_save_LIBS="$LIBS"
9252 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009254/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009255#include <libintl.h>
9256extern int _nl_msg_cat_cntr;
9257extern
9258#ifdef __cplusplus
9259"C"
9260#endif
9261const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009262int
9263main ()
9264{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009265bindtextdomain ("", "");
9266return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009267 ;
9268 return 0;
9269}
9270_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009271if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009272 gt_cv_func_gnugettext1_libintl=yes
9273else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009274 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009275fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009276rm -f core conftest.err conftest.$ac_objext \
9277 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009278 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9279 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009281/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009282#include <libintl.h>
9283extern int _nl_msg_cat_cntr;
9284extern
9285#ifdef __cplusplus
9286"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009287#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009288const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009289int
9290main ()
9291{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009292bindtextdomain ("", "");
9293return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009294 ;
9295 return 0;
9296}
9297_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009298if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009299 LIBINTL="$LIBINTL $LIBICONV"
9300 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9301 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009302
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009303fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009304rm -f core conftest.err conftest.$ac_objext \
9305 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009306 fi
9307 CPPFLAGS="$gt_save_CPPFLAGS"
9308 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009309fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009311$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009312 fi
9313
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009314 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9315 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009316 && test "$PACKAGE" != gettext-runtime \
9317 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009318 gt_use_preinstalled_gnugettext=yes
9319 else
9320 LIBINTL=
9321 LTLIBINTL=
9322 INCINTL=
9323 fi
9324
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009325
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009326 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9327 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009328 fi
9329 fi
9330
9331 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009332 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009333 USE_INCLUDED_LIBINTL=yes
9334 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9335 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9336 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009337 fi
9338
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009339 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9340 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9341 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009342 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009343
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009344
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009345 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9346 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009347
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009348$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009349
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009350 else
9351 USE_NLS=no
9352 fi
9353 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009354
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009356$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009358$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009359 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009361$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009362 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9363 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9364 gt_source="external libintl"
9365 else
9366 gt_source="libc"
9367 fi
9368 else
9369 gt_source="included intl directory"
9370 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009372$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009373 fi
9374
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009375 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009376
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009377 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9378 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009380$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009382$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009383
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009384 for element in $INCINTL; do
9385 haveit=
9386 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009387
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009388 acl_save_prefix="$prefix"
9389 prefix="$acl_final_prefix"
9390 acl_save_exec_prefix="$exec_prefix"
9391 exec_prefix="$acl_final_exec_prefix"
9392 eval x=\"$x\"
9393 exec_prefix="$acl_save_exec_prefix"
9394 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009395
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009396 if test "X$x" = "X$element"; then
9397 haveit=yes
9398 break
9399 fi
9400 done
9401 if test -z "$haveit"; then
9402 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9403 fi
9404 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009405
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009406 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009407
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009408
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009409$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009410
9411
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009412$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009413
9414 fi
9415
9416 POSUB=po
9417 fi
9418
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009419
9420 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009421 BUILD_INCLUDED_LIBINTL=yes
9422 fi
9423
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009424
9425
9426
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009427
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009428 nls_cv_header_intl=
9429 nls_cv_header_libgt=
9430
9431 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009432
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009433
9434 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009435
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009436
9437 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009438
9439
9440 if test "$USE_INCLUDED_LIBINTL" = yes; then
9441 INTLOBJS="\$(GETTOBJS)"
9442 fi
9443
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009444
9445 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009446
9447
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009448
9449 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009450
9451
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009452
9453
9454
9455
9456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009458$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9459set x ${MAKE-make}
9460ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009461if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009462 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009463else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009464 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009465SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009466all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009467 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009468_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009469# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009470case `${MAKE-make} -f conftest.make 2>/dev/null` in
9471 *@@@%%%=?*=@@@%%%*)
9472 eval ac_cv_prog_make_${ac_make}_set=yes;;
9473 *)
9474 eval ac_cv_prog_make_${ac_make}_set=no;;
9475esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009476rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009477fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009478if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009480$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009481 SET_MAKE=
9482else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009484$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009485 SET_MAKE="MAKE=${MAKE-make}"
9486fi
9487
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009489$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009490if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009491 $as_echo_n "(cached) " >&6
9492else
9493 _cv_gnu_make_command='' ;
9494 for a in "$MAKE" make gmake gnumake ; do
9495 if test -z "$a" ; then continue ; fi ;
9496 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9497 _cv_gnu_make_command=$a ;
9498 break;
9499 fi
9500 done ;
9501
9502fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009504$as_echo "$_cv_gnu_make_command" >&6; } ;
9505 if test "x$_cv_gnu_make_command" != "x" ; then
9506 ifGNUmake='' ;
9507 ifNotGNUmake='#' ;
9508 else
9509 ifGNUmake='#' ;
9510 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009512$as_echo "\"Not found\"" >&6; };
9513 fi
9514
9515
9516
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009517# Extract the first word of "ln", so it can be a program name with args.
9518set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009520$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009521if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009522 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009523else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009524 case $LN in
9525 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009526 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9527 ;;
9528 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530for as_dir in $PATH
9531do
9532 IFS=$as_save_IFS
9533 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009534 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009536 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009538 break 2
9539 fi
9540done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009541 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009542IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009543
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009544 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9545 ;;
9546esac
9547fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009548LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009549if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009551$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009552else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009554$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009555fi
9556
Theodore Ts'oe1052142006-10-21 21:46:47 -04009557
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009559$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009560LN_S=$as_ln_s
9561if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009563$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009564else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009566$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009567fi
9568
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009569# Extract the first word of "mv", so it can be a program name with args.
9570set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009572$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009573if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009574 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009575else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009576 case $MV in
9577 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009578 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9579 ;;
9580 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9582for as_dir in $PATH
9583do
9584 IFS=$as_save_IFS
9585 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009586 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009588 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009590 break 2
9591 fi
9592done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009593 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009594IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009595
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009596 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9597 ;;
9598esac
9599fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009600MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009601if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009603$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009604else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009606$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009607fi
9608
Theodore Ts'oe1052142006-10-21 21:46:47 -04009609
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009610# Extract the first word of "cp", so it can be a program name with args.
9611set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009613$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009614if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009615 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009616else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009617 case $CP in
9618 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009619 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9620 ;;
9621 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9623for as_dir in $PATH
9624do
9625 IFS=$as_save_IFS
9626 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009627 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009629 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009631 break 2
9632 fi
9633done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009634 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009635IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009636
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009637 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9638 ;;
9639esac
9640fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009641CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009642if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009644$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009645else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009647$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009648fi
9649
Theodore Ts'oe1052142006-10-21 21:46:47 -04009650
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009651# Extract the first word of "rm", so it can be a program name with args.
9652set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009654$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009655if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009656 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009657else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009658 case $RM in
9659 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009660 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9661 ;;
9662 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664for as_dir in $PATH
9665do
9666 IFS=$as_save_IFS
9667 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009668 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009670 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009672 break 2
9673 fi
9674done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009675 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009676IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009677
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009678 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9679 ;;
9680esac
9681fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009682RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009683if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009685$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009686else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009688$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009689fi
9690
Theodore Ts'oe1052142006-10-21 21:46:47 -04009691
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009692# Extract the first word of "chmod", so it can be a program name with args.
9693set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009695$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009696if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009697 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009698else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009699 case $CHMOD in
9700 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009701 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9702 ;;
9703 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9705for as_dir in $PATH
9706do
9707 IFS=$as_save_IFS
9708 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009709 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009711 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009713 break 2
9714 fi
9715done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009716 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009717IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009718
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009719 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9720 ;;
9721esac
9722fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009723CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009724if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009726$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009727else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009729$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009730fi
9731
Theodore Ts'oe1052142006-10-21 21:46:47 -04009732
Theodore Ts'o32237012005-01-17 19:13:39 -05009733for ac_prog in gawk mawk nawk awk
9734do
9735 # Extract the first word of "$ac_prog", so it can be a program name with args.
9736set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009738$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009739if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009740 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009741else
Theodore Ts'o32237012005-01-17 19:13:39 -05009742 if test -n "$AWK"; then
9743 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9744else
9745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009746for as_dir in $PATH
9747do
9748 IFS=$as_save_IFS
9749 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009750 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -05009752 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009754 break 2
9755 fi
9756done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009757 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009758IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009759
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009760fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009761fi
9762AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009763if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009765$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009766else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009768$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009769fi
9770
Theodore Ts'oe1052142006-10-21 21:46:47 -04009771
Theodore Ts'o32237012005-01-17 19:13:39 -05009772 test -n "$AWK" && break
9773done
9774
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009776$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009777if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009778 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009779else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009780 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9781 then ac_cv_path_EGREP="$GREP -E"
9782 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009783 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009784 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009785 # Loop through the user's path and test for each of PROGNAME-LIST
9786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009787for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9788do
9789 IFS=$as_save_IFS
9790 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009791 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009794 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009795# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009796 # Check for GNU $ac_path_EGREP
9797case `"$ac_path_EGREP" --version 2>&1` in
9798*GNU*)
9799 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9800*)
9801 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009802 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009803 while :
9804 do
9805 cat "conftest.in" "conftest.in" >"conftest.tmp"
9806 mv "conftest.tmp" "conftest.in"
9807 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009808 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009809 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009811 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009812 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9813 # Best one so far, save it but keep looking for a better one
9814 ac_cv_path_EGREP="$ac_path_EGREP"
9815 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009816 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009817 # 10*(2^10) chars as input seems more than enough
9818 test $ac_count -gt 10 && break
9819 done
9820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9821esac
9822
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009823 $ac_path_EGREP_found && break 3
9824 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009825 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009826 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009827IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009828 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009829 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 +01009830 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009831else
9832 ac_cv_path_EGREP=$EGREP
9833fi
9834
Theodore Ts'oe1052142006-10-21 21:46:47 -04009835 fi
9836fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009838$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009839 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009840
9841
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009842# Extract the first word of "sed", so it can be a program name with args.
9843set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009845$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009846if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009847 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009848else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009849 case $SED in
9850 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009851 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9852 ;;
9853 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855for as_dir in $PATH
9856do
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009859 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009861 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009863 break 2
9864 fi
9865done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009866 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009867IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009868
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009869 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9870 ;;
9871esac
9872fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009873SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009874if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009876$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009877else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009879$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009880fi
9881
Theodore Ts'oe1052142006-10-21 21:46:47 -04009882
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009883# Extract the first word of "perl", so it can be a program name with args.
9884set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009886$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009887if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009888 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009889else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009890 case $PERL in
9891 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009892 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9893 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009894 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9896for as_dir in $PATH
9897do
9898 IFS=$as_save_IFS
9899 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009900 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009902 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009904 break 2
9905 fi
9906done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009907 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009908IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009909
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009910 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9911 ;;
9912esac
9913fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009914PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009915if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009917$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009918else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009920$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009921fi
9922
Theodore Ts'oe1052142006-10-21 21:46:47 -04009923
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009924# Extract the first word of "ldconfig", so it can be a program name with args.
9925set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009927$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009928if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009929 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009930else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009931 case $LDCONFIG in
9932 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009933 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9934 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009935 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937for as_dir in $PATH
9938do
9939 IFS=$as_save_IFS
9940 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009941 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009943 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009945 break 2
9946 fi
9947done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009948 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009949IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009950
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009951 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9952 ;;
9953esac
9954fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009955LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009956if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009958$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009959else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009961$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009962fi
9963
Theodore Ts'oe1052142006-10-21 21:46:47 -04009964
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009965if test -n "$ac_tool_prefix"; then
9966 # 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 +00009967set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009969$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009970if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009971 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009972else
9973 if test -n "$AR"; then
9974 ac_cv_prog_AR="$AR" # Let the user override the test.
9975else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977for as_dir in $PATH
9978do
9979 IFS=$as_save_IFS
9980 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009981 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009983 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009985 break 2
9986 fi
9987done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009988 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009989IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009990
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009991fi
9992fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009993AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009994if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009996$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009997else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009999$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010000fi
10001
Theodore Ts'oe1052142006-10-21 21:46:47 -040010002
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010003fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010004if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010005 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010006 # Extract the first word of "ar", so it can be a program name with args.
10007set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010009$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010010if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010011 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010012else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010013 if test -n "$ac_ct_AR"; then
10014 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010015else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017for as_dir in $PATH
10018do
10019 IFS=$as_save_IFS
10020 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010021 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010023 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010025 break 2
10026 fi
10027done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010028 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010029IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010030
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010031fi
10032fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010033ac_ct_AR=$ac_cv_prog_ac_ct_AR
10034if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010036$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010037else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010039$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010040fi
10041
Theodore Ts'oe1052142006-10-21 21:46:47 -040010042 if test "x$ac_ct_AR" = x; then
10043 AR="ar"
10044 else
10045 case $cross_compiling:$ac_tool_warned in
10046yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010047{ $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 +010010048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010049ac_tool_warned=yes ;;
10050esac
10051 AR=$ac_ct_AR
10052 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010053else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010054 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010055fi
10056
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010057if test -n "$ac_tool_prefix"; then
10058 # 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 +000010059set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010061$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010062if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010063 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010064else
10065 if test -n "$RANLIB"; then
10066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10067else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069for as_dir in $PATH
10070do
10071 IFS=$as_save_IFS
10072 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010073 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010077 break 2
10078 fi
10079done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010080 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010081IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010082
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010083fi
10084fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010085RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010086if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010088$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010089else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010091$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010092fi
10093
Theodore Ts'oe1052142006-10-21 21:46:47 -040010094
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010095fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010096if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010097 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010098 # Extract the first word of "ranlib", so it can be a program name with args.
10099set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010101$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010102if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010103 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010104else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010105 if test -n "$ac_ct_RANLIB"; then
10106 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010107else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109for as_dir in $PATH
10110do
10111 IFS=$as_save_IFS
10112 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010113 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010115 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010117 break 2
10118 fi
10119done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010120 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010121IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010122
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010123fi
10124fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010125ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10126if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010128$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010129else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010131$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010132fi
10133
Theodore Ts'oe1052142006-10-21 21:46:47 -040010134 if test "x$ac_ct_RANLIB" = x; then
10135 RANLIB=":"
10136 else
10137 case $cross_compiling:$ac_tool_warned in
10138yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010139{ $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 +010010140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010141ac_tool_warned=yes ;;
10142esac
10143 RANLIB=$ac_ct_RANLIB
10144 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010145else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010146 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010147fi
10148
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010149if test -n "$ac_tool_prefix"; then
10150 # 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 +000010151set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010153$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010154if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010155 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010156else
10157 if test -n "$STRIP"; then
10158 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10159else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161for as_dir in $PATH
10162do
10163 IFS=$as_save_IFS
10164 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010165 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010167 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010169 break 2
10170 fi
10171done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010172 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010173IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010174
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010175fi
10176fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010177STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010178if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010180$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010181else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010183$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010184fi
10185
Theodore Ts'oe1052142006-10-21 21:46:47 -040010186
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010187fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010188if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010189 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010190 # Extract the first word of "strip", so it can be a program name with args.
10191set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010193$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010194if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010195 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010196else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010197 if test -n "$ac_ct_STRIP"; then
10198 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010199else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10201for as_dir in $PATH
10202do
10203 IFS=$as_save_IFS
10204 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010205 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010207 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010209 break 2
10210 fi
10211done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010212 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010213IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010214
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010215fi
10216fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010217ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10218if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010220$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010221else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010223$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010224fi
10225
Theodore Ts'oe1052142006-10-21 21:46:47 -040010226 if test "x$ac_ct_STRIP" = x; then
10227 STRIP=":"
10228 else
10229 case $cross_compiling:$ac_tool_warned in
10230yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010231{ $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 +010010232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010233ac_tool_warned=yes ;;
10234esac
10235 STRIP=$ac_ct_STRIP
10236 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010237else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010238 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010239fi
10240
Manish Katiyar7321d942008-04-14 17:20:03 +053010241# Extract the first word of "makeinfo", so it can be a program name with args.
10242set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010244$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010245if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010246 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053010247else
10248 if test -n "$MAKEINFO"; then
10249 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10250else
10251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252for as_dir in $PATH
10253do
10254 IFS=$as_save_IFS
10255 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010256 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053010258 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053010260 break 2
10261 fi
10262done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010263 done
Manish Katiyar7321d942008-04-14 17:20:03 +053010264IFS=$as_save_IFS
10265
10266fi
10267fi
10268MAKEINFO=$ac_cv_prog_MAKEINFO
10269if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010271$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010272else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010274$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010275fi
10276
10277
10278if test "_$MAKEINFO" = "_"; then
10279 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10280else
10281 case "$MAKEINFO" in
10282 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010284*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010285$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010286*** Makeinfo is missing. Info documentation will not be built." >&2;}
10287 ;;
10288 *)
10289 ;;
10290 esac
10291fi
10292
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010293
Theodore Ts'o6c133521999-07-03 20:37:03 +000010294# See if we need a separate native compiler.
10295if test $cross_compiling = no; then
10296 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010297
Theodore Ts'o6c133521999-07-03 20:37:03 +000010298else
10299 for ac_prog in gcc cc
10300do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010301 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010302set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010304$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010305if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010306 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010307else
10308 if test -n "$BUILD_CC"; then
10309 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10310else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010313do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010316 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010318 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010320 break 2
10321 fi
10322done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010323 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010324IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010325
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010326fi
10327fi
10328BUILD_CC=$ac_cv_prog_BUILD_CC
10329if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010331$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010332else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010334$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010335fi
10336
Theodore Ts'oe1052142006-10-21 21:46:47 -040010337
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010338 test -n "$BUILD_CC" && break
10339done
10340
10341fi
Mike Frysinger677fc912012-03-06 20:13:54 -050010342for 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 -050010343do :
10344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10345ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010346if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010347 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010348#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010349_ACEOF
10350
10351fi
10352
10353done
10354
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010355for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010356do :
10357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10358ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010359#if HAVE_SYS_QUEUE_H
10360#include <sys/queue.h>
10361#endif
10362
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010363"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010364if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010365 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010366#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010367_ACEOF
10368
10369fi
10370
10371done
10372
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010373for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010374do :
10375 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010376#if HAVE_SYS_TYPES_H
10377#include <sys/types.h>
10378#endif
10379#if HAVE_SYS_SOCKET
10380#include <sys/socket.h>
10381#endif
10382
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010383"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010384if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010385 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010386#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010387_ACEOF
10388
10389fi
10390
10391done
10392
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010393for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010394do :
10395 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010396if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010397 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010398#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010399_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010400
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010401ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010402if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010403
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010404$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010405
10406fi
10407
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010408fi
10409done
10410
10411
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010412ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10413"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010414if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010415
10416$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010417
10418fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010419
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010420ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10421"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010422if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010423
10424$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010425
Theodore Ts'offf45482003-04-13 00:44:19 -040010426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010427
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010428ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10429"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010430if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010431
10432$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010433
10434fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010435
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010436ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010437 #define _LARGEFILE64_SOURCE
10438 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010439"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010440if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010441
10442$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010443
10444fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010445
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010446# The cast to long int works around a bug in the HP C Compiler
10447# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10448# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10449# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010451$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010452if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010453 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010454else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010455 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 -050010456
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010457else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010458 if test "$ac_cv_type_short" = yes; then
10459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010461as_fn_error 77 "cannot compute sizeof (short)
10462See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010463 else
10464 ac_cv_sizeof_short=0
10465 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010466fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010467
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010468fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010470$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010471
10472
10473
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010474cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010475#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010476_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010477
10478
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010479# The cast to long int works around a bug in the HP C Compiler
10480# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10481# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10482# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010484$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010485if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010486 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010487else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010488 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 -050010489
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010490else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010491 if test "$ac_cv_type_int" = yes; then
10492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010494as_fn_error 77 "cannot compute sizeof (int)
10495See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010496 else
10497 ac_cv_sizeof_int=0
10498 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010499fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010500
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010501fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010503$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010504
10505
10506
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010507cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010508#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010509_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010510
10511
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010512# The cast to long int works around a bug in the HP C Compiler
10513# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10514# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10515# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010517$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010518if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010519 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010520else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010521 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 -050010522
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010523else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010524 if test "$ac_cv_type_long" = yes; then
10525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010527as_fn_error 77 "cannot compute sizeof (long)
10528See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010529 else
10530 ac_cv_sizeof_long=0
10531 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010532fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010533
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010534fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010536$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010537
10538
10539
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010540cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010541#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010542_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010543
10544
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010545# The cast to long int works around a bug in the HP C Compiler
10546# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10547# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10548# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010550$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010551if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010552 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010553else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010554 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 -050010555
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010556else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010557 if test "$ac_cv_type_long_long" = yes; then
10558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010560as_fn_error 77 "cannot compute sizeof (long long)
10561See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010562 else
10563 ac_cv_sizeof_long_long=0
10564 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010565fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010566
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010567fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010569$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010570
10571
10572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010573cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010574#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010575_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010576
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010577
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040010578# The cast to long int works around a bug in the HP C Compiler
10579# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10580# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10581# This bug is HP SR number 8606223364.
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10583$as_echo_n "checking size of off_t... " >&6; }
10584if ${ac_cv_sizeof_off_t+:} false; then :
10585 $as_echo_n "(cached) " >&6
10586else
10587 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10588
10589else
10590 if test "$ac_cv_type_off_t" = yes; then
10591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10593as_fn_error 77 "cannot compute sizeof (off_t)
10594See \`config.log' for more details" "$LINENO" 5; }
10595 else
10596 ac_cv_sizeof_off_t=0
10597 fi
10598fi
10599
10600fi
10601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10602$as_echo "$ac_cv_sizeof_off_t" >&6; }
10603
10604
10605
10606cat >>confdefs.h <<_ACEOF
10607#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10608_ACEOF
10609
10610
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010611SIZEOF_SHORT=$ac_cv_sizeof_short
10612SIZEOF_INT=$ac_cv_sizeof_int
10613SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010614SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040010615SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10616
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010617
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010618
10619
10620
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010622$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010623if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010624 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010625else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010626 ac_cv_c_bigendian=unknown
10627 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010629/* end confdefs.h. */
10630#ifndef __APPLE_CC__
10631 not a universal capable compiler
10632 #endif
10633 typedef int dummy;
10634
10635_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010636if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010637
10638 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010639 # there are at least two -arch flags with different values.
10640 ac_arch=
10641 ac_prev=
10642 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10643 if test -n "$ac_prev"; then
10644 case $ac_word in
10645 i?86 | x86_64 | ppc | ppc64)
10646 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10647 ac_arch=$ac_word
10648 else
10649 ac_cv_c_bigendian=universal
10650 break
10651 fi
10652 ;;
10653 esac
10654 ac_prev=
10655 elif test "x$ac_word" = "x-arch"; then
10656 ac_prev=arch
10657 fi
10658 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010659fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661 if test $ac_cv_c_bigendian = unknown; then
10662 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010664/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010665#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010666 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010667
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010668int
10669main ()
10670{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010671#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10672 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10673 && LITTLE_ENDIAN)
10674 bogus endian macros
10675 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010676
10677 ;
10678 return 0;
10679}
10680_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010681if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010682 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010684/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010685#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010686 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010687
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010688int
10689main ()
10690{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010691#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010692 not big endian
10693 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010694
10695 ;
10696 return 0;
10697}
10698_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010699if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010700 ac_cv_c_bigendian=yes
10701else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010702 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010703fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010705fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10707 fi
10708 if test $ac_cv_c_bigendian = unknown; then
10709 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010711/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010712#include <limits.h>
10713
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010714int
10715main ()
10716{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010717#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10718 bogus endian macros
10719 #endif
10720
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010721 ;
10722 return 0;
10723}
10724_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010725if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010726 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010728/* end confdefs.h. */
10729#include <limits.h>
10730
10731int
10732main ()
10733{
10734#ifndef _BIG_ENDIAN
10735 not big endian
10736 #endif
10737
10738 ;
10739 return 0;
10740}
10741_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010742if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010743 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010744else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010745 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010746fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010748fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750 fi
10751 if test $ac_cv_c_bigendian = unknown; then
10752 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010753 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010754 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010756/* end confdefs.h. */
10757short int ascii_mm[] =
10758 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10759 short int ascii_ii[] =
10760 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10761 int use_ascii (int i) {
10762 return ascii_mm[i] + ascii_ii[i];
10763 }
10764 short int ebcdic_ii[] =
10765 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10766 short int ebcdic_mm[] =
10767 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10768 int use_ebcdic (int i) {
10769 return ebcdic_mm[i] + ebcdic_ii[i];
10770 }
10771 extern int foo;
10772
10773int
10774main ()
10775{
10776return use_ascii (foo) == use_ebcdic (foo);
10777 ;
10778 return 0;
10779}
10780_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010781if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010782 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10783 ac_cv_c_bigendian=yes
10784 fi
10785 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10786 if test "$ac_cv_c_bigendian" = unknown; then
10787 ac_cv_c_bigendian=no
10788 else
10789 # finding both strings is unlikely to happen, but who knows?
10790 ac_cv_c_bigendian=unknown
10791 fi
10792 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010793fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010795else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010797/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010798$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010799int
10800main ()
10801{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010802
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010803 /* Are we little or big endian? From Harbison&Steele. */
10804 union
10805 {
10806 long int l;
10807 char c[sizeof (long int)];
10808 } u;
10809 u.l = 1;
10810 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010811
10812 ;
10813 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010814}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010815_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010816if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010817 ac_cv_c_bigendian=no
10818else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010819 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010820fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10822 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010823fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010824
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010825 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010826fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010828$as_echo "$ac_cv_c_bigendian" >&6; }
10829 case $ac_cv_c_bigendian in #(
10830 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010831 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010832;; #(
10833 no)
10834 ;; #(
10835 universal)
10836
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010837$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010838
10839 ;; #(
10840 *)
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010841 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010842 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010843 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010844
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010845BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010846ASM_TYPES_HEADER=./asm_types.h
10847
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010848echo "/* These defines are needed for the public ext2fs.h header file */" \
10849 > public_config.h
10850if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10851 uniq tmp_config.$$ >> public_config.h
10852else
10853 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10854fi
10855if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10856 uniq tmp_config.$$ >> public_config.h
10857else
10858 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10859fi
10860rm -f tmp_config.$$
10861PUBLIC_CONFIG_HEADER=./public_config.h
10862
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010863for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010864do :
10865 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010866if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010867 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010868#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010869_ACEOF
10870
10871fi
10872
Theodore Ts'o0c193f82003-08-01 14:26:23 -040010873done
10874
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010875ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010876if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010877
10878cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010879#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010880_ACEOF
10881
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010882
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010883fi
10884
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010885{ $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 +010010886$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010887if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010888 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010889else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010891/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010892#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010893int
10894main ()
10895{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010896struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010897 ;
10898 return 0;
10899}
10900_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010901if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010902 e2fsprogs_cv_struct_st_flags=yes
10903else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010904 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010905fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10907fi
10908
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010910$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010911if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010913$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010914 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010915 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010916else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010918/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010919#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010920int
10921main ()
10922{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010923struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010924 ;
10925 return 0;
10926}
10927_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010928if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010929 e2fsprogs_cv_struct_st_flags_immut=yes
10930else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010931 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010932fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934fi
10935
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010937$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010938 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010939
10940$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010941
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010942 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010943fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010944ac_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 -050010945 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010946"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010947if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010948
10949cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010950#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010951_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010952
10953fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010954
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010955if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010957$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010958if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010959 $as_echo_n "(cached) " >&6
10960else
10961 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010963/* end confdefs.h. */
10964
10965/* Override any GCC internal prototype to avoid an error.
10966 Use char because int might match the return type of a GCC
10967 builtin and then its argument prototype would still apply. */
10968#ifdef __cplusplus
10969extern "C"
10970#endif
10971char blkid_probe_all ();
10972int
10973main ()
10974{
10975return blkid_probe_all ();
10976 ;
10977 return 0;
10978}
10979_ACEOF
10980for ac_lib in '' blkid; do
10981 if test -z "$ac_lib"; then
10982 ac_res="none required"
10983 else
10984 ac_res=-l$ac_lib
10985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10986 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010987 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010988 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010989fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010990rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010992 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010993 break
10994fi
10995done
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010996if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010997
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010998else
10999 ac_cv_search_blkid_probe_all=no
11000fi
11001rm conftest.$ac_ext
11002LIBS=$ac_func_search_save_LIBS
11003fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011005$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11006ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011007if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011008 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11009
11010fi
11011
11012fi
Theodore Ts'o3b802e42012-05-28 10:38:06 -040011013for 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 -050011014do :
11015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11016ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011017if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011018 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011019#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011020_ACEOF
11021
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011022fi
11023done
11024
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011025SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011027$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011028if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011029 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011030else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011031 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011032LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011034/* end confdefs.h. */
11035
Theodore Ts'oe1052142006-10-21 21:46:47 -040011036/* Override any GCC internal prototype to avoid an error.
11037 Use char because int might match the return type of a GCC
11038 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011039#ifdef __cplusplus
11040extern "C"
11041#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011042char socket ();
11043int
11044main ()
11045{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011046return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011047 ;
11048 return 0;
11049}
11050_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011051if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011052 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011053else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011054 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011055fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011056rm -f core conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011058LIBS=$ac_check_lib_save_LIBS
11059fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011061$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011062if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011063 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011064fi
11065
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011066
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011068$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011069if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011070 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011071else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011073/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011074#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011075
11076_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011078 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011079 ac_cv_have_optreset=yes
11080else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011081 ac_cv_have_optreset=no
11082fi
11083rm -f conftest*
11084
11085fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011087$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011088if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011089
11090$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011091
11092fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011093
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011094SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011095ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011096if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011097
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011098else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011100$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011101if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011102 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011103else
11104 ac_check_lib_save_LIBS=$LIBS
11105LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011107/* end confdefs.h. */
11108
11109/* Override any GCC internal prototype to avoid an error.
11110 Use char because int might match the return type of a GCC
11111 builtin and then its argument prototype would still apply. */
11112#ifdef __cplusplus
11113extern "C"
11114#endif
11115char sem_init ();
11116int
11117main ()
11118{
11119return sem_init ();
11120 ;
11121 return 0;
11122}
11123_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011124if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011125 ac_cv_lib_pthread_sem_init=yes
11126else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011127 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011128fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011129rm -f core conftest.err conftest.$ac_objext \
11130 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011131LIBS=$ac_check_lib_save_LIBS
11132fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011134$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011135if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011136 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011137
11138 SEM_INIT_LIB=-lpthread
11139else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011141$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011142if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011143 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011144else
11145 ac_check_lib_save_LIBS=$LIBS
11146LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011148/* end confdefs.h. */
11149
11150/* Override any GCC internal prototype to avoid an error.
11151 Use char because int might match the return type of a GCC
11152 builtin and then its argument prototype would still apply. */
11153#ifdef __cplusplus
11154extern "C"
11155#endif
11156char sem_init ();
11157int
11158main ()
11159{
11160return sem_init ();
11161 ;
11162 return 0;
11163}
11164_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011165if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011166 ac_cv_lib_rt_sem_init=yes
11167else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011168 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011169fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011170rm -f core conftest.err conftest.$ac_objext \
11171 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011172LIBS=$ac_check_lib_save_LIBS
11173fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011175$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011176if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011177 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011178
11179 SEM_INIT_LIB=-lrt
11180else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011182$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011183if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011184 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011185else
11186 ac_check_lib_save_LIBS=$LIBS
11187LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011189/* end confdefs.h. */
11190
11191/* Override any GCC internal prototype to avoid an error.
11192 Use char because int might match the return type of a GCC
11193 builtin and then its argument prototype would still apply. */
11194#ifdef __cplusplus
11195extern "C"
11196#endif
11197char sem_init ();
11198int
11199main ()
11200{
11201return sem_init ();
11202 ;
11203 return 0;
11204}
11205_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011206if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011207 ac_cv_lib_posix4_sem_init=yes
11208else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011209 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011210fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011211rm -f core conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011213LIBS=$ac_check_lib_save_LIBS
11214fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011216$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011217if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011218 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011219
11220 SEM_INIT_LIB=-lposix4
11221fi
11222
11223fi
11224
11225fi
11226
11227fi
11228
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011230$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040011231if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011232 UNI_DIFF_OPTS=-u
11233else
11234 UNI_DIFF_OPTS=-c
11235fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011237$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011238
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011239case "$host_os" in
11240linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011241
11242$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011243
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011244 ;;
11245esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011246LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011247CYGWIN_CMT="#"
11248UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011249case "$host_os" in
11250linux*)
11251 LINUX_CMT=
11252 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040011253cygwin)
11254 CYGWIN_CMT=
11255 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011256 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011257esac
11258
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011259
11260
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011261case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011262linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011263 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11264 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011265 { $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 +010011266$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011267 fi
11268 ;;
11269esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011270case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011271linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011272 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011273 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011274 { $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 +010011275$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011276 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011278$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011279 mandir=/usr/share/man
11280 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011281 fi
11282;;
11283esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011284if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000011285 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011286 root_prefix="$ac_default_prefix"
11287 else
11288 root_prefix="$prefix"
11289 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040011290 root_bindir=$bindir
11291 root_sbindir=$sbindir
11292 root_libdir=$libdir
11293 root_sysconfdir=$sysconfdir
11294else
11295 root_bindir='${root_prefix}/bin'
11296 root_sbindir='${root_prefix}/sbin'
11297 root_libdir='${root_prefix}/lib'
11298 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011299fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011300if test "$bindir" != '${exec_prefix}/bin'; then
11301 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011303$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011304fi
11305if test "$sbindir" != '${exec_prefix}/sbin'; then
11306 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011308$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011309fi
11310if test "$libdir" != '${exec_prefix}/lib'; then
11311 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011313$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011314fi
11315if test "$sysconfdir" != '${prefix}/etc'; then
11316 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011318$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011319fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011320
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011321
11322
11323
11324
Theodore Ts'o55e00a22011-09-18 23:53:23 -040011325
11326# Check whether --with-multiarch was given.
11327if test "${with_multiarch+set}" = set; then :
11328 withval=$with_multiarch; libdir=$libdir/$withval
11329root_libdir=$root_libdir/$withval
11330
11331fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050011332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11333$as_echo_n "checking whether we can link with -static... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011334if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011335 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000011336else
11337 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011339/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000011340#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011341int
11342main ()
11343{
Theodore Ts'oae851481997-04-29 18:13:24 +000011344fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011345 ;
11346 return 0;
11347}
11348_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011349if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000011350 ac_cv_e2fsprogs_use_static=yes
11351else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011352 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000011353fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011354rm -f core conftest.err conftest.$ac_objext \
11355 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000011356LDFLAGS=$SAVE_LDFLAGS
11357fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011358
Theodore Ts'odefde781999-01-04 07:39:19 +000011359case "$host_os" in
11360solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011361 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000011362;;
11363esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011365$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000011366LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000011367if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011368 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000011369fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011370
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011371case "$host_os" in
11372darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011374$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011375
11376$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011377
11378 ;;
11379esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011380SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11381ET_DIR=`cd ${srcdir}/lib/et; pwd`
11382
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011383
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011384if test "$cross_compiling" = yes ; then
11385 DO_TEST_SUITE=
11386else
11387 DO_TEST_SUITE=check
11388fi
11389
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011390INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11391if test -n "$CPPFLAGS" ; then
11392 INCLUDES="$INCLUDES $CPPFLAGS"
11393fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011394if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011395 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011396fi
11397
Theodore Ts'odd947da2005-11-09 18:37:07 -040011398if test $cross_compiling = no; then
Theodore Ts'oc1986ec2012-06-13 15:29:13 -040011399 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040011400 BUILD_LDFLAGS="$LDFLAGS"
11401else
11402 BUILD_CFLAGS=
11403 BUILD_LDFLAGS=
11404fi
11405
11406
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011407test -d lib || mkdir lib
11408test -d include || mkdir include
11409test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000011410test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050011411for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040011412 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040011413 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11414 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011415 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070011416 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050011417 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11418 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050011419 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011420 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020011421 resize/Makefile doc/Makefile intl/Makefile \
11422 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011423 if test -d `dirname ${srcdir}/$i` ; then
11424 outlist="$outlist $i"
11425 fi
11426done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011427ac_config_files="$ac_config_files $outlist"
11428
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011429cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011430# This file is a shell script that caches the results of configure
11431# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011432# scripts and configure runs, see configure's option --config-cache.
11433# It is not useful on other systems. If it contains results you don't
11434# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011435#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011436# config.status only pays attention to the cache file if you give it
11437# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011438#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011439# `ac_cv_env_foo' variables (set or unset) will be overridden when
11440# loading this file, other *unset* `ac_cv_foo' will be assigned the
11441# following values.
11442
11443_ACEOF
11444
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011445# The following way of writing the cache mishandles newlines in values,
11446# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011447# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011448# Ultrix sh set writes to stderr and can't be redirected directly,
11449# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011450(
11451 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11452 eval ac_val=\$$ac_var
11453 case $ac_val in #(
11454 *${as_nl}*)
11455 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011456 *_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 +010011457$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011458 esac
11459 case $ac_var in #(
11460 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011461 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011462 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011463 esac ;;
11464 esac
11465 done
11466
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011467 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011468 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11469 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011470 # `set' does not quote correctly, so add quotes: double-quote
11471 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011472 sed -n \
11473 "s/'/'\\\\''/g;
11474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011475 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011476 *)
11477 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011479 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011480 esac |
11481 sort
11482) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011483 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011484 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011485 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011486 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011487 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11488 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011489 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11490 :end' >>confcache
11491if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11492 if test -w "$cache_file"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011493 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011494 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011495$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011496 if test ! -f "$cache_file" || test -h "$cache_file"; then
11497 cat confcache >"$cache_file"
11498 else
11499 case $cache_file in #(
11500 */* | ?:*)
11501 mv -f confcache "$cache_file"$$ &&
11502 mv -f "$cache_file"$$ "$cache_file" ;; #(
11503 *)
11504 mv -f confcache "$cache_file" ;;
11505 esac
11506 fi
11507 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011508 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011509 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011510$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011511 fi
11512fi
11513rm -f confcache
11514
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011515test "x$prefix" = xNONE && prefix=$ac_default_prefix
11516# Let make expand exec_prefix.
11517test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11518
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011519DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011521ac_libobjs=
11522ac_ltlibobjs=
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011523U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011524for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11525 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011526 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011527 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011528 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11529 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011530 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11531 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011532done
11533LIBOBJS=$ac_libobjs
11534
11535LTLIBOBJS=$ac_ltlibobjs
11536
11537
11538
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011539
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011540: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011541ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011542ac_clean_files_save=$ac_clean_files
11543ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011544{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011545$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011546as_write_fail=0
11547cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011548#! $SHELL
11549# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011550# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011551# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011552# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011553
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011554debug=false
11555ac_cs_recheck=false
11556ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011557
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011558SHELL=\${CONFIG_SHELL-$SHELL}
11559export SHELL
11560_ASEOF
11561cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11562## -------------------- ##
11563## M4sh Initialization. ##
11564## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011565
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011566# Be more Bourne compatible
11567DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011568if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011569 emulate sh
11570 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011571 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011572 # is contrary to our usage. Disable this feature.
11573 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011574 setopt NO_GLOB_SUBST
11575else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011576 case `(set -o) 2>/dev/null` in #(
11577 *posix*) :
11578 set -o posix ;; #(
11579 *) :
11580 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011581esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011582fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011583
11584
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011585as_nl='
11586'
11587export as_nl
11588# Printing a long string crashes Solaris 7 /usr/bin/printf.
11589as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11590as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11591as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011592# Prefer a ksh shell builtin over an external printf program on Solaris,
11593# but without wasting forks for bash or zsh.
11594if test -z "$BASH_VERSION$ZSH_VERSION" \
11595 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11596 as_echo='print -r --'
11597 as_echo_n='print -rn --'
11598elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011599 as_echo='printf %s\n'
11600 as_echo_n='printf %s'
11601else
11602 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11603 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11604 as_echo_n='/usr/ucb/echo -n'
11605 else
11606 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11607 as_echo_n_body='eval
11608 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011609 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011610 *"$as_nl"*)
11611 expr "X$arg" : "X\\(.*\\)$as_nl";
11612 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11613 esac;
11614 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11615 '
11616 export as_echo_n_body
11617 as_echo_n='sh -c $as_echo_n_body as_echo'
11618 fi
11619 export as_echo_body
11620 as_echo='sh -c $as_echo_body as_echo'
11621fi
11622
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011623# The user is always right.
11624if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011625 PATH_SEPARATOR=:
11626 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11627 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11628 PATH_SEPARATOR=';'
11629 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011630fi
11631
Theodore Ts'oe1052142006-10-21 21:46:47 -040011632
11633# IFS
11634# We need space, tab and new line, in precisely that order. Quoting is
11635# there to prevent editors from complaining about space-tab.
11636# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11637# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011638IFS=" "" $as_nl"
11639
11640# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011641as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011642case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011643 *[\\/]* ) as_myself=$0 ;;
11644 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011645for as_dir in $PATH
11646do
11647 IFS=$as_save_IFS
11648 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011649 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11650 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011651IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011652
Theodore Ts'oe1052142006-10-21 21:46:47 -040011653 ;;
11654esac
11655# We did not find ourselves, most probably we were run as `sh COMMAND'
11656# in which case we are not to be found in the path.
11657if test "x$as_myself" = x; then
11658 as_myself=$0
11659fi
11660if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011661 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011662 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011663fi
11664
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011665# Unset variables that we do not need and which cause bugs (e.g. in
11666# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11667# suppresses any "Segmentation fault" message there. '((' could
11668# trigger a bug in pdksh 5.2.14.
11669for as_var in BASH_ENV ENV MAIL MAILPATH
11670do eval test x\${$as_var+set} = xset \
11671 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011672done
11673PS1='$ '
11674PS2='> '
11675PS4='+ '
11676
11677# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011678LC_ALL=C
11679export LC_ALL
11680LANGUAGE=C
11681export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011682
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011683# CDPATH.
11684(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11685
11686
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011687# as_fn_error STATUS ERROR [LINENO LOG_FD]
11688# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011689# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11690# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011691# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011692as_fn_error ()
11693{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011694 as_status=$1; test $as_status -eq 0 && as_status=1
11695 if test "$4"; then
11696 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11697 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011698 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011699 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011700 as_fn_exit $as_status
11701} # as_fn_error
11702
11703
11704# as_fn_set_status STATUS
11705# -----------------------
11706# Set $? to STATUS, without forking.
11707as_fn_set_status ()
11708{
11709 return $1
11710} # as_fn_set_status
11711
11712# as_fn_exit STATUS
11713# -----------------
11714# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11715as_fn_exit ()
11716{
11717 set +e
11718 as_fn_set_status $1
11719 exit $1
11720} # as_fn_exit
11721
11722# as_fn_unset VAR
11723# ---------------
11724# Portably unset VAR.
11725as_fn_unset ()
11726{
11727 { eval $1=; unset $1;}
11728}
11729as_unset=as_fn_unset
11730# as_fn_append VAR VALUE
11731# ----------------------
11732# Append the text in VALUE to the end of the definition contained in VAR. Take
11733# advantage of any shell optimizations that allow amortized linear growth over
11734# repeated appends, instead of the typical quadratic growth present in naive
11735# implementations.
11736if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11737 eval 'as_fn_append ()
11738 {
11739 eval $1+=\$2
11740 }'
11741else
11742 as_fn_append ()
11743 {
11744 eval $1=\$$1\$2
11745 }
11746fi # as_fn_append
11747
11748# as_fn_arith ARG...
11749# ------------------
11750# Perform arithmetic evaluation on the ARGs, and store the result in the
11751# global $as_val. Take advantage of shells that can avoid forks. The arguments
11752# must be portable across $(()) and expr.
11753if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11754 eval 'as_fn_arith ()
11755 {
11756 as_val=$(( $* ))
11757 }'
11758else
11759 as_fn_arith ()
11760 {
11761 as_val=`expr "$@" || test $? -eq 1`
11762 }
11763fi # as_fn_arith
11764
11765
Theodore Ts'oe1052142006-10-21 21:46:47 -040011766if expr a : '\(a\)' >/dev/null 2>&1 &&
11767 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11768 as_expr=expr
11769else
11770 as_expr=false
11771fi
11772
11773if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11774 as_basename=basename
11775else
11776 as_basename=false
11777fi
11778
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011779if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11780 as_dirname=dirname
11781else
11782 as_dirname=false
11783fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011784
Theodore Ts'oe1052142006-10-21 21:46:47 -040011785as_me=`$as_basename -- "$0" ||
11786$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11787 X"$0" : 'X\(//\)$' \| \
11788 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011789$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011790 sed '/^.*\/\([^/][^/]*\)\/*$/{
11791 s//\1/
11792 q
11793 }
11794 /^X\/\(\/\/\)$/{
11795 s//\1/
11796 q
11797 }
11798 /^X\/\(\/\).*/{
11799 s//\1/
11800 q
11801 }
11802 s/.*/./; q'`
11803
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011804# Avoid depending upon Character Ranges.
11805as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11806as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11807as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11808as_cr_digits='0123456789'
11809as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011810
11811ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011812case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011813-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011814 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011815 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011816 xy) ECHO_C='\c';;
11817 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11818 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011819 esac;;
11820*)
11821 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011822esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011823
11824rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011825if test -d conf$$.dir; then
11826 rm -f conf$$.dir/conf$$.file
11827else
11828 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011829 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011830fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011831if (echo >conf$$.file) 2>/dev/null; then
11832 if ln -s conf$$.file conf$$ 2>/dev/null; then
11833 as_ln_s='ln -s'
11834 # ... but there are two gotchas:
11835 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11836 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011837 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011838 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011839 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011840 elif ln conf$$.file conf$$ 2>/dev/null; then
11841 as_ln_s=ln
11842 else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011843 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011844 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011845else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011846 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011847fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011848rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11849rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011850
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011851
11852# as_fn_mkdir_p
11853# -------------
11854# Create "$as_dir" as a directory, including parents if necessary.
11855as_fn_mkdir_p ()
11856{
11857
11858 case $as_dir in #(
11859 -*) as_dir=./$as_dir;;
11860 esac
11861 test -d "$as_dir" || eval $as_mkdir_p || {
11862 as_dirs=
11863 while :; do
11864 case $as_dir in #(
11865 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11866 *) as_qdir=$as_dir;;
11867 esac
11868 as_dirs="'$as_qdir' $as_dirs"
11869 as_dir=`$as_dirname -- "$as_dir" ||
11870$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11871 X"$as_dir" : 'X\(//\)[^/]' \| \
11872 X"$as_dir" : 'X\(//\)$' \| \
11873 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11874$as_echo X"$as_dir" |
11875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11876 s//\1/
11877 q
11878 }
11879 /^X\(\/\/\)[^/].*/{
11880 s//\1/
11881 q
11882 }
11883 /^X\(\/\/\)$/{
11884 s//\1/
11885 q
11886 }
11887 /^X\(\/\).*/{
11888 s//\1/
11889 q
11890 }
11891 s/.*/./; q'`
11892 test -d "$as_dir" && break
11893 done
11894 test -z "$as_dirs" || eval "mkdir $as_dirs"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011895 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011896
11897
11898} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011899if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011900 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011901else
11902 test -d ./-p && rmdir ./-p
11903 as_mkdir_p=false
11904fi
11905
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011906
11907# as_fn_executable_p FILE
11908# -----------------------
11909# Test if FILE is an executable regular file.
11910as_fn_executable_p ()
11911{
11912 test -f "$1" && test -x "$1"
11913} # as_fn_executable_p
11914as_test_x='test -x'
11915as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011916
11917# Sed expression to map a string onto a valid CPP name.
11918as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11919
11920# Sed expression to map a string onto a valid variable name.
11921as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11922
11923
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011924exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011925## ----------------------------------- ##
11926## Main body of $CONFIG_STATUS script. ##
11927## ----------------------------------- ##
11928_ASEOF
11929test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011930
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11932# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011933# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040011934# values after options handling.
11935ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011936This file was extended by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011937generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011938
11939 CONFIG_FILES = $CONFIG_FILES
11940 CONFIG_HEADERS = $CONFIG_HEADERS
11941 CONFIG_LINKS = $CONFIG_LINKS
11942 CONFIG_COMMANDS = $CONFIG_COMMANDS
11943 $ $0 $@
11944
Theodore Ts'oe1052142006-10-21 21:46:47 -040011945on `(hostname || uname -n) 2>/dev/null | sed 1q`
11946"
11947
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011948_ACEOF
11949
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011950case $ac_config_files in *"
11951"*) set x $ac_config_files; shift; ac_config_files=$*;;
11952esac
11953
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011954case $ac_config_headers in *"
11955"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11956esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011957
11958
11959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011960# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011961config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011962config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011963config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011964
Theodore Ts'oe1052142006-10-21 21:46:47 -040011965_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011966
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011968ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011969\`$as_me' instantiates files and other configuration actions
11970from templates according to the current configuration. Unless the files
11971and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011972
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011973Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011974
11975 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011976 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011977 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011978 -q, --quiet, --silent
11979 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011980 -d, --debug don't remove temporary files
11981 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011982 --file=FILE[:TEMPLATE]
11983 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011984 --header=FILE[:TEMPLATE]
11985 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011986
11987Configuration files:
11988$config_files
11989
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011990Configuration headers:
11991$config_headers
11992
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011993Configuration commands:
11994$config_commands
11995
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011996Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011997
Theodore Ts'oe1052142006-10-21 21:46:47 -040011998_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012000ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012001ac_cs_version="\\
12002config.status
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012003configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012004 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012005
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012006Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012007This config.status script is free software; the Free Software Foundation
12008gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040012009
12010ac_pwd='$ac_pwd'
12011srcdir='$srcdir'
12012INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012013AWK='$AWK'
12014test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012015_ACEOF
12016
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12018# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012019ac_need_defaults=:
12020while test $# != 0
12021do
12022 case $1 in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012023 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012024 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12025 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012026 ac_shift=:
12027 ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012028 --*=)
12029 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12030 ac_optarg=
12031 ac_shift=:
12032 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012033 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012034 ac_option=$1
12035 ac_optarg=$2
12036 ac_shift=shift
12037 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012038 esac
12039
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012040 case $ac_option in
12041 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012042 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12043 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012044 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012045 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012046 --config | --confi | --conf | --con | --co | --c )
12047 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012048 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012049 debug=: ;;
12050 --file | --fil | --fi | --f )
12051 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012052 case $ac_optarg in
12053 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012054 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012055 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012056 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012057 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012058 --header | --heade | --head | --hea )
12059 $ac_shift
12060 case $ac_optarg in
12061 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12062 esac
12063 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12064 ac_need_defaults=false;;
12065 --he | --h)
12066 # Conflict between --help and --header
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012067 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012068Try \`$0 --help' for more information.";;
12069 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012070 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12072 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12073 ac_cs_silent=: ;;
12074
12075 # This is an error.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012076 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012077Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012078
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012079 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012080 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012081
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012082 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012083 shift
12084done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012085
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012086ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012087
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012088if $ac_cs_silent; then
12089 exec 6>/dev/null
12090 ac_configure_extra_args="$ac_configure_extra_args --silent"
12091fi
12092
12093_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012095if \$ac_cs_recheck; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012096 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012097 shift
12098 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12099 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012100 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012101 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012102fi
12103
12104_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012106exec 5>>config.log
12107{
12108 echo
12109 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12110## Running $as_me. ##
12111_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012112 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012113} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012114
Theodore Ts'oe1052142006-10-21 21:46:47 -040012115_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012117#
Theodore Ts'oe1052142006-10-21 21:46:47 -040012118# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012119#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012120# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012121 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012122 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012123 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012124 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12125 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012126
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012127
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012128_ACEOF
12129
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012131
12132# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012133for ac_config_target in $ac_config_targets
12134do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012135 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012136 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012137 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12138 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12139
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012140 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012141 esac
12142done
12143
Theodore Ts'oe1052142006-10-21 21:46:47 -040012144
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012145# If the user did not use the arguments to specify the items to instantiate,
12146# then the envvar interface is used. Set only those that are not.
12147# We use the long form for the default assignment because of an extremely
12148# bizarre bug on SunOS 4.1.3.
12149if $ac_need_defaults; then
12150 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012151 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012152 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12153fi
12154
12155# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040012156# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012157# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012158# Hook for its removal unless debugging.
12159# Note that there is a small window in which the directory will not be cleaned:
12160# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012161$debug ||
12162{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012163 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040012164 trap 'exit_status=$?
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012165 : "${ac_tmp:=$tmp}"
12166 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040012167' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012168 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012169}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012170# Create a (secure) tmp directory for tmp files.
12171
12172{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012173 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012174 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012175} ||
12176{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012177 tmp=./conf$$-$RANDOM
12178 (umask 077 && mkdir "$tmp")
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012179} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12180ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012181
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012182# Set up the scripts for CONFIG_FILES section.
12183# No need to generate them if there are no CONFIG_FILES.
12184# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012185if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012186
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012187if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12188 ac_cs_awk_getline=:
12189 ac_cs_awk_pipe_init=
12190 ac_cs_awk_read_file='
12191 while ((getline aline < (F[key])) > 0)
12192 print(aline)
12193 close(F[key])'
12194 ac_cs_awk_pipe_fini=
12195else
12196 ac_cs_awk_getline=false
12197 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12198 ac_cs_awk_read_file='
12199 print "|#_!!_#|"
12200 print "cat " F[key] " &&"
12201 '$ac_cs_awk_pipe_init
12202 # The final `:' finishes the AND list.
12203 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12204fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012205ac_cr=`echo X | tr X '\015'`
12206# On cygwin, bash can eat \r inside `` if the user requested igncr.
12207# But we know of no other shell where ac_cr would be empty at this
12208# point, so we can use a bashism as a fallback.
12209if test "x$ac_cr" = x; then
12210 eval ac_cr=\$\'\\r\'
12211fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012212ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12213if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012214 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012215else
12216 ac_cs_awk_cr=$ac_cr
12217fi
12218
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012219echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012220_ACEOF
12221
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012222# Create commands to substitute file output variables.
12223{
12224 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012225 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012226 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12227 echo "_ACAWK" &&
12228 echo "_ACEOF"
12229} >conf$$files.sh &&
12230. ./conf$$files.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012231 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012232rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012233
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012234{
12235 echo "cat >conf$$subs.awk <<_ACEOF" &&
12236 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12237 echo "_ACEOF"
12238} >conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012239 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12240ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012241ac_delim='%!_!# '
12242for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012243 . ./conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012244 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012245
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012246 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12247 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012248 break
12249 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012250 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012251 else
12252 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012253 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012254done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012255rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012256
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012257cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012258cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012259_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012260sed -n '
12261h
12262s/^/S["/; s/!.*/"]=/
12263p
12264g
12265s/^[^!]*!//
12266:repl
12267t repl
12268s/'"$ac_delim"'$//
12269t delim
12270:nl
12271h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012272s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012273t more1
12274s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12275p
12276n
12277b repl
12278:more1
12279s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12280p
12281g
12282s/.\{148\}//
12283t nl
12284:delim
12285h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012286s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012287t more2
12288s/["\\]/\\&/g; s/^/"/; s/$/"/
12289p
12290b
12291:more2
12292s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12293p
12294g
12295s/.\{148\}//
12296t delim
12297' <conf$$subs.awk | sed '
12298/^[^""]/{
12299 N
12300 s/\n//
12301}
12302' >>$CONFIG_STATUS || ac_write_fail=1
12303rm -f conf$$subs.awk
12304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12305_ACAWK
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012306cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012307 for (key in S) S_is_set[key] = 1
12308 FS = ""
12309 \$ac_cs_awk_pipe_init
12310}
12311{
12312 line = $ 0
12313 nfields = split(line, field, "@")
12314 substed = 0
12315 len = length(field[1])
12316 for (i = 2; i < nfields; i++) {
12317 key = field[i]
12318 keylen = length(key)
12319 if (S_is_set[key]) {
12320 value = S[key]
12321 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12322 len += length(value) + length(field[++i])
12323 substed = 1
12324 } else
12325 len += 1 + keylen
12326 }
12327 if (nfields == 3 && !substed) {
12328 key = field[2]
12329 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12330 \$ac_cs_awk_read_file
12331 next
12332 }
12333 }
12334 print line
12335}
12336\$ac_cs_awk_pipe_fini
12337_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040012338_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12340if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12341 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12342else
12343 cat
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012344fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12345 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012346_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012347
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012348# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12349# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040012350# trailing colons and then remove the whole line if VPATH becomes empty
12351# (actually we leave an empty line to preserve line numbers).
12352if test "x$srcdir" = x.; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012353 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12354h
12355s///
12356s/^/:/
12357s/[ ]*$/:/
12358s/:\$(srcdir):/:/g
12359s/:\${srcdir}:/:/g
12360s/:@srcdir@:/:/g
12361s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012362s/:*$//
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012363x
12364s/\(=[ ]*\).*/\1/
12365G
12366s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012367s/^[^=]*=[ ]*$//
12368}'
12369fi
12370
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012372fi # test -n "$CONFIG_FILES"
12373
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012374# Set up the scripts for CONFIG_HEADERS section.
12375# No need to generate them if there are no CONFIG_HEADERS.
12376# This happens for instance with `./config.status Makefile'.
12377if test -n "$CONFIG_HEADERS"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012378cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012379BEGIN {
12380_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012381
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012382# Transform confdefs.h into an awk script `defines.awk', embedded as
12383# here-document in config.status, that substitutes the proper values into
12384# config.h.in to produce config.h.
12385
12386# Create a delimiter string that does not exist in confdefs.h, to ease
12387# handling of long lines.
12388ac_delim='%!_!# '
12389for ac_last_try in false false :; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012390 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12391 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012392 break
12393 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012394 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012395 else
12396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12397 fi
12398done
12399
12400# For the awk script, D is an array of macro values keyed by name,
12401# likewise P contains macro parameters if any. Preserve backslash
12402# newline sequences.
12403
12404ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12405sed -n '
12406s/.\{148\}/&'"$ac_delim"'/g
12407t rset
12408:rset
12409s/^[ ]*#[ ]*define[ ][ ]*/ /
12410t def
12411d
12412:def
12413s/\\$//
12414t bsnl
12415s/["\\]/\\&/g
12416s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12417D["\1"]=" \3"/p
12418s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12419d
12420:bsnl
12421s/["\\]/\\&/g
12422s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12423D["\1"]=" \3\\\\\\n"\\/p
12424t cont
12425s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12426t cont
12427d
12428:cont
12429n
12430s/.\{148\}/&'"$ac_delim"'/g
12431t clear
12432:clear
12433s/\\$//
12434t bsnlc
12435s/["\\]/\\&/g; s/^/"/; s/$/"/p
12436d
12437:bsnlc
12438s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12439b cont
12440' <confdefs.h | sed '
12441s/'"$ac_delim"'/"\\\
12442"/g' >>$CONFIG_STATUS || ac_write_fail=1
12443
12444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12445 for (key in D) D_is_set[key] = 1
12446 FS = ""
12447}
12448/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12449 line = \$ 0
12450 split(line, arg, " ")
12451 if (arg[1] == "#") {
12452 defundef = arg[2]
12453 mac1 = arg[3]
12454 } else {
12455 defundef = substr(arg[1], 2)
12456 mac1 = arg[2]
12457 }
12458 split(mac1, mac2, "(") #)
12459 macro = mac2[1]
12460 prefix = substr(line, 1, index(line, defundef) - 1)
12461 if (D_is_set[macro]) {
12462 # Preserve the white space surrounding the "#".
12463 print prefix "define", macro P[macro] D[macro]
12464 next
12465 } else {
12466 # Replace #undef with comments. This is necessary, for example,
12467 # in the case of _POSIX_SOURCE, which is predefined and required
12468 # on some systems where configure will not decide to define it.
12469 if (defundef == "undef") {
12470 print "/*", prefix defundef, macro, "*/"
12471 next
12472 }
12473 }
12474}
12475{ print }
12476_ACAWK
12477_ACEOF
12478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012479 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012480fi # test -n "$CONFIG_HEADERS"
12481
12482
12483eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012484shift
12485for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040012486do
12487 case $ac_tag in
12488 :[FHLC]) ac_mode=$ac_tag; continue;;
12489 esac
12490 case $ac_mode$ac_tag in
12491 :[FHL]*:*);;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012492 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012493 :[FH]-) ac_tag=-:-;;
12494 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12495 esac
12496 ac_save_IFS=$IFS
12497 IFS=:
12498 set x $ac_tag
12499 IFS=$ac_save_IFS
12500 shift
12501 ac_file=$1
12502 shift
12503
12504 case $ac_mode in
12505 :L) ac_source=$1;;
12506 :[FH])
12507 ac_file_inputs=
12508 for ac_f
12509 do
12510 case $ac_f in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012511 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012512 *) # Look for the file first in the build tree, then in the source tree
12513 # (if the path is not absolute). The absolute path cannot be DOS-style,
12514 # because $ac_f cannot contain `:'.
12515 test -f "$ac_f" ||
12516 case $ac_f in
12517 [\\/$]*) false;;
12518 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12519 esac ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012520 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012521 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012522 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012523 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012524 done
12525
12526 # Let's still pretend it is `configure' which instantiates (i.e., don't
12527 # use $as_me), people would be surprised to read:
12528 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012529 configure_input='Generated from '`
12530 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12531 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012532 if test x"$ac_file" != x-; then
12533 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012534 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012535$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012536 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012537 # Neutralize special characters interpreted by sed in replacement strings.
12538 case $configure_input in #(
12539 *\&* | *\|* | *\\* )
12540 ac_sed_conf_input=`$as_echo "$configure_input" |
12541 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12542 *) ac_sed_conf_input=$configure_input;;
12543 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012544
12545 case $ac_tag in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012546 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12547 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012548 esac
12549 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012550 esac
12551
Theodore Ts'oe1052142006-10-21 21:46:47 -040012552 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012553$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12554 X"$ac_file" : 'X\(//\)[^/]' \| \
12555 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012556 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012557$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12559 s//\1/
12560 q
12561 }
12562 /^X\(\/\/\)[^/].*/{
12563 s//\1/
12564 q
12565 }
12566 /^X\(\/\/\)$/{
12567 s//\1/
12568 q
12569 }
12570 /^X\(\/\).*/{
12571 s//\1/
12572 q
12573 }
12574 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012575 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012576 ac_builddir=.
12577
Theodore Ts'oe1052142006-10-21 21:46:47 -040012578case "$ac_dir" in
12579.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12580*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012582 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012584 case $ac_top_builddir_sub in
12585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12587 esac ;;
12588esac
12589ac_abs_top_builddir=$ac_pwd
12590ac_abs_builddir=$ac_pwd$ac_dir_suffix
12591# for backward compatibility:
12592ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012593
12594case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012595 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012596 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012597 ac_top_srcdir=$ac_top_builddir_sub
12598 ac_abs_top_srcdir=$ac_pwd ;;
12599 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012600 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012601 ac_top_srcdir=$srcdir
12602 ac_abs_top_srcdir=$srcdir ;;
12603 *) # Relative name.
12604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12605 ac_top_srcdir=$ac_top_build_prefix$srcdir
12606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012607esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012608ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012609
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012610
Theodore Ts'oe1052142006-10-21 21:46:47 -040012611 case $ac_mode in
12612 :F)
12613 #
12614 # CONFIG_FILE
12615 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012616
12617 case $INSTALL in
12618 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012619 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012620 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012621_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012622
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012624# If the template does not know about datarootdir, expand it.
12625# FIXME: This hack should be removed a few years after 2.60.
12626ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012627ac_sed_dataroot='
12628/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012629 p
12630 q
12631}
12632/@datadir@/p
12633/@docdir@/p
12634/@infodir@/p
12635/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012636/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012637case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012638*datarootdir*) ac_datarootdir_seen=yes;;
12639*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012640 { $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 +010012641$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012642_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012644 ac_datarootdir_hack='
12645 s&@datadir@&$datadir&g
12646 s&@docdir@&$docdir&g
12647 s&@infodir@&$infodir&g
12648 s&@localedir@&$localedir&g
12649 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012650 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012651esac
12652_ACEOF
12653
12654# Neutralize VPATH when `$srcdir' = `.'.
12655# Shell code in configure.ac might set extrasub.
12656# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12658ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012659$extrasub
12660_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012662:t
12663/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012664s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012665s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012666s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012667s&@srcdir@&$ac_srcdir&;t t
12668s&@abs_srcdir@&$ac_abs_srcdir&;t t
12669s&@top_srcdir@&$ac_top_srcdir&;t t
12670s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12671s&@builddir@&$ac_builddir&;t t
12672s&@abs_builddir@&$ac_abs_builddir&;t t
12673s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12674s&@INSTALL@&$ac_INSTALL&;t t
12675$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012676"
12677eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12678if $ac_cs_awk_getline; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012679 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012680else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012681 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12682fi \
12683 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012684
Theodore Ts'oe1052142006-10-21 21:46:47 -040012685test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012686 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12687 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12688 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012690which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012691$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012692which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012693
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012694 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012695 case $ac_file in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012696 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12697 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012698 esac \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012699 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012700 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012701 :H)
12702 #
12703 # CONFIG_HEADER
12704 #
12705 if test x"$ac_file" != x-; then
12706 {
12707 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012708 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12709 } >"$ac_tmp/config.h" \
12710 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12711 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012712 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12713$as_echo "$as_me: $ac_file is unchanged" >&6;}
12714 else
12715 rm -f "$ac_file"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012716 mv "$ac_tmp/config.h" "$ac_file" \
12717 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012718 fi
12719 else
12720 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012721 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12722 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012723 fi
12724 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012725
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012726 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012727$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012728 ;;
12729 esac
12730
12731
12732 case $ac_file$ac_mode in
12733 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012734 for ac_file in $CONFIG_FILES; do
12735 # Support "outfile[:infile[:infile...]]"
12736 case "$ac_file" in
12737 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012738 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012739 # PO directories have a Makefile.in generated from Makefile.in.in.
12740 case "$ac_file" in */Makefile.in)
12741 # Adjust a relative srcdir.
12742 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12743 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12744 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12745 # In autoconf-2.13 it is called $ac_given_srcdir.
12746 # In autoconf-2.50 it is called $srcdir.
12747 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12748 case "$ac_given_srcdir" in
12749 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12750 /*) top_srcdir="$ac_given_srcdir" ;;
12751 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12752 esac
12753 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12754 rm -f "$ac_dir/POTFILES"
12755 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12756 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 -050012757 POMAKEFILEDEPS="POTFILES.in"
12758 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012759 # on $ac_dir but don't depend on user-specified configuration
12760 # parameters.
12761 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12762 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012763 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012764 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12765 fi
12766 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12767 # Hide the ALL_LINGUAS assigment from automake.
12768 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012769 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12770 else
12771 # The set of available languages was given in configure.in.
12772 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012773 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012774 # Compute POFILES
12775 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12776 # Compute UPDATEPOFILES
12777 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12778 # Compute DUMMYPOFILES
12779 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12780 # Compute GMOFILES
12781 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012782 case "$ac_given_srcdir" in
12783 .) srcdirpre= ;;
12784 *) srcdirpre='$(srcdir)/' ;;
12785 esac
12786 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012787 UPDATEPOFILES=
12788 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012789 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012790 for lang in $ALL_LINGUAS; do
12791 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012792 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12793 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012794 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012795 done
12796 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12797 # environment variable.
12798 INST_LINGUAS=
12799 if test -n "$ALL_LINGUAS"; then
12800 for presentlang in $ALL_LINGUAS; do
12801 useit=no
12802 if test "%UNSET%" != "$LINGUAS"; then
12803 desiredlanguages="$LINGUAS"
12804 else
12805 desiredlanguages="$ALL_LINGUAS"
12806 fi
12807 for desiredlang in $desiredlanguages; do
12808 # Use the presentlang catalog if desiredlang is
12809 # a. equal to presentlang, or
12810 # b. a variant of presentlang (because in this case,
12811 # presentlang can be used as a fallback for messages
12812 # which are not translated in the desiredlang catalog).
12813 case "$desiredlang" in
12814 "$presentlang"*) useit=yes;;
12815 esac
12816 done
12817 if test $useit = yes; then
12818 INST_LINGUAS="$INST_LINGUAS $presentlang"
12819 fi
12820 done
12821 fi
12822 CATALOGS=
12823 if test -n "$INST_LINGUAS"; then
12824 for lang in $INST_LINGUAS; do
12825 CATALOGS="$CATALOGS $lang.gmo"
12826 done
12827 fi
12828 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012829 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 -040012830 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12831 if test -f "$f"; then
12832 case "$f" in
12833 *.orig | *.bak | *~) ;;
12834 *) cat "$f" >> "$ac_dir/Makefile" ;;
12835 esac
12836 fi
12837 done
12838 fi
12839 ;;
12840 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012841 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012842
Theodore Ts'oe1052142006-10-21 21:46:47 -040012843 esac
12844done # for ac_tag
12845
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012846
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012847as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012848_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012849ac_clean_files=$ac_clean_files_save
12850
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012851test $ac_write_fail = 0 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012852 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012853
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012854
12855# configure is writing to config.log, and then calls config.status.
12856# config.status does its own redirection, appending to config.log.
12857# Unfortunately, on DOS this fails, as config.log is still kept open
12858# by configure, so config.status won't be able to write to it; its
12859# output is simply discarded. So we exec the FD to /dev/null,
12860# effectively closing config.log, so it can be properly (re)opened and
12861# appended to by config.status. When coming back to configure, we
12862# need to make the FD available again.
12863if test "$no_create" != yes; then
12864 ac_cs_success=:
12865 ac_config_status_args=
12866 test "$silent" = yes &&
12867 ac_config_status_args="$ac_config_status_args --quiet"
12868 exec 5>/dev/null
12869 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12870 exec 5>>config.log
12871 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12872 # would make configure fail if this is the last instruction.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012873 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012874fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012875if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012877$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12878fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012879
Theodore Ts'oee683a12005-02-05 15:53:56 -050012880if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi