blob: 01b56c55ab6bdbb809e9b7d0093ab23775cfe69e [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
643SIZEOF_LONG_LONG
644SIZEOF_LONG
645SIZEOF_INT
646SIZEOF_SHORT
647BUILD_CC
648MAKEINFO
649STRIP
650AR
651LDCONFIG
652PERL
653SED
654AWK
655CHMOD
656RM
657CP
658MV
659LN_S
660LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400661ifNotGNUmake
662ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100663BINARY_TYPE
664POSUB
665LTLIBINTL
666LIBINTL
667INTLLIBS
668INTL_LIBTOOL_SUFFIX_PREFIX
669INTLOBJS
670GENCAT
671INSTOBJEXT
672DATADIRNAME
673CATOBJEXT
674USE_INCLUDED_LIBINTL
675BUILD_INCLUDED_LIBINTL
676INTLBISON
677LTLIBICONV
678LIBICONV
679HAVE_WPRINTF
680HAVE_SNPRINTF
681HAVE_ASPRINTF
682HAVE_POSIX_PRINTF
683GLIBC21
684ALLOCA
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400685EGREP
686GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100687RANLIB
688MSGMERGE
689XGETTEXT
690GMSGFMT
691MSGFMT
692USE_NLS
693MKINSTALLDIRS
694INSTALL_DATA
695INSTALL_SCRIPT
696INSTALL_PROGRAM
697SET_MAKE
698VERSION
699PACKAGE
700GETTEXT_PACKAGE
701UUIDD_CMT
702E2INITRD_MAN
703E2INITRD_PROG
704FSCK_MAN
705FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500706DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100707RESIZER_CMT
708IMAGER_CMT
709DEBUGFS_CMT
Aditya Kalif239fef2011-07-20 11:40:02 -0700710QUOTA_CMT
711DEPPROFILED_LIBQUOTA
712PROFILED_LIBQUOTA
713DEPSTATIC_LIBQUOTA
714STATIC_LIBQUOTA
715DEPLIBQUOTA
716LIBQUOTA
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100717BLKID_CMT
718DEPPROFILED_LIBBLKID
719PROFILED_LIBBLKID
720DEPSTATIC_LIBBLKID
721STATIC_LIBBLKID
722DEPLIBBLKID
723LIBBLKID
724UUID_CMT
725DEPPROFILED_LIBUUID
726PROFILED_LIBUUID
727DEPSTATIC_LIBUUID
728STATIC_LIBUUID
729DEPLIBUUID
730LIBUUID
731PKG_CONFIG
732TEST_IO_CMT
733PRIVATE_LIBS_CMT
734LDFLAG_DYNAMIC
735PROFILED_LIB_EXT
736STATIC_LIB_EXT
737LIB_EXT
738CHECKER_CMT
739PROFILE_CMT
740BSDLIB_CMT
741ELF_CMT
742HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400743Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400744ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400745E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400746LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400747SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400748LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100749MAINTAINER_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100750CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400751RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500752DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100753OBJEXT
754EXEEXT
755ac_ct_CC
756CPPFLAGS
757LDFLAGS
758CFLAGS
759CC
760host_os
761host_vendor
762host_cpu
763host
764build_os
765build_vendor
766build_cpu
767build
768E2FSPROGS_PKGVER
769E2FSPROGS_VERSION
770E2FSPROGS_DAY
771E2FSPROGS_MONTH
772E2FSPROGS_YEAR
773target_alias
774host_alias
775build_alias
776LIBS
777ECHO_T
778ECHO_N
779ECHO_C
780DEFS
781mandir
782localedir
783libdir
784psdir
785pdfdir
786dvidir
787htmldir
788infodir
789docdir
790oldincludedir
791includedir
792localstatedir
793sharedstatedir
794sysconfdir
795datadir
796datarootdir
797libexecdir
798sbindir
799bindir
800program_transform_name
801prefix
802exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500803PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100804PACKAGE_BUGREPORT
805PACKAGE_STRING
806PACKAGE_VERSION
807PACKAGE_TARNAME
808PACKAGE_NAME
809PATH_SEPARATOR
810SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400811ac_subst_files='MCONFIG
812MAKEFILE_ELF
813MAKEFILE_BSDLIB
814MAKEFILE_PROFILE
815MAKEFILE_CHECKER
816MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400817ASM_TYPES_HEADER
818PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100819ac_user_opts='
820enable_option_checking
821with_diet_libc
822with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100823with_ccopts
824with_ldopts
825with_root_prefix
826enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400827enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400828enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400829enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400830enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400831enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100832enable_compression
833enable_htree
834enable_elf_shlibs
835enable_bsd_shlibs
836enable_profile
837enable_checker
838enable_jbd_debug
839enable_blkid_debug
840enable_testio_debug
841enable_libuuid
842enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500843enable_quota
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100844enable_debugfs
845enable_imager
846enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500847enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100848enable_fsck
849enable_e2initrd_helper
850enable_tls
851enable_uuidd
852enable_nls
853with_gnu_ld
854enable_rpath
855with_libiconv_prefix
856with_included_gettext
857with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400858with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100859'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400860 ac_precious_vars='build_alias
861host_alias
862target_alias
863CC
864CFLAGS
865LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400866LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400867CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400868CPP
869PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400870
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000871
872# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500873ac_init_help=
874ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100875ac_unrecognized_opts=
876ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000877# The variables have the same names as the options, with
878# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500879cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000880exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000881no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000882no_recursion=
883prefix=NONE
884program_prefix=NONE
885program_suffix=NONE
886program_transform_name=s,x,x,
887silent=
888site=
889srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000890verbose=
891x_includes=NONE
892x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500893
894# Installation directory options.
895# These are left unexpanded so users can "make install exec_prefix=/foo"
896# and all the variables that are supposed to be based on exec_prefix
897# by default will actually change.
898# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400899# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000900bindir='${exec_prefix}/bin'
901sbindir='${exec_prefix}/sbin'
902libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400903datarootdir='${prefix}/share'
904datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000905sysconfdir='${prefix}/etc'
906sharedstatedir='${prefix}/com'
907localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000908includedir='${prefix}/include'
909oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400910docdir='${datarootdir}/doc/${PACKAGE}'
911infodir='${datarootdir}/info'
912htmldir='${docdir}'
913dvidir='${docdir}'
914pdfdir='${docdir}'
915psdir='${docdir}'
916libdir='${exec_prefix}/lib'
917localedir='${datarootdir}/locale'
918mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000919
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000920ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400921ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000922for ac_option
923do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000924 # If the previous option needs an argument, assign it.
925 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400926 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000927 ac_prev=
928 continue
929 fi
930
Theodore Ts'oe1052142006-10-21 21:46:47 -0400931 case $ac_option in
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400932 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933 *=) ac_optarg= ;;
934 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400935 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000936
937 # Accept the important Cygnus configure options, so we can diagnose typos.
938
Theodore Ts'oe1052142006-10-21 21:46:47 -0400939 case $ac_dashdash$ac_option in
940 --)
941 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000942
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000943 -bindir | --bindir | --bindi | --bind | --bin | --bi)
944 ac_prev=bindir ;;
945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500946 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000947
948 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500949 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000950 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500951 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000952
953 -cache-file | --cache-file | --cache-fil | --cache-fi \
954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955 ac_prev=cache_file ;;
956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500958 cache_file=$ac_optarg ;;
959
960 --config-cache | -C)
961 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000962
Theodore Ts'oe1052142006-10-21 21:46:47 -0400963 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000964 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400965 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500966 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000967
Theodore Ts'oe1052142006-10-21 21:46:47 -0400968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969 | --dataroo | --dataro | --datar)
970 ac_prev=datarootdir ;;
971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973 datarootdir=$ac_optarg ;;
974
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000975 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000977 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400979 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984"enable_$ac_useropt"
985"*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400990
991 -docdir | --docdir | --docdi | --doc | --do)
992 ac_prev=docdir ;;
993 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994 docdir=$ac_optarg ;;
995
996 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
997 ac_prev=dvidir ;;
998 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001000
1001 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001002 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001003 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001005 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001006 ac_useropt_orig=$ac_useropt
1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1009 *"
1010"enable_$ac_useropt"
1011"*) ;;
1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1013 ac_unrecognized_sep=', ';;
1014 esac
1015 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001016
1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019 | --exec | --exe | --ex)
1020 ac_prev=exec_prefix ;;
1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001024 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001025
1026 -gas | --gas | --ga | --g)
1027 # Obsolete; use --with-gas.
1028 with_gas=yes ;;
1029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001030 -help | --help | --hel | --he | -h)
1031 ac_init_help=long ;;
1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033 ac_init_help=recursive ;;
1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001036
1037 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001038 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001039 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001040 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001041
Theodore Ts'oe1052142006-10-21 21:46:47 -04001042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043 ac_prev=htmldir ;;
1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045 | --ht=*)
1046 htmldir=$ac_optarg ;;
1047
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001048 -includedir | --includedir | --includedi | --included | --include \
1049 | --includ | --inclu | --incl | --inc)
1050 ac_prev=includedir ;;
1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001053 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001054
1055 -infodir | --infodir | --infodi | --infod | --info | --inf)
1056 ac_prev=infodir ;;
1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001058 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001059
1060 -libdir | --libdir | --libdi | --libd)
1061 ac_prev=libdir ;;
1062 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001063 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001064
1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066 | --libexe | --libex | --libe)
1067 ac_prev=libexecdir ;;
1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001070 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001071
Theodore Ts'oe1052142006-10-21 21:46:47 -04001072 -localedir | --localedir | --localedi | --localed | --locale)
1073 ac_prev=localedir ;;
1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075 localedir=$ac_optarg ;;
1076
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001077 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001078 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001079 ac_prev=localstatedir ;;
1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001082 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001083
1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085 ac_prev=mandir ;;
1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001087 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001088
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001089 -nfp | --nfp | --nf)
1090 # Obsolete; use --without-fp.
1091 with_fp=no ;;
1092
1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001094 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001095 no_create=yes ;;
1096
1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 no_recursion=yes ;;
1100
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103 | --oldin | --oldi | --old | --ol | --o)
1104 ac_prev=oldincludedir ;;
1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001108 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001109
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111 ac_prev=prefix ;;
1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001113 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001114
1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116 | --program-pre | --program-pr | --program-p)
1117 ac_prev=program_prefix ;;
1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001120 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001121
1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123 | --program-suf | --program-su | --program-s)
1124 ac_prev=program_suffix ;;
1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001127 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001128
1129 -program-transform-name | --program-transform-name \
1130 | --program-transform-nam | --program-transform-na \
1131 | --program-transform-n | --program-transform- \
1132 | --program-transform | --program-transfor \
1133 | --program-transfo | --program-transf \
1134 | --program-trans | --program-tran \
1135 | --progr-tra | --program-tr | --program-t)
1136 ac_prev=program_transform_name ;;
1137 -program-transform-name=* | --program-transform-name=* \
1138 | --program-transform-nam=* | --program-transform-na=* \
1139 | --program-transform-n=* | --program-transform-=* \
1140 | --program-transform=* | --program-transfor=* \
1141 | --program-transfo=* | --program-transf=* \
1142 | --program-trans=* | --program-tran=* \
1143 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001144 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001145
Theodore Ts'oe1052142006-10-21 21:46:47 -04001146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147 ac_prev=pdfdir ;;
1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149 pdfdir=$ac_optarg ;;
1150
1151 -psdir | --psdir | --psdi | --psd | --ps)
1152 ac_prev=psdir ;;
1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 psdir=$ac_optarg ;;
1155
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157 | -silent | --silent | --silen | --sile | --sil)
1158 silent=yes ;;
1159
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161 ac_prev=sbindir ;;
1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001164 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001165
1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168 | --sharedst | --shareds | --shared | --share | --shar \
1169 | --sha | --sh)
1170 ac_prev=sharedstatedir ;;
1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001175 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001176
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001177 -site | --site | --sit)
1178 ac_prev=site ;;
1179 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001180 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001181
1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183 ac_prev=srcdir ;;
1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001185 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001186
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188 | --syscon | --sysco | --sysc | --sys | --sy)
1189 ac_prev=sysconfdir ;;
1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001192 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001193
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001194 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001195 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001197 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001198
1199 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200 verbose=yes ;;
1201
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001202 -version | --version | --versio | --versi | --vers | -V)
1203 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001204
1205 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001206 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001207 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001209 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1213 *"
1214"with_$ac_useropt"
1215"*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1218 esac
1219 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001220
1221 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001222 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001223 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001225 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1229 *"
1230"with_$ac_useropt"
1231"*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001236
1237 --x)
1238 # Obsolete; use --with-x.
1239 with_x=yes ;;
1240
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001246 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001247
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001253 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001254
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001255 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1256Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001257 ;;
1258
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001259 *=*)
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001262 case $ac_envvar in #(
1263 '' | [0-9]* | *[!_$as_cr_alnum]* )
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001264 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001265 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001266 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001267 export $ac_envvar ;;
1268
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001269 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001270 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001271 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001273 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001274 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001275 ;;
1276
1277 esac
1278done
1279
1280if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001282 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001283fi
1284
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001285if test -n "$ac_unrecognized_opts"; then
1286 case $enable_option_checking in
1287 no) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001288 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001289 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290 esac
1291fi
1292
1293# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001294for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001298do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001299 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001300 # Remove trailing slashes.
1301 case $ac_val in
1302 */ )
1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304 eval $ac_var=\$ac_val;;
1305 esac
1306 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001307 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001310 esac
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001311 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001312done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001313
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001314# There might be people who depend on the old broken behavior: `$host'
1315# used to hold the argument of --host etc.
1316# FIXME: To remove some day.
1317build=$build_alias
1318host=$host_alias
1319target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001320
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001321# FIXME: To remove some day.
1322if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001325 elif test "x$build_alias" != "x$host_alias"; then
1326 cross_compiling=yes
1327 fi
1328fi
1329
1330ac_tool_prefix=
1331test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333test "$silent" = yes && exec 6>/dev/null
1334
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001335
Theodore Ts'oe1052142006-10-21 21:46:47 -04001336ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337ac_ls_di=`ls -di .` &&
1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001339 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001340test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001341 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001342
1343
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001344# Find the source files, if location was not specified.
1345if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001347 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001348 ac_confdir=`$as_dirname -- "$as_myself" ||
1349$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\/\)[^/].*/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\).*/{
1367 s//\1/
1368 q
1369 }
1370 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001371 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001372 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001373 srcdir=..
1374 fi
1375else
1376 ac_srcdir_defaulted=no
1377fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001378if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001380 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001381fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383ac_abs_confdir=`(
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001385 pwd)`
1386# When building in place, set srcdir=.
1387if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 srcdir=.
1389fi
1390# Remove unnecessary trailing slashes from srcdir.
1391# Double slashes in file names in object file debugging info
1392# mess up M-x gdb in Emacs.
1393case $srcdir in
1394*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395esac
1396for ac_var in $ac_precious_vars; do
1397 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_env_${ac_var}_value=\$${ac_var}
1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001402
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001403#
1404# Report the --help message.
1405#
1406if test "$ac_init_help" = "long"; then
1407 # Omit some internal or obsolete options to make the list less imposing.
1408 # This message is too long to be a string in the A/UX 3.1 sh.
1409 cat <<_ACEOF
1410\`configure' configures this package to adapt to many kinds of systems.
1411
1412Usage: $0 [OPTION]... [VAR=VALUE]...
1413
1414To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415VAR=VALUE. See below for descriptions of some of the useful variables.
1416
1417Defaults for the options are specified in brackets.
1418
1419Configuration:
1420 -h, --help display this help and exit
1421 --help=short display options specific to this package
1422 --help=recursive display the short help of all the included packages
1423 -V, --version display version information and exit
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001424 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001425 --cache-file=FILE cache test results in FILE [disabled]
1426 -C, --config-cache alias for \`--cache-file=config.cache'
1427 -n, --no-create do not create output files
1428 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001430Installation directories:
1431 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001432 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001434 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001435
1436By default, \`make install' will install all the files in
1437\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439for instance \`--prefix=\$HOME'.
1440
1441For better control, use the options below.
1442
1443Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001444 --bindir=DIR user executables [EPREFIX/bin]
1445 --sbindir=DIR system admin executables [EPREFIX/sbin]
1446 --libexecdir=DIR program executables [EPREFIX/libexec]
1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001463_ACEOF
1464
1465 cat <<\_ACEOF
1466
1467System types:
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470_ACEOF
1471fi
1472
1473if test -n "$ac_init_help"; then
1474
1475 cat <<\_ACEOF
1476
1477Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001478 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001481 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001482 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001483 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001484
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001485 --enable-symlink-build use symlinks while building instead of hard links
1486 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001487 --enable-compression enable EXPERIMENTAL compression support
1488 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001489 --enable-elf-shlibs select ELF shared libraries
1490 --enable-bsd-shlibs select BSD shared libraries
1491 --enable-profile build profiling libraries
1492 --enable-checker build checker libraries
1493 --enable-jbd-debug enable journal debugging
1494 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001495 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001496 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001497 --disable-libblkid do not build private blkid library
Eric Sandeen7b8912e2012-11-27 12:21:56 -06001498 --enable-quota enable quota support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001499 --disable-debugfs disable support of debugfs program
1500 --disable-imager disable support of e2image program
1501 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001502 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001503 --enable-fsck build fsck wrapper program
1504 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001505 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001506 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001507 --disable-nls do not use Native Language Support
1508 --disable-rpath do not hardcode runtime library paths
1509
1510Optional Packages:
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001513 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001514 --with-cc no longer supported, use CC= instead
1515 --with-ccopts no longer supported, use CFLAGS= instead
1516 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001517 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1518 --with-gnu-ld assume the C compiler uses GNU ld default=no
1519 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1520 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1521 --with-included-gettext use the GNU gettext library included here
1522 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1523 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001524 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001525
1526Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001531 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001533 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001534 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001535 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001536
1537Use these variables to override the choices made by `configure' or to help
1538it to find libraries and programs with nonstandard names/locations.
1539
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001540Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001541_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001542ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001543fi
1544
1545if test "$ac_init_help" = "recursive"; then
1546 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001547 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001548 test -d "$ac_dir" ||
1549 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1550 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001551 ac_builddir=.
1552
Theodore Ts'oe1052142006-10-21 21:46:47 -04001553case "$ac_dir" in
1554.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001557 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001559 case $ac_top_builddir_sub in
1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562 esac ;;
1563esac
1564ac_abs_top_builddir=$ac_pwd
1565ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566# for backward compatibility:
1567ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001568
1569case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001570 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001571 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001572 ac_top_srcdir=$ac_top_builddir_sub
1573 ac_abs_top_srcdir=$ac_pwd ;;
1574 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001575 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001576 ac_top_srcdir=$srcdir
1577 ac_abs_top_srcdir=$srcdir ;;
1578 *) # Relative name.
1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580 ac_top_srcdir=$ac_top_build_prefix$srcdir
1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001582esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001583ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001584
Theodore Ts'oe1052142006-10-21 21:46:47 -04001585 cd "$ac_dir" || { ac_status=$?; continue; }
1586 # Check for guested configure.
1587 if test -f "$ac_srcdir/configure.gnu"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590 elif test -f "$ac_srcdir/configure"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001593 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001594 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001595 fi || ac_status=$?
1596 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001597 done
1598fi
1599
Theodore Ts'oe1052142006-10-21 21:46:47 -04001600test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001601if $ac_init_version; then
1602 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001603configure
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001604generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001605
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001606Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001607This configure script is free software; the Free Software Foundation
1608gives unlimited permission to copy, distribute and modify it.
1609_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001610 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001611fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001612
1613## ------------------------ ##
1614## Autoconf initialization. ##
1615## ------------------------ ##
1616
1617# ac_fn_c_try_compile LINENO
1618# --------------------------
1619# Try to compile conftest.$ac_ext, and return whether this succeeded.
1620ac_fn_c_try_compile ()
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext
1624 if { { ac_try="$ac_compile"
1625case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628esac
1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630$as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_compile") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1637 fi
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest.$ac_objext; then :
1643 ac_retval=0
1644else
1645 $as_echo "$as_me: failed program was:" >&5
1646sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=1
1649fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001651 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001652
1653} # ac_fn_c_try_compile
1654
1655# ac_fn_c_try_link LINENO
1656# -----------------------
1657# Try to link conftest.$ac_ext, and return whether this succeeded.
1658ac_fn_c_try_link ()
1659{
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext conftest$ac_exeext
1662 if { { ac_try="$ac_link"
1663case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_link") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest$ac_exeext && {
1681 test "$cross_compiling" = yes ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001682 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001683 }; then :
1684 ac_retval=0
1685else
1686 $as_echo "$as_me: failed program was:" >&5
1687sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690fi
1691 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693 # interfere with the next link command; also delete a directory that is
1694 # left behind by Apple's compiler. We do this before executing the actions.
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001697 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001698
1699} # ac_fn_c_try_link
1700
1701# ac_fn_c_try_cpp LINENO
1702# ----------------------
1703# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704ac_fn_c_try_cpp ()
1705{
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_cpp conftest.$ac_ext"
1708case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713$as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1720 fi
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001722 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 }; then :
1726 ac_retval=0
1727else
1728 $as_echo "$as_me: failed program was:" >&5
1729sed 's/^/| /' conftest.$ac_ext >&5
1730
1731 ac_retval=1
1732fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001734 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001735
1736} # ac_fn_c_try_cpp
1737
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001738# ac_fn_c_try_run LINENO
1739# ----------------------
1740# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1741# that executables *can* be run.
1742ac_fn_c_try_run ()
1743{
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_link"
1746case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>&5
1753 ac_status=$?
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1756 { { case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_try") 2>&5
1763 ac_status=$?
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; }; }; then :
1766 ac_retval=0
1767else
1768 $as_echo "$as_me: program exited with status $ac_status" >&5
1769 $as_echo "$as_me: failed program was:" >&5
1770sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=$ac_status
1773fi
1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001776 as_fn_set_status $ac_retval
1777
1778} # ac_fn_c_try_run
1779
1780# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1781# -------------------------------------------
1782# Tests whether TYPE exists after having included INCLUDES, setting cache
1783# variable VAR accordingly.
1784ac_fn_c_check_type ()
1785{
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001789if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001790 $as_echo_n "(cached) " >&6
1791else
1792 eval "$3=no"
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794/* end confdefs.h. */
1795$4
1796int
1797main ()
1798{
1799if (sizeof ($2))
1800 return 0;
1801 ;
1802 return 0;
1803}
1804_ACEOF
1805if ac_fn_c_try_compile "$LINENO"; then :
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h. */
1808$4
1809int
1810main ()
1811{
1812if (sizeof (($2)))
1813 return 0;
1814 ;
1815 return 0;
1816}
1817_ACEOF
1818if ac_fn_c_try_compile "$LINENO"; then :
1819
1820else
1821 eval "$3=yes"
1822fi
1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824fi
1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826fi
1827eval ac_res=\$$3
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001831
1832} # ac_fn_c_check_type
1833
1834# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1835# -------------------------------------------------------
1836# Tests whether HEADER exists and can be compiled using the include files in
1837# INCLUDES, setting the cache variable VAR accordingly.
1838ac_fn_c_check_header_compile ()
1839{
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001843if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001844 $as_echo_n "(cached) " >&6
1845else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h. */
1848$4
1849#include <$2>
1850_ACEOF
1851if ac_fn_c_try_compile "$LINENO"; then :
1852 eval "$3=yes"
1853else
1854 eval "$3=no"
1855fi
1856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857fi
1858eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001862
1863} # ac_fn_c_check_header_compile
1864
1865# ac_fn_c_check_func LINENO FUNC VAR
1866# ----------------------------------
1867# Tests whether FUNC exists, setting the cache variable VAR accordingly
1868ac_fn_c_check_func ()
1869{
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001873if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001874 $as_echo_n "(cached) " >&6
1875else
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h. */
1878/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1880#define $2 innocuous_$2
1881
1882/* System header to define __stub macros and hopefully few prototypes,
1883 which can conflict with char $2 (); below.
1884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1885 <limits.h> exists even on freestanding compilers. */
1886
1887#ifdef __STDC__
1888# include <limits.h>
1889#else
1890# include <assert.h>
1891#endif
1892
1893#undef $2
1894
1895/* Override any GCC internal prototype to avoid an error.
1896 Use char because int might match the return type of a GCC
1897 builtin and then its argument prototype would still apply. */
1898#ifdef __cplusplus
1899extern "C"
1900#endif
1901char $2 ();
1902/* The GNU C library defines this for functions which it implements
1903 to always fail with ENOSYS. Some functions are actually named
1904 something starting with __ and the normal name is an alias. */
1905#if defined __stub_$2 || defined __stub___$2
1906choke me
1907#endif
1908
1909int
1910main ()
1911{
1912return $2 ();
1913 ;
1914 return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_link "$LINENO"; then :
1918 eval "$3=yes"
1919else
1920 eval "$3=no"
1921fi
1922rm -f core conftest.err conftest.$ac_objext \
1923 conftest$ac_exeext conftest.$ac_ext
1924fi
1925eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001929
1930} # ac_fn_c_check_func
1931
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001932# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1933# -------------------------------------------------------
1934# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1935# the include files in INCLUDES and setting the cache variable VAR
1936# accordingly.
1937ac_fn_c_check_header_mongrel ()
1938{
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001940 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001943if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001944 $as_echo_n "(cached) " >&6
1945fi
1946eval ac_res=\$$3
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948$as_echo "$ac_res" >&6; }
1949else
1950 # Is the header compilable?
1951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1952$as_echo_n "checking $2 usability... " >&6; }
1953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954/* end confdefs.h. */
1955$4
1956#include <$2>
1957_ACEOF
1958if ac_fn_c_try_compile "$LINENO"; then :
1959 ac_header_compiler=yes
1960else
1961 ac_header_compiler=no
1962fi
1963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1965$as_echo "$ac_header_compiler" >&6; }
1966
1967# Is the header present?
1968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1969$as_echo_n "checking $2 presence... " >&6; }
1970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971/* end confdefs.h. */
1972#include <$2>
1973_ACEOF
1974if ac_fn_c_try_cpp "$LINENO"; then :
1975 ac_header_preproc=yes
1976else
1977 ac_header_preproc=no
1978fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001979rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1981$as_echo "$ac_header_preproc" >&6; }
1982
1983# So? What about this header?
1984case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1985 yes:no: )
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1987$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1989$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990 ;;
1991 no:yes:* )
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1993$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1995$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1997$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1999$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2001$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002 ;;
2003esac
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002006if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002007 $as_echo_n "(cached) " >&6
2008else
2009 eval "$3=\$ac_header_compiler"
2010fi
2011eval ac_res=\$$3
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013$as_echo "$ac_res" >&6; }
2014fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002016
2017} # ac_fn_c_check_header_mongrel
2018
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002019# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2020# --------------------------------------------
2021# Tries to find the compile-time value of EXPR in a program that includes
2022# INCLUDES, setting VAR accordingly. Returns whether the value could be
2023# computed
2024ac_fn_c_compute_int ()
2025{
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 if test "$cross_compiling" = yes; then
2028 # Depending upon the size, compute the lo and hi bounds.
2029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030/* end confdefs.h. */
2031$4
2032int
2033main ()
2034{
2035static int test_array [1 - 2 * !(($2) >= 0)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002036test_array [0] = 0;
2037return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002038
2039 ;
2040 return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044 ac_lo=0 ac_mid=0
2045 while :; do
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047/* end confdefs.h. */
2048$4
2049int
2050main ()
2051{
2052static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002053test_array [0] = 0;
2054return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002055
2056 ;
2057 return 0;
2058}
2059_ACEOF
2060if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_hi=$ac_mid; break
2062else
2063 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2064 if test $ac_lo -le $ac_mid; then
2065 ac_lo= ac_hi=
2066 break
2067 fi
2068 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2069fi
2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 done
2072else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h. */
2075$4
2076int
2077main ()
2078{
2079static int test_array [1 - 2 * !(($2) < 0)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002080test_array [0] = 0;
2081return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002082
2083 ;
2084 return 0;
2085}
2086_ACEOF
2087if ac_fn_c_try_compile "$LINENO"; then :
2088 ac_hi=-1 ac_mid=-1
2089 while :; do
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h. */
2092$4
2093int
2094main ()
2095{
2096static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002097test_array [0] = 0;
2098return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002099
2100 ;
2101 return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_compile "$LINENO"; then :
2105 ac_lo=$ac_mid; break
2106else
2107 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2108 if test $ac_mid -le $ac_hi; then
2109 ac_lo= ac_hi=
2110 break
2111 fi
2112 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2113fi
2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 done
2116else
2117 ac_lo= ac_hi=
2118fi
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120fi
2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122# Binary search between lo and hi bounds.
2123while test "x$ac_lo" != "x$ac_hi"; do
2124 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126/* end confdefs.h. */
2127$4
2128int
2129main ()
2130{
2131static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002132test_array [0] = 0;
2133return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002134
2135 ;
2136 return 0;
2137}
2138_ACEOF
2139if ac_fn_c_try_compile "$LINENO"; then :
2140 ac_hi=$ac_mid
2141else
2142 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2143fi
2144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145done
2146case $ac_lo in #((
2147?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2148'') ac_retval=1 ;;
2149esac
2150 else
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152/* end confdefs.h. */
2153$4
2154static long int longval () { return $2; }
2155static unsigned long int ulongval () { return $2; }
2156#include <stdio.h>
2157#include <stdlib.h>
2158int
2159main ()
2160{
2161
2162 FILE *f = fopen ("conftest.val", "w");
2163 if (! f)
2164 return 1;
2165 if (($2) < 0)
2166 {
2167 long int i = longval ();
2168 if (i != ($2))
2169 return 1;
2170 fprintf (f, "%ld", i);
2171 }
2172 else
2173 {
2174 unsigned long int i = ulongval ();
2175 if (i != ($2))
2176 return 1;
2177 fprintf (f, "%lu", i);
2178 }
2179 /* Do not output a trailing newline, as this causes \r\n confusion
2180 on some platforms. */
2181 return ferror (f) || fclose (f) != 0;
2182
2183 ;
2184 return 0;
2185}
2186_ACEOF
2187if ac_fn_c_try_run "$LINENO"; then :
2188 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2189else
2190 ac_retval=1
2191fi
2192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2193 conftest.$ac_objext conftest.beam conftest.$ac_ext
2194rm -f conftest.val
2195
2196 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002198 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002199
2200} # ac_fn_c_compute_int
2201
2202# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2203# ----------------------------------------------------
2204# Tries to find if the field MEMBER exists in type AGGR, after including
2205# INCLUDES, setting cache variable VAR accordingly.
2206ac_fn_c_check_member ()
2207{
2208 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2210$as_echo_n "checking for $2.$3... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002211if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002212 $as_echo_n "(cached) " >&6
2213else
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215/* end confdefs.h. */
2216$5
2217int
2218main ()
2219{
2220static $2 ac_aggr;
2221if (ac_aggr.$3)
2222return 0;
2223 ;
2224 return 0;
2225}
2226_ACEOF
2227if ac_fn_c_try_compile "$LINENO"; then :
2228 eval "$4=yes"
2229else
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231/* end confdefs.h. */
2232$5
2233int
2234main ()
2235{
2236static $2 ac_aggr;
2237if (sizeof ac_aggr.$3)
2238return 0;
2239 ;
2240 return 0;
2241}
2242_ACEOF
2243if ac_fn_c_try_compile "$LINENO"; then :
2244 eval "$4=yes"
2245else
2246 eval "$4=no"
2247fi
2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249fi
2250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251fi
2252eval ac_res=\$$4
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002256
2257} # ac_fn_c_check_member
2258
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002259# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2260# ---------------------------------------------
2261# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2262# accordingly.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002263ac_fn_c_check_decl ()
2264{
2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002266 as_decl_name=`echo $2|sed 's/ *(.*//'`
2267 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2269$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2270if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002271 $as_echo_n "(cached) " >&6
2272else
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274/* end confdefs.h. */
2275$4
2276int
2277main ()
2278{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002279#ifndef $as_decl_name
2280#ifdef __cplusplus
2281 (void) $as_decl_use;
2282#else
2283 (void) $as_decl_name;
2284#endif
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002285#endif
2286
2287 ;
2288 return 0;
2289}
2290_ACEOF
2291if ac_fn_c_try_compile "$LINENO"; then :
2292 eval "$3=yes"
2293else
2294 eval "$3=no"
2295fi
2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297fi
2298eval ac_res=\$$3
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002302
2303} # ac_fn_c_check_decl
Theodore Ts'oe1052142006-10-21 21:46:47 -04002304cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002305This file contains any messages produced by compilers while
2306running configure, to aid debugging if configure makes a mistake.
2307
2308It was created by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002309generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002310
2311 $ $0 $@
2312
2313_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002314exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002315{
2316cat <<_ASUNAME
2317## --------- ##
2318## Platform. ##
2319## --------- ##
2320
2321hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2322uname -m = `(uname -m) 2>/dev/null || echo unknown`
2323uname -r = `(uname -r) 2>/dev/null || echo unknown`
2324uname -s = `(uname -s) 2>/dev/null || echo unknown`
2325uname -v = `(uname -v) 2>/dev/null || echo unknown`
2326
2327/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2328/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2329
2330/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2331/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2332/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002333/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002334/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2335/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2336/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2337
2338_ASUNAME
2339
2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341for as_dir in $PATH
2342do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002345 $as_echo "PATH: $as_dir"
2346 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002347IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002348
2349} >&5
2350
2351cat >&5 <<_ACEOF
2352
2353
2354## ----------- ##
2355## Core tests. ##
2356## ----------- ##
2357
2358_ACEOF
2359
2360
2361# Keep a trace of the command line.
2362# Strip out --no-create and --no-recursion so they do not pile up.
2363# Strip out --silent because we don't want to record it for future runs.
2364# Also quote any args containing shell meta-characters.
2365# Make two passes to allow for proper duplicate-argument suppression.
2366ac_configure_args=
2367ac_configure_args0=
2368ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002369ac_must_keep_next=false
2370for ac_pass in 1 2
2371do
2372 for ac_arg
2373 do
2374 case $ac_arg in
2375 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2377 | -silent | --silent | --silen | --sile | --sil)
2378 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002379 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002380 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002381 esac
2382 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002383 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002384 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002385 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002386 if test $ac_must_keep_next = true; then
2387 ac_must_keep_next=false # Got value, back to normal.
2388 else
2389 case $ac_arg in
2390 *=* | --config-cache | -C | -disable-* | --disable-* \
2391 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2392 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2393 | -with-* | --with-* | -without-* | --without-* | --x)
2394 case "$ac_configure_args0 " in
2395 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2396 esac
2397 ;;
2398 -* ) ac_must_keep_next=true ;;
2399 esac
2400 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002401 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002402 ;;
2403 esac
2404 done
2405done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002406{ ac_configure_args0=; unset ac_configure_args0;}
2407{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002408
2409# When interrupted or exit'd, cleanup temporary files, and complete
2410# config.log. We remove comments because anyway the quotes in there
2411# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002412# WARNING: Use '\'' to represent an apostrophe within the trap.
2413# 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 -05002414trap 'exit_status=$?
2415 # Save into config.log some information that might help in debugging.
2416 {
2417 echo
2418
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002419 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002420## Cache variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002421## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002422 echo
2423 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002424(
2425 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2426 eval ac_val=\$$ac_var
2427 case $ac_val in #(
2428 *${as_nl}*)
2429 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002430 *_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 +01002431$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002432 esac
2433 case $ac_var in #(
2434 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002435 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002436 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002437 esac ;;
2438 esac
2439 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002440 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002441 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2442 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002443 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002444 "s/'\''/'\''\\\\'\'''\''/g;
2445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2446 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002447 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002448 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002449 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002450 esac |
2451 sort
2452)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002453 echo
2454
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002455 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002456## Output variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002457## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002458 echo
2459 for ac_var in $ac_subst_vars
2460 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002461 eval ac_val=\$$ac_var
2462 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002463 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002464 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002465 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002466 done | sort
2467 echo
2468
2469 if test -n "$ac_subst_files"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002470 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002471## File substitutions. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002472## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002473 echo
2474 for ac_var in $ac_subst_files
2475 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002476 eval ac_val=\$$ac_var
2477 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002478 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002479 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002480 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002481 done | sort
2482 echo
2483 fi
2484
2485 if test -s confdefs.h; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002486 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002487## confdefs.h. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002488## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002489 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002490 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002491 echo
2492 fi
2493 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002494 $as_echo "$as_me: caught signal $ac_signal"
2495 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002496 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002497 rm -f core *.core core.conftest.* &&
2498 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002499 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002500' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002501for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002502 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002503done
2504ac_signal=0
2505
2506# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002507rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002508
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002509$as_echo "/* confdefs.h */" > confdefs.h
2510
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002511# Predefined preprocessor variables.
2512
2513cat >>confdefs.h <<_ACEOF
2514#define PACKAGE_NAME "$PACKAGE_NAME"
2515_ACEOF
2516
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002517cat >>confdefs.h <<_ACEOF
2518#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2519_ACEOF
2520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002521cat >>confdefs.h <<_ACEOF
2522#define PACKAGE_VERSION "$PACKAGE_VERSION"
2523_ACEOF
2524
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002525cat >>confdefs.h <<_ACEOF
2526#define PACKAGE_STRING "$PACKAGE_STRING"
2527_ACEOF
2528
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002529cat >>confdefs.h <<_ACEOF
2530#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2531_ACEOF
2532
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002533cat >>confdefs.h <<_ACEOF
2534#define PACKAGE_URL "$PACKAGE_URL"
2535_ACEOF
2536
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002537
2538# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002539# Prefer an explicitly selected file to automatically selected ones.
2540ac_site_file1=NONE
2541ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002542if test -n "$CONFIG_SITE"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002543 # We do not want a PATH search for config.site.
2544 case $CONFIG_SITE in #((
2545 -*) ac_site_file1=./$CONFIG_SITE;;
2546 */*) ac_site_file1=$CONFIG_SITE;;
2547 *) ac_site_file1=./$CONFIG_SITE;;
2548 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002549elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002550 ac_site_file1=$prefix/share/config.site
2551 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002552else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002553 ac_site_file1=$ac_default_prefix/share/config.site
2554 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002555fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002556for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002557do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002558 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002559 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002560 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002561$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002562 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002563 . "$ac_site_file" \
2564 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2566as_fn_error $? "failed to load site script $ac_site_file
2567See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002568 fi
2569done
2570
2571if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002572 # Some versions of bash will fail to source /dev/null (special files
2573 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2574 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002575 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002576$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002577 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002578 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2579 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002580 esac
2581 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002582else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002584$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002585 >$cache_file
2586fi
2587
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002588as_fn_append ac_header_list " stdlib.h"
2589as_fn_append ac_header_list " unistd.h"
2590as_fn_append ac_header_list " sys/param.h"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002591# Check that the precious variables saved in the cache have kept the same
2592# value.
2593ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002594for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002595 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002597 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002599 case $ac_old_set,$ac_new_set in
2600 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002601 { $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 +01002602$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 -05002603 ac_cache_corrupted=: ;;
2604 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002605 { $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 +01002606$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002607 ac_cache_corrupted=: ;;
2608 ,);;
2609 *)
2610 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002611 # differences in whitespace do not lead to failure.
2612 ac_old_val_w=`echo x $ac_old_val`
2613 ac_new_val_w=`echo x $ac_new_val`
2614 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002615 { $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 +01002616$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617 ac_cache_corrupted=:
2618 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002619 { $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 +01002620$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621 eval $ac_var=\$ac_old_val
2622 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002623 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002624$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002625 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002626$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002627 fi;;
2628 esac
2629 # Pass precious variables to config.status.
2630 if test "$ac_new_set" = set; then
2631 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002632 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002633 *) ac_arg=$ac_var=$ac_new_val ;;
2634 esac
2635 case " $ac_configure_args " in
2636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002637 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002638 esac
2639 fi
2640done
2641if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002644 { $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 +01002645$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002646 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002647fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002648## -------------------- ##
2649## Main body of script. ##
2650## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002651
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002652ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002653ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002657
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002658
2659
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002660ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002661for ac_dir in config "$srcdir"/config; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002662 if test -f "$ac_dir/install-sh"; then
2663 ac_aux_dir=$ac_dir
2664 ac_install_sh="$ac_aux_dir/install-sh -c"
2665 break
2666 elif test -f "$ac_dir/install.sh"; then
2667 ac_aux_dir=$ac_dir
2668 ac_install_sh="$ac_aux_dir/install.sh -c"
2669 break
2670 elif test -f "$ac_dir/shtool"; then
2671 ac_aux_dir=$ac_dir
2672 ac_install_sh="$ac_aux_dir/shtool install -c"
2673 break
2674 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002675done
2676if test -z "$ac_aux_dir"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002677 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 +00002678fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002679
2680# These three variables are undocumented and unsupported,
2681# and are intended to be withdrawn in a future Autoconf release.
2682# They can cause serious problems if a builder's source tree is in a directory
2683# whose full name contains unusual characters.
2684ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2685ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2686ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2687
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002688
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002689ac_config_headers="$ac_config_headers lib/config.h"
2690
2691
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002692MCONFIG=./MCONFIG
2693
Theodore Ts'o74becf31997-04-26 14:37:06 +00002694BINARY_TYPE=bin
2695E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2696 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2697DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2698 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002699E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002700MONTH=`echo $DATE | awk -F- '{print $2}'`
2701YEAR=`echo $DATE | awk -F- '{print $3}'`
2702
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002703if expr $YEAR ">" 1900 > /dev/null ; then
2704 E2FSPROGS_YEAR=$YEAR
2705elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002706 E2FSPROGS_YEAR=19$YEAR
2707else
2708 E2FSPROGS_YEAR=20$YEAR
2709fi
2710
2711case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002712Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2713Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2714Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2715Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2716May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2717Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2718Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2719Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2720Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2721Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2722Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2723Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002724*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002725$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002726esac
2727
Andreas Dilger927566a2006-11-12 19:41:25 -05002728base_ver=`echo $E2FSPROGS_VERSION | \
2729 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002730
2731date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2732
2733case $E2FSPROGS_VERSION in
2734*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002735 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002736 ;;
2737*)
2738 E2FSPROGS_PKGVER="$base_ver"
2739 ;;
2740esac
2741
2742unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002743{ $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 +01002744$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002746$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002747
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002748
2749
2750
Andreas Dilger927566a2006-11-12 19:41:25 -05002751
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002752# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002753$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002754 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002755
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002757$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002758if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002759 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002760else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002761 ac_build_alias=$build_alias
2762test "x$ac_build_alias" = x &&
2763 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2764test "x$ac_build_alias" = x &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002765 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002766ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002767 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002768
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002769fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002771$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002772case $ac_cv_build in
2773*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002774*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002775esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002776build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002777ac_save_IFS=$IFS; IFS='-'
2778set x $ac_cv_build
2779shift
2780build_cpu=$1
2781build_vendor=$2
2782shift; shift
2783# Remember, the first character of IFS is used to create $*,
2784# except with old shells:
2785build_os=$*
2786IFS=$ac_save_IFS
2787case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002788
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002789
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002791$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002792if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002793 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002794else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002795 if test "x$host_alias" = x; then
2796 ac_cv_host=$ac_cv_build
2797else
2798 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002799 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002800fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002801
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002802fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002804$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002805case $ac_cv_host in
2806*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002807*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002808esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002809host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002810ac_save_IFS=$IFS; IFS='-'
2811set x $ac_cv_host
2812shift
2813host_cpu=$1
2814host_vendor=$2
2815shift; shift
2816# Remember, the first character of IFS is used to create $*,
2817# except with old shells:
2818host_os=$*
2819IFS=$ac_save_IFS
2820case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002821
2822
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002823DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002824ac_ext=c
2825ac_cpp='$CPP $CPPFLAGS'
2826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829if test -n "$ac_tool_prefix"; then
2830 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2831set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002833$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002834if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002835 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002836else
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002845 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002847 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002849 break 2
2850 fi
2851done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002852 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002853IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002854
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002855fi
2856fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002857CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002858if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002860$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002861else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002863$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002864fi
2865
Theodore Ts'oe1052142006-10-21 21:46:47 -04002866
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002867fi
2868if test -z "$ac_cv_prog_CC"; then
2869 ac_ct_CC=$CC
2870 # Extract the first word of "gcc", so it can be a program name with args.
2871set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002873$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002874if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002875 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002876else
2877 if test -n "$ac_ct_CC"; then
2878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2879else
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002885 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002887 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002889 break 2
2890 fi
2891done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002892 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002893IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002894
2895fi
2896fi
2897ac_ct_CC=$ac_cv_prog_ac_ct_CC
2898if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002900$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002901else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002903$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002904fi
2905
Theodore Ts'oe1052142006-10-21 21:46:47 -04002906 if test "x$ac_ct_CC" = x; then
2907 CC=""
2908 else
2909 case $cross_compiling:$ac_tool_warned in
2910yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002911{ $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 +01002912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002913ac_tool_warned=yes ;;
2914esac
2915 CC=$ac_ct_CC
2916 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002917else
2918 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002919fi
2920
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002921if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002922 if test -n "$ac_tool_prefix"; then
2923 # 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 -05002924set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002926$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002927if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002928 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002929else
2930 if test -n "$CC"; then
2931 ac_cv_prog_CC="$CC" # Let the user override the test.
2932else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934for as_dir in $PATH
2935do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002938 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002940 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002942 break 2
2943 fi
2944done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002945 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002946IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002947
2948fi
2949fi
2950CC=$ac_cv_prog_CC
2951if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002953$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002954else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002956$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002957fi
2958
Theodore Ts'oe1052142006-10-21 21:46:47 -04002959
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002960 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002961fi
2962if test -z "$CC"; then
2963 # Extract the first word of "cc", so it can be a program name with args.
2964set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002966$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002967if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002968 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002969else
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2972else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002973 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975for as_dir in $PATH
2976do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002979 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002981 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2982 ac_prog_rejected=yes
2983 continue
2984 fi
2985 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002987 break 2
2988 fi
2989done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002990 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002991IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002992
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002993if test $ac_prog_rejected = yes; then
2994 # We found a bogon in the path, so make sure we never use it.
2995 set dummy $ac_cv_prog_CC
2996 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002997 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002998 # We chose a different compiler from the bogus one.
2999 # However, it has the same basename, so the bogon will be chosen
3000 # first if we set CC to just the basename; use the full file name.
3001 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003002 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003003 fi
3004fi
3005fi
3006fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003007CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003008if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003010$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003011else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003013$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003014fi
3015
Theodore Ts'oe1052142006-10-21 21:46:47 -04003016
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003017fi
3018if test -z "$CC"; then
3019 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003020 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003021 do
3022 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3023set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003025$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003026if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003027 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003028else
3029 if test -n "$CC"; then
3030 ac_cv_prog_CC="$CC" # Let the user override the test.
3031else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003037 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003039 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003041 break 2
3042 fi
3043done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003044 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003045IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003046
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003047fi
3048fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003049CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003050if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003052$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003053else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003055$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003056fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003057
Theodore Ts'oe1052142006-10-21 21:46:47 -04003058
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003059 test -n "$CC" && break
3060 done
3061fi
3062if test -z "$CC"; then
3063 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003064 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003065do
3066 # Extract the first word of "$ac_prog", so it can be a program name with args.
3067set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003069$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003070if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003071 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003072else
3073 if test -n "$ac_ct_CC"; then
3074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3075else
3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077for as_dir in $PATH
3078do
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003081 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003083 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003085 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003086 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003087done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003088 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003089IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003090
3091fi
3092fi
3093ac_ct_CC=$ac_cv_prog_ac_ct_CC
3094if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003096$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003097else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003099$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003100fi
3101
Theodore Ts'oe1052142006-10-21 21:46:47 -04003102
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003103 test -n "$ac_ct_CC" && break
3104done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003105
Theodore Ts'oe1052142006-10-21 21:46:47 -04003106 if test "x$ac_ct_CC" = x; then
3107 CC=""
3108 else
3109 case $cross_compiling:$ac_tool_warned in
3110yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003111{ $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 +01003112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003113ac_tool_warned=yes ;;
3114esac
3115 CC=$ac_ct_CC
3116 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003117fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003118
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003119fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003120
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003121
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003122test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003124as_fn_error $? "no acceptable C compiler found in \$PATH
3125See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003126
3127# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003128$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003129set X $ac_compile
3130ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003131for ac_option in --version -v -V -qversion; do
3132 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003133case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138$as_echo "$ac_try_echo"; } >&5
3139 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003140 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003141 if test -s conftest.err; then
3142 sed '10a\
3143... rest of stderr output deleted ...
3144 10q' conftest.err >conftest.er1
3145 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003146 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003147 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }
3150done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003151
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003153/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003154
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003155int
3156main ()
3157{
3158
3159 ;
3160 return 0;
3161}
3162_ACEOF
3163ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003164ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003165# Try to create an executable without -o first, disregard a.out.
3166# It will help us diagnose broken compilers, and finding out an intuition
3167# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3169$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003170ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3171
3172# The possible output files:
3173ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3174
Theodore Ts'oe1052142006-10-21 21:46:47 -04003175ac_rmfiles=
3176for ac_file in $ac_files
3177do
3178 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003180 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3181 esac
3182done
3183rm -f $ac_rmfiles
3184
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003185if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003186case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003192 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003193 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003196 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3197# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3198# in a Makefile. We should not override ac_cv_exeext if it was cached,
3199# so that the user can short-circuit this test for compilers unknown to
3200# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003201for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003202do
3203 test -f "$ac_file" || continue
3204 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003206 ;;
3207 [ab].out )
3208 # We found the default executable, but exeext='' is most
3209 # certainly right.
3210 break;;
3211 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003212 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003213 then :; else
3214 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3215 fi
3216 # We set ac_cv_exeext here because the later test for it is not
3217 # safe: cross compilers may not add the suffix if given an `-o'
3218 # argument, so we may need to know it at that point already.
3219 # Even if this section looks crufty: it has the advantage of
3220 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003221 break;;
3222 * )
3223 break;;
3224 esac
3225done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003226test "$ac_cv_exeext" = no && ac_cv_exeext=
3227
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003228else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003229 ac_file=''
3230fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003231if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233$as_echo "no" >&6; }
3234$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003235sed 's/^/| /' conftest.$ac_ext >&5
3236
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003237{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003239as_fn_error 77 "C compiler cannot create executables
3240See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003241else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3243$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003244fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3246$as_echo_n "checking for C compiler default output file name... " >&6; }
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3248$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003249ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003250
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003251rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003252ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003254$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003255if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003256case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003262 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003263 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3267# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3268# work properly (i.e., refer to `conftest.exe'), while it won't with
3269# `rm'.
3270for ac_file in conftest.exe conftest conftest.*; do
3271 test -f "$ac_file" || continue
3272 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003275 break;;
3276 * ) break;;
3277 esac
3278done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003279else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003282as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3283See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003284fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003285rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003287$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003288
3289rm -f conftest.$ac_ext
3290EXEEXT=$ac_cv_exeext
3291ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h. */
3294#include <stdio.h>
3295int
3296main ()
3297{
3298FILE *f = fopen ("conftest.out", "w");
3299 return ferror (f) || fclose (f) != 0;
3300
3301 ;
3302 return 0;
3303}
3304_ACEOF
3305ac_clean_files="$ac_clean_files conftest.out"
3306# Check that the compiler produces executables we can run. If not, either
3307# the compiler is broken, or we cross compile.
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3309$as_echo_n "checking whether we are cross compiling... " >&6; }
3310if test "$cross_compiling" != yes; then
3311 { { ac_try="$ac_link"
3312case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315esac
3316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317$as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_link") 2>&5
3319 ac_status=$?
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }
3322 if { ac_try='./conftest$ac_cv_exeext'
3323 { { case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326esac
3327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328$as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_try") 2>&5
3330 ac_status=$?
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; }; then
3333 cross_compiling=no
3334 else
3335 if test "$cross_compiling" = maybe; then
3336 cross_compiling=yes
3337 else
3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003340as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003341If you meant to cross compile, use \`--host'.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003342See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003343 fi
3344 fi
3345fi
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3347$as_echo "$cross_compiling" >&6; }
3348
3349rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3350ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003352$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003353if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003354 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003355else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003357/* end confdefs.h. */
3358
3359int
3360main ()
3361{
3362
3363 ;
3364 return 0;
3365}
3366_ACEOF
3367rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003368if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003369case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003375 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003376 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003379 for ac_file in conftest.o conftest.obj conftest.*; do
3380 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003381 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3384 break;;
3385 esac
3386done
3387else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003388 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003389sed 's/^/| /' conftest.$ac_ext >&5
3390
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003391{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003393as_fn_error $? "cannot compute suffix of object files: cannot compile
3394See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003395fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003396rm -f conftest.$ac_cv_objext conftest.$ac_ext
3397fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003399$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003400OBJEXT=$ac_cv_objext
3401ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003402{ $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 +01003403$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003404if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003405 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003406else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003408/* end confdefs.h. */
3409
3410int
3411main ()
3412{
3413#ifndef __GNUC__
3414 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003415#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003416
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003417 ;
3418 return 0;
3419}
3420_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003421if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003422 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003423else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003424 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003425fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003427ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003428
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003429fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003431$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3432if test $ac_compiler_gnu = yes; then
3433 GCC=yes
3434else
3435 GCC=
3436fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003437ac_test_CFLAGS=${CFLAGS+set}
3438ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003440$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003441if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003442 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003443else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003444 ac_save_c_werror_flag=$ac_c_werror_flag
3445 ac_c_werror_flag=yes
3446 ac_cv_prog_cc_g=no
3447 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003449/* end confdefs.h. */
3450
3451int
3452main ()
3453{
3454
3455 ;
3456 return 0;
3457}
3458_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003459if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003460 ac_cv_prog_cc_g=yes
3461else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003462 CFLAGS=""
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003464/* end confdefs.h. */
3465
3466int
3467main ()
3468{
3469
3470 ;
3471 return 0;
3472}
3473_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003474if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003475
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003476else
3477 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003478 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003480/* end confdefs.h. */
3481
3482int
3483main ()
3484{
3485
3486 ;
3487 return 0;
3488}
3489_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003490if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003491 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003492fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003494fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_c_werror_flag=$ac_save_c_werror_flag
3499fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003501$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003502if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003503 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003504elif test $ac_cv_prog_cc_g = yes; then
3505 if test "$GCC" = yes; then
3506 CFLAGS="-g -O2"
3507 else
3508 CFLAGS="-g"
3509 fi
3510else
3511 if test "$GCC" = yes; then
3512 CFLAGS="-O2"
3513 else
3514 CFLAGS=
3515 fi
3516fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003518$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003519if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003520 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003521else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003522 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003523ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003525/* end confdefs.h. */
3526#include <stdarg.h>
3527#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003528struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003529/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3530struct buf { int x; };
3531FILE * (*rcsopen) (struct buf *, struct stat *, int);
3532static char *e (p, i)
3533 char **p;
3534 int i;
3535{
3536 return p[i];
3537}
3538static char *f (char * (*g) (char **, int), char **p, ...)
3539{
3540 char *s;
3541 va_list v;
3542 va_start (v,p);
3543 s = g (p, va_arg (v,int));
3544 va_end (v);
3545 return s;
3546}
3547
3548/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3549 function prototypes and stuff, but not '\xHH' hex character constants.
3550 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003551 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003552 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3553 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003554 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003555int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3556
Theodore Ts'oe1052142006-10-21 21:46:47 -04003557/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3558 inside strings and character constants. */
3559#define FOO(x) 'x'
3560int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3561
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003562int test (int i, double x);
3563struct s1 {int (*f) (int a);};
3564struct s2 {int (*f) (double a);};
3565int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3566int argc;
3567char **argv;
3568int
3569main ()
3570{
3571return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3572 ;
3573 return 0;
3574}
3575_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003576for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3577 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003578do
3579 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003580 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003581 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003582fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003583rm -f core conftest.err conftest.$ac_objext
3584 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003585done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003586rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003587CC=$ac_save_CC
3588
3589fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003590# AC_CACHE_VAL
3591case "x$ac_cv_prog_cc_c89" in
3592 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003594$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003595 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003597$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003598 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003599 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003601$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003602esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003603if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003604
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003605fi
3606
3607ac_ext=c
3608ac_cpp='$CPP $CPPFLAGS'
3609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612
3613
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3615$as_echo_n "checking for dlopen in -ldl... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003616if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003617 $as_echo_n "(cached) " >&6
3618else
3619 ac_check_lib_save_LIBS=$LIBS
3620LIBS="-ldl $LIBS"
3621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622/* end confdefs.h. */
3623
3624/* Override any GCC internal prototype to avoid an error.
3625 Use char because int might match the return type of a GCC
3626 builtin and then its argument prototype would still apply. */
3627#ifdef __cplusplus
3628extern "C"
3629#endif
3630char dlopen ();
3631int
3632main ()
3633{
3634return dlopen ();
3635 ;
3636 return 0;
3637}
3638_ACEOF
3639if ac_fn_c_try_link "$LINENO"; then :
3640 ac_cv_lib_dl_dlopen=yes
3641else
3642 ac_cv_lib_dl_dlopen=no
3643fi
3644rm -f core conftest.err conftest.$ac_objext \
3645 conftest$ac_exeext conftest.$ac_ext
3646LIBS=$ac_check_lib_save_LIBS
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3649$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003650if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003651 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003652
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003653$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3654
3655fi
3656
3657
3658WITH_DIET_LIBC=
3659
3660# Check whether --with-diet-libc was given.
3661if test "${with_diet_libc+set}" = set; then :
3662 withval=$with_diet_libc; CC="diet cc -nostdinc"
3663WITH_DIET_LIBC=yes
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3665$as_echo "CC=$CC" >&6; }
3666fi
3667
3668# Check whether --with-cc was given.
3669if test "${with_cc+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003670 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003671fi
3672
3673
3674# Check whether --with-ccopts was given.
3675if test "${with_ccopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003676 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003677fi
3678
3679
3680# Check whether --with-ldopts was given.
3681if test "${with_ldopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003682 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003683fi
3684
3685ac_ext=c
3686ac_cpp='$CPP $CPPFLAGS'
3687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690if test -n "$ac_tool_prefix"; then
3691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3692set dummy ${ac_tool_prefix}gcc; ac_word=$2
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003695if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003696 $as_echo_n "(cached) " >&6
3697else
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700else
3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH
3703do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003708 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3711 fi
3712done
3713 done
3714IFS=$as_save_IFS
3715
3716fi
3717fi
3718CC=$ac_cv_prog_CC
3719if test -n "$CC"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721$as_echo "$CC" >&6; }
3722else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724$as_echo "no" >&6; }
3725fi
3726
3727
3728fi
3729if test -z "$ac_cv_prog_CC"; then
3730 ac_ct_CC=$CC
3731 # Extract the first word of "gcc", so it can be a program name with args.
3732set dummy gcc; ac_word=$2
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003735if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003736 $as_echo_n "(cached) " >&6
3737else
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3740else
3741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742for as_dir in $PATH
3743do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003748 ac_cv_prog_ac_ct_CC="gcc"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3751 fi
3752done
3753 done
3754IFS=$as_save_IFS
3755
3756fi
3757fi
3758ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761$as_echo "$ac_ct_CC" >&6; }
3762else
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764$as_echo "no" >&6; }
3765fi
3766
3767 if test "x$ac_ct_CC" = x; then
3768 CC=""
3769 else
3770 case $cross_compiling:$ac_tool_warned in
3771yes:)
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774ac_tool_warned=yes ;;
3775esac
3776 CC=$ac_ct_CC
3777 fi
3778else
3779 CC="$ac_cv_prog_CC"
3780fi
3781
3782if test -z "$CC"; then
3783 if test -n "$ac_tool_prefix"; then
3784 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3785set dummy ${ac_tool_prefix}cc; ac_word=$2
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003788if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003789 $as_echo_n "(cached) " >&6
3790else
3791 if test -n "$CC"; then
3792 ac_cv_prog_CC="$CC" # Let the user override the test.
3793else
3794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795for as_dir in $PATH
3796do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003801 ac_cv_prog_CC="${ac_tool_prefix}cc"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 break 2
3804 fi
3805done
3806 done
3807IFS=$as_save_IFS
3808
3809fi
3810fi
3811CC=$ac_cv_prog_CC
3812if test -n "$CC"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3814$as_echo "$CC" >&6; }
3815else
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817$as_echo "no" >&6; }
3818fi
3819
3820
3821 fi
3822fi
3823if test -z "$CC"; then
3824 # Extract the first word of "cc", so it can be a program name with args.
3825set dummy cc; ac_word=$2
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003828if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003829 $as_echo_n "(cached) " >&6
3830else
3831 if test -n "$CC"; then
3832 ac_cv_prog_CC="$CC" # Let the user override the test.
3833else
3834 ac_prog_rejected=no
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003842 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3843 ac_prog_rejected=yes
3844 continue
3845 fi
3846 ac_cv_prog_CC="cc"
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 break 2
3849 fi
3850done
3851 done
3852IFS=$as_save_IFS
3853
3854if test $ac_prog_rejected = yes; then
3855 # We found a bogon in the path, so make sure we never use it.
3856 set dummy $ac_cv_prog_CC
3857 shift
3858 if test $# != 0; then
3859 # We chose a different compiler from the bogus one.
3860 # However, it has the same basename, so the bogon will be chosen
3861 # first if we set CC to just the basename; use the full file name.
3862 shift
3863 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3864 fi
3865fi
3866fi
3867fi
3868CC=$ac_cv_prog_CC
3869if test -n "$CC"; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3871$as_echo "$CC" >&6; }
3872else
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874$as_echo "no" >&6; }
3875fi
3876
3877
3878fi
3879if test -z "$CC"; then
3880 if test -n "$ac_tool_prefix"; then
3881 for ac_prog in cl.exe
3882 do
3883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3884set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003887if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003888 $as_echo_n "(cached) " >&6
3889else
3890 if test -n "$CC"; then
3891 ac_cv_prog_CC="$CC" # Let the user override the test.
3892else
3893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894for as_dir in $PATH
3895do
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003900 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 break 2
3903 fi
3904done
3905 done
3906IFS=$as_save_IFS
3907
3908fi
3909fi
3910CC=$ac_cv_prog_CC
3911if test -n "$CC"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3913$as_echo "$CC" >&6; }
3914else
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916$as_echo "no" >&6; }
3917fi
3918
3919
3920 test -n "$CC" && break
3921 done
3922fi
3923if test -z "$CC"; then
3924 ac_ct_CC=$CC
3925 for ac_prog in cl.exe
3926do
3927 # Extract the first word of "$ac_prog", so it can be a program name with args.
3928set dummy $ac_prog; ac_word=$2
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003931if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003932 $as_echo_n "(cached) " >&6
3933else
3934 if test -n "$ac_ct_CC"; then
3935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3936else
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
3939do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003944 ac_cv_prog_ac_ct_CC="$ac_prog"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948done
3949 done
3950IFS=$as_save_IFS
3951
3952fi
3953fi
3954ac_ct_CC=$ac_cv_prog_ac_ct_CC
3955if test -n "$ac_ct_CC"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3957$as_echo "$ac_ct_CC" >&6; }
3958else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960$as_echo "no" >&6; }
3961fi
3962
3963
3964 test -n "$ac_ct_CC" && break
3965done
3966
3967 if test "x$ac_ct_CC" = x; then
3968 CC=""
3969 else
3970 case $cross_compiling:$ac_tool_warned in
3971yes:)
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974ac_tool_warned=yes ;;
3975esac
3976 CC=$ac_ct_CC
3977 fi
3978fi
3979
3980fi
3981
3982
3983test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003985as_fn_error $? "no acceptable C compiler found in \$PATH
3986See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003987
3988# Provide some information about the compiler.
3989$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3990set X $ac_compile
3991ac_compiler=$2
3992for ac_option in --version -v -V -qversion; do
3993 { { ac_try="$ac_compiler $ac_option >&5"
3994case "(($ac_try" in
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3997esac
3998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999$as_echo "$ac_try_echo"; } >&5
4000 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4001 ac_status=$?
4002 if test -s conftest.err; then
4003 sed '10a\
4004... rest of stderr output deleted ...
4005 10q' conftest.err >conftest.er1
4006 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004007 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004008 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }
4011done
4012
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4014$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004015if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004016 $as_echo_n "(cached) " >&6
4017else
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019/* end confdefs.h. */
4020
4021int
4022main ()
4023{
4024#ifndef __GNUC__
4025 choke me
4026#endif
4027
4028 ;
4029 return 0;
4030}
4031_ACEOF
4032if ac_fn_c_try_compile "$LINENO"; then :
4033 ac_compiler_gnu=yes
4034else
4035 ac_compiler_gnu=no
4036fi
4037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038ac_cv_c_compiler_gnu=$ac_compiler_gnu
4039
4040fi
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4042$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4043if test $ac_compiler_gnu = yes; then
4044 GCC=yes
4045else
4046 GCC=
4047fi
4048ac_test_CFLAGS=${CFLAGS+set}
4049ac_save_CFLAGS=$CFLAGS
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4051$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004052if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004053 $as_echo_n "(cached) " >&6
4054else
4055 ac_save_c_werror_flag=$ac_c_werror_flag
4056 ac_c_werror_flag=yes
4057 ac_cv_prog_cc_g=no
4058 CFLAGS="-g"
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060/* end confdefs.h. */
4061
4062int
4063main ()
4064{
4065
4066 ;
4067 return 0;
4068}
4069_ACEOF
4070if ac_fn_c_try_compile "$LINENO"; then :
4071 ac_cv_prog_cc_g=yes
4072else
4073 CFLAGS=""
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075/* end confdefs.h. */
4076
4077int
4078main ()
4079{
4080
4081 ;
4082 return 0;
4083}
4084_ACEOF
4085if ac_fn_c_try_compile "$LINENO"; then :
4086
4087else
4088 ac_c_werror_flag=$ac_save_c_werror_flag
4089 CFLAGS="-g"
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091/* end confdefs.h. */
4092
4093int
4094main ()
4095{
4096
4097 ;
4098 return 0;
4099}
4100_ACEOF
4101if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_cv_prog_cc_g=yes
4103fi
4104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105fi
4106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107fi
4108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 ac_c_werror_flag=$ac_save_c_werror_flag
4110fi
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4112$as_echo "$ac_cv_prog_cc_g" >&6; }
4113if test "$ac_test_CFLAGS" = set; then
4114 CFLAGS=$ac_save_CFLAGS
4115elif test $ac_cv_prog_cc_g = yes; then
4116 if test "$GCC" = yes; then
4117 CFLAGS="-g -O2"
4118 else
4119 CFLAGS="-g"
4120 fi
4121else
4122 if test "$GCC" = yes; then
4123 CFLAGS="-O2"
4124 else
4125 CFLAGS=
4126 fi
4127fi
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4129$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004130if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004131 $as_echo_n "(cached) " >&6
4132else
4133 ac_cv_prog_cc_c89=no
4134ac_save_CC=$CC
4135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136/* end confdefs.h. */
4137#include <stdarg.h>
4138#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004139struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004140/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4141struct buf { int x; };
4142FILE * (*rcsopen) (struct buf *, struct stat *, int);
4143static char *e (p, i)
4144 char **p;
4145 int i;
4146{
4147 return p[i];
4148}
4149static char *f (char * (*g) (char **, int), char **p, ...)
4150{
4151 char *s;
4152 va_list v;
4153 va_start (v,p);
4154 s = g (p, va_arg (v,int));
4155 va_end (v);
4156 return s;
4157}
4158
4159/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4160 function prototypes and stuff, but not '\xHH' hex character constants.
4161 These don't provoke an error unfortunately, instead are silently treated
4162 as 'x'. The following induces an error, until -std is added to get
4163 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4164 array size at least. It's necessary to write '\x00'==0 to get something
4165 that's true only with -std. */
4166int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4167
4168/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4169 inside strings and character constants. */
4170#define FOO(x) 'x'
4171int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4172
4173int test (int i, double x);
4174struct s1 {int (*f) (int a);};
4175struct s2 {int (*f) (double a);};
4176int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4177int argc;
4178char **argv;
4179int
4180main ()
4181{
4182return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4183 ;
4184 return 0;
4185}
4186_ACEOF
4187for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4188 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4189do
4190 CC="$ac_save_CC $ac_arg"
4191 if ac_fn_c_try_compile "$LINENO"; then :
4192 ac_cv_prog_cc_c89=$ac_arg
4193fi
4194rm -f core conftest.err conftest.$ac_objext
4195 test "x$ac_cv_prog_cc_c89" != "xno" && break
4196done
4197rm -f conftest.$ac_ext
4198CC=$ac_save_CC
4199
4200fi
4201# AC_CACHE_VAL
4202case "x$ac_cv_prog_cc_c89" in
4203 x)
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4205$as_echo "none needed" >&6; } ;;
4206 xno)
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4208$as_echo "unsupported" >&6; } ;;
4209 *)
4210 CC="$CC $ac_cv_prog_cc_c89"
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4212$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4213esac
4214if test "x$ac_cv_prog_cc_c89" != xno; then :
4215
4216fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004217
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004218ac_ext=c
4219ac_cpp='$CPP $CPPFLAGS'
4220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004224if test "$GCC" = yes; then
4225 RDYNAMIC="-rdynamic"
4226
4227fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004228ac_ext=c
4229ac_cpp='$CPP $CPPFLAGS'
4230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004234$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004235# On Suns, sometimes $CPP names a directory.
4236if test -n "$CPP" && test -d "$CPP"; then
4237 CPP=
4238fi
4239if test -z "$CPP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004240 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004241 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004242else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004243 # Double quotes because CPP needs to be expanded
4244 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4245 do
4246 ac_preproc_ok=false
4247for ac_c_preproc_warn_flag in '' yes
4248do
4249 # Use a header file that comes with gcc, so configuring glibc
4250 # with a fresh cross-compiler works.
4251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4252 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004253 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004254 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004256/* end confdefs.h. */
4257#ifdef __STDC__
4258# include <limits.h>
4259#else
4260# include <assert.h>
4261#endif
4262 Syntax error
4263_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004264if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004265
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004266else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004267 # Broken: fails on valid input.
4268continue
4269fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004270rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004271
Theodore Ts'oe1052142006-10-21 21:46:47 -04004272 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004273 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004275/* end confdefs.h. */
4276#include <ac_nonexistent.h>
4277_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004278if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004279 # Broken: success on invalid input.
4280continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004281else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004282 # Passes both tests.
4283ac_preproc_ok=:
4284break
4285fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004286rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004287
4288done
4289# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004290rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004291if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004292 break
4293fi
4294
4295 done
4296 ac_cv_prog_CPP=$CPP
4297
4298fi
4299 CPP=$ac_cv_prog_CPP
4300else
4301 ac_cv_prog_CPP=$CPP
4302fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004304$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004305ac_preproc_ok=false
4306for ac_c_preproc_warn_flag in '' yes
4307do
4308 # Use a header file that comes with gcc, so configuring glibc
4309 # with a fresh cross-compiler works.
4310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4311 # <limits.h> exists even on freestanding compilers.
4312 # On the NeXT, cc -E runs the code through the compiler's parser,
4313 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004315/* end confdefs.h. */
4316#ifdef __STDC__
4317# include <limits.h>
4318#else
4319# include <assert.h>
4320#endif
4321 Syntax error
4322_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004323if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004324
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004325else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004326 # Broken: fails on valid input.
4327continue
4328fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004329rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004330
Theodore Ts'oe1052142006-10-21 21:46:47 -04004331 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004332 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004334/* end confdefs.h. */
4335#include <ac_nonexistent.h>
4336_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004337if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004338 # Broken: success on invalid input.
4339continue
4340else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004341 # Passes both tests.
4342ac_preproc_ok=:
4343break
4344fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004345rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004346
4347done
4348# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004349rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004350if $ac_preproc_ok; then :
4351
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004352else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004355as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4356See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004357fi
4358
4359ac_ext=c
4360ac_cpp='$CPP $CPPFLAGS'
4361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363ac_compiler_gnu=$ac_cv_c_compiler_gnu
4364
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004366$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004367if test "$GCC" = yes
4368then
4369 case "$host_cpu" in
4370 alpha) addcflags="-mieee" ;;
4371 esac
4372fi
4373if test "x$addcflags" != x
4374then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004376$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004377 CFLAGS="$addcflags $CFLAGS"
4378else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004380$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004381fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004382LIB_EXT=.a
4383STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004384PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004385
Theodore Ts'oe1052142006-10-21 21:46:47 -04004386# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004387if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004388 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004389else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004390 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004391fi
4392# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004393if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004394 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004395then
4396 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004398$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004399else
4400 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004402$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004403fi
4404
4405else
4406 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004408$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004409
Theodore Ts'oe1052142006-10-21 21:46:47 -04004410fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004411
Theodore Ts'oe1052142006-10-21 21:46:47 -04004412
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004413# Check whether --enable-symlink-install was given.
4414if test "${enable_symlink_install+set}" = set; then :
4415 enableval=$enable_symlink_install; if test "$enableval" = "no"
4416then
4417 LINK_INSTALL_FLAGS=-f
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4419$as_echo "Disabling symlinks for install" >&6; }
4420else
4421 LINK_INSTALL_FLAGS=-sf
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4423$as_echo "Enabling symlinks for install" >&6; }
4424fi
4425
4426else
4427 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4429$as_echo "Disabling symlinks for install by default" >&6; }
4430
4431fi
4432
4433
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004434relative_symlink_defined=
4435# Check whether --enable-relative-symlinks was given.
4436if test "${enable_relative_symlinks+set}" = set; then :
4437 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004438then
4439 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004440 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4442$as_echo "Disabling relative symlinks for install" >&6; }
4443else
4444 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004445 relative_symlink_defined=yes
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4447$as_echo "Enabling relative symlinks for install" >&6; }
4448fi
4449fi
4450
4451# Check whether --enable-symlink-relative-symlinks was given.
4452if test "${enable_symlink_relative_symlinks+set}" = set; then :
4453 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4454then
4455 SYMLINK_RELATIVE=yes
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4457$as_echo "Disabling relative symlinks for install" >&6; }
4458else
4459 SYMLINK_RELATIVE=--relative
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4461$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004462fi
4463
4464else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004465 if test -z "$relative_symlink_defined"
4466then
4467 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4469$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004470fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004471
4472fi
4473
4474
4475# Check whether --enable-symlink-build was given.
4476if test "${enable_symlink_build+set}" = set; then :
4477 enableval=$enable_symlink_build; if test "$enableval" = "no"
4478then
4479 LINK_BUILD_FLAGS=
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4481$as_echo "Disabling symlinks for build" >&6; }
4482else
4483 LINK_BUILD_FLAGS=-s
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4485$as_echo "Enabling symlinks for build" >&6; }
4486fi
4487
4488else
4489 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4491$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004492
4493fi
4494
4495
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004496# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004497if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004498 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4499then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004501$as_echo "Disabling verbose make commands" >&6; }
4502 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004503 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004504 Q=@
4505else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004507$as_echo "Enabling verbose make commands" >&6; }
4508 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004509 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004510 Q=
4511fi
4512
4513else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004515$as_echo "Disabling verbose make commands" >&6; }
4516E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004517ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004518Q=@
4519
4520fi
4521
4522
4523
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004524
Theodore Ts'oe1052142006-10-21 21:46:47 -04004525# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004526if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004527 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004528then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004530$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004531else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004532
4533$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004534
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004536$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004538$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004539fi
4540
4541else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004543$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004544
Theodore Ts'oe1052142006-10-21 21:46:47 -04004545fi
4546
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004547
Theodore Ts'oe1052142006-10-21 21:46:47 -04004548# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004549if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004550 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004551then
4552 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004554$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004555else
4556 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004557 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004558
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004560$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004561fi
4562
4563else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004564 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004565$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004566
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004568$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004569
Theodore Ts'oe1052142006-10-21 21:46:47 -04004570fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004571
Theodore Ts'oe1052142006-10-21 21:46:47 -04004572
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004573E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004574LDFLAG_DYNAMIC=
4575PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004576# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004577if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004578 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004579then
4580 ELF_CMT=#
4581 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004583$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004584else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004585 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004586 ELF_CMT=
4587 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004588 case "$host_os" in
4589 solaris2.*)
4590 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4591 ;;
4592 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004593 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004594 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004595 PRIVATE_LIBS_CMT=#
4596 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004598$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004599fi
4600
4601else
4602 MAKEFILE_ELF=/dev/null
4603ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004605$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004606
Theodore Ts'oe1052142006-10-21 21:46:47 -04004607fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004608
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004609
Theodore Ts'oe1052142006-10-21 21:46:47 -04004610
4611# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004612if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004613 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004614then
4615 BSDLIB_CMT=#
4616 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004618$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004619else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004620 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004621 BSDLIB_CMT=
4622 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004623 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004624 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004625 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004626 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4627 LIB_EXT=.dylib
4628 ;;
4629 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004631$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004632fi
4633
4634else
4635 MAKEFILE_BSDLIB=/dev/null
4636BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004638$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004639
Theodore Ts'oe1052142006-10-21 21:46:47 -04004640fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004641
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004642
Theodore Ts'oe1052142006-10-21 21:46:47 -04004643
4644# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004645if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004646 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004647then
4648 PROFILE_CMT=#
4649 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004651$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004652else
4653 PROFILE_CMT=
4654 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4655 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004657$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004658fi
4659
4660else
4661 PROFILE_CMT=#
4662MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004664$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004665
Theodore Ts'oe1052142006-10-21 21:46:47 -04004666fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004667
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004668
Theodore Ts'oe1052142006-10-21 21:46:47 -04004669
4670# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004671if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004672 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004673then
4674 CHECKER_CMT=#
4675 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004677$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004678else
4679 CHECKER_CMT=
4680 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004682$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004683fi
4684
4685else
4686 CHECKER_CMT=#
4687MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004689$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004690
Theodore Ts'oe1052142006-10-21 21:46:47 -04004691fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004692
4693
4694
4695
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004696
Theodore Ts'oe1052142006-10-21 21:46:47 -04004697
Theodore Ts'o55da9872008-09-02 23:12:38 -04004698
4699
Theodore Ts'oe1052142006-10-21 21:46:47 -04004700# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004701if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004702 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004703then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004705$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004706else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004707
4708$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004709
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004711$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004712fi
4713
4714else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004716$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004717
Theodore Ts'oe1052142006-10-21 21:46:47 -04004718fi
4719
4720# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004721if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004722 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004723then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004725$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004726else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004727
4728$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004729
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004731$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004732fi
4733
4734else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004736$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004737
Theodore Ts'oe1052142006-10-21 21:46:47 -04004738fi
4739
4740# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004741if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004742 enableval=$enable_testio_debug;
4743if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004744then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004746$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004747 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004748else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004749 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004750 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004751
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004753$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004754fi
4755
4756else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004758$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004759$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004760
4761TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004762
Theodore Ts'oe1052142006-10-21 21:46:47 -04004763fi
4764
Theodore Ts'oaf773652008-09-01 11:27:27 -04004765
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004766
4767
4768if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4769 if test -n "$ac_tool_prefix"; then
4770 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4771set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004773$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004774if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004775 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004776else
4777 case $PKG_CONFIG in
4778 [\\/]* | ?:[\\/]*)
4779 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4780 ;;
4781 *)
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004787 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004789 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004791 break 2
4792 fi
4793done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004794 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004795IFS=$as_save_IFS
4796
4797 ;;
4798esac
4799fi
4800PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4801if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004803$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004804else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004806$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004807fi
4808
4809
4810fi
4811if test -z "$ac_cv_path_PKG_CONFIG"; then
4812 ac_pt_PKG_CONFIG=$PKG_CONFIG
4813 # Extract the first word of "pkg-config", so it can be a program name with args.
4814set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004816$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004817if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004818 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004819else
4820 case $ac_pt_PKG_CONFIG in
4821 [\\/]* | ?:[\\/]*)
4822 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4823 ;;
4824 *)
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004830 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004832 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004834 break 2
4835 fi
4836done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004837 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004838IFS=$as_save_IFS
4839
4840 ;;
4841esac
4842fi
4843ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4844if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004846$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004847else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004849$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004850fi
4851
4852 if test "x$ac_pt_PKG_CONFIG" = x; then
4853 PKG_CONFIG=""
4854 else
4855 case $cross_compiling:$ac_tool_warned in
4856yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004857{ $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 +01004858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004859ac_tool_warned=yes ;;
4860esac
4861 PKG_CONFIG=$ac_pt_PKG_CONFIG
4862 fi
4863else
4864 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4865fi
4866
4867fi
4868if test -n "$PKG_CONFIG"; then
4869 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004870 { $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 +01004871$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004872 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004874$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004875 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004877$as_echo "no" >&6; }
4878 PKG_CONFIG=""
4879 fi
4880
4881fi
4882LIBUUID=
4883DEPLIBUUID=
4884STATIC_LIBUUID=
4885DEPSTATIC_LIBUUID=
4886PROFILED_LIBUUID=
4887DEPPROFILED_LIBUUID=
4888UUID_CMT=
4889# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004890if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004891 enableval=$enable_libuuid; if test "$enableval" = "no"
4892then
4893 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004894 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004895 fi
4896
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004898$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004899if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004900 $as_echo_n "(cached) " >&6
4901else
4902 ac_check_lib_save_LIBS=$LIBS
4903LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004905/* end confdefs.h. */
4906
4907/* Override any GCC internal prototype to avoid an error.
4908 Use char because int might match the return type of a GCC
4909 builtin and then its argument prototype would still apply. */
4910#ifdef __cplusplus
4911extern "C"
4912#endif
4913char uuid_generate ();
4914int
4915main ()
4916{
4917return uuid_generate ();
4918 ;
4919 return 0;
4920}
4921_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004922if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004923 ac_cv_lib_uuid_uuid_generate=yes
4924else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004925 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004926fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004927rm -f core conftest.err conftest.$ac_objext \
4928 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004929LIBS=$ac_check_lib_save_LIBS
4930fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004932$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004933if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004934 LIBUUID=`$PKG_CONFIG --libs uuid`;
4935 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4936else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004937 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004938fi
4939
4940 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004942$as_echo "Disabling private uuid library" >&6; }
4943else
4944 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4945 DEPLIBUUID=$LIBUUID
4946 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4947 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4948 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4949 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004951$as_echo "Enabling private uuid library" >&6; }
4952fi
4953
4954else
4955 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4956DEPLIBUUID=$LIBUUID
4957STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4958DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4959PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4960DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004962$as_echo "Enabling private uuid library by default" >&6; }
4963
4964fi
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4976 if test -n "$ac_tool_prefix"; then
4977 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4978set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004980$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004981if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004982 $as_echo_n "(cached) " >&6
4983else
4984 case $PKG_CONFIG in
4985 [\\/]* | ?:[\\/]*)
4986 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4987 ;;
4988 *)
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004994 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004996 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004998 break 2
4999 fi
5000done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005001 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005002IFS=$as_save_IFS
5003
5004 ;;
5005esac
5006fi
5007PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5008if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005010$as_echo "$PKG_CONFIG" >&6; }
5011else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005013$as_echo "no" >&6; }
5014fi
5015
5016
5017fi
5018if test -z "$ac_cv_path_PKG_CONFIG"; then
5019 ac_pt_PKG_CONFIG=$PKG_CONFIG
5020 # Extract the first word of "pkg-config", so it can be a program name with args.
5021set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005023$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005024if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005025 $as_echo_n "(cached) " >&6
5026else
5027 case $ac_pt_PKG_CONFIG in
5028 [\\/]* | ?:[\\/]*)
5029 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5030 ;;
5031 *)
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033for as_dir in $PATH
5034do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005037 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005039 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005041 break 2
5042 fi
5043done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005044 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005045IFS=$as_save_IFS
5046
5047 ;;
5048esac
5049fi
5050ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5051if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005053$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5054else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005056$as_echo "no" >&6; }
5057fi
5058
5059 if test "x$ac_pt_PKG_CONFIG" = x; then
5060 PKG_CONFIG=""
5061 else
5062 case $cross_compiling:$ac_tool_warned in
5063yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005064{ $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 +01005065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5066ac_tool_warned=yes ;;
5067esac
5068 PKG_CONFIG=$ac_pt_PKG_CONFIG
5069 fi
5070else
5071 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5072fi
5073
5074fi
5075if test -n "$PKG_CONFIG"; then
5076 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005077 { $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 +01005078$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5079 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005081$as_echo "yes" >&6; }
5082 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005084$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005085 PKG_CONFIG=""
5086 fi
5087
5088fi
5089LIBBLKID=
5090DEPLIBBLKID=
5091STATIC_LIBBLKID=
5092DEPSTATIC_LIBBLKID=
5093PROFILED_LIBBLKID=
5094DEPPROFILED_LIBBLKID=
5095BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005096
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005097# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005098if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005099 enableval=$enable_libblkid; if test "$enableval" = "no"
5100then
5101 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005102 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005103 fi
5104
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005106$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005107if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005108 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005109else
5110 ac_check_lib_save_LIBS=$LIBS
5111LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005113/* end confdefs.h. */
5114
5115/* Override any GCC internal prototype to avoid an error.
5116 Use char because int might match the return type of a GCC
5117 builtin and then its argument prototype would still apply. */
5118#ifdef __cplusplus
5119extern "C"
5120#endif
5121char blkid_get_cache ();
5122int
5123main ()
5124{
5125return blkid_get_cache ();
5126 ;
5127 return 0;
5128}
5129_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005130if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005131 ac_cv_lib_blkid_blkid_get_cache=yes
5132else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005133 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005134fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005135rm -f core conftest.err conftest.$ac_objext \
5136 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005137LIBS=$ac_check_lib_save_LIBS
5138fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005140$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005141if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005142 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5143 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5144else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005145 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005146fi
5147
5148 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005150$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005151else
5152 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5153 DEPLIBBLKID=$LIBBLKID
5154 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5155 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5156 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5157 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005158 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005159
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005161$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005162fi
5163
5164else
5165 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5166DEPLIBBLKID=$LIBBLKID
5167STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5168DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5169PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5170DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005171$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005172
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005174$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005175
5176fi
5177
5178
5179
5180
5181
5182
5183
5184
Aditya Kalif239fef2011-07-20 11:40:02 -07005185
5186
5187if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5188 if test -n "$ac_tool_prefix"; then
5189 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5190set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005193if ${ac_cv_path_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005194 $as_echo_n "(cached) " >&6
5195else
5196 case $PKG_CONFIG in
5197 [\\/]* | ?:[\\/]*)
5198 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5199 ;;
5200 *)
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202for as_dir in $PATH
5203do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005208 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212done
5213 done
5214IFS=$as_save_IFS
5215
5216 ;;
5217esac
5218fi
5219PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5220if test -n "$PKG_CONFIG"; then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5222$as_echo "$PKG_CONFIG" >&6; }
5223else
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225$as_echo "no" >&6; }
5226fi
5227
5228
5229fi
5230if test -z "$ac_cv_path_PKG_CONFIG"; then
5231 ac_pt_PKG_CONFIG=$PKG_CONFIG
5232 # Extract the first word of "pkg-config", so it can be a program name with args.
5233set dummy pkg-config; ac_word=$2
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005236if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005237 $as_echo_n "(cached) " >&6
5238else
5239 case $ac_pt_PKG_CONFIG in
5240 [\\/]* | ?:[\\/]*)
5241 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5242 ;;
5243 *)
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH
5246do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005251 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255done
5256 done
5257IFS=$as_save_IFS
5258
5259 ;;
5260esac
5261fi
5262ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5263if test -n "$ac_pt_PKG_CONFIG"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5265$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5266else
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268$as_echo "no" >&6; }
5269fi
5270
5271 if test "x$ac_pt_PKG_CONFIG" = x; then
5272 PKG_CONFIG=""
5273 else
5274 case $cross_compiling:$ac_tool_warned in
5275yes:)
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5278ac_tool_warned=yes ;;
5279esac
5280 PKG_CONFIG=$ac_pt_PKG_CONFIG
5281 fi
5282else
5283 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5284fi
5285
5286fi
5287if test -n "$PKG_CONFIG"; then
5288 _pkg_min_version=0.9.0
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5290$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5291 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5293$as_echo "yes" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296$as_echo "no" >&6; }
5297 PKG_CONFIG=""
5298 fi
5299
5300fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005301
5302# Check whether --enable-quota was given.
5303if test "${enable_quota+set}" = set; then :
5304 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005305then
Theodore Ts'o7becb202011-11-14 10:40:43 -05005306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5307$as_echo "Disabling quota support" >&6; }
5308else
5309 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005310
Theodore Ts'o7becb202011-11-14 10:40:43 -05005311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5312$as_echo "Enabling quota support" >&6; }
Aditya Kalif239fef2011-07-20 11:40:02 -07005313fi
5314
5315else
Theodore Ts'o7becb202011-11-14 10:40:43 -05005316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5317$as_echo "Disabling quota support by default" >&6; }
5318
5319fi
5320
5321LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005322DEPLIBQUOTA=$LIBQUOTA
5323STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5324DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5325PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5326DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005327
5328
5329
5330
5331
5332
5333
Theodore Ts'oe1052142006-10-21 21:46:47 -04005334# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005335if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005336 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005337then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005339$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005340 DEBUGFS_CMT="#"
5341else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005342 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005344$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005345fi
5346
5347else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005349$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005350DEBUGFS_CMT=
5351
Theodore Ts'oe1052142006-10-21 21:46:47 -04005352fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005353
Theodore Ts'oe1052142006-10-21 21:46:47 -04005354
5355# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005356if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005357 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005358then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005360$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005361 IMAGER_CMT="#"
5362else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005363 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005365$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005366fi
5367
5368else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005370$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005371IMAGER_CMT=
5372
Theodore Ts'oe1052142006-10-21 21:46:47 -04005373fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005374
Theodore Ts'oe1052142006-10-21 21:46:47 -04005375
5376# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005377if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005378 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005379then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005381$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005382 RESIZER_CMT="#"
5383else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005384 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005386$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005387fi
5388
5389else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005391$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005392RESIZER_CMT=
5393
Theodore Ts'oe1052142006-10-21 21:46:47 -04005394fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005395
Theodore Ts'oe1052142006-10-21 21:46:47 -04005396
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005397# Check whether --enable-defrag was given.
5398if test "${enable_defrag+set}" = set; then :
5399 enableval=$enable_defrag; if test "$enableval" = "no"
5400then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5402$as_echo "Disabling e4defrag support" >&6; }
5403 DEFRAG_CMT="#"
5404else
5405 DEFRAG_CMT=
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5407$as_echo "Enabling e4defrag support" >&6; }
5408fi
5409
5410else
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5412$as_echo "Enabling e4defrag support by default" >&6; }
5413DEFRAG_CMT=
5414
5415fi
5416
5417
Theodore Ts'oe1052142006-10-21 21:46:47 -04005418# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005419if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005420 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005421then
5422 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005424$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005425else
5426 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005428$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005429fi
5430
5431else
5432 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005433 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005434 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005436$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005437 ;;
5438 *)
5439 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005441$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005442esac
5443
Theodore Ts'oe1052142006-10-21 21:46:47 -04005444fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005445
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005446
Theodore Ts'oe1052142006-10-21 21:46:47 -04005447
5448# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005449if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005450 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005451then
5452 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005454$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005455else
5456 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005458$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005459fi
5460
5461else
5462 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005464$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005465
Theodore Ts'oe1052142006-10-21 21:46:47 -04005466fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005467
5468
Theodore Ts'oe1052142006-10-21 21:46:47 -04005469
Theodore Ts'o32493942007-12-31 10:45:01 -05005470# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005471if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005472 enableval=$enable_tls; if test "$enableval" = "no"
5473then
5474 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005476$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005477else
5478 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005480$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005481fi
5482
5483else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005484 if test -n "$WITH_DIET_LIBC"
5485then
5486 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005487 { $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 +01005488$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005489else
5490 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005492$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005493fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005494
5495fi
5496
5497if test "$try_tls" = "yes"
5498then
5499
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005501$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005502 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005503 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005504else
5505
5506 ax_tls_keywords="__thread __declspec(thread) none"
5507 for ax_tls_keyword in $ax_tls_keywords; do
5508 case $ax_tls_keyword in
5509 none) ac_cv_tls=none ; break ;;
5510 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005512/* end confdefs.h. */
5513#include <stdlib.h>
5514 static void
5515 foo(void) {
5516 static $ax_tls_keyword int bar;
5517 exit(1);
5518 }
5519int
5520main ()
5521{
5522
5523 ;
5524 return 0;
5525}
5526_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005527if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005528 ac_cv_tls=$ax_tls_keyword ; break
5529else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005530 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005531
5532fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 esac
5535 done
5536
5537fi
5538
5539
5540 if test "$ac_cv_tls" != "none"; then
5541
5542cat >>confdefs.h <<_ACEOF
5543#define TLS $ac_cv_tls
5544_ACEOF
5545
5546 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005548$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005549
5550fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005551
Theodore Ts'o5610f992007-12-31 11:16:56 -05005552# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005553if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005554 enableval=$enable_uuidd; if test "$enableval" = "no"
5555then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005557$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005558 UUIDD_CMT="#"
5559else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005560 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005561
5562 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005564$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005565fi
5566
5567else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005568 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005569
5570UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005572$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005573
5574fi
5575
5576
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005577MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5578
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005579GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005580PACKAGE=e2fsprogs
5581VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005582VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005583
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005584cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005585#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005586_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005587
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005588
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005589cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005590#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005591_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005592
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005593
5594
5595
5596
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005598$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5599set x ${MAKE-make}
5600ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005601if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005602 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005603else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005604 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005605SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005606all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005607 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005608_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005609# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005610case `${MAKE-make} -f conftest.make 2>/dev/null` in
5611 *@@@%%%=?*=@@@%%%*)
5612 eval ac_cv_prog_make_${ac_make}_set=yes;;
5613 *)
5614 eval ac_cv_prog_make_${ac_make}_set=no;;
5615esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005616rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005617fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005618if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005620$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005621 SET_MAKE=
5622else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005624$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005625 SET_MAKE="MAKE=${MAKE-make}"
5626fi
5627
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005628# Find a good install program. We prefer a C program (faster),
5629# so one script is as good as another. But avoid the broken or
5630# incompatible versions:
5631# SysV /etc/install, /usr/sbin/install
5632# SunOS /usr/etc/install
5633# IRIX /sbin/install
5634# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005635# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005636# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5637# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5638# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005639# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005640# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005641# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005643$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005644if test -z "$INSTALL"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005645if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005646 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005647else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649for as_dir in $PATH
5650do
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005653 # Account for people who put trailing slashes in PATH elements.
5654case $as_dir/ in #((
5655 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005656 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005657 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005658 /usr/ucb/* ) ;;
5659 *)
5660 # OSF1 and SCO ODT 3.0 have their own names for install.
5661 # Don't use installbsd from OSF since it installs stuff as root
5662 # by default.
5663 for ac_prog in ginstall scoinst install; do
5664 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005665 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005666 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005667 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005668 # AIX install. It has an incompatible calling convention.
5669 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005670 elif test $ac_prog = install &&
5671 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5672 # program-specific install script used by HP pwplus--don't use.
5673 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005674 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005675 rm -rf conftest.one conftest.two conftest.dir
5676 echo one > conftest.one
5677 echo two > conftest.two
5678 mkdir conftest.dir
5679 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5680 test -s conftest.one && test -s conftest.two &&
5681 test -s conftest.dir/conftest.one &&
5682 test -s conftest.dir/conftest.two
5683 then
5684 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5685 break 3
5686 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005687 fi
5688 fi
5689 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005690 done
5691 ;;
5692esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005693
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005694 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005695IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005696
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005697rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005698
5699fi
5700 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005701 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005702 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005703 # As a last resort, use the slow shell script. Don't cache a
5704 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005705 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005706 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005707 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005708 fi
5709fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005711$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005712
5713# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5714# It thinks the first close brace ends the variable substitution.
5715test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5716
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005717test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005718
5719test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5720
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005721
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005722 MKINSTALLDIRS=
5723 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005724 case "$ac_aux_dir" in
5725 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5726 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5727 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005728 fi
5729 if test -z "$MKINSTALLDIRS"; then
5730 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5731 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005732
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005733
5734
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005736$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005737 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005738if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005739 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005740else
5741 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005742fi
5743
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005745$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005746
5747
5748
5749
5750
5751
5752# Prepare PATH_SEPARATOR.
5753# The user is always right.
5754if test "${PATH_SEPARATOR+set}" != set; then
5755 echo "#! /bin/sh" >conf$$.sh
5756 echo "exit 0" >>conf$$.sh
5757 chmod +x conf$$.sh
5758 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5759 PATH_SEPARATOR=';'
5760 else
5761 PATH_SEPARATOR=:
5762 fi
5763 rm -f conf$$.sh
5764fi
5765
5766# Find out how to test for executable files. Don't use a zero-byte file,
5767# as systems may use methods other than mode bits to determine executability.
5768cat >conf$$.file <<_ASEOF
5769#! /bin/sh
5770exit 0
5771_ASEOF
5772chmod +x conf$$.file
5773if test -x conf$$.file >/dev/null 2>&1; then
5774 ac_executable_p="test -x"
5775else
5776 ac_executable_p="test -f"
5777fi
5778rm -f conf$$.file
5779
5780# Extract the first word of "msgfmt", so it can be a program name with args.
5781set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005783$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005784if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005785 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005786else
5787 case "$MSGFMT" in
5788 [\\/]* | ?:[\\/]*)
5789 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5790 ;;
5791 *)
5792 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5793 for ac_dir in $PATH; do
5794 IFS="$ac_save_IFS"
5795 test -z "$ac_dir" && ac_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5798 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5799 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5800 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5801 break 2
5802 fi
5803 fi
5804 done
5805 done
5806 IFS="$ac_save_IFS"
5807 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5808 ;;
5809esac
5810fi
5811MSGFMT="$ac_cv_path_MSGFMT"
5812if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005814$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005815else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005817$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005818fi
5819
5820 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5821set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005823$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005824if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005825 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005826else
5827 case $GMSGFMT in
5828 [\\/]* | ?:[\\/]*)
5829 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5830 ;;
5831 *)
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005837 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005839 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005841 break 2
5842 fi
5843done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005844 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005845IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005846
5847 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5848 ;;
5849esac
5850fi
5851GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005852if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005854$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005855else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005857$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005858fi
5859
5860
5861
Theodore Ts'oe1052142006-10-21 21:46:47 -04005862
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005863# Prepare PATH_SEPARATOR.
5864# The user is always right.
5865if test "${PATH_SEPARATOR+set}" != set; then
5866 echo "#! /bin/sh" >conf$$.sh
5867 echo "exit 0" >>conf$$.sh
5868 chmod +x conf$$.sh
5869 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5870 PATH_SEPARATOR=';'
5871 else
5872 PATH_SEPARATOR=:
5873 fi
5874 rm -f conf$$.sh
5875fi
5876
5877# Find out how to test for executable files. Don't use a zero-byte file,
5878# as systems may use methods other than mode bits to determine executability.
5879cat >conf$$.file <<_ASEOF
5880#! /bin/sh
5881exit 0
5882_ASEOF
5883chmod +x conf$$.file
5884if test -x conf$$.file >/dev/null 2>&1; then
5885 ac_executable_p="test -x"
5886else
5887 ac_executable_p="test -f"
5888fi
5889rm -f conf$$.file
5890
5891# Extract the first word of "xgettext", so it can be a program name with args.
5892set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005894$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005895if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005896 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005897else
5898 case "$XGETTEXT" in
5899 [\\/]* | ?:[\\/]*)
5900 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5901 ;;
5902 *)
5903 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5904 for ac_dir in $PATH; do
5905 IFS="$ac_save_IFS"
5906 test -z "$ac_dir" && ac_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5909 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5910 (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
5911 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5912 break 2
5913 fi
5914 fi
5915 done
5916 done
5917 IFS="$ac_save_IFS"
5918 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5919 ;;
5920esac
5921fi
5922XGETTEXT="$ac_cv_path_XGETTEXT"
5923if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005925$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005926else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005928$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005929fi
5930
5931 rm -f messages.po
5932
5933
5934# Prepare PATH_SEPARATOR.
5935# The user is always right.
5936if test "${PATH_SEPARATOR+set}" != set; then
5937 echo "#! /bin/sh" >conf$$.sh
5938 echo "exit 0" >>conf$$.sh
5939 chmod +x conf$$.sh
5940 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5941 PATH_SEPARATOR=';'
5942 else
5943 PATH_SEPARATOR=:
5944 fi
5945 rm -f conf$$.sh
5946fi
5947
5948# Find out how to test for executable files. Don't use a zero-byte file,
5949# as systems may use methods other than mode bits to determine executability.
5950cat >conf$$.file <<_ASEOF
5951#! /bin/sh
5952exit 0
5953_ASEOF
5954chmod +x conf$$.file
5955if test -x conf$$.file >/dev/null 2>&1; then
5956 ac_executable_p="test -x"
5957else
5958 ac_executable_p="test -f"
5959fi
5960rm -f conf$$.file
5961
5962# Extract the first word of "msgmerge", so it can be a program name with args.
5963set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005965$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005966if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005967 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005968else
5969 case "$MSGMERGE" in
5970 [\\/]* | ?:[\\/]*)
5971 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5972 ;;
5973 *)
5974 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5975 for ac_dir in $PATH; do
5976 IFS="$ac_save_IFS"
5977 test -z "$ac_dir" && ac_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5980 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5981 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5982 break 2
5983 fi
5984 fi
5985 done
5986 done
5987 IFS="$ac_save_IFS"
5988 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5989 ;;
5990esac
5991fi
5992MSGMERGE="$ac_cv_path_MSGMERGE"
5993if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005995$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005996else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005998$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005999fi
6000
6001
6002 if test "$GMSGFMT" != ":"; then
6003 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6004 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6005 : ;
6006 else
6007 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006008 { $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 +01006009$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006010 GMSGFMT=":"
6011 fi
6012 fi
6013
6014 if test "$XGETTEXT" != ":"; then
6015 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6016 (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
6017 : ;
6018 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006019 { $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 +01006020$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006021 XGETTEXT=":"
6022 fi
6023 rm -f messages.po
6024 fi
6025
Theodore Ts'oe1052142006-10-21 21:46:47 -04006026 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006027
6028
6029if test -n "$ac_tool_prefix"; then
6030 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6031set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006033$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006034if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006035 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006036else
6037 if test -n "$RANLIB"; then
6038 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6039else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041for as_dir in $PATH
6042do
6043 IFS=$as_save_IFS
6044 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006045 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006047 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006049 break 2
6050 fi
6051done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006052 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006053IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006054
6055fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006056fi
6057RANLIB=$ac_cv_prog_RANLIB
6058if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006060$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006061else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006063$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006064fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006065
Theodore Ts'oe1052142006-10-21 21:46:47 -04006066
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006067fi
6068if test -z "$ac_cv_prog_RANLIB"; then
6069 ac_ct_RANLIB=$RANLIB
6070 # Extract the first word of "ranlib", so it can be a program name with args.
6071set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006073$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006074if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006075 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006076else
6077 if test -n "$ac_ct_RANLIB"; then
6078 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6079else
6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081for as_dir in $PATH
6082do
6083 IFS=$as_save_IFS
6084 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006085 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006087 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006089 break 2
6090 fi
6091done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006092 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006093IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006094
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006095fi
6096fi
6097ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6098if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006100$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006101else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006103$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006104fi
6105
Theodore Ts'oe1052142006-10-21 21:46:47 -04006106 if test "x$ac_ct_RANLIB" = x; then
6107 RANLIB=":"
6108 else
6109 case $cross_compiling:$ac_tool_warned in
6110yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006111{ $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 +01006112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006113ac_tool_warned=yes ;;
6114esac
6115 RANLIB=$ac_ct_RANLIB
6116 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006117else
6118 RANLIB="$ac_cv_prog_RANLIB"
6119fi
6120
6121
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006123$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006124if ${ac_cv_lib_cposix_strerror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006125 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006126else
6127 ac_check_lib_save_LIBS=$LIBS
6128LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006130/* end confdefs.h. */
6131
Theodore Ts'oe1052142006-10-21 21:46:47 -04006132/* Override any GCC internal prototype to avoid an error.
6133 Use char because int might match the return type of a GCC
6134 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006135#ifdef __cplusplus
6136extern "C"
6137#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006138char strerror ();
6139int
6140main ()
6141{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006142return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006143 ;
6144 return 0;
6145}
6146_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006147if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006148 ac_cv_lib_cposix_strerror=yes
6149else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006150 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006151fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006152rm -f core conftest.err conftest.$ac_objext \
6153 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006154LIBS=$ac_check_lib_save_LIBS
6155fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006157$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006158if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006159 LIBS="$LIBS -lcposix"
6160fi
6161
6162
6163
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006164
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6166$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006167if ${ac_cv_path_GREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006168 $as_echo_n "(cached) " >&6
6169else
6170 if test -z "$GREP"; then
6171 ac_path_GREP_found=false
6172 # Loop through the user's path and test for each of PROGNAME-LIST
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6175do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_prog in grep ggrep; do
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006181 as_fn_executable_p "$ac_path_GREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006182# Check for GNU ac_path_GREP and select it if it is found.
6183 # Check for GNU $ac_path_GREP
6184case `"$ac_path_GREP" --version 2>&1` in
6185*GNU*)
6186 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6187*)
6188 ac_count=0
6189 $as_echo_n 0123456789 >"conftest.in"
6190 while :
6191 do
6192 cat "conftest.in" "conftest.in" >"conftest.tmp"
6193 mv "conftest.tmp" "conftest.in"
6194 cp "conftest.in" "conftest.nl"
6195 $as_echo 'GREP' >> "conftest.nl"
6196 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6198 as_fn_arith $ac_count + 1 && ac_count=$as_val
6199 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6200 # Best one so far, save it but keep looking for a better one
6201 ac_cv_path_GREP="$ac_path_GREP"
6202 ac_path_GREP_max=$ac_count
6203 fi
6204 # 10*(2^10) chars as input seems more than enough
6205 test $ac_count -gt 10 && break
6206 done
6207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6208esac
6209
6210 $ac_path_GREP_found && break 3
6211 done
6212 done
6213 done
6214IFS=$as_save_IFS
6215 if test -z "$ac_cv_path_GREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006216 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 -04006217 fi
6218else
6219 ac_cv_path_GREP=$GREP
6220fi
6221
6222fi
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6224$as_echo "$ac_cv_path_GREP" >&6; }
6225 GREP="$ac_cv_path_GREP"
6226
6227
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6229$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006230if ${ac_cv_path_EGREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006231 $as_echo_n "(cached) " >&6
6232else
6233 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6234 then ac_cv_path_EGREP="$GREP -E"
6235 else
6236 if test -z "$EGREP"; then
6237 ac_path_EGREP_found=false
6238 # Loop through the user's path and test for each of PROGNAME-LIST
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6241do
6242 IFS=$as_save_IFS
6243 test -z "$as_dir" && as_dir=.
6244 for ac_prog in egrep; do
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006247 as_fn_executable_p "$ac_path_EGREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006248# Check for GNU ac_path_EGREP and select it if it is found.
6249 # Check for GNU $ac_path_EGREP
6250case `"$ac_path_EGREP" --version 2>&1` in
6251*GNU*)
6252 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6253*)
6254 ac_count=0
6255 $as_echo_n 0123456789 >"conftest.in"
6256 while :
6257 do
6258 cat "conftest.in" "conftest.in" >"conftest.tmp"
6259 mv "conftest.tmp" "conftest.in"
6260 cp "conftest.in" "conftest.nl"
6261 $as_echo 'EGREP' >> "conftest.nl"
6262 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6264 as_fn_arith $ac_count + 1 && ac_count=$as_val
6265 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6266 # Best one so far, save it but keep looking for a better one
6267 ac_cv_path_EGREP="$ac_path_EGREP"
6268 ac_path_EGREP_max=$ac_count
6269 fi
6270 # 10*(2^10) chars as input seems more than enough
6271 test $ac_count -gt 10 && break
6272 done
6273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6274esac
6275
6276 $ac_path_EGREP_found && break 3
6277 done
6278 done
6279 done
6280IFS=$as_save_IFS
6281 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006282 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 -04006283 fi
6284else
6285 ac_cv_path_EGREP=$EGREP
6286fi
6287
6288 fi
6289fi
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6291$as_echo "$ac_cv_path_EGREP" >&6; }
6292 EGREP="$ac_cv_path_EGREP"
6293
6294
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6296$as_echo_n "checking for ANSI C header files... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006297if ${ac_cv_header_stdc+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006298 $as_echo_n "(cached) " >&6
6299else
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301/* end confdefs.h. */
6302#include <stdlib.h>
6303#include <stdarg.h>
6304#include <string.h>
6305#include <float.h>
6306
6307int
6308main ()
6309{
6310
6311 ;
6312 return 0;
6313}
6314_ACEOF
6315if ac_fn_c_try_compile "$LINENO"; then :
6316 ac_cv_header_stdc=yes
6317else
6318 ac_cv_header_stdc=no
6319fi
6320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321
6322if test $ac_cv_header_stdc = yes; then
6323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h. */
6326#include <string.h>
6327
6328_ACEOF
6329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6330 $EGREP "memchr" >/dev/null 2>&1; then :
6331
6332else
6333 ac_cv_header_stdc=no
6334fi
6335rm -f conftest*
6336
6337fi
6338
6339if test $ac_cv_header_stdc = yes; then
6340 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342/* end confdefs.h. */
6343#include <stdlib.h>
6344
6345_ACEOF
6346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347 $EGREP "free" >/dev/null 2>&1; then :
6348
6349else
6350 ac_cv_header_stdc=no
6351fi
6352rm -f conftest*
6353
6354fi
6355
6356if test $ac_cv_header_stdc = yes; then
6357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6358 if test "$cross_compiling" = yes; then :
6359 :
6360else
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362/* end confdefs.h. */
6363#include <ctype.h>
6364#include <stdlib.h>
6365#if ((' ' & 0x0FF) == 0x020)
6366# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6367# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6368#else
6369# define ISLOWER(c) \
6370 (('a' <= (c) && (c) <= 'i') \
6371 || ('j' <= (c) && (c) <= 'r') \
6372 || ('s' <= (c) && (c) <= 'z'))
6373# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6374#endif
6375
6376#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6377int
6378main ()
6379{
6380 int i;
6381 for (i = 0; i < 256; i++)
6382 if (XOR (islower (i), ISLOWER (i))
6383 || toupper (i) != TOUPPER (i))
6384 return 2;
6385 return 0;
6386}
6387_ACEOF
6388if ac_fn_c_try_run "$LINENO"; then :
6389
6390else
6391 ac_cv_header_stdc=no
6392fi
6393rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6394 conftest.$ac_objext conftest.beam conftest.$ac_ext
6395fi
6396
6397fi
6398fi
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6400$as_echo "$ac_cv_header_stdc" >&6; }
6401if test $ac_cv_header_stdc = yes; then
6402
6403$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6404
6405fi
6406
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006408$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006409if ${ac_cv_c_const+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006410 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006411else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006413/* end confdefs.h. */
6414
6415int
6416main ()
6417{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006418
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006419#ifndef __cplusplus
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006420 /* Ultrix mips cc rejects this sort of thing. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006421 typedef int charset[2];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006422 const charset cs = { 0, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006423 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006424 char const *const *pcpcc;
6425 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006426 /* NEC SVR4.0.2 mips cc rejects this. */
6427 struct point {int x, y;};
6428 static struct point const zero = {0,0};
6429 /* AIX XL C 1.02.0.0 rejects this.
6430 It does not let you subtract one const X* pointer from another in
6431 an arm of an if-expression whose if-part is not a constant
6432 expression */
6433 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006434 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006435 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006436 ++pcpcc;
6437 ppc = (char**) pcpcc;
6438 pcpcc = (char const *const *) ppc;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006439 { /* SCO 3.2v4 cc rejects this sort of thing. */
6440 char tx;
6441 char *t = &tx;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006442 char const *s = 0 ? (char *) 0 : (char const *) 0;
6443
6444 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006445 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006446 }
6447 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6448 int x[] = {25, 17};
6449 const int *foo = &x[0];
6450 ++foo;
6451 }
6452 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6453 typedef const int *iptr;
6454 iptr p = 0;
6455 ++p;
6456 }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006457 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006458 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006459 struct s { int j; const int *ap[3]; } bx;
6460 struct s *b = &bx; b->j = 5;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006461 }
6462 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6463 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006464 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006465 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006466 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006467#endif
6468
6469 ;
6470 return 0;
6471}
6472_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006473if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006474 ac_cv_c_const=yes
6475else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006476 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006477fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006479fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006481$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006482if test $ac_cv_c_const = no; then
6483
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006484$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006485
6486fi
6487
6488
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006490$as_echo_n "checking for signed... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006491if ${bh_cv_c_signed+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006492 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006493else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006495/* end confdefs.h. */
6496
6497int
6498main ()
6499{
6500signed char x;
6501 ;
6502 return 0;
6503}
6504_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006505if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006506 bh_cv_c_signed=yes
6507else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006508 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006509fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006511fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006513$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006514 if test $bh_cv_c_signed = no; then
6515
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006516$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006517
6518 fi
6519
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006521$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006522if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006523 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006524else
6525 ac_cv_c_inline=no
6526for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006528/* end confdefs.h. */
6529#ifndef __cplusplus
6530typedef int foo_t;
6531static $ac_kw foo_t static_foo () {return 0; }
6532$ac_kw foo_t foo () {return 0; }
6533#endif
6534
6535_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006536if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006537 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006538fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006541done
6542
6543fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006545$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006546
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006547case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006548 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006549 *)
6550 case $ac_cv_c_inline in
6551 no) ac_val=;;
6552 *) ac_val=$ac_cv_c_inline;;
6553 esac
6554 cat >>confdefs.h <<_ACEOF
6555#ifndef __cplusplus
6556#define inline $ac_val
6557#endif
6558_ACEOF
6559 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006560esac
6561
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006562# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6563for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6564 inttypes.h stdint.h unistd.h
6565do :
6566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6567ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6568"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006569if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006570 cat >>confdefs.h <<_ACEOF
6571#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6572_ACEOF
6573
6574fi
6575
6576done
6577
6578
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006579ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006580if test "x$ac_cv_type_off_t" = xyes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006581
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006582else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006583
6584cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006585#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006586_ACEOF
6587
6588fi
6589
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006590ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006591if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006592
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006593else
6594
6595cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006596#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006597_ACEOF
6598
6599fi
6600
6601
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006603$as_echo_n "checking for long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006604if ${ac_cv_type_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006605 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006606else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006608/* end confdefs.h. */
6609long long ll = 1LL; int i = 63;
6610int
6611main ()
6612{
6613long long llmax = (long long) -1;
6614 return ll << i | ll >> i | llmax / ll | llmax % ll;
6615 ;
6616 return 0;
6617}
6618_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006619if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006620 ac_cv_type_long_long=yes
6621else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006622 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006623fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006624rm -f core conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006626fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006628$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006629 if test $ac_cv_type_long_long = yes; then
6630
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006631$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006632
6633 fi
6634
6635
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006637$as_echo_n "checking for long double... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006638if ${gt_cv_c_long_double+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006639 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006640else
6641 if test "$GCC" = yes; then
6642 gt_cv_c_long_double=yes
6643 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006645/* end confdefs.h. */
6646
6647 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6648 long double foo = 0.0;
6649 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6650 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6651
6652int
6653main ()
6654{
6655
6656 ;
6657 return 0;
6658}
6659_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006660if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006661 gt_cv_c_long_double=yes
6662else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006663 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006664fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006666 fi
6667fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006669$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006670 if test $gt_cv_c_long_double = yes; then
6671
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006672$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006673
6674 fi
6675
6676
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006678$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006679if ${gt_cv_c_wchar_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006680 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006681else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006683/* end confdefs.h. */
6684#include <stddef.h>
6685 wchar_t foo = (wchar_t)'\0';
6686int
6687main ()
6688{
6689
6690 ;
6691 return 0;
6692}
6693_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006694if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006695 gt_cv_c_wchar_t=yes
6696else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006697 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006698fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006700fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006702$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006703 if test $gt_cv_c_wchar_t = yes; then
6704
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006705$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006706
6707 fi
6708
6709
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006711$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006712if ${gt_cv_c_wint_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006713 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006714else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006716/* end confdefs.h. */
6717#include <wchar.h>
6718 wint_t foo = (wchar_t)'\0';
6719int
6720main ()
6721{
6722
6723 ;
6724 return 0;
6725}
6726_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006727if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006728 gt_cv_c_wint_t=yes
6729else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006730 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006731fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006733fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006735$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006736 if test $gt_cv_c_wint_t = yes; then
6737
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006738$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006739
6740 fi
6741
6742
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006744$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006745if ${jm_ac_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006746 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006747else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006749/* end confdefs.h. */
6750#include <sys/types.h>
6751#include <inttypes.h>
6752int
6753main ()
6754{
6755uintmax_t i = (uintmax_t) -1;
6756 ;
6757 return 0;
6758}
6759_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006760if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006761 jm_ac_cv_header_inttypes_h=yes
6762else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006763 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006764fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006766fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006768$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006769 if test $jm_ac_cv_header_inttypes_h = yes; then
6770
6771cat >>confdefs.h <<_ACEOF
6772#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6773_ACEOF
6774
6775 fi
6776
6777
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006779$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006780if ${jm_ac_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006781 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006782else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006784/* end confdefs.h. */
6785#include <sys/types.h>
6786#include <stdint.h>
6787int
6788main ()
6789{
6790uintmax_t i = (uintmax_t) -1;
6791 ;
6792 return 0;
6793}
6794_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006795if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006796 jm_ac_cv_header_stdint_h=yes
6797else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006798 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006799fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006801fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006803$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006804 if test $jm_ac_cv_header_stdint_h = yes; then
6805
6806cat >>confdefs.h <<_ACEOF
6807#define HAVE_STDINT_H_WITH_UINTMAX 1
6808_ACEOF
6809
6810 fi
6811
6812
6813
6814
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006816$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006817if ${gt_cv_c_intmax_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006818 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006819else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006821/* end confdefs.h. */
6822
6823#include <stddef.h>
6824#include <stdlib.h>
6825#if HAVE_STDINT_H_WITH_UINTMAX
6826#include <stdint.h>
6827#endif
6828#if HAVE_INTTYPES_H_WITH_UINTMAX
6829#include <inttypes.h>
6830#endif
6831
6832int
6833main ()
6834{
6835intmax_t x = -1;
6836 ;
6837 return 0;
6838}
6839_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006840if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006841 gt_cv_c_intmax_t=yes
6842else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006843 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006844fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006846fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006848$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006849 if test $gt_cv_c_intmax_t = yes; then
6850
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006851$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006852
6853 fi
6854
6855
6856
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006858$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006859if ${gt_cv_func_printf_posix+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006860 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006861else
6862
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006863 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006864
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006866/* end confdefs.h. */
6867
6868#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6869 notposix
6870#endif
6871
6872_ACEOF
6873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006874 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006875 gt_cv_func_printf_posix="guessing no"
6876else
6877 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006878fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006879rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006880
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006881
6882else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006884/* end confdefs.h. */
6885
6886#include <stdio.h>
6887#include <string.h>
6888/* The string "%2$d %1$d", with dollar characters protected from the shell's
6889 dollar expansion (possibly an autoconf bug). */
6890static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6891static char buf[100];
6892int main ()
6893{
6894 sprintf (buf, format, 33, 55);
6895 return (strcmp (buf, "55 33") != 0);
6896}
6897_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006898if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006899 gt_cv_func_printf_posix=yes
6900else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006901 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006902fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6904 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006905fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006906
Theodore Ts'oe1052142006-10-21 21:46:47 -04006907
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006908fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006910$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006911 case $gt_cv_func_printf_posix in
6912 *yes)
6913
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006914$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006915
6916 ;;
6917 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006918
6919# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6920# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006922$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006923if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006924 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006925else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006927/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006928#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006929int
6930main ()
6931{
6932char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006933 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006934 ;
6935 return 0;
6936}
6937_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006938if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006939 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006940else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006941 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006942fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006943rm -f core conftest.err conftest.$ac_objext \
6944 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006945fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006947$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006948if test $ac_cv_working_alloca_h = yes; then
6949
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006950$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006951
6952fi
6953
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006955$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006956if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006957 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006958else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006960/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006961#ifdef __GNUC__
6962# define alloca __builtin_alloca
6963#else
6964# ifdef _MSC_VER
6965# include <malloc.h>
6966# define alloca _alloca
6967# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006968# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006969# include <alloca.h>
6970# else
6971# ifdef _AIX
6972 #pragma alloca
6973# else
6974# ifndef alloca /* predefined by HP cc +Olibcalls */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006975void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006976# endif
6977# endif
6978# endif
6979# endif
6980#endif
6981
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006982int
6983main ()
6984{
6985char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006986 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006987 ;
6988 return 0;
6989}
6990_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006991if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006992 ac_cv_func_alloca_works=yes
6993else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006994 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006995fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006996rm -f core conftest.err conftest.$ac_objext \
6997 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006998fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007000$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007001
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007002if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007003
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007004$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007005
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007006else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007007 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7008# that cause trouble. Some versions do not even contain alloca or
7009# contain a buggy version. If you still want to use their alloca,
7010# use ar to extract alloca.o from them instead of compiling alloca.c.
7011
Theodore Ts'oe1052142006-10-21 21:46:47 -04007012ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007013
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007014$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007015
7016
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007018$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007019if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007020 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007021else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007023/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007024#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007025webecray
7026#else
7027wenotbecray
7028#endif
7029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007030_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007032 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007033 ac_cv_os_cray=yes
7034else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007035 ac_cv_os_cray=no
7036fi
7037rm -f conftest*
7038
7039fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007041$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007042if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007043 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007045ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007046if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007047
7048cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007049#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007050_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007051
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007052 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007053fi
7054
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007055 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007056fi
7057
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007059$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007060if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007061 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007062else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007063 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007064 ac_cv_c_stack_direction=0
7065else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007067/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007068$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007069int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007070find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007071{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007072 int dir, dummy = 0;
7073 if (! addr)
7074 addr = &dummy;
7075 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7076 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7077 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007078}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007079
7080int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007081main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007082{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007083 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007084}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007085_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007086if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007087 ac_cv_c_stack_direction=1
7088else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007089 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007090fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7092 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007093fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007094
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007095fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007097$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007098cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007099#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007100_ACEOF
7101
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007102
7103fi
7104
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007105
7106
7107
7108 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007109do :
7110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007111ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7112"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007113if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007114 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007115#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007116_ACEOF
7117
7118fi
7119
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007120done
7121
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007122
7123
7124
7125
7126
7127
7128
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007129for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007130do :
7131 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007132if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007133 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007134#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007135_ACEOF
7136
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007137fi
7138done
7139
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007141$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007142if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007143 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007144else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007145 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007146 ac_cv_func_mmap_fixed_mapped=no
7147else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007149/* end confdefs.h. */
7150$ac_includes_default
7151/* malloc might have been renamed as rpl_malloc. */
7152#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007153
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007154/* Thanks to Mike Haertel and Jim Avera for this test.
7155 Here is a matrix of mmap possibilities:
7156 mmap private not fixed
7157 mmap private fixed at somewhere currently unmapped
7158 mmap private fixed at somewhere already mapped
7159 mmap shared not fixed
7160 mmap shared fixed at somewhere currently unmapped
7161 mmap shared fixed at somewhere already mapped
7162 For private mappings, we should verify that changes cannot be read()
7163 back from the file, nor mmap's back from the file at a different
7164 address. (There have been systems where private was not correctly
7165 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007166 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007167 like early versions of FreeBSD and possibly contemporary NetBSD.)
7168 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007169 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007170
7171 Grep wants private fixed already mapped.
7172 The main things grep needs to know about mmap are:
7173 * does it exist and is it safe to write into the mmap'd area
7174 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007175
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007176#include <fcntl.h>
7177#include <sys/mman.h>
7178
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007179#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007180char *malloc ();
7181#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007182
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007183/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007184#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007185# ifdef _SC_PAGESIZE
7186# define getpagesize() sysconf(_SC_PAGESIZE)
7187# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007188# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007189# include <sys/param.h>
7190# ifdef EXEC_PAGESIZE
7191# define getpagesize() EXEC_PAGESIZE
7192# else /* no EXEC_PAGESIZE */
7193# ifdef NBPG
7194# define getpagesize() NBPG * CLSIZE
7195# ifndef CLSIZE
7196# define CLSIZE 1
7197# endif /* no CLSIZE */
7198# else /* no NBPG */
7199# ifdef NBPC
7200# define getpagesize() NBPC
7201# else /* no NBPC */
7202# ifdef PAGESIZE
7203# define getpagesize() PAGESIZE
7204# endif /* PAGESIZE */
7205# endif /* no NBPC */
7206# endif /* no NBPG */
7207# endif /* no EXEC_PAGESIZE */
7208# else /* no HAVE_SYS_PARAM_H */
7209# define getpagesize() 8192 /* punt totally */
7210# endif /* no HAVE_SYS_PARAM_H */
7211# endif /* no _SC_PAGESIZE */
7212
7213#endif /* no HAVE_GETPAGESIZE */
7214
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007215int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007216main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007217{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007218 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007219 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007220 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007221 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007222
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007223 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007224
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007225 /* First, make a file with some known garbage in it. */
7226 data = (char *) malloc (pagesize);
7227 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007228 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007229 for (i = 0; i < pagesize; ++i)
7230 *(data + i) = rand ();
7231 umask (0);
7232 fd = creat ("conftest.mmap", 0600);
7233 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007234 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007235 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007236 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007237 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007238
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007239 /* Next, check that the tail of a page is zero-filled. File must have
7240 non-zero length, otherwise we risk SIGBUS for entire page. */
7241 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7242 if (fd2 < 0)
7243 return 4;
7244 cdata2 = "";
7245 if (write (fd2, cdata2, 1) != 1)
7246 return 5;
7247 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7248 if (data2 == MAP_FAILED)
7249 return 6;
7250 for (i = 0; i < pagesize; ++i)
7251 if (*(data2 + i))
7252 return 7;
7253 close (fd2);
7254 if (munmap (data2, pagesize))
7255 return 8;
7256
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007257 /* Next, try to mmap the file at a fixed address which already has
7258 something else allocated at it. If we can, also make sure that
7259 we see the same garbage. */
7260 fd = open ("conftest.mmap", O_RDWR);
7261 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007262 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007263 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7264 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007265 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007266 for (i = 0; i < pagesize; ++i)
7267 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007268 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007270 /* Finally, make sure that changes to the mapped area do not
7271 percolate back to the file as seen by read(). (This is a bug on
7272 some variants of i386 svr4.0.) */
7273 for (i = 0; i < pagesize; ++i)
7274 *(data2 + i) = *(data2 + i) + 1;
7275 data3 = (char *) malloc (pagesize);
7276 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007277 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007278 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007279 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007280 for (i = 0; i < pagesize; ++i)
7281 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007282 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007283 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007284 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007285}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007286_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007287if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007288 ac_cv_func_mmap_fixed_mapped=yes
7289else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007290 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007291fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7293 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007294fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007295
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007296fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007298$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007299if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007300
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007301$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007302
7303fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007304rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007305
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007306
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007307 { $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 +01007308$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 -04007309if ${ac_cv_gnu_library_2_1+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007310 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007311else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007313/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007314
7315#include <features.h>
7316#ifdef __GNU_LIBRARY__
7317 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7318 Lucky GNU user
7319 #endif
7320#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007321
7322_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007324 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007325 ac_cv_gnu_library_2_1=yes
7326else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007327 ac_cv_gnu_library_2_1=no
7328fi
7329rm -f conftest*
7330
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007331
7332
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007333fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007335$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007336
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007337 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007338
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007339
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007340
7341
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007343$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007344if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007345 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007346else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007347
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007348 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007349
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007350 # Guess based on the CPU.
7351 case "$host_cpu" in
7352 alpha* | i3456786 | m68k | s390*)
7353 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7354 *)
7355 gt_cv_int_divbyzero_sigfpe="guessing no";;
7356 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007357
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007358else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007360/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007361
7362#include <stdlib.h>
7363#include <signal.h>
7364
7365static void
7366#ifdef __cplusplus
7367sigfpe_handler (int sig)
7368#else
7369sigfpe_handler (sig) int sig;
7370#endif
7371{
7372 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7373 exit (sig != SIGFPE);
7374}
7375
7376int x = 1;
7377int y = 0;
7378int z;
7379int nan;
7380
7381int main ()
7382{
7383 signal (SIGFPE, sigfpe_handler);
7384/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7385#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7386 signal (SIGTRAP, sigfpe_handler);
7387#endif
7388/* Linux/SPARC yields signal SIGILL. */
7389#if defined (__sparc__) && defined (__linux__)
7390 signal (SIGILL, sigfpe_handler);
7391#endif
7392
7393 z = x / y;
7394 nan = y / y;
7395 exit (1);
7396}
7397
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007398_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007399if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007400 gt_cv_int_divbyzero_sigfpe=yes
7401else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007402 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007403fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007404rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7405 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007406fi
7407
Theodore Ts'oe1052142006-10-21 21:46:47 -04007408
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007409fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007411$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007412 case "$gt_cv_int_divbyzero_sigfpe" in
7413 *yes) value=1;;
7414 *) value=0;;
7415 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007416
7417cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007418#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007419_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007420
7421
7422
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007424$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007425if ${ac_cv_type_unsigned_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007426 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007427else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007429/* end confdefs.h. */
7430unsigned long long ull = 1ULL; int i = 63;
7431int
7432main ()
7433{
7434unsigned long long ullmax = (unsigned long long) -1;
7435 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7436 ;
7437 return 0;
7438}
7439_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007440if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007441 ac_cv_type_unsigned_long_long=yes
7442else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007443 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007444fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007445rm -f core conftest.err conftest.$ac_objext \
7446 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007447fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007449$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007450 if test $ac_cv_type_unsigned_long_long = yes; then
7451
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007452$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007453
7454 fi
7455
7456
7457
7458
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007459 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 -05007460
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007461 test $ac_cv_type_unsigned_long_long = yes \
7462 && ac_type='unsigned long long' \
7463 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007464
7465cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007466#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007467_ACEOF
7468
7469 else
7470
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007471$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007472
7473 fi
7474
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007475
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007477$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007478if ${gt_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007479 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007480else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007481
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007483/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007484#include <sys/types.h>
7485#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007486int
7487main ()
7488{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007489
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007490 ;
7491 return 0;
7492}
7493_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007494if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007495 gt_cv_header_inttypes_h=yes
7496else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007497 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007498fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007500
7501fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007503$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007504 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007505
7506cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007507#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007508_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007509
7510 fi
7511
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007512
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007513
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007514 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007515 { $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 +01007516$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007517if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007518 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007519else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007520
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007522/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007523#include <inttypes.h>
7524#ifdef PRId32
7525char *p = PRId32;
7526#endif
7527
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007528int
7529main ()
7530{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007531
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007532 ;
7533 return 0;
7534}
7535_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007536if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007537 gt_cv_inttypes_pri_broken=no
7538else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007539 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007540fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007542
7543fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007545$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007546 fi
7547 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007548
7549cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007550#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007551_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007552
7553 fi
7554
7555
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007556 for ac_header in stdint.h
7557do :
7558 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 -04007559if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007560 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007561#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007562_ACEOF
7563
7564fi
7565
7566done
7567
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007569$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007570 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007572/* end confdefs.h. */
7573
7574#include <limits.h>
7575#if HAVE_STDINT_H
7576#include <stdint.h>
7577#endif
7578#ifdef SIZE_MAX
7579Found it
7580#endif
7581
7582_ACEOF
7583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007584 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007585 result=yes
7586fi
7587rm -f conftest*
7588
7589 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007590 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 -05007591
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007592else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007593 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007594fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007595
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007596
7597 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7598
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007599else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007600 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007601fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007602
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007603
7604 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7605
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007606else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007607 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007608fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007609
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007610
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007611 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007613/* end confdefs.h. */
7614#include <stddef.h>
7615 extern size_t foo;
7616 extern unsigned long foo;
7617
7618int
7619main ()
7620{
7621
7622 ;
7623 return 0;
7624}
7625_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007626if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007627 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007628fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007630 fi
7631 if test -z "$result"; then
7632 if test "$fits_in_uint" = 1; then
7633 result="$res_hi$res_lo"U
7634 else
7635 result="$res_hi$res_lo"UL
7636 fi
7637 else
7638 result='~(size_t)0'
7639 fi
7640 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007642$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007643 if test "$result" != yes; then
7644
7645cat >>confdefs.h <<_ACEOF
7646#define SIZE_MAX $result
7647_ACEOF
7648
7649 fi
7650
7651
7652
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007653 for ac_header in stdint.h
7654do :
7655 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 -04007656if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007657 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007658#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007659_ACEOF
7660
7661fi
7662
7663done
7664
7665
7666
7667 if test "X$prefix" = "XNONE"; then
7668 acl_final_prefix="$ac_default_prefix"
7669 else
7670 acl_final_prefix="$prefix"
7671 fi
7672 if test "X$exec_prefix" = "XNONE"; then
7673 acl_final_exec_prefix='${prefix}'
7674 else
7675 acl_final_exec_prefix="$exec_prefix"
7676 fi
7677 acl_save_prefix="$prefix"
7678 prefix="$acl_final_prefix"
7679 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7680 prefix="$acl_save_prefix"
7681
7682
Theodore Ts'oe1052142006-10-21 21:46:47 -04007683# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007684if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007685 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007686else
7687 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007688fi
7689
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007690# Prepare PATH_SEPARATOR.
7691# The user is always right.
7692if test "${PATH_SEPARATOR+set}" != set; then
7693 echo "#! /bin/sh" >conf$$.sh
7694 echo "exit 0" >>conf$$.sh
7695 chmod +x conf$$.sh
7696 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7697 PATH_SEPARATOR=';'
7698 else
7699 PATH_SEPARATOR=:
7700 fi
7701 rm -f conf$$.sh
7702fi
7703ac_prog=ld
7704if test "$GCC" = yes; then
7705 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007707$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007708 case $host in
7709 *-*-mingw*)
7710 # gcc leaves a trailing carriage return which upsets mingw
7711 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7712 *)
7713 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7714 esac
7715 case $ac_prog in
7716 # Accept absolute paths.
7717 [\\/]* | [A-Za-z]:[\\/]*)
7718 re_direlt='/[^/][^/]*/\.\./'
7719 # Canonicalize the path of ld
7720 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7721 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7722 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7723 done
7724 test -z "$LD" && LD="$ac_prog"
7725 ;;
7726 "")
7727 # If it fails, then pretend we aren't using GCC.
7728 ac_prog=ld
7729 ;;
7730 *)
7731 # If it is relative, then search for the first ld in PATH.
7732 with_gnu_ld=unknown
7733 ;;
7734 esac
7735elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007737$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007738else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007740$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007741fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007742if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007743 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007744else
7745 if test -z "$LD"; then
7746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7747 for ac_dir in $PATH; do
7748 test -z "$ac_dir" && ac_dir=.
7749 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7750 acl_cv_path_LD="$ac_dir/$ac_prog"
7751 # Check to see if the program is GNU ld. I'd rather use --version,
7752 # but apparently some GNU ld's only accept -v.
7753 # Break only if it was the GNU/non-GNU ld that we prefer.
7754 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7755 *GNU* | *'with BFD'*)
7756 test "$with_gnu_ld" != no && break ;;
7757 *)
7758 test "$with_gnu_ld" != yes && break ;;
7759 esac
7760 fi
7761 done
7762 IFS="$ac_save_ifs"
7763else
7764 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7765fi
7766fi
7767
7768LD="$acl_cv_path_LD"
7769if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007771$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007772else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007774$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007775fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007776test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007778$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007779if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007780 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007781else
7782 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7783case `$LD -v 2>&1 </dev/null` in
7784*GNU* | *'with BFD'*)
7785 acl_cv_prog_gnu_ld=yes ;;
7786*)
7787 acl_cv_prog_gnu_ld=no ;;
7788esac
7789fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007791$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007792with_gnu_ld=$acl_cv_prog_gnu_ld
7793
7794
7795
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007797$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007798if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007799 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007800else
7801
7802 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7803 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7804 . ./conftest.sh
7805 rm -f ./conftest.sh
7806 acl_cv_rpath=done
7807
7808fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007810$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007811 wl="$acl_cv_wl"
7812 libext="$acl_cv_libext"
7813 shlibext="$acl_cv_shlibext"
7814 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7815 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7816 hardcode_direct="$acl_cv_hardcode_direct"
7817 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007818 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007819if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007820 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007821else
7822 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007823fi
7824
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007825
7826
7827
7828
7829
7830
7831
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007832 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007833
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007834 acl_save_prefix="$prefix"
7835 prefix="$acl_final_prefix"
7836 acl_save_exec_prefix="$exec_prefix"
7837 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007838
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007839 eval additional_includedir=\"$includedir\"
7840 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007841
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007842 exec_prefix="$acl_save_exec_prefix"
7843 prefix="$acl_save_prefix"
7844
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007845
Theodore Ts'oe1052142006-10-21 21:46:47 -04007846# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007847if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007848 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007849 if test "X$withval" = "Xno"; then
7850 use_additional=no
7851 else
7852 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007853
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007854 acl_save_prefix="$prefix"
7855 prefix="$acl_final_prefix"
7856 acl_save_exec_prefix="$exec_prefix"
7857 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007858
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007859 eval additional_includedir=\"$includedir\"
7860 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007861
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007862 exec_prefix="$acl_save_exec_prefix"
7863 prefix="$acl_save_prefix"
7864
7865 else
7866 additional_includedir="$withval/include"
7867 additional_libdir="$withval/lib"
7868 fi
7869 fi
7870
Theodore Ts'oe1052142006-10-21 21:46:47 -04007871fi
7872
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007873 LIBICONV=
7874 LTLIBICONV=
7875 INCICONV=
7876 rpathdirs=
7877 ltrpathdirs=
7878 names_already_handled=
7879 names_next_round='iconv '
7880 while test -n "$names_next_round"; do
7881 names_this_round="$names_next_round"
7882 names_next_round=
7883 for name in $names_this_round; do
7884 already_handled=
7885 for n in $names_already_handled; do
7886 if test "$n" = "$name"; then
7887 already_handled=yes
7888 break
7889 fi
7890 done
7891 if test -z "$already_handled"; then
7892 names_already_handled="$names_already_handled $name"
7893 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7894 eval value=\"\$HAVE_LIB$uppername\"
7895 if test -n "$value"; then
7896 if test "$value" = yes; then
7897 eval value=\"\$LIB$uppername\"
7898 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7899 eval value=\"\$LTLIB$uppername\"
7900 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7901 else
7902 :
7903 fi
7904 else
7905 found_dir=
7906 found_la=
7907 found_so=
7908 found_a=
7909 if test $use_additional = yes; then
7910 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7911 found_dir="$additional_libdir"
7912 found_so="$additional_libdir/lib$name.$shlibext"
7913 if test -f "$additional_libdir/lib$name.la"; then
7914 found_la="$additional_libdir/lib$name.la"
7915 fi
7916 else
7917 if test -f "$additional_libdir/lib$name.$libext"; then
7918 found_dir="$additional_libdir"
7919 found_a="$additional_libdir/lib$name.$libext"
7920 if test -f "$additional_libdir/lib$name.la"; then
7921 found_la="$additional_libdir/lib$name.la"
7922 fi
7923 fi
7924 fi
7925 fi
7926 if test "X$found_dir" = "X"; then
7927 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007928
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007929 acl_save_prefix="$prefix"
7930 prefix="$acl_final_prefix"
7931 acl_save_exec_prefix="$exec_prefix"
7932 exec_prefix="$acl_final_exec_prefix"
7933 eval x=\"$x\"
7934 exec_prefix="$acl_save_exec_prefix"
7935 prefix="$acl_save_prefix"
7936
7937 case "$x" in
7938 -L*)
7939 dir=`echo "X$x" | sed -e 's/^X-L//'`
7940 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7941 found_dir="$dir"
7942 found_so="$dir/lib$name.$shlibext"
7943 if test -f "$dir/lib$name.la"; then
7944 found_la="$dir/lib$name.la"
7945 fi
7946 else
7947 if test -f "$dir/lib$name.$libext"; then
7948 found_dir="$dir"
7949 found_a="$dir/lib$name.$libext"
7950 if test -f "$dir/lib$name.la"; then
7951 found_la="$dir/lib$name.la"
7952 fi
7953 fi
7954 fi
7955 ;;
7956 esac
7957 if test "X$found_dir" != "X"; then
7958 break
7959 fi
7960 done
7961 fi
7962 if test "X$found_dir" != "X"; then
7963 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7964 if test "X$found_so" != "X"; then
7965 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7966 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7967 else
7968 haveit=
7969 for x in $ltrpathdirs; do
7970 if test "X$x" = "X$found_dir"; then
7971 haveit=yes
7972 break
7973 fi
7974 done
7975 if test -z "$haveit"; then
7976 ltrpathdirs="$ltrpathdirs $found_dir"
7977 fi
7978 if test "$hardcode_direct" = yes; then
7979 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7980 else
7981 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7982 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7983 haveit=
7984 for x in $rpathdirs; do
7985 if test "X$x" = "X$found_dir"; then
7986 haveit=yes
7987 break
7988 fi
7989 done
7990 if test -z "$haveit"; then
7991 rpathdirs="$rpathdirs $found_dir"
7992 fi
7993 else
7994 haveit=
7995 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007996
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007997 acl_save_prefix="$prefix"
7998 prefix="$acl_final_prefix"
7999 acl_save_exec_prefix="$exec_prefix"
8000 exec_prefix="$acl_final_exec_prefix"
8001 eval x=\"$x\"
8002 exec_prefix="$acl_save_exec_prefix"
8003 prefix="$acl_save_prefix"
8004
8005 if test "X$x" = "X-L$found_dir"; then
8006 haveit=yes
8007 break
8008 fi
8009 done
8010 if test -z "$haveit"; then
8011 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8012 fi
8013 if test "$hardcode_minus_L" != no; then
8014 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8015 else
8016 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8017 fi
8018 fi
8019 fi
8020 fi
8021 else
8022 if test "X$found_a" != "X"; then
8023 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8024 else
8025 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8026 fi
8027 fi
8028 additional_includedir=
8029 case "$found_dir" in
8030 */lib | */lib/)
8031 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8032 additional_includedir="$basedir/include"
8033 ;;
8034 esac
8035 if test "X$additional_includedir" != "X"; then
8036 if test "X$additional_includedir" != "X/usr/include"; then
8037 haveit=
8038 if test "X$additional_includedir" = "X/usr/local/include"; then
8039 if test -n "$GCC"; then
8040 case $host_os in
8041 linux*) haveit=yes;;
8042 esac
8043 fi
8044 fi
8045 if test -z "$haveit"; then
8046 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008047
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008048 acl_save_prefix="$prefix"
8049 prefix="$acl_final_prefix"
8050 acl_save_exec_prefix="$exec_prefix"
8051 exec_prefix="$acl_final_exec_prefix"
8052 eval x=\"$x\"
8053 exec_prefix="$acl_save_exec_prefix"
8054 prefix="$acl_save_prefix"
8055
8056 if test "X$x" = "X-I$additional_includedir"; then
8057 haveit=yes
8058 break
8059 fi
8060 done
8061 if test -z "$haveit"; then
8062 if test -d "$additional_includedir"; then
8063 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8064 fi
8065 fi
8066 fi
8067 fi
8068 fi
8069 if test -n "$found_la"; then
8070 save_libdir="$libdir"
8071 case "$found_la" in
8072 */* | *\\*) . "$found_la" ;;
8073 *) . "./$found_la" ;;
8074 esac
8075 libdir="$save_libdir"
8076 for dep in $dependency_libs; do
8077 case "$dep" in
8078 -L*)
8079 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8080 if test "X$additional_libdir" != "X/usr/lib"; then
8081 haveit=
8082 if test "X$additional_libdir" = "X/usr/local/lib"; then
8083 if test -n "$GCC"; then
8084 case $host_os in
8085 linux*) haveit=yes;;
8086 esac
8087 fi
8088 fi
8089 if test -z "$haveit"; then
8090 haveit=
8091 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008092
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008093 acl_save_prefix="$prefix"
8094 prefix="$acl_final_prefix"
8095 acl_save_exec_prefix="$exec_prefix"
8096 exec_prefix="$acl_final_exec_prefix"
8097 eval x=\"$x\"
8098 exec_prefix="$acl_save_exec_prefix"
8099 prefix="$acl_save_prefix"
8100
8101 if test "X$x" = "X-L$additional_libdir"; then
8102 haveit=yes
8103 break
8104 fi
8105 done
8106 if test -z "$haveit"; then
8107 if test -d "$additional_libdir"; then
8108 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8109 fi
8110 fi
8111 haveit=
8112 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008113
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008114 acl_save_prefix="$prefix"
8115 prefix="$acl_final_prefix"
8116 acl_save_exec_prefix="$exec_prefix"
8117 exec_prefix="$acl_final_exec_prefix"
8118 eval x=\"$x\"
8119 exec_prefix="$acl_save_exec_prefix"
8120 prefix="$acl_save_prefix"
8121
8122 if test "X$x" = "X-L$additional_libdir"; then
8123 haveit=yes
8124 break
8125 fi
8126 done
8127 if test -z "$haveit"; then
8128 if test -d "$additional_libdir"; then
8129 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8130 fi
8131 fi
8132 fi
8133 fi
8134 ;;
8135 -R*)
8136 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8137 if test "$enable_rpath" != no; then
8138 haveit=
8139 for x in $rpathdirs; do
8140 if test "X$x" = "X$dir"; then
8141 haveit=yes
8142 break
8143 fi
8144 done
8145 if test -z "$haveit"; then
8146 rpathdirs="$rpathdirs $dir"
8147 fi
8148 haveit=
8149 for x in $ltrpathdirs; do
8150 if test "X$x" = "X$dir"; then
8151 haveit=yes
8152 break
8153 fi
8154 done
8155 if test -z "$haveit"; then
8156 ltrpathdirs="$ltrpathdirs $dir"
8157 fi
8158 fi
8159 ;;
8160 -l*)
8161 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8162 ;;
8163 *.la)
8164 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8165 ;;
8166 *)
8167 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8168 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8169 ;;
8170 esac
8171 done
8172 fi
8173 else
8174 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8175 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8176 fi
8177 fi
8178 fi
8179 done
8180 done
8181 if test "X$rpathdirs" != "X"; then
8182 if test -n "$hardcode_libdir_separator"; then
8183 alldirs=
8184 for found_dir in $rpathdirs; do
8185 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8186 done
8187 acl_save_libdir="$libdir"
8188 libdir="$alldirs"
8189 eval flag=\"$hardcode_libdir_flag_spec\"
8190 libdir="$acl_save_libdir"
8191 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8192 else
8193 for found_dir in $rpathdirs; do
8194 acl_save_libdir="$libdir"
8195 libdir="$found_dir"
8196 eval flag=\"$hardcode_libdir_flag_spec\"
8197 libdir="$acl_save_libdir"
8198 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8199 done
8200 fi
8201 fi
8202 if test "X$ltrpathdirs" != "X"; then
8203 for found_dir in $ltrpathdirs; do
8204 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8205 done
8206 fi
8207
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008208
8209
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008210
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008211
8212
8213
8214
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008215 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008216if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008217
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008218else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008219
8220$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008221
8222
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008223fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008224
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008225 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 -04008226stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008227do :
8228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8229ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008230if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008231 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008232#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008233_ACEOF
8234
8235fi
8236
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008237done
8238
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008239 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008240mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8241strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8242__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008243do :
8244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8245ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008246if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008247 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008248#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008249_ACEOF
8250
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008251fi
8252done
8253
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008254
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008257$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008258if ${ac_cv_have_decl__snprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008259 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008260else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008262/* end confdefs.h. */
8263#include <stdio.h>
8264int
8265main ()
8266{
8267
8268#ifndef _snprintf
8269 char *p = (char *) _snprintf;
8270#endif
8271
8272 ;
8273 return 0;
8274}
8275_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008276if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008277 ac_cv_have_decl__snprintf=yes
8278else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008279 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008280fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008282fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008284$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008285 if test $ac_cv_have_decl__snprintf = yes; then
8286 gt_value=1
8287 else
8288 gt_value=0
8289 fi
8290
8291cat >>confdefs.h <<_ACEOF
8292#define HAVE_DECL__SNPRINTF $gt_value
8293_ACEOF
8294
8295
8296
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008298$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008299if ${ac_cv_have_decl__snwprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008300 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008301else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008303/* end confdefs.h. */
8304#include <stdio.h>
8305int
8306main ()
8307{
8308
8309#ifndef _snwprintf
8310 char *p = (char *) _snwprintf;
8311#endif
8312
8313 ;
8314 return 0;
8315}
8316_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008317if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008318 ac_cv_have_decl__snwprintf=yes
8319else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008320 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008321fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008323fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008325$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008326 if test $ac_cv_have_decl__snwprintf = yes; then
8327 gt_value=1
8328 else
8329 gt_value=0
8330 fi
8331
8332cat >>confdefs.h <<_ACEOF
8333#define HAVE_DECL__SNWPRINTF $gt_value
8334_ACEOF
8335
8336
8337
8338
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008340$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008341if ${ac_cv_have_decl_feof_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008342 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008343else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008345/* end confdefs.h. */
8346#include <stdio.h>
8347int
8348main ()
8349{
8350
8351#ifndef feof_unlocked
8352 char *p = (char *) feof_unlocked;
8353#endif
8354
8355 ;
8356 return 0;
8357}
8358_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008359if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008360 ac_cv_have_decl_feof_unlocked=yes
8361else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008362 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008363fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008365fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008367$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008368 if test $ac_cv_have_decl_feof_unlocked = yes; then
8369 gt_value=1
8370 else
8371 gt_value=0
8372 fi
8373
8374cat >>confdefs.h <<_ACEOF
8375#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8376_ACEOF
8377
8378
8379
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008381$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008382if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008383 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008384else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008386/* end confdefs.h. */
8387#include <stdio.h>
8388int
8389main ()
8390{
8391
8392#ifndef fgets_unlocked
8393 char *p = (char *) fgets_unlocked;
8394#endif
8395
8396 ;
8397 return 0;
8398}
8399_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008400if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008401 ac_cv_have_decl_fgets_unlocked=yes
8402else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008403 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008404fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008406fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008408$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008409 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8410 gt_value=1
8411 else
8412 gt_value=0
8413 fi
8414
8415cat >>confdefs.h <<_ACEOF
8416#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8417_ACEOF
8418
8419
8420
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008422$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008423if ${ac_cv_have_decl_getc_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008424 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008425else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008427/* end confdefs.h. */
8428#include <stdio.h>
8429int
8430main ()
8431{
8432
8433#ifndef getc_unlocked
8434 char *p = (char *) getc_unlocked;
8435#endif
8436
8437 ;
8438 return 0;
8439}
8440_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008441if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008442 ac_cv_have_decl_getc_unlocked=yes
8443else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008444 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008445fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008447fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008449$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008450 if test $ac_cv_have_decl_getc_unlocked = yes; then
8451 gt_value=1
8452 else
8453 gt_value=0
8454 fi
8455
8456cat >>confdefs.h <<_ACEOF
8457#define HAVE_DECL_GETC_UNLOCKED $gt_value
8458_ACEOF
8459
8460
8461
8462 case $gt_cv_func_printf_posix in
8463 *yes) HAVE_POSIX_PRINTF=1 ;;
8464 *) HAVE_POSIX_PRINTF=0 ;;
8465 esac
8466
8467 if test "$ac_cv_func_asprintf" = yes; then
8468 HAVE_ASPRINTF=1
8469 else
8470 HAVE_ASPRINTF=0
8471 fi
8472
8473 if test "$ac_cv_func_snprintf" = yes; then
8474 HAVE_SNPRINTF=1
8475 else
8476 HAVE_SNPRINTF=0
8477 fi
8478
8479 if test "$ac_cv_func_wprintf" = yes; then
8480 HAVE_WPRINTF=1
8481 else
8482 HAVE_WPRINTF=0
8483 fi
8484
8485
8486
8487
8488
8489
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008490
8491 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008492
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008493 for element in $INCICONV; do
8494 haveit=
8495 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008496
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008497 acl_save_prefix="$prefix"
8498 prefix="$acl_final_prefix"
8499 acl_save_exec_prefix="$exec_prefix"
8500 exec_prefix="$acl_final_exec_prefix"
8501 eval x=\"$x\"
8502 exec_prefix="$acl_save_exec_prefix"
8503 prefix="$acl_save_prefix"
8504
8505 if test "X$x" = "X$element"; then
8506 haveit=yes
8507 break
8508 fi
8509 done
8510 if test -z "$haveit"; then
8511 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8512 fi
8513 done
8514
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008515
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008517$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008518if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008519 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008520else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008521
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008522 am_cv_func_iconv="no, consider installing GNU libiconv"
8523 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008525/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008526#include <stdlib.h>
8527#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008528int
8529main ()
8530{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008531iconv_t cd = iconv_open("","");
8532 iconv(cd,NULL,NULL,NULL,NULL);
8533 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008534 ;
8535 return 0;
8536}
8537_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008538if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008539 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008540fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008541rm -f core conftest.err conftest.$ac_objext \
8542 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008543 if test "$am_cv_func_iconv" != yes; then
8544 am_save_LIBS="$LIBS"
8545 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008547/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008548#include <stdlib.h>
8549#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008550int
8551main ()
8552{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008553iconv_t cd = iconv_open("","");
8554 iconv(cd,NULL,NULL,NULL,NULL);
8555 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008556 ;
8557 return 0;
8558}
8559_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008560if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008561 am_cv_lib_iconv=yes
8562 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008563fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008564rm -f core conftest.err conftest.$ac_objext \
8565 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008566 LIBS="$am_save_LIBS"
8567 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008568
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008569fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008571$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008572 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008573
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008574$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008575
8576 fi
8577 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008579$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008581$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008582 else
8583 CPPFLAGS="$am_save_CPPFLAGS"
8584 LIBICONV=
8585 LTLIBICONV=
8586 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008587
8588
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008589
8590 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008592$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008593 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008594 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008595else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008596
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008598/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008599
8600#include <stdlib.h>
8601#include <iconv.h>
8602extern
8603#ifdef __cplusplus
8604"C"
8605#endif
8606#if defined(__STDC__) || defined(__cplusplus)
8607size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8608#else
8609size_t iconv();
8610#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008611
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008612int
8613main ()
8614{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008615
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008616 ;
8617 return 0;
8618}
8619_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008620if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008621 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008622else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008623 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008624fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008626 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 +00008627fi
8628
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008629 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008631 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008632$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008633 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008634
8635cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008636#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008637_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008638
8639 fi
8640
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008641
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008643$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008644if ${am_cv_langinfo_codeset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008645 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008646else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008648/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008649#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008650int
8651main ()
8652{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008653char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008654 ;
8655 return 0;
8656}
8657_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008658if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008659 am_cv_langinfo_codeset=yes
8660else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008661 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008662fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008663rm -f core conftest.err conftest.$ac_objext \
8664 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008665
8666fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008668$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008669 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008670
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008671$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008672
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008673 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008674
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008675 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008676
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008678$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008679if ${am_cv_val_LC_MESSAGES+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008680 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008681else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008683/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008684#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008685int
8686main ()
8687{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008688return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008689 ;
8690 return 0;
8691}
8692_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008693if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008694 am_cv_val_LC_MESSAGES=yes
8695else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008696 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008697fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008698rm -f core conftest.err conftest.$ac_objext \
8699 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008700fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008702$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008703 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008704
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008705$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008706
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008707 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008708
8709 fi
8710
8711 for ac_prog in bison
8712do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008713 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008714set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008716$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008717if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008718 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008719else
8720 if test -n "$INTLBISON"; then
8721 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8722else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724for as_dir in $PATH
8725do
8726 IFS=$as_save_IFS
8727 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008728 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008730 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008732 break 2
8733 fi
8734done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008735 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008736IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008737
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008738fi
8739fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008740INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008741if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008743$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008744else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008746$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008747fi
8748
Theodore Ts'oe1052142006-10-21 21:46:47 -04008749
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008750 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008751done
8752
8753 if test -z "$INTLBISON"; then
8754 ac_verc_fail=yes
8755 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008757$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008758 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8759 case $ac_prog_version in
8760 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8761 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8762 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8763 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8764 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008766$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008767 fi
8768 if test $ac_verc_fail = yes; then
8769 INTLBISON=:
8770 fi
8771
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008772
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'ob0cacab2004-11-30 19:00:19 -05008777
8778
8779
8780
8781
8782
8783
8784
8785
8786
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008788$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008789 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008790if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008791 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008792else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008793 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008794fi
8795
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008797$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008798
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008799
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008800
8801
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008802 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008803 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008804
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008805 LIBINTL=
8806 LTLIBINTL=
8807 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008808
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008809 if test "$USE_NLS" = "yes"; then
8810 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008811
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008813$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008814
Theodore Ts'oe1052142006-10-21 21:46:47 -04008815# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008816if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008817 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008818else
8819 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008820fi
8821
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008823$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008824
8825 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8826 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008827
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008828
8829
8830
8831
8832
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008834$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008835if ${gt_cv_func_gnugettext1_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008836 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008837else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008839/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008840#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008841extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008842extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008843int
8844main ()
8845{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008846bindtextdomain ("", "");
8847return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008848 ;
8849 return 0;
8850}
8851_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008852if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008853 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008854else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008855 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008856fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008857rm -f core conftest.err conftest.$ac_objext \
8858 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008859fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008861$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008862
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008863 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008864
8865
8866
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008867 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008868
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008869 acl_save_prefix="$prefix"
8870 prefix="$acl_final_prefix"
8871 acl_save_exec_prefix="$exec_prefix"
8872 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008873
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008874 eval additional_includedir=\"$includedir\"
8875 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008876
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008877 exec_prefix="$acl_save_exec_prefix"
8878 prefix="$acl_save_prefix"
8879
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008880
Theodore Ts'oe1052142006-10-21 21:46:47 -04008881# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008882if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008883 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008884 if test "X$withval" = "Xno"; then
8885 use_additional=no
8886 else
8887 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008888
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008889 acl_save_prefix="$prefix"
8890 prefix="$acl_final_prefix"
8891 acl_save_exec_prefix="$exec_prefix"
8892 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008893
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008894 eval additional_includedir=\"$includedir\"
8895 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008896
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008897 exec_prefix="$acl_save_exec_prefix"
8898 prefix="$acl_save_prefix"
8899
8900 else
8901 additional_includedir="$withval/include"
8902 additional_libdir="$withval/lib"
8903 fi
8904 fi
8905
Theodore Ts'oe1052142006-10-21 21:46:47 -04008906fi
8907
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008908 LIBINTL=
8909 LTLIBINTL=
8910 INCINTL=
8911 rpathdirs=
8912 ltrpathdirs=
8913 names_already_handled=
8914 names_next_round='intl '
8915 while test -n "$names_next_round"; do
8916 names_this_round="$names_next_round"
8917 names_next_round=
8918 for name in $names_this_round; do
8919 already_handled=
8920 for n in $names_already_handled; do
8921 if test "$n" = "$name"; then
8922 already_handled=yes
8923 break
8924 fi
8925 done
8926 if test -z "$already_handled"; then
8927 names_already_handled="$names_already_handled $name"
8928 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8929 eval value=\"\$HAVE_LIB$uppername\"
8930 if test -n "$value"; then
8931 if test "$value" = yes; then
8932 eval value=\"\$LIB$uppername\"
8933 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8934 eval value=\"\$LTLIB$uppername\"
8935 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8936 else
8937 :
8938 fi
8939 else
8940 found_dir=
8941 found_la=
8942 found_so=
8943 found_a=
8944 if test $use_additional = yes; then
8945 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8946 found_dir="$additional_libdir"
8947 found_so="$additional_libdir/lib$name.$shlibext"
8948 if test -f "$additional_libdir/lib$name.la"; then
8949 found_la="$additional_libdir/lib$name.la"
8950 fi
8951 else
8952 if test -f "$additional_libdir/lib$name.$libext"; then
8953 found_dir="$additional_libdir"
8954 found_a="$additional_libdir/lib$name.$libext"
8955 if test -f "$additional_libdir/lib$name.la"; then
8956 found_la="$additional_libdir/lib$name.la"
8957 fi
8958 fi
8959 fi
8960 fi
8961 if test "X$found_dir" = "X"; then
8962 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008963
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008964 acl_save_prefix="$prefix"
8965 prefix="$acl_final_prefix"
8966 acl_save_exec_prefix="$exec_prefix"
8967 exec_prefix="$acl_final_exec_prefix"
8968 eval x=\"$x\"
8969 exec_prefix="$acl_save_exec_prefix"
8970 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008971
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008972 case "$x" in
8973 -L*)
8974 dir=`echo "X$x" | sed -e 's/^X-L//'`
8975 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8976 found_dir="$dir"
8977 found_so="$dir/lib$name.$shlibext"
8978 if test -f "$dir/lib$name.la"; then
8979 found_la="$dir/lib$name.la"
8980 fi
8981 else
8982 if test -f "$dir/lib$name.$libext"; then
8983 found_dir="$dir"
8984 found_a="$dir/lib$name.$libext"
8985 if test -f "$dir/lib$name.la"; then
8986 found_la="$dir/lib$name.la"
8987 fi
8988 fi
8989 fi
8990 ;;
8991 esac
8992 if test "X$found_dir" != "X"; then
8993 break
8994 fi
8995 done
8996 fi
8997 if test "X$found_dir" != "X"; then
8998 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8999 if test "X$found_so" != "X"; then
9000 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9001 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9002 else
9003 haveit=
9004 for x in $ltrpathdirs; do
9005 if test "X$x" = "X$found_dir"; then
9006 haveit=yes
9007 break
9008 fi
9009 done
9010 if test -z "$haveit"; then
9011 ltrpathdirs="$ltrpathdirs $found_dir"
9012 fi
9013 if test "$hardcode_direct" = yes; then
9014 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9015 else
9016 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9017 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9018 haveit=
9019 for x in $rpathdirs; do
9020 if test "X$x" = "X$found_dir"; then
9021 haveit=yes
9022 break
9023 fi
9024 done
9025 if test -z "$haveit"; then
9026 rpathdirs="$rpathdirs $found_dir"
9027 fi
9028 else
9029 haveit=
9030 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009031
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009032 acl_save_prefix="$prefix"
9033 prefix="$acl_final_prefix"
9034 acl_save_exec_prefix="$exec_prefix"
9035 exec_prefix="$acl_final_exec_prefix"
9036 eval x=\"$x\"
9037 exec_prefix="$acl_save_exec_prefix"
9038 prefix="$acl_save_prefix"
9039
9040 if test "X$x" = "X-L$found_dir"; then
9041 haveit=yes
9042 break
9043 fi
9044 done
9045 if test -z "$haveit"; then
9046 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9047 fi
9048 if test "$hardcode_minus_L" != no; then
9049 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9050 else
9051 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9052 fi
9053 fi
9054 fi
9055 fi
9056 else
9057 if test "X$found_a" != "X"; then
9058 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9059 else
9060 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9061 fi
9062 fi
9063 additional_includedir=
9064 case "$found_dir" in
9065 */lib | */lib/)
9066 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9067 additional_includedir="$basedir/include"
9068 ;;
9069 esac
9070 if test "X$additional_includedir" != "X"; then
9071 if test "X$additional_includedir" != "X/usr/include"; then
9072 haveit=
9073 if test "X$additional_includedir" = "X/usr/local/include"; then
9074 if test -n "$GCC"; then
9075 case $host_os in
9076 linux*) haveit=yes;;
9077 esac
9078 fi
9079 fi
9080 if test -z "$haveit"; then
9081 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009082
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009083 acl_save_prefix="$prefix"
9084 prefix="$acl_final_prefix"
9085 acl_save_exec_prefix="$exec_prefix"
9086 exec_prefix="$acl_final_exec_prefix"
9087 eval x=\"$x\"
9088 exec_prefix="$acl_save_exec_prefix"
9089 prefix="$acl_save_prefix"
9090
9091 if test "X$x" = "X-I$additional_includedir"; then
9092 haveit=yes
9093 break
9094 fi
9095 done
9096 if test -z "$haveit"; then
9097 if test -d "$additional_includedir"; then
9098 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9099 fi
9100 fi
9101 fi
9102 fi
9103 fi
9104 if test -n "$found_la"; then
9105 save_libdir="$libdir"
9106 case "$found_la" in
9107 */* | *\\*) . "$found_la" ;;
9108 *) . "./$found_la" ;;
9109 esac
9110 libdir="$save_libdir"
9111 for dep in $dependency_libs; do
9112 case "$dep" in
9113 -L*)
9114 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9115 if test "X$additional_libdir" != "X/usr/lib"; then
9116 haveit=
9117 if test "X$additional_libdir" = "X/usr/local/lib"; then
9118 if test -n "$GCC"; then
9119 case $host_os in
9120 linux*) haveit=yes;;
9121 esac
9122 fi
9123 fi
9124 if test -z "$haveit"; then
9125 haveit=
9126 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009127
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009128 acl_save_prefix="$prefix"
9129 prefix="$acl_final_prefix"
9130 acl_save_exec_prefix="$exec_prefix"
9131 exec_prefix="$acl_final_exec_prefix"
9132 eval x=\"$x\"
9133 exec_prefix="$acl_save_exec_prefix"
9134 prefix="$acl_save_prefix"
9135
9136 if test "X$x" = "X-L$additional_libdir"; then
9137 haveit=yes
9138 break
9139 fi
9140 done
9141 if test -z "$haveit"; then
9142 if test -d "$additional_libdir"; then
9143 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9144 fi
9145 fi
9146 haveit=
9147 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009148
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009149 acl_save_prefix="$prefix"
9150 prefix="$acl_final_prefix"
9151 acl_save_exec_prefix="$exec_prefix"
9152 exec_prefix="$acl_final_exec_prefix"
9153 eval x=\"$x\"
9154 exec_prefix="$acl_save_exec_prefix"
9155 prefix="$acl_save_prefix"
9156
9157 if test "X$x" = "X-L$additional_libdir"; then
9158 haveit=yes
9159 break
9160 fi
9161 done
9162 if test -z "$haveit"; then
9163 if test -d "$additional_libdir"; then
9164 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9165 fi
9166 fi
9167 fi
9168 fi
9169 ;;
9170 -R*)
9171 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9172 if test "$enable_rpath" != no; then
9173 haveit=
9174 for x in $rpathdirs; do
9175 if test "X$x" = "X$dir"; then
9176 haveit=yes
9177 break
9178 fi
9179 done
9180 if test -z "$haveit"; then
9181 rpathdirs="$rpathdirs $dir"
9182 fi
9183 haveit=
9184 for x in $ltrpathdirs; do
9185 if test "X$x" = "X$dir"; then
9186 haveit=yes
9187 break
9188 fi
9189 done
9190 if test -z "$haveit"; then
9191 ltrpathdirs="$ltrpathdirs $dir"
9192 fi
9193 fi
9194 ;;
9195 -l*)
9196 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9197 ;;
9198 *.la)
9199 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9200 ;;
9201 *)
9202 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9203 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9204 ;;
9205 esac
9206 done
9207 fi
9208 else
9209 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9210 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9211 fi
9212 fi
9213 fi
9214 done
9215 done
9216 if test "X$rpathdirs" != "X"; then
9217 if test -n "$hardcode_libdir_separator"; then
9218 alldirs=
9219 for found_dir in $rpathdirs; do
9220 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9221 done
9222 acl_save_libdir="$libdir"
9223 libdir="$alldirs"
9224 eval flag=\"$hardcode_libdir_flag_spec\"
9225 libdir="$acl_save_libdir"
9226 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9227 else
9228 for found_dir in $rpathdirs; do
9229 acl_save_libdir="$libdir"
9230 libdir="$found_dir"
9231 eval flag=\"$hardcode_libdir_flag_spec\"
9232 libdir="$acl_save_libdir"
9233 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9234 done
9235 fi
9236 fi
9237 if test "X$ltrpathdirs" != "X"; then
9238 for found_dir in $ltrpathdirs; do
9239 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9240 done
9241 fi
9242
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009244$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009245if ${gt_cv_func_gnugettext1_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009246 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009247else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009248 gt_save_CPPFLAGS="$CPPFLAGS"
9249 CPPFLAGS="$CPPFLAGS $INCINTL"
9250 gt_save_LIBS="$LIBS"
9251 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009253/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009254#include <libintl.h>
9255extern int _nl_msg_cat_cntr;
9256extern
9257#ifdef __cplusplus
9258"C"
9259#endif
9260const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009261int
9262main ()
9263{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009264bindtextdomain ("", "");
9265return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009266 ;
9267 return 0;
9268}
9269_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009270if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009271 gt_cv_func_gnugettext1_libintl=yes
9272else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009273 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009274fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009275rm -f core conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009277 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9278 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009280/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009281#include <libintl.h>
9282extern int _nl_msg_cat_cntr;
9283extern
9284#ifdef __cplusplus
9285"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009286#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009287const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009288int
9289main ()
9290{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009291bindtextdomain ("", "");
9292return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009293 ;
9294 return 0;
9295}
9296_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009297if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009298 LIBINTL="$LIBINTL $LIBICONV"
9299 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9300 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009301
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009302fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009303rm -f core conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009305 fi
9306 CPPFLAGS="$gt_save_CPPFLAGS"
9307 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009308fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009310$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009311 fi
9312
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009313 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9314 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009315 && test "$PACKAGE" != gettext-runtime \
9316 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009317 gt_use_preinstalled_gnugettext=yes
9318 else
9319 LIBINTL=
9320 LTLIBINTL=
9321 INCINTL=
9322 fi
9323
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009324
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009325 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9326 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009327 fi
9328 fi
9329
9330 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009331 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009332 USE_INCLUDED_LIBINTL=yes
9333 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9334 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9335 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009336 fi
9337
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009338 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9339 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9340 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009341 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009342
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009343
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009344 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9345 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009346
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009347$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009348
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009349 else
9350 USE_NLS=no
9351 fi
9352 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009353
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009355$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009357$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009358 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009360$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009361 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9362 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9363 gt_source="external libintl"
9364 else
9365 gt_source="libc"
9366 fi
9367 else
9368 gt_source="included intl directory"
9369 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009371$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009372 fi
9373
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009374 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009375
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009376 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9377 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009379$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009381$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009382
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009383 for element in $INCINTL; do
9384 haveit=
9385 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009386
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009387 acl_save_prefix="$prefix"
9388 prefix="$acl_final_prefix"
9389 acl_save_exec_prefix="$exec_prefix"
9390 exec_prefix="$acl_final_exec_prefix"
9391 eval x=\"$x\"
9392 exec_prefix="$acl_save_exec_prefix"
9393 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009394
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009395 if test "X$x" = "X$element"; then
9396 haveit=yes
9397 break
9398 fi
9399 done
9400 if test -z "$haveit"; then
9401 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9402 fi
9403 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009404
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009405 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009406
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009407
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009408$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009409
9410
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009411$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009412
9413 fi
9414
9415 POSUB=po
9416 fi
9417
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009418
9419 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009420 BUILD_INCLUDED_LIBINTL=yes
9421 fi
9422
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009423
9424
9425
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009426
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009427 nls_cv_header_intl=
9428 nls_cv_header_libgt=
9429
9430 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009431
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009432
9433 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009434
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009435
9436 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009437
9438
9439 if test "$USE_INCLUDED_LIBINTL" = yes; then
9440 INTLOBJS="\$(GETTOBJS)"
9441 fi
9442
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009443
9444 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009445
9446
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009447
9448 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009449
9450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009451
9452
9453
9454
9455
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009457$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9458set x ${MAKE-make}
9459ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009460if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009461 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009462else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009463 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009464SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009465all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009466 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009467_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009468# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009469case `${MAKE-make} -f conftest.make 2>/dev/null` in
9470 *@@@%%%=?*=@@@%%%*)
9471 eval ac_cv_prog_make_${ac_make}_set=yes;;
9472 *)
9473 eval ac_cv_prog_make_${ac_make}_set=no;;
9474esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009475rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009476fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009477if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009479$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009480 SET_MAKE=
9481else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009483$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009484 SET_MAKE="MAKE=${MAKE-make}"
9485fi
9486
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009488$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009489if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009490 $as_echo_n "(cached) " >&6
9491else
9492 _cv_gnu_make_command='' ;
9493 for a in "$MAKE" make gmake gnumake ; do
9494 if test -z "$a" ; then continue ; fi ;
9495 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9496 _cv_gnu_make_command=$a ;
9497 break;
9498 fi
9499 done ;
9500
9501fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009503$as_echo "$_cv_gnu_make_command" >&6; } ;
9504 if test "x$_cv_gnu_make_command" != "x" ; then
9505 ifGNUmake='' ;
9506 ifNotGNUmake='#' ;
9507 else
9508 ifGNUmake='#' ;
9509 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009511$as_echo "\"Not found\"" >&6; };
9512 fi
9513
9514
9515
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009516# Extract the first word of "ln", so it can be a program name with args.
9517set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009519$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009520if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009521 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009522else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009523 case $LN in
9524 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009525 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9526 ;;
9527 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529for as_dir in $PATH
9530do
9531 IFS=$as_save_IFS
9532 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009533 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009535 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009537 break 2
9538 fi
9539done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009540 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009541IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009542
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009543 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9544 ;;
9545esac
9546fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009547LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009548if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009550$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009551else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009553$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009554fi
9555
Theodore Ts'oe1052142006-10-21 21:46:47 -04009556
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009558$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009559LN_S=$as_ln_s
9560if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009562$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009563else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009565$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009566fi
9567
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009568# Extract the first word of "mv", so it can be a program name with args.
9569set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009571$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009572if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009573 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009574else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009575 case $MV in
9576 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009577 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9578 ;;
9579 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581for as_dir in $PATH
9582do
9583 IFS=$as_save_IFS
9584 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009585 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009587 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009589 break 2
9590 fi
9591done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009592 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009593IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009594
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009595 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9596 ;;
9597esac
9598fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009599MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009600if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009602$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009603else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009605$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009606fi
9607
Theodore Ts'oe1052142006-10-21 21:46:47 -04009608
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009609# Extract the first word of "cp", so it can be a program name with args.
9610set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009612$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009613if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009614 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009615else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009616 case $CP in
9617 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009618 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9619 ;;
9620 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622for as_dir in $PATH
9623do
9624 IFS=$as_save_IFS
9625 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009626 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009628 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009630 break 2
9631 fi
9632done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009633 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009634IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009635
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009636 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9637 ;;
9638esac
9639fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009640CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009641if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009643$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009644else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009646$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009647fi
9648
Theodore Ts'oe1052142006-10-21 21:46:47 -04009649
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009650# Extract the first word of "rm", so it can be a program name with args.
9651set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009653$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009654if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009655 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009656else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009657 case $RM in
9658 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009659 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9660 ;;
9661 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663for as_dir in $PATH
9664do
9665 IFS=$as_save_IFS
9666 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009667 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009669 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009671 break 2
9672 fi
9673done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009674 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009675IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009676
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009677 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9678 ;;
9679esac
9680fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009681RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009682if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009684$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009685else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009687$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009688fi
9689
Theodore Ts'oe1052142006-10-21 21:46:47 -04009690
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009691# Extract the first word of "chmod", so it can be a program name with args.
9692set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009694$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009695if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009696 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009697else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009698 case $CHMOD in
9699 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009700 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9701 ;;
9702 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704for as_dir in $PATH
9705do
9706 IFS=$as_save_IFS
9707 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009708 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009710 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009712 break 2
9713 fi
9714done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009715 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009716IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009717
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009718 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9719 ;;
9720esac
9721fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009722CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009723if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009725$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009726else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009728$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009729fi
9730
Theodore Ts'oe1052142006-10-21 21:46:47 -04009731
Theodore Ts'o32237012005-01-17 19:13:39 -05009732for ac_prog in gawk mawk nawk awk
9733do
9734 # Extract the first word of "$ac_prog", so it can be a program name with args.
9735set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009737$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009738if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009739 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009740else
Theodore Ts'o32237012005-01-17 19:13:39 -05009741 if test -n "$AWK"; then
9742 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9743else
9744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009745for as_dir in $PATH
9746do
9747 IFS=$as_save_IFS
9748 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009749 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -05009751 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009753 break 2
9754 fi
9755done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009756 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009757IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009758
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009759fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009760fi
9761AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009762if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009764$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009765else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009767$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009768fi
9769
Theodore Ts'oe1052142006-10-21 21:46:47 -04009770
Theodore Ts'o32237012005-01-17 19:13:39 -05009771 test -n "$AWK" && break
9772done
9773
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009775$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009776if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009777 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009778else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009779 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9780 then ac_cv_path_EGREP="$GREP -E"
9781 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009782 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009783 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009784 # Loop through the user's path and test for each of PROGNAME-LIST
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009786for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9787do
9788 IFS=$as_save_IFS
9789 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009790 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009791 for ac_exec_ext in '' $ac_executable_extensions; do
9792 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009793 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009794# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009795 # Check for GNU $ac_path_EGREP
9796case `"$ac_path_EGREP" --version 2>&1` in
9797*GNU*)
9798 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9799*)
9800 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009801 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009802 while :
9803 do
9804 cat "conftest.in" "conftest.in" >"conftest.tmp"
9805 mv "conftest.tmp" "conftest.in"
9806 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009807 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009810 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9812 # Best one so far, save it but keep looking for a better one
9813 ac_cv_path_EGREP="$ac_path_EGREP"
9814 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009815 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009816 # 10*(2^10) chars as input seems more than enough
9817 test $ac_count -gt 10 && break
9818 done
9819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9820esac
9821
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009822 $ac_path_EGREP_found && break 3
9823 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009824 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009825 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009826IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009827 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009828 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 +01009829 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009830else
9831 ac_cv_path_EGREP=$EGREP
9832fi
9833
Theodore Ts'oe1052142006-10-21 21:46:47 -04009834 fi
9835fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009837$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009838 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009839
9840
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009841# Extract the first word of "sed", so it can be a program name with args.
9842set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009844$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009845if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009846 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009847else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009848 case $SED in
9849 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009850 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9851 ;;
9852 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854for as_dir in $PATH
9855do
9856 IFS=$as_save_IFS
9857 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009858 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009860 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009862 break 2
9863 fi
9864done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009865 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009866IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009867
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009868 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9869 ;;
9870esac
9871fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009872SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009873if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009875$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009876else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009878$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009879fi
9880
Theodore Ts'oe1052142006-10-21 21:46:47 -04009881
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009882# Extract the first word of "perl", so it can be a program name with args.
9883set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009885$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009886if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009887 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009888else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009889 case $PERL in
9890 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009891 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9892 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009893 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895for as_dir in $PATH
9896do
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009899 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009901 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009903 break 2
9904 fi
9905done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009906 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009907IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009908
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009909 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9910 ;;
9911esac
9912fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009913PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009914if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009916$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009917else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009919$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009920fi
9921
Theodore Ts'oe1052142006-10-21 21:46:47 -04009922
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009923# Extract the first word of "ldconfig", so it can be a program name with args.
9924set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009926$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009927if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009928 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009929else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009930 case $LDCONFIG in
9931 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009932 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9933 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009934 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936for as_dir in $PATH
9937do
9938 IFS=$as_save_IFS
9939 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009940 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009942 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009944 break 2
9945 fi
9946done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009947 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009948IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009949
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009950 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9951 ;;
9952esac
9953fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009954LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009955if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009957$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009958else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009960$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009961fi
9962
Theodore Ts'oe1052142006-10-21 21:46:47 -04009963
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009964if test -n "$ac_tool_prefix"; then
9965 # 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 +00009966set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009968$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009969if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009970 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009971else
9972 if test -n "$AR"; then
9973 ac_cv_prog_AR="$AR" # Let the user override the test.
9974else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976for as_dir in $PATH
9977do
9978 IFS=$as_save_IFS
9979 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009980 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009982 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009984 break 2
9985 fi
9986done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009987 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009988IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009989
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009990fi
9991fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009992AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009993if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009995$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009996else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009998$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009999fi
10000
Theodore Ts'oe1052142006-10-21 21:46:47 -040010001
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010002fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010003if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010004 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010005 # Extract the first word of "ar", so it can be a program name with args.
10006set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010008$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010009if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010010 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010011else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010012 if test -n "$ac_ct_AR"; then
10013 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010014else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10016for as_dir in $PATH
10017do
10018 IFS=$as_save_IFS
10019 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010020 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010022 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010024 break 2
10025 fi
10026done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010027 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010028IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010029
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010030fi
10031fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010032ac_ct_AR=$ac_cv_prog_ac_ct_AR
10033if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010035$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010036else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010038$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010039fi
10040
Theodore Ts'oe1052142006-10-21 21:46:47 -040010041 if test "x$ac_ct_AR" = x; then
10042 AR="ar"
10043 else
10044 case $cross_compiling:$ac_tool_warned in
10045yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010046{ $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 +010010047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010048ac_tool_warned=yes ;;
10049esac
10050 AR=$ac_ct_AR
10051 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010052else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010053 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010054fi
10055
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010056if test -n "$ac_tool_prefix"; then
10057 # 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 +000010058set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010060$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010061if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010062 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010063else
10064 if test -n "$RANLIB"; then
10065 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10066else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10068for as_dir in $PATH
10069do
10070 IFS=$as_save_IFS
10071 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010072 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010074 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010076 break 2
10077 fi
10078done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010079 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010080IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010081
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010082fi
10083fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010084RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010085if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010087$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010088else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010090$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010091fi
10092
Theodore Ts'oe1052142006-10-21 21:46:47 -040010093
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010094fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010095if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010096 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010097 # Extract the first word of "ranlib", so it can be a program name with args.
10098set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010100$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010101if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010102 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010103else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010104 if test -n "$ac_ct_RANLIB"; then
10105 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010106else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108for as_dir in $PATH
10109do
10110 IFS=$as_save_IFS
10111 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010112 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010114 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010116 break 2
10117 fi
10118done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010119 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010120IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010121
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010122fi
10123fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010124ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10125if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010127$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010128else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010130$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010131fi
10132
Theodore Ts'oe1052142006-10-21 21:46:47 -040010133 if test "x$ac_ct_RANLIB" = x; then
10134 RANLIB=":"
10135 else
10136 case $cross_compiling:$ac_tool_warned in
10137yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010138{ $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 +010010139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010140ac_tool_warned=yes ;;
10141esac
10142 RANLIB=$ac_ct_RANLIB
10143 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010144else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010145 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010146fi
10147
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010148if test -n "$ac_tool_prefix"; then
10149 # 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 +000010150set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010152$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010153if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010154 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010155else
10156 if test -n "$STRIP"; then
10157 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10158else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10160for as_dir in $PATH
10161do
10162 IFS=$as_save_IFS
10163 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010164 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010166 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010168 break 2
10169 fi
10170done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010171 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010172IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010173
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010174fi
10175fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010176STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010177if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010179$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010180else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010182$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010183fi
10184
Theodore Ts'oe1052142006-10-21 21:46:47 -040010185
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010186fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010187if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010188 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010189 # Extract the first word of "strip", so it can be a program name with args.
10190set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010192$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010193if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010194 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010195else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010196 if test -n "$ac_ct_STRIP"; then
10197 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010198else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200for as_dir in $PATH
10201do
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010204 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010206 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010208 break 2
10209 fi
10210done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010211 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010212IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010213
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010214fi
10215fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010216ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10217if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010219$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010220else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010222$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010223fi
10224
Theodore Ts'oe1052142006-10-21 21:46:47 -040010225 if test "x$ac_ct_STRIP" = x; then
10226 STRIP=":"
10227 else
10228 case $cross_compiling:$ac_tool_warned in
10229yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010230{ $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 +010010231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010232ac_tool_warned=yes ;;
10233esac
10234 STRIP=$ac_ct_STRIP
10235 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010236else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010237 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010238fi
10239
Manish Katiyar7321d942008-04-14 17:20:03 +053010240# Extract the first word of "makeinfo", so it can be a program name with args.
10241set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010243$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010244if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010245 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053010246else
10247 if test -n "$MAKEINFO"; then
10248 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10249else
10250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251for as_dir in $PATH
10252do
10253 IFS=$as_save_IFS
10254 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010255 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053010257 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053010259 break 2
10260 fi
10261done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010262 done
Manish Katiyar7321d942008-04-14 17:20:03 +053010263IFS=$as_save_IFS
10264
10265fi
10266fi
10267MAKEINFO=$ac_cv_prog_MAKEINFO
10268if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010270$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010271else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010273$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010274fi
10275
10276
10277if test "_$MAKEINFO" = "_"; then
10278 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10279else
10280 case "$MAKEINFO" in
10281 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010283*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010284$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010285*** Makeinfo is missing. Info documentation will not be built." >&2;}
10286 ;;
10287 *)
10288 ;;
10289 esac
10290fi
10291
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010292
Theodore Ts'o6c133521999-07-03 20:37:03 +000010293# See if we need a separate native compiler.
10294if test $cross_compiling = no; then
10295 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010296
Theodore Ts'o6c133521999-07-03 20:37:03 +000010297else
10298 for ac_prog in gcc cc
10299do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010300 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010301set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010303$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010304if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010305 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010306else
10307 if test -n "$BUILD_CC"; then
10308 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10309else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010312do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010313 IFS=$as_save_IFS
10314 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010315 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010317 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010319 break 2
10320 fi
10321done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010322 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010323IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010324
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010325fi
10326fi
10327BUILD_CC=$ac_cv_prog_BUILD_CC
10328if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010330$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010331else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010333$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010334fi
10335
Theodore Ts'oe1052142006-10-21 21:46:47 -040010336
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010337 test -n "$BUILD_CC" && break
10338done
10339
10340fi
Mike Frysinger677fc912012-03-06 20:13:54 -050010341for 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 -050010342do :
10343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10344ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010345if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010346 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010347#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010348_ACEOF
10349
10350fi
10351
10352done
10353
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010354for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010355do :
10356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10357ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010358#if HAVE_SYS_QUEUE_H
10359#include <sys/queue.h>
10360#endif
10361
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010362"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010363if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010364 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010365#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010366_ACEOF
10367
10368fi
10369
10370done
10371
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010372for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010373do :
10374 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010375#if HAVE_SYS_TYPES_H
10376#include <sys/types.h>
10377#endif
10378#if HAVE_SYS_SOCKET
10379#include <sys/socket.h>
10380#endif
10381
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010382"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010383if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010384 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010385#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010386_ACEOF
10387
10388fi
10389
10390done
10391
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010392for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010393do :
10394 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010395if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010396 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010397#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010398_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010399
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010400ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010401if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010402
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010403$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010404
10405fi
10406
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010407fi
10408done
10409
10410
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010411ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10412"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010413if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010414
10415$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010416
10417fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010418
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010419ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10420"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010421if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010422
10423$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010424
Theodore Ts'offf45482003-04-13 00:44:19 -040010425fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010426
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010427ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10428"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010429if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010430
10431$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010432
10433fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010434
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010435ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010436 #define _LARGEFILE64_SOURCE
10437 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010438"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010439if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010440
10441$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010442
10443fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010444
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010445# The cast to long int works around a bug in the HP C Compiler
10446# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10447# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10448# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010450$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010451if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010452 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010453else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010454 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 -050010455
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010456else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010457 if test "$ac_cv_type_short" = yes; then
10458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010460as_fn_error 77 "cannot compute sizeof (short)
10461See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010462 else
10463 ac_cv_sizeof_short=0
10464 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010465fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010466
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010467fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010469$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010470
10471
10472
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010473cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010474#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010475_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010476
10477
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010478# The cast to long int works around a bug in the HP C Compiler
10479# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10480# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10481# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010483$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010484if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010485 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010486else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010487 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 -050010488
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010489else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010490 if test "$ac_cv_type_int" = yes; then
10491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010493as_fn_error 77 "cannot compute sizeof (int)
10494See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010495 else
10496 ac_cv_sizeof_int=0
10497 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010498fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010499
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010500fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010502$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010503
10504
10505
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010506cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010507#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010508_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010509
10510
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010511# The cast to long int works around a bug in the HP C Compiler
10512# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10513# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10514# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010516$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010517if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010518 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010519else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010520 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 -050010521
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010522else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010523 if test "$ac_cv_type_long" = yes; then
10524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010526as_fn_error 77 "cannot compute sizeof (long)
10527See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010528 else
10529 ac_cv_sizeof_long=0
10530 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010531fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010532
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010533fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010535$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010536
10537
10538
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010539cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010540#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010541_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010542
10543
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010544# The cast to long int works around a bug in the HP C Compiler
10545# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10546# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10547# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010549$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010550if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010551 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010552else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010553 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 -050010554
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010555else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010556 if test "$ac_cv_type_long_long" = yes; then
10557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010559as_fn_error 77 "cannot compute sizeof (long long)
10560See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010561 else
10562 ac_cv_sizeof_long_long=0
10563 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010564fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010565
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010566fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010568$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010569
10570
10571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010572cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010573#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010574_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010575
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010576
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010577SIZEOF_SHORT=$ac_cv_sizeof_short
10578SIZEOF_INT=$ac_cv_sizeof_int
10579SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010580SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10581
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010582
10583
10584
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010586$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010587if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010588 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010589else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010590 ac_cv_c_bigendian=unknown
10591 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010593/* end confdefs.h. */
10594#ifndef __APPLE_CC__
10595 not a universal capable compiler
10596 #endif
10597 typedef int dummy;
10598
10599_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010600if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010601
10602 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010603 # there are at least two -arch flags with different values.
10604 ac_arch=
10605 ac_prev=
10606 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10607 if test -n "$ac_prev"; then
10608 case $ac_word in
10609 i?86 | x86_64 | ppc | ppc64)
10610 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10611 ac_arch=$ac_word
10612 else
10613 ac_cv_c_bigendian=universal
10614 break
10615 fi
10616 ;;
10617 esac
10618 ac_prev=
10619 elif test "x$ac_word" = "x-arch"; then
10620 ac_prev=arch
10621 fi
10622 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010623fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10625 if test $ac_cv_c_bigendian = unknown; then
10626 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010628/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010629#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010630 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010631
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010632int
10633main ()
10634{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010635#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10636 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10637 && LITTLE_ENDIAN)
10638 bogus endian macros
10639 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010640
10641 ;
10642 return 0;
10643}
10644_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010645if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010646 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010648/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010649#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010650 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010651
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010652int
10653main ()
10654{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010655#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010656 not big endian
10657 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010658
10659 ;
10660 return 0;
10661}
10662_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010663if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010664 ac_cv_c_bigendian=yes
10665else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010666 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010667fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010669fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10671 fi
10672 if test $ac_cv_c_bigendian = unknown; then
10673 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010675/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010676#include <limits.h>
10677
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010678int
10679main ()
10680{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010681#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10682 bogus endian macros
10683 #endif
10684
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010685 ;
10686 return 0;
10687}
10688_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010689if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010690 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010692/* end confdefs.h. */
10693#include <limits.h>
10694
10695int
10696main ()
10697{
10698#ifndef _BIG_ENDIAN
10699 not big endian
10700 #endif
10701
10702 ;
10703 return 0;
10704}
10705_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010706if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010707 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010708else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010709 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010710fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010712fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10714 fi
10715 if test $ac_cv_c_bigendian = unknown; then
10716 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010717 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010718 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010720/* end confdefs.h. */
10721short int ascii_mm[] =
10722 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10723 short int ascii_ii[] =
10724 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10725 int use_ascii (int i) {
10726 return ascii_mm[i] + ascii_ii[i];
10727 }
10728 short int ebcdic_ii[] =
10729 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10730 short int ebcdic_mm[] =
10731 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10732 int use_ebcdic (int i) {
10733 return ebcdic_mm[i] + ebcdic_ii[i];
10734 }
10735 extern int foo;
10736
10737int
10738main ()
10739{
10740return use_ascii (foo) == use_ebcdic (foo);
10741 ;
10742 return 0;
10743}
10744_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010745if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010746 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10747 ac_cv_c_bigendian=yes
10748 fi
10749 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10750 if test "$ac_cv_c_bigendian" = unknown; then
10751 ac_cv_c_bigendian=no
10752 else
10753 # finding both strings is unlikely to happen, but who knows?
10754 ac_cv_c_bigendian=unknown
10755 fi
10756 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010757fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010759else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010761/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010762$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010763int
10764main ()
10765{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010766
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010767 /* Are we little or big endian? From Harbison&Steele. */
10768 union
10769 {
10770 long int l;
10771 char c[sizeof (long int)];
10772 } u;
10773 u.l = 1;
10774 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010775
10776 ;
10777 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010778}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010779_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010780if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010781 ac_cv_c_bigendian=no
10782else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010783 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010784fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010785rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10786 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010787fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010788
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010789 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010790fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010792$as_echo "$ac_cv_c_bigendian" >&6; }
10793 case $ac_cv_c_bigendian in #(
10794 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010795 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010796;; #(
10797 no)
10798 ;; #(
10799 universal)
10800
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010801$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010802
10803 ;; #(
10804 *)
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010805 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010806 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010807 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010808
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010809BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010810ASM_TYPES_HEADER=./asm_types.h
10811
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010812echo "/* These defines are needed for the public ext2fs.h header file */" \
10813 > public_config.h
10814if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10815 uniq tmp_config.$$ >> public_config.h
10816else
10817 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10818fi
10819if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10820 uniq tmp_config.$$ >> public_config.h
10821else
10822 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10823fi
10824rm -f tmp_config.$$
10825PUBLIC_CONFIG_HEADER=./public_config.h
10826
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010827for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010828do :
10829 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 -040010830if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010831 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010832#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010833_ACEOF
10834
10835fi
10836
Theodore Ts'o0c193f82003-08-01 14:26:23 -040010837done
10838
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010839ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010840if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010841
10842cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010843#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010844_ACEOF
10845
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010846
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010847fi
10848
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010849{ $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 +010010850$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010851if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010852 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010853else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010855/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010856#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010857int
10858main ()
10859{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010860struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010861 ;
10862 return 0;
10863}
10864_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010865if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010866 e2fsprogs_cv_struct_st_flags=yes
10867else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010868 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010869fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10871fi
10872
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010874$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010875if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010877$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010878 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010879 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010880else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010882/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010883#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010884int
10885main ()
10886{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010887struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010888 ;
10889 return 0;
10890}
10891_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010892if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010893 e2fsprogs_cv_struct_st_flags_immut=yes
10894else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010895 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010896fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10898fi
10899
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010901$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010902 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010903
10904$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010905
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010906 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010907fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010908ac_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 -050010909 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010910"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010911if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010912
10913cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010914#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010915_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010916
10917fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010918
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010919if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010921$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010922if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010923 $as_echo_n "(cached) " >&6
10924else
10925 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010927/* end confdefs.h. */
10928
10929/* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10932#ifdef __cplusplus
10933extern "C"
10934#endif
10935char blkid_probe_all ();
10936int
10937main ()
10938{
10939return blkid_probe_all ();
10940 ;
10941 return 0;
10942}
10943_ACEOF
10944for ac_lib in '' blkid; do
10945 if test -z "$ac_lib"; then
10946 ac_res="none required"
10947 else
10948 ac_res=-l$ac_lib
10949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10950 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010951 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010952 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010953fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010954rm -f core conftest.err conftest.$ac_objext \
10955 conftest$ac_exeext
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010956 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010957 break
10958fi
10959done
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010960if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010961
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010962else
10963 ac_cv_search_blkid_probe_all=no
10964fi
10965rm conftest.$ac_ext
10966LIBS=$ac_func_search_save_LIBS
10967fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010969$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10970ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010971if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10973
10974fi
10975
10976fi
Theodore Ts'o3b802e42012-05-28 10:38:06 -040010977for 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 -050010978do :
10979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10980ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010981if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010982 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010983#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010984_ACEOF
10985
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010986fi
10987done
10988
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010989SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010991$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010992if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010993 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010994else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010995 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010996LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010998/* end confdefs.h. */
10999
Theodore Ts'oe1052142006-10-21 21:46:47 -040011000/* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011003#ifdef __cplusplus
11004extern "C"
11005#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011006char socket ();
11007int
11008main ()
11009{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011010return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011011 ;
11012 return 0;
11013}
11014_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011015if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011016 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011017else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011018 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011019fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011020rm -f core conftest.err conftest.$ac_objext \
11021 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011022LIBS=$ac_check_lib_save_LIBS
11023fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011025$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011026if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011027 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011028fi
11029
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011030
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011032$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011033if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011034 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011035else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011037/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011038#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011039
11040_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011042 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011043 ac_cv_have_optreset=yes
11044else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011045 ac_cv_have_optreset=no
11046fi
11047rm -f conftest*
11048
11049fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011051$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011052if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011053
11054$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011055
11056fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011057
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011058SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011059ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011060if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011061
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011062else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011064$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011065if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011066 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011067else
11068 ac_check_lib_save_LIBS=$LIBS
11069LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011071/* end confdefs.h. */
11072
11073/* Override any GCC internal prototype to avoid an error.
11074 Use char because int might match the return type of a GCC
11075 builtin and then its argument prototype would still apply. */
11076#ifdef __cplusplus
11077extern "C"
11078#endif
11079char sem_init ();
11080int
11081main ()
11082{
11083return sem_init ();
11084 ;
11085 return 0;
11086}
11087_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011088if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011089 ac_cv_lib_pthread_sem_init=yes
11090else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011091 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011092fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011093rm -f core conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011095LIBS=$ac_check_lib_save_LIBS
11096fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011098$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011099if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011100 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011101
11102 SEM_INIT_LIB=-lpthread
11103else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011105$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011106if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011107 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011108else
11109 ac_check_lib_save_LIBS=$LIBS
11110LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011112/* end confdefs.h. */
11113
11114/* Override any GCC internal prototype to avoid an error.
11115 Use char because int might match the return type of a GCC
11116 builtin and then its argument prototype would still apply. */
11117#ifdef __cplusplus
11118extern "C"
11119#endif
11120char sem_init ();
11121int
11122main ()
11123{
11124return sem_init ();
11125 ;
11126 return 0;
11127}
11128_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011129if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011130 ac_cv_lib_rt_sem_init=yes
11131else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011132 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011133fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011134rm -f core conftest.err conftest.$ac_objext \
11135 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011136LIBS=$ac_check_lib_save_LIBS
11137fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011139$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011140if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011141 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011142
11143 SEM_INIT_LIB=-lrt
11144else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011146$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011147if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011148 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011149else
11150 ac_check_lib_save_LIBS=$LIBS
11151LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011153/* end confdefs.h. */
11154
11155/* Override any GCC internal prototype to avoid an error.
11156 Use char because int might match the return type of a GCC
11157 builtin and then its argument prototype would still apply. */
11158#ifdef __cplusplus
11159extern "C"
11160#endif
11161char sem_init ();
11162int
11163main ()
11164{
11165return sem_init ();
11166 ;
11167 return 0;
11168}
11169_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011170if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011171 ac_cv_lib_posix4_sem_init=yes
11172else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011173 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011174fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011175rm -f core conftest.err conftest.$ac_objext \
11176 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011177LIBS=$ac_check_lib_save_LIBS
11178fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011180$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011181if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011182 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011183
11184 SEM_INIT_LIB=-lposix4
11185fi
11186
11187fi
11188
11189fi
11190
11191fi
11192
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011194$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040011195if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011196 UNI_DIFF_OPTS=-u
11197else
11198 UNI_DIFF_OPTS=-c
11199fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011201$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011202
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011203case "$host_os" in
11204linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011205
11206$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011207
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011208 ;;
11209esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011210LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011211CYGWIN_CMT="#"
11212UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011213case "$host_os" in
11214linux*)
11215 LINUX_CMT=
11216 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040011217cygwin)
11218 CYGWIN_CMT=
11219 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011220 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011221esac
11222
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011223
11224
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011225case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011226linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011227 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11228 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011229 { $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 +010011230$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011231 fi
11232 ;;
11233esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011234case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011235linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011236 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011237 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011238 { $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 +010011239$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011240 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011242$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011243 mandir=/usr/share/man
11244 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011245 fi
11246;;
11247esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011248if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000011249 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011250 root_prefix="$ac_default_prefix"
11251 else
11252 root_prefix="$prefix"
11253 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040011254 root_bindir=$bindir
11255 root_sbindir=$sbindir
11256 root_libdir=$libdir
11257 root_sysconfdir=$sysconfdir
11258else
11259 root_bindir='${root_prefix}/bin'
11260 root_sbindir='${root_prefix}/sbin'
11261 root_libdir='${root_prefix}/lib'
11262 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011263fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011264if test "$bindir" != '${exec_prefix}/bin'; then
11265 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011267$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011268fi
11269if test "$sbindir" != '${exec_prefix}/sbin'; then
11270 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011272$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011273fi
11274if test "$libdir" != '${exec_prefix}/lib'; then
11275 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011277$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011278fi
11279if test "$sysconfdir" != '${prefix}/etc'; then
11280 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011282$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011283fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011284
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011285
11286
11287
11288
Theodore Ts'o55e00a22011-09-18 23:53:23 -040011289
11290# Check whether --with-multiarch was given.
11291if test "${with_multiarch+set}" = set; then :
11292 withval=$with_multiarch; libdir=$libdir/$withval
11293root_libdir=$root_libdir/$withval
11294
11295fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011297$as_echo_n "checking whether linker accepts -static... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011298if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011299 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000011300else
11301 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011303/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000011304#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011305int
11306main ()
11307{
Theodore Ts'oae851481997-04-29 18:13:24 +000011308fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011309 ;
11310 return 0;
11311}
11312_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011313if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000011314 ac_cv_e2fsprogs_use_static=yes
11315else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011316 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000011317fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011318rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000011320LDFLAGS=$SAVE_LDFLAGS
11321fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011322
Theodore Ts'odefde781999-01-04 07:39:19 +000011323case "$host_os" in
11324solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011325 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000011326;;
11327esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011329$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000011330LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000011331if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011332 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000011333fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011334
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011335case "$host_os" in
11336darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011338$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011339
11340$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011341
11342 ;;
11343esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011344SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11345ET_DIR=`cd ${srcdir}/lib/et; pwd`
11346
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011347
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011348if test "$cross_compiling" = yes ; then
11349 DO_TEST_SUITE=
11350else
11351 DO_TEST_SUITE=check
11352fi
11353
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011354INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11355if test -n "$CPPFLAGS" ; then
11356 INCLUDES="$INCLUDES $CPPFLAGS"
11357fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011358if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011359 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011360fi
11361
Theodore Ts'odd947da2005-11-09 18:37:07 -040011362if test $cross_compiling = no; then
Theodore Ts'oc1986ec2012-06-13 15:29:13 -040011363 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040011364 BUILD_LDFLAGS="$LDFLAGS"
11365else
11366 BUILD_CFLAGS=
11367 BUILD_LDFLAGS=
11368fi
11369
11370
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011371test -d lib || mkdir lib
11372test -d include || mkdir include
11373test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000011374test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050011375for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040011376 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040011377 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11378 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011379 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070011380 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050011381 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11382 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050011383 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011384 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020011385 resize/Makefile doc/Makefile intl/Makefile \
11386 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011387 if test -d `dirname ${srcdir}/$i` ; then
11388 outlist="$outlist $i"
11389 fi
11390done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011391ac_config_files="$ac_config_files $outlist"
11392
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011393cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011394# This file is a shell script that caches the results of configure
11395# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011396# scripts and configure runs, see configure's option --config-cache.
11397# It is not useful on other systems. If it contains results you don't
11398# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011399#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011400# config.status only pays attention to the cache file if you give it
11401# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011402#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011403# `ac_cv_env_foo' variables (set or unset) will be overridden when
11404# loading this file, other *unset* `ac_cv_foo' will be assigned the
11405# following values.
11406
11407_ACEOF
11408
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011409# The following way of writing the cache mishandles newlines in values,
11410# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011411# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011412# Ultrix sh set writes to stderr and can't be redirected directly,
11413# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011414(
11415 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11416 eval ac_val=\$$ac_var
11417 case $ac_val in #(
11418 *${as_nl}*)
11419 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011420 *_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 +010011421$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011422 esac
11423 case $ac_var in #(
11424 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011425 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011426 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011427 esac ;;
11428 esac
11429 done
11430
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011431 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011432 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11433 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011434 # `set' does not quote correctly, so add quotes: double-quote
11435 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011436 sed -n \
11437 "s/'/'\\\\''/g;
11438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011439 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011440 *)
11441 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011442 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011443 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011444 esac |
11445 sort
11446) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011447 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011448 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011449 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011450 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011451 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11452 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011453 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11454 :end' >>confcache
11455if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11456 if test -w "$cache_file"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011457 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011458 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011459$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011460 if test ! -f "$cache_file" || test -h "$cache_file"; then
11461 cat confcache >"$cache_file"
11462 else
11463 case $cache_file in #(
11464 */* | ?:*)
11465 mv -f confcache "$cache_file"$$ &&
11466 mv -f "$cache_file"$$ "$cache_file" ;; #(
11467 *)
11468 mv -f confcache "$cache_file" ;;
11469 esac
11470 fi
11471 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011472 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011473 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011474$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011475 fi
11476fi
11477rm -f confcache
11478
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011479test "x$prefix" = xNONE && prefix=$ac_default_prefix
11480# Let make expand exec_prefix.
11481test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11482
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011483DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011484
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011485ac_libobjs=
11486ac_ltlibobjs=
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011487U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011488for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11489 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011490 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011491 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011492 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11493 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011494 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11495 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011496done
11497LIBOBJS=$ac_libobjs
11498
11499LTLIBOBJS=$ac_ltlibobjs
11500
11501
11502
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011503
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011504: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011505ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011506ac_clean_files_save=$ac_clean_files
11507ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011508{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011509$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011510as_write_fail=0
11511cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011512#! $SHELL
11513# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011514# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011515# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011516# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011517
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011518debug=false
11519ac_cs_recheck=false
11520ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011521
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011522SHELL=\${CONFIG_SHELL-$SHELL}
11523export SHELL
11524_ASEOF
11525cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11526## -------------------- ##
11527## M4sh Initialization. ##
11528## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011529
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011530# Be more Bourne compatible
11531DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011532if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011533 emulate sh
11534 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011535 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011536 # is contrary to our usage. Disable this feature.
11537 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011538 setopt NO_GLOB_SUBST
11539else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011540 case `(set -o) 2>/dev/null` in #(
11541 *posix*) :
11542 set -o posix ;; #(
11543 *) :
11544 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011545esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011546fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011547
11548
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011549as_nl='
11550'
11551export as_nl
11552# Printing a long string crashes Solaris 7 /usr/bin/printf.
11553as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11554as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11555as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011556# Prefer a ksh shell builtin over an external printf program on Solaris,
11557# but without wasting forks for bash or zsh.
11558if test -z "$BASH_VERSION$ZSH_VERSION" \
11559 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11560 as_echo='print -r --'
11561 as_echo_n='print -rn --'
11562elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011563 as_echo='printf %s\n'
11564 as_echo_n='printf %s'
11565else
11566 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11567 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11568 as_echo_n='/usr/ucb/echo -n'
11569 else
11570 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11571 as_echo_n_body='eval
11572 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011573 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011574 *"$as_nl"*)
11575 expr "X$arg" : "X\\(.*\\)$as_nl";
11576 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11577 esac;
11578 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11579 '
11580 export as_echo_n_body
11581 as_echo_n='sh -c $as_echo_n_body as_echo'
11582 fi
11583 export as_echo_body
11584 as_echo='sh -c $as_echo_body as_echo'
11585fi
11586
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011587# The user is always right.
11588if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011589 PATH_SEPARATOR=:
11590 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11591 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11592 PATH_SEPARATOR=';'
11593 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011594fi
11595
Theodore Ts'oe1052142006-10-21 21:46:47 -040011596
11597# IFS
11598# We need space, tab and new line, in precisely that order. Quoting is
11599# there to prevent editors from complaining about space-tab.
11600# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11601# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011602IFS=" "" $as_nl"
11603
11604# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011605as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011606case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011607 *[\\/]* ) as_myself=$0 ;;
11608 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011609for as_dir in $PATH
11610do
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011613 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11614 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011615IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011616
Theodore Ts'oe1052142006-10-21 21:46:47 -040011617 ;;
11618esac
11619# We did not find ourselves, most probably we were run as `sh COMMAND'
11620# in which case we are not to be found in the path.
11621if test "x$as_myself" = x; then
11622 as_myself=$0
11623fi
11624if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011625 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011626 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011627fi
11628
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011629# Unset variables that we do not need and which cause bugs (e.g. in
11630# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11631# suppresses any "Segmentation fault" message there. '((' could
11632# trigger a bug in pdksh 5.2.14.
11633for as_var in BASH_ENV ENV MAIL MAILPATH
11634do eval test x\${$as_var+set} = xset \
11635 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011636done
11637PS1='$ '
11638PS2='> '
11639PS4='+ '
11640
11641# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011642LC_ALL=C
11643export LC_ALL
11644LANGUAGE=C
11645export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011646
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011647# CDPATH.
11648(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11649
11650
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011651# as_fn_error STATUS ERROR [LINENO LOG_FD]
11652# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011653# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11654# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011655# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011656as_fn_error ()
11657{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011658 as_status=$1; test $as_status -eq 0 && as_status=1
11659 if test "$4"; then
11660 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11661 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011662 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011663 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011664 as_fn_exit $as_status
11665} # as_fn_error
11666
11667
11668# as_fn_set_status STATUS
11669# -----------------------
11670# Set $? to STATUS, without forking.
11671as_fn_set_status ()
11672{
11673 return $1
11674} # as_fn_set_status
11675
11676# as_fn_exit STATUS
11677# -----------------
11678# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11679as_fn_exit ()
11680{
11681 set +e
11682 as_fn_set_status $1
11683 exit $1
11684} # as_fn_exit
11685
11686# as_fn_unset VAR
11687# ---------------
11688# Portably unset VAR.
11689as_fn_unset ()
11690{
11691 { eval $1=; unset $1;}
11692}
11693as_unset=as_fn_unset
11694# as_fn_append VAR VALUE
11695# ----------------------
11696# Append the text in VALUE to the end of the definition contained in VAR. Take
11697# advantage of any shell optimizations that allow amortized linear growth over
11698# repeated appends, instead of the typical quadratic growth present in naive
11699# implementations.
11700if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11701 eval 'as_fn_append ()
11702 {
11703 eval $1+=\$2
11704 }'
11705else
11706 as_fn_append ()
11707 {
11708 eval $1=\$$1\$2
11709 }
11710fi # as_fn_append
11711
11712# as_fn_arith ARG...
11713# ------------------
11714# Perform arithmetic evaluation on the ARGs, and store the result in the
11715# global $as_val. Take advantage of shells that can avoid forks. The arguments
11716# must be portable across $(()) and expr.
11717if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11718 eval 'as_fn_arith ()
11719 {
11720 as_val=$(( $* ))
11721 }'
11722else
11723 as_fn_arith ()
11724 {
11725 as_val=`expr "$@" || test $? -eq 1`
11726 }
11727fi # as_fn_arith
11728
11729
Theodore Ts'oe1052142006-10-21 21:46:47 -040011730if expr a : '\(a\)' >/dev/null 2>&1 &&
11731 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11732 as_expr=expr
11733else
11734 as_expr=false
11735fi
11736
11737if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11738 as_basename=basename
11739else
11740 as_basename=false
11741fi
11742
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011743if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11744 as_dirname=dirname
11745else
11746 as_dirname=false
11747fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011748
Theodore Ts'oe1052142006-10-21 21:46:47 -040011749as_me=`$as_basename -- "$0" ||
11750$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11751 X"$0" : 'X\(//\)$' \| \
11752 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011753$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011754 sed '/^.*\/\([^/][^/]*\)\/*$/{
11755 s//\1/
11756 q
11757 }
11758 /^X\/\(\/\/\)$/{
11759 s//\1/
11760 q
11761 }
11762 /^X\/\(\/\).*/{
11763 s//\1/
11764 q
11765 }
11766 s/.*/./; q'`
11767
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011768# Avoid depending upon Character Ranges.
11769as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11770as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11771as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11772as_cr_digits='0123456789'
11773as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011774
11775ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011776case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011777-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011778 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011779 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011780 xy) ECHO_C='\c';;
11781 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11782 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011783 esac;;
11784*)
11785 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011786esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011787
11788rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011789if test -d conf$$.dir; then
11790 rm -f conf$$.dir/conf$$.file
11791else
11792 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011793 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011794fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011795if (echo >conf$$.file) 2>/dev/null; then
11796 if ln -s conf$$.file conf$$ 2>/dev/null; then
11797 as_ln_s='ln -s'
11798 # ... but there are two gotchas:
11799 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11800 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011801 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011802 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011803 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011804 elif ln conf$$.file conf$$ 2>/dev/null; then
11805 as_ln_s=ln
11806 else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011807 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011808 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011809else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011810 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011811fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011812rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11813rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011814
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011815
11816# as_fn_mkdir_p
11817# -------------
11818# Create "$as_dir" as a directory, including parents if necessary.
11819as_fn_mkdir_p ()
11820{
11821
11822 case $as_dir in #(
11823 -*) as_dir=./$as_dir;;
11824 esac
11825 test -d "$as_dir" || eval $as_mkdir_p || {
11826 as_dirs=
11827 while :; do
11828 case $as_dir in #(
11829 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11830 *) as_qdir=$as_dir;;
11831 esac
11832 as_dirs="'$as_qdir' $as_dirs"
11833 as_dir=`$as_dirname -- "$as_dir" ||
11834$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11835 X"$as_dir" : 'X\(//\)[^/]' \| \
11836 X"$as_dir" : 'X\(//\)$' \| \
11837 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11838$as_echo X"$as_dir" |
11839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11840 s//\1/
11841 q
11842 }
11843 /^X\(\/\/\)[^/].*/{
11844 s//\1/
11845 q
11846 }
11847 /^X\(\/\/\)$/{
11848 s//\1/
11849 q
11850 }
11851 /^X\(\/\).*/{
11852 s//\1/
11853 q
11854 }
11855 s/.*/./; q'`
11856 test -d "$as_dir" && break
11857 done
11858 test -z "$as_dirs" || eval "mkdir $as_dirs"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011859 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011860
11861
11862} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011863if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011864 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011865else
11866 test -d ./-p && rmdir ./-p
11867 as_mkdir_p=false
11868fi
11869
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011870
11871# as_fn_executable_p FILE
11872# -----------------------
11873# Test if FILE is an executable regular file.
11874as_fn_executable_p ()
11875{
11876 test -f "$1" && test -x "$1"
11877} # as_fn_executable_p
11878as_test_x='test -x'
11879as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011880
11881# Sed expression to map a string onto a valid CPP name.
11882as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11883
11884# Sed expression to map a string onto a valid variable name.
11885as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11886
11887
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011888exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011889## ----------------------------------- ##
11890## Main body of $CONFIG_STATUS script. ##
11891## ----------------------------------- ##
11892_ASEOF
11893test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011894
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11896# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011897# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040011898# values after options handling.
11899ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011900This file was extended by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011901generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011902
11903 CONFIG_FILES = $CONFIG_FILES
11904 CONFIG_HEADERS = $CONFIG_HEADERS
11905 CONFIG_LINKS = $CONFIG_LINKS
11906 CONFIG_COMMANDS = $CONFIG_COMMANDS
11907 $ $0 $@
11908
Theodore Ts'oe1052142006-10-21 21:46:47 -040011909on `(hostname || uname -n) 2>/dev/null | sed 1q`
11910"
11911
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011912_ACEOF
11913
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011914case $ac_config_files in *"
11915"*) set x $ac_config_files; shift; ac_config_files=$*;;
11916esac
11917
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011918case $ac_config_headers in *"
11919"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11920esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011921
11922
11923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011924# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011925config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011926config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011927config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011928
Theodore Ts'oe1052142006-10-21 21:46:47 -040011929_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011930
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011932ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011933\`$as_me' instantiates files and other configuration actions
11934from templates according to the current configuration. Unless the files
11935and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011936
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011937Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011938
11939 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011940 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011941 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011942 -q, --quiet, --silent
11943 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011944 -d, --debug don't remove temporary files
11945 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011946 --file=FILE[:TEMPLATE]
11947 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011948 --header=FILE[:TEMPLATE]
11949 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011950
11951Configuration files:
11952$config_files
11953
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011954Configuration headers:
11955$config_headers
11956
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011957Configuration commands:
11958$config_commands
11959
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011960Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011961
Theodore Ts'oe1052142006-10-21 21:46:47 -040011962_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011964ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011965ac_cs_version="\\
11966config.status
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011967configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011968 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011969
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011970Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011971This config.status script is free software; the Free Software Foundation
11972gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040011973
11974ac_pwd='$ac_pwd'
11975srcdir='$srcdir'
11976INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011977AWK='$AWK'
11978test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011979_ACEOF
11980
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11982# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011983ac_need_defaults=:
11984while test $# != 0
11985do
11986 case $1 in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011987 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011988 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11989 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011990 ac_shift=:
11991 ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011992 --*=)
11993 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11994 ac_optarg=
11995 ac_shift=:
11996 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011997 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011998 ac_option=$1
11999 ac_optarg=$2
12000 ac_shift=shift
12001 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012002 esac
12003
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012004 case $ac_option in
12005 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012006 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12007 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012008 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012009 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012010 --config | --confi | --conf | --con | --co | --c )
12011 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012012 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012013 debug=: ;;
12014 --file | --fil | --fi | --f )
12015 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012016 case $ac_optarg in
12017 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012018 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012019 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012020 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012021 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012022 --header | --heade | --head | --hea )
12023 $ac_shift
12024 case $ac_optarg in
12025 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12026 esac
12027 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12028 ac_need_defaults=false;;
12029 --he | --h)
12030 # Conflict between --help and --header
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012031 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012032Try \`$0 --help' for more information.";;
12033 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012034 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12036 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12037 ac_cs_silent=: ;;
12038
12039 # This is an error.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012040 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012041Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012042
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012043 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012044 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012045
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012046 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012047 shift
12048done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012049
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012050ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012051
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012052if $ac_cs_silent; then
12053 exec 6>/dev/null
12054 ac_configure_extra_args="$ac_configure_extra_args --silent"
12055fi
12056
12057_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012059if \$ac_cs_recheck; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012060 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012061 shift
12062 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12063 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012064 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012065 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012066fi
12067
12068_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012070exec 5>>config.log
12071{
12072 echo
12073 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12074## Running $as_me. ##
12075_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012076 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012077} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012078
Theodore Ts'oe1052142006-10-21 21:46:47 -040012079_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012081#
Theodore Ts'oe1052142006-10-21 21:46:47 -040012082# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012083#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012084# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012085 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012086 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012087 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012088 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12089 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012090
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012091
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012092_ACEOF
12093
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012095
12096# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012097for ac_config_target in $ac_config_targets
12098do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012099 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012100 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012101 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12102 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12103
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012104 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012105 esac
12106done
12107
Theodore Ts'oe1052142006-10-21 21:46:47 -040012108
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012109# If the user did not use the arguments to specify the items to instantiate,
12110# then the envvar interface is used. Set only those that are not.
12111# We use the long form for the default assignment because of an extremely
12112# bizarre bug on SunOS 4.1.3.
12113if $ac_need_defaults; then
12114 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012115 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012116 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12117fi
12118
12119# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040012120# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012121# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012122# Hook for its removal unless debugging.
12123# Note that there is a small window in which the directory will not be cleaned:
12124# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012125$debug ||
12126{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012127 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040012128 trap 'exit_status=$?
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012129 : "${ac_tmp:=$tmp}"
12130 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040012131' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012132 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012133}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012134# Create a (secure) tmp directory for tmp files.
12135
12136{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012137 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012138 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012139} ||
12140{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012141 tmp=./conf$$-$RANDOM
12142 (umask 077 && mkdir "$tmp")
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012143} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12144ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012145
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012146# Set up the scripts for CONFIG_FILES section.
12147# No need to generate them if there are no CONFIG_FILES.
12148# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012149if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012150
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012151if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12152 ac_cs_awk_getline=:
12153 ac_cs_awk_pipe_init=
12154 ac_cs_awk_read_file='
12155 while ((getline aline < (F[key])) > 0)
12156 print(aline)
12157 close(F[key])'
12158 ac_cs_awk_pipe_fini=
12159else
12160 ac_cs_awk_getline=false
12161 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12162 ac_cs_awk_read_file='
12163 print "|#_!!_#|"
12164 print "cat " F[key] " &&"
12165 '$ac_cs_awk_pipe_init
12166 # The final `:' finishes the AND list.
12167 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12168fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012169ac_cr=`echo X | tr X '\015'`
12170# On cygwin, bash can eat \r inside `` if the user requested igncr.
12171# But we know of no other shell where ac_cr would be empty at this
12172# point, so we can use a bashism as a fallback.
12173if test "x$ac_cr" = x; then
12174 eval ac_cr=\$\'\\r\'
12175fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012176ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12177if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012178 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012179else
12180 ac_cs_awk_cr=$ac_cr
12181fi
12182
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012183echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012184_ACEOF
12185
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012186# Create commands to substitute file output variables.
12187{
12188 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012189 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012190 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12191 echo "_ACAWK" &&
12192 echo "_ACEOF"
12193} >conf$$files.sh &&
12194. ./conf$$files.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012195 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012196rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012197
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012198{
12199 echo "cat >conf$$subs.awk <<_ACEOF" &&
12200 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12201 echo "_ACEOF"
12202} >conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012203 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12204ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012205ac_delim='%!_!# '
12206for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012207 . ./conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012208 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012209
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012210 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12211 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012212 break
12213 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012214 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012215 else
12216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012217 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012218done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012219rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012220
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012222cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012223_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012224sed -n '
12225h
12226s/^/S["/; s/!.*/"]=/
12227p
12228g
12229s/^[^!]*!//
12230:repl
12231t repl
12232s/'"$ac_delim"'$//
12233t delim
12234:nl
12235h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012236s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012237t more1
12238s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12239p
12240n
12241b repl
12242:more1
12243s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12244p
12245g
12246s/.\{148\}//
12247t nl
12248:delim
12249h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012250s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012251t more2
12252s/["\\]/\\&/g; s/^/"/; s/$/"/
12253p
12254b
12255:more2
12256s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12257p
12258g
12259s/.\{148\}//
12260t delim
12261' <conf$$subs.awk | sed '
12262/^[^""]/{
12263 N
12264 s/\n//
12265}
12266' >>$CONFIG_STATUS || ac_write_fail=1
12267rm -f conf$$subs.awk
12268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12269_ACAWK
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012270cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012271 for (key in S) S_is_set[key] = 1
12272 FS = ""
12273 \$ac_cs_awk_pipe_init
12274}
12275{
12276 line = $ 0
12277 nfields = split(line, field, "@")
12278 substed = 0
12279 len = length(field[1])
12280 for (i = 2; i < nfields; i++) {
12281 key = field[i]
12282 keylen = length(key)
12283 if (S_is_set[key]) {
12284 value = S[key]
12285 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12286 len += length(value) + length(field[++i])
12287 substed = 1
12288 } else
12289 len += 1 + keylen
12290 }
12291 if (nfields == 3 && !substed) {
12292 key = field[2]
12293 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12294 \$ac_cs_awk_read_file
12295 next
12296 }
12297 }
12298 print line
12299}
12300\$ac_cs_awk_pipe_fini
12301_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040012302_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12304if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12305 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12306else
12307 cat
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012308fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12309 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012310_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012311
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012312# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12313# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040012314# trailing colons and then remove the whole line if VPATH becomes empty
12315# (actually we leave an empty line to preserve line numbers).
12316if test "x$srcdir" = x.; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012317 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12318h
12319s///
12320s/^/:/
12321s/[ ]*$/:/
12322s/:\$(srcdir):/:/g
12323s/:\${srcdir}:/:/g
12324s/:@srcdir@:/:/g
12325s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012326s/:*$//
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012327x
12328s/\(=[ ]*\).*/\1/
12329G
12330s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012331s/^[^=]*=[ ]*$//
12332}'
12333fi
12334
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012336fi # test -n "$CONFIG_FILES"
12337
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012338# Set up the scripts for CONFIG_HEADERS section.
12339# No need to generate them if there are no CONFIG_HEADERS.
12340# This happens for instance with `./config.status Makefile'.
12341if test -n "$CONFIG_HEADERS"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012342cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012343BEGIN {
12344_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012345
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012346# Transform confdefs.h into an awk script `defines.awk', embedded as
12347# here-document in config.status, that substitutes the proper values into
12348# config.h.in to produce config.h.
12349
12350# Create a delimiter string that does not exist in confdefs.h, to ease
12351# handling of long lines.
12352ac_delim='%!_!# '
12353for ac_last_try in false false :; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012354 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12355 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012356 break
12357 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012358 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012359 else
12360 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12361 fi
12362done
12363
12364# For the awk script, D is an array of macro values keyed by name,
12365# likewise P contains macro parameters if any. Preserve backslash
12366# newline sequences.
12367
12368ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12369sed -n '
12370s/.\{148\}/&'"$ac_delim"'/g
12371t rset
12372:rset
12373s/^[ ]*#[ ]*define[ ][ ]*/ /
12374t def
12375d
12376:def
12377s/\\$//
12378t bsnl
12379s/["\\]/\\&/g
12380s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12381D["\1"]=" \3"/p
12382s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12383d
12384:bsnl
12385s/["\\]/\\&/g
12386s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12387D["\1"]=" \3\\\\\\n"\\/p
12388t cont
12389s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12390t cont
12391d
12392:cont
12393n
12394s/.\{148\}/&'"$ac_delim"'/g
12395t clear
12396:clear
12397s/\\$//
12398t bsnlc
12399s/["\\]/\\&/g; s/^/"/; s/$/"/p
12400d
12401:bsnlc
12402s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12403b cont
12404' <confdefs.h | sed '
12405s/'"$ac_delim"'/"\\\
12406"/g' >>$CONFIG_STATUS || ac_write_fail=1
12407
12408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12409 for (key in D) D_is_set[key] = 1
12410 FS = ""
12411}
12412/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12413 line = \$ 0
12414 split(line, arg, " ")
12415 if (arg[1] == "#") {
12416 defundef = arg[2]
12417 mac1 = arg[3]
12418 } else {
12419 defundef = substr(arg[1], 2)
12420 mac1 = arg[2]
12421 }
12422 split(mac1, mac2, "(") #)
12423 macro = mac2[1]
12424 prefix = substr(line, 1, index(line, defundef) - 1)
12425 if (D_is_set[macro]) {
12426 # Preserve the white space surrounding the "#".
12427 print prefix "define", macro P[macro] D[macro]
12428 next
12429 } else {
12430 # Replace #undef with comments. This is necessary, for example,
12431 # in the case of _POSIX_SOURCE, which is predefined and required
12432 # on some systems where configure will not decide to define it.
12433 if (defundef == "undef") {
12434 print "/*", prefix defundef, macro, "*/"
12435 next
12436 }
12437 }
12438}
12439{ print }
12440_ACAWK
12441_ACEOF
12442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012443 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012444fi # test -n "$CONFIG_HEADERS"
12445
12446
12447eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012448shift
12449for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040012450do
12451 case $ac_tag in
12452 :[FHLC]) ac_mode=$ac_tag; continue;;
12453 esac
12454 case $ac_mode$ac_tag in
12455 :[FHL]*:*);;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012456 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012457 :[FH]-) ac_tag=-:-;;
12458 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12459 esac
12460 ac_save_IFS=$IFS
12461 IFS=:
12462 set x $ac_tag
12463 IFS=$ac_save_IFS
12464 shift
12465 ac_file=$1
12466 shift
12467
12468 case $ac_mode in
12469 :L) ac_source=$1;;
12470 :[FH])
12471 ac_file_inputs=
12472 for ac_f
12473 do
12474 case $ac_f in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012475 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012476 *) # Look for the file first in the build tree, then in the source tree
12477 # (if the path is not absolute). The absolute path cannot be DOS-style,
12478 # because $ac_f cannot contain `:'.
12479 test -f "$ac_f" ||
12480 case $ac_f in
12481 [\\/$]*) false;;
12482 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12483 esac ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012484 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012485 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012486 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012487 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012488 done
12489
12490 # Let's still pretend it is `configure' which instantiates (i.e., don't
12491 # use $as_me), people would be surprised to read:
12492 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012493 configure_input='Generated from '`
12494 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12495 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012496 if test x"$ac_file" != x-; then
12497 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012498 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012499$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012500 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012501 # Neutralize special characters interpreted by sed in replacement strings.
12502 case $configure_input in #(
12503 *\&* | *\|* | *\\* )
12504 ac_sed_conf_input=`$as_echo "$configure_input" |
12505 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12506 *) ac_sed_conf_input=$configure_input;;
12507 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012508
12509 case $ac_tag in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012510 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12511 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012512 esac
12513 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012514 esac
12515
Theodore Ts'oe1052142006-10-21 21:46:47 -040012516 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012517$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12518 X"$ac_file" : 'X\(//\)[^/]' \| \
12519 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012520 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012521$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12523 s//\1/
12524 q
12525 }
12526 /^X\(\/\/\)[^/].*/{
12527 s//\1/
12528 q
12529 }
12530 /^X\(\/\/\)$/{
12531 s//\1/
12532 q
12533 }
12534 /^X\(\/\).*/{
12535 s//\1/
12536 q
12537 }
12538 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012539 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012540 ac_builddir=.
12541
Theodore Ts'oe1052142006-10-21 21:46:47 -040012542case "$ac_dir" in
12543.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12544*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012545 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012546 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012547 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012548 case $ac_top_builddir_sub in
12549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12551 esac ;;
12552esac
12553ac_abs_top_builddir=$ac_pwd
12554ac_abs_builddir=$ac_pwd$ac_dir_suffix
12555# for backward compatibility:
12556ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012557
12558case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012559 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012560 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012561 ac_top_srcdir=$ac_top_builddir_sub
12562 ac_abs_top_srcdir=$ac_pwd ;;
12563 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012564 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012565 ac_top_srcdir=$srcdir
12566 ac_abs_top_srcdir=$srcdir ;;
12567 *) # Relative name.
12568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12569 ac_top_srcdir=$ac_top_build_prefix$srcdir
12570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012571esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012572ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012573
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012574
Theodore Ts'oe1052142006-10-21 21:46:47 -040012575 case $ac_mode in
12576 :F)
12577 #
12578 # CONFIG_FILE
12579 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012580
12581 case $INSTALL in
12582 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012583 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012584 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012585_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012586
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012588# If the template does not know about datarootdir, expand it.
12589# FIXME: This hack should be removed a few years after 2.60.
12590ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012591ac_sed_dataroot='
12592/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012593 p
12594 q
12595}
12596/@datadir@/p
12597/@docdir@/p
12598/@infodir@/p
12599/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012600/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012601case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012602*datarootdir*) ac_datarootdir_seen=yes;;
12603*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012604 { $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 +010012605$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012606_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012608 ac_datarootdir_hack='
12609 s&@datadir@&$datadir&g
12610 s&@docdir@&$docdir&g
12611 s&@infodir@&$infodir&g
12612 s&@localedir@&$localedir&g
12613 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012614 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012615esac
12616_ACEOF
12617
12618# Neutralize VPATH when `$srcdir' = `.'.
12619# Shell code in configure.ac might set extrasub.
12620# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12622ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012623$extrasub
12624_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012626:t
12627/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012628s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012629s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012630s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012631s&@srcdir@&$ac_srcdir&;t t
12632s&@abs_srcdir@&$ac_abs_srcdir&;t t
12633s&@top_srcdir@&$ac_top_srcdir&;t t
12634s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12635s&@builddir@&$ac_builddir&;t t
12636s&@abs_builddir@&$ac_abs_builddir&;t t
12637s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12638s&@INSTALL@&$ac_INSTALL&;t t
12639$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012640"
12641eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12642if $ac_cs_awk_getline; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012643 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012644else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012645 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12646fi \
12647 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012648
Theodore Ts'oe1052142006-10-21 21:46:47 -040012649test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012650 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12651 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12652 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012653 { $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 -040012654which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012655$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012656which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012657
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012658 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012659 case $ac_file in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012660 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12661 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012662 esac \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012664 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012665 :H)
12666 #
12667 # CONFIG_HEADER
12668 #
12669 if test x"$ac_file" != x-; then
12670 {
12671 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012672 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12673 } >"$ac_tmp/config.h" \
12674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12675 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012676 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12677$as_echo "$as_me: $ac_file is unchanged" >&6;}
12678 else
12679 rm -f "$ac_file"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012680 mv "$ac_tmp/config.h" "$ac_file" \
12681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012682 fi
12683 else
12684 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012685 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12686 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012687 fi
12688 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012689
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012690 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012691$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012692 ;;
12693 esac
12694
12695
12696 case $ac_file$ac_mode in
12697 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012698 for ac_file in $CONFIG_FILES; do
12699 # Support "outfile[:infile[:infile...]]"
12700 case "$ac_file" in
12701 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012702 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012703 # PO directories have a Makefile.in generated from Makefile.in.in.
12704 case "$ac_file" in */Makefile.in)
12705 # Adjust a relative srcdir.
12706 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12707 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12708 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12709 # In autoconf-2.13 it is called $ac_given_srcdir.
12710 # In autoconf-2.50 it is called $srcdir.
12711 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12712 case "$ac_given_srcdir" in
12713 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12714 /*) top_srcdir="$ac_given_srcdir" ;;
12715 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12716 esac
12717 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12718 rm -f "$ac_dir/POTFILES"
12719 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12720 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 -050012721 POMAKEFILEDEPS="POTFILES.in"
12722 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012723 # on $ac_dir but don't depend on user-specified configuration
12724 # parameters.
12725 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12726 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012727 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012728 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12729 fi
12730 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12731 # Hide the ALL_LINGUAS assigment from automake.
12732 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012733 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12734 else
12735 # The set of available languages was given in configure.in.
12736 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012737 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012738 # Compute POFILES
12739 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12740 # Compute UPDATEPOFILES
12741 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12742 # Compute DUMMYPOFILES
12743 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12744 # Compute GMOFILES
12745 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012746 case "$ac_given_srcdir" in
12747 .) srcdirpre= ;;
12748 *) srcdirpre='$(srcdir)/' ;;
12749 esac
12750 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012751 UPDATEPOFILES=
12752 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012753 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012754 for lang in $ALL_LINGUAS; do
12755 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012756 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12757 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012758 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012759 done
12760 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12761 # environment variable.
12762 INST_LINGUAS=
12763 if test -n "$ALL_LINGUAS"; then
12764 for presentlang in $ALL_LINGUAS; do
12765 useit=no
12766 if test "%UNSET%" != "$LINGUAS"; then
12767 desiredlanguages="$LINGUAS"
12768 else
12769 desiredlanguages="$ALL_LINGUAS"
12770 fi
12771 for desiredlang in $desiredlanguages; do
12772 # Use the presentlang catalog if desiredlang is
12773 # a. equal to presentlang, or
12774 # b. a variant of presentlang (because in this case,
12775 # presentlang can be used as a fallback for messages
12776 # which are not translated in the desiredlang catalog).
12777 case "$desiredlang" in
12778 "$presentlang"*) useit=yes;;
12779 esac
12780 done
12781 if test $useit = yes; then
12782 INST_LINGUAS="$INST_LINGUAS $presentlang"
12783 fi
12784 done
12785 fi
12786 CATALOGS=
12787 if test -n "$INST_LINGUAS"; then
12788 for lang in $INST_LINGUAS; do
12789 CATALOGS="$CATALOGS $lang.gmo"
12790 done
12791 fi
12792 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012793 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 -040012794 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12795 if test -f "$f"; then
12796 case "$f" in
12797 *.orig | *.bak | *~) ;;
12798 *) cat "$f" >> "$ac_dir/Makefile" ;;
12799 esac
12800 fi
12801 done
12802 fi
12803 ;;
12804 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012805 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012806
Theodore Ts'oe1052142006-10-21 21:46:47 -040012807 esac
12808done # for ac_tag
12809
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012810
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012811as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012812_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012813ac_clean_files=$ac_clean_files_save
12814
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012815test $ac_write_fail = 0 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012816 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012817
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012818
12819# configure is writing to config.log, and then calls config.status.
12820# config.status does its own redirection, appending to config.log.
12821# Unfortunately, on DOS this fails, as config.log is still kept open
12822# by configure, so config.status won't be able to write to it; its
12823# output is simply discarded. So we exec the FD to /dev/null,
12824# effectively closing config.log, so it can be properly (re)opened and
12825# appended to by config.status. When coming back to configure, we
12826# need to make the FD available again.
12827if test "$no_create" != yes; then
12828 ac_cs_success=:
12829 ac_config_status_args=
12830 test "$silent" = yes &&
12831 ac_config_status_args="$ac_config_status_args --quiet"
12832 exec 5>/dev/null
12833 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12834 exec 5>>config.log
12835 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12836 # would make configure fail if this is the last instruction.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012837 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012838fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012839if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012841$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12842fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012843
Theodore Ts'oee683a12005-02-05 15:53:56 -050012844if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi