blob: afe381fc863c5c0554973da76416d66f1a61fd84 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003# Generated by GNU Autoconf 2.69.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005#
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018 emulate sh
19 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040023 setopt NO_GLOB_SUBST
24else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040030esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040032
33
Scott James Remnant39fd3d42009-05-14 13:03:25 +010034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050041# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010048 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050058 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010059 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050079fi
80
Theodore Ts'oe1052142006-10-21 21:46:47 -040081
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040087IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040090as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050091case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050094for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
Theodore Ts'oe1052142006-10-21 21:46:47 -0400100IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500101
Theodore Ts'oe1052142006-10-21 21:46:47 -0400102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500111 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -0400112fi
113
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -0400121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400131
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500356
357
358} # as_fn_mkdir_p
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400407# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500408as_fn_error ()
409{
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500414 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400415 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500416 as_fn_exit $as_status
417} # as_fn_error
418
Theodore Ts'oe1052142006-10-21 21:46:47 -0400419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400437
Theodore Ts'oe1052142006-10-21 21:46:47 -0400438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100442$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -0400463
464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500474 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500479 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500482 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500484 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400485 chmod +x "$as_me.lineno" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500487
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500496 # Exit status is that of the last command.
497 exit
498}
499
Theodore Ts'oe1052142006-10-21 21:46:47 -0400500ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500501case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -0400502-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500503 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -0400504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400508 esac;;
509*)
510 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500511esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500512
513rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100518 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400519fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400526 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400528 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400532 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100533 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500534else
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400535 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500539
540if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500541 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559
560# Name of the host.
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565#
566# Initializations.
567#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000568ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400569ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500570ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400571LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500583PACKAGE_URL=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <sys/types.h>
591#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400592#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500593# include <sys/stat.h>
594#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400595#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500596# include <stdlib.h>
597# include <stddef.h>
598#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400599# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500600# include <stdlib.h>
601# endif
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500605# include <memory.h>
606# endif
607# include <string.h>
608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500610# include <strings.h>
611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400614#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400615#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500617#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400618#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500619# include <unistd.h>
620#endif"
621
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400622ac_header_list=
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100623ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400624LIBOBJS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100625BUILD_LDFLAGS
626BUILD_CFLAGS
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400627INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100628DO_TEST_SUITE
629ET_DIR
630SS_DIR
631LDFLAG_STATIC
632root_sysconfdir
633root_libdir
634root_sbindir
635root_bindir
636root_prefix
637UNIX_CMT
638CYGWIN_CMT
639LINUX_CMT
640UNI_DIFF_OPTS
641SEM_INIT_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100642SOCKET_LIB
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400643SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100644SIZEOF_LONG_LONG
645SIZEOF_LONG
646SIZEOF_INT
647SIZEOF_SHORT
648BUILD_CC
649MAKEINFO
650STRIP
651AR
652LDCONFIG
653PERL
654SED
655AWK
656CHMOD
657RM
658CP
659MV
660LN_S
661LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400662ifNotGNUmake
663ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100664BINARY_TYPE
665POSUB
666LTLIBINTL
667LIBINTL
668INTLLIBS
669INTL_LIBTOOL_SUFFIX_PREFIX
670INTLOBJS
671GENCAT
672INSTOBJEXT
673DATADIRNAME
674CATOBJEXT
675USE_INCLUDED_LIBINTL
676BUILD_INCLUDED_LIBINTL
677INTLBISON
678LTLIBICONV
679LIBICONV
680HAVE_WPRINTF
681HAVE_SNPRINTF
682HAVE_ASPRINTF
683HAVE_POSIX_PRINTF
684GLIBC21
685ALLOCA
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400686EGREP
687GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100688RANLIB
689MSGMERGE
690XGETTEXT
691GMSGFMT
692MSGFMT
693USE_NLS
694MKINSTALLDIRS
695INSTALL_DATA
696INSTALL_SCRIPT
697INSTALL_PROGRAM
698SET_MAKE
699VERSION
700PACKAGE
701GETTEXT_PACKAGE
702UUIDD_CMT
703E2INITRD_MAN
704E2INITRD_PROG
705FSCK_MAN
706FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500707DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100708RESIZER_CMT
709IMAGER_CMT
710DEBUGFS_CMT
Aditya Kalif239fef2011-07-20 11:40:02 -0700711QUOTA_CMT
712DEPPROFILED_LIBQUOTA
713PROFILED_LIBQUOTA
714DEPSTATIC_LIBQUOTA
715STATIC_LIBQUOTA
716DEPLIBQUOTA
717LIBQUOTA
Eric Sandeenf5589f42013-10-14 08:54:15 -0400718QUOTA_MAN_COMMENT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100719BLKID_CMT
720DEPPROFILED_LIBBLKID
721PROFILED_LIBBLKID
722DEPSTATIC_LIBBLKID
723STATIC_LIBBLKID
724DEPLIBBLKID
725LIBBLKID
726UUID_CMT
727DEPPROFILED_LIBUUID
728PROFILED_LIBUUID
729DEPSTATIC_LIBUUID
730STATIC_LIBUUID
731DEPLIBUUID
732LIBUUID
733PKG_CONFIG
734TEST_IO_CMT
735PRIVATE_LIBS_CMT
736LDFLAG_DYNAMIC
737PROFILED_LIB_EXT
738STATIC_LIB_EXT
739LIB_EXT
740CHECKER_CMT
741PROFILE_CMT
742BSDLIB_CMT
743ELF_CMT
744HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400745Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400746ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400747E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400748LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400749SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400750LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100751MAINTAINER_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100752CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400753RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500754DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100755OBJEXT
756EXEEXT
757ac_ct_CC
758CPPFLAGS
759LDFLAGS
760CFLAGS
761CC
762host_os
763host_vendor
764host_cpu
765host
766build_os
767build_vendor
768build_cpu
769build
770E2FSPROGS_PKGVER
771E2FSPROGS_VERSION
772E2FSPROGS_DAY
773E2FSPROGS_MONTH
774E2FSPROGS_YEAR
775target_alias
776host_alias
777build_alias
778LIBS
779ECHO_T
780ECHO_N
781ECHO_C
782DEFS
783mandir
784localedir
785libdir
786psdir
787pdfdir
788dvidir
789htmldir
790infodir
791docdir
792oldincludedir
793includedir
794localstatedir
795sharedstatedir
796sysconfdir
797datadir
798datarootdir
799libexecdir
800sbindir
801bindir
802program_transform_name
803prefix
804exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500805PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100806PACKAGE_BUGREPORT
807PACKAGE_STRING
808PACKAGE_VERSION
809PACKAGE_TARNAME
810PACKAGE_NAME
811PATH_SEPARATOR
812SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400813ac_subst_files='MCONFIG
814MAKEFILE_ELF
815MAKEFILE_BSDLIB
816MAKEFILE_PROFILE
817MAKEFILE_CHECKER
818MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400819ASM_TYPES_HEADER
820PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100821ac_user_opts='
822enable_option_checking
823with_diet_libc
824with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100825with_ccopts
826with_ldopts
827with_root_prefix
828enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400829enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400830enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400831enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400832enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400833enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100834enable_compression
835enable_htree
836enable_elf_shlibs
837enable_bsd_shlibs
838enable_profile
839enable_checker
840enable_jbd_debug
841enable_blkid_debug
842enable_testio_debug
843enable_libuuid
844enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500845enable_quota
Theodore Ts'o3df60142013-06-16 16:14:40 -0400846enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100847enable_debugfs
848enable_imager
849enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500850enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100851enable_fsck
852enable_e2initrd_helper
853enable_tls
854enable_uuidd
855enable_nls
856with_gnu_ld
857enable_rpath
858with_libiconv_prefix
859with_included_gettext
860with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400861with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100862'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400863 ac_precious_vars='build_alias
864host_alias
865target_alias
866CC
867CFLAGS
868LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400869LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400870CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400871CPP
872PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400873
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000874
875# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500876ac_init_help=
877ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100878ac_unrecognized_opts=
879ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000880# The variables have the same names as the options, with
881# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500882cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000883exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000884no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000885no_recursion=
886prefix=NONE
887program_prefix=NONE
888program_suffix=NONE
889program_transform_name=s,x,x,
890silent=
891site=
892srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000893verbose=
894x_includes=NONE
895x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500896
897# Installation directory options.
898# These are left unexpanded so users can "make install exec_prefix=/foo"
899# and all the variables that are supposed to be based on exec_prefix
900# by default will actually change.
901# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400902# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000903bindir='${exec_prefix}/bin'
904sbindir='${exec_prefix}/sbin'
905libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400906datarootdir='${prefix}/share'
907datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000908sysconfdir='${prefix}/etc'
909sharedstatedir='${prefix}/com'
910localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000911includedir='${prefix}/include'
912oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400913docdir='${datarootdir}/doc/${PACKAGE}'
914infodir='${datarootdir}/info'
915htmldir='${docdir}'
916dvidir='${docdir}'
917pdfdir='${docdir}'
918psdir='${docdir}'
919libdir='${exec_prefix}/lib'
920localedir='${datarootdir}/locale'
921mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000922
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000923ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400924ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000925for ac_option
926do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000927 # If the previous option needs an argument, assign it.
928 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400929 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000930 ac_prev=
931 continue
932 fi
933
Theodore Ts'oe1052142006-10-21 21:46:47 -0400934 case $ac_option in
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400935 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936 *=) ac_optarg= ;;
937 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400938 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000939
940 # Accept the important Cygnus configure options, so we can diagnose typos.
941
Theodore Ts'oe1052142006-10-21 21:46:47 -0400942 case $ac_dashdash$ac_option in
943 --)
944 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000945
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000946 -bindir | --bindir | --bindi | --bind | --bin | --bi)
947 ac_prev=bindir ;;
948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500949 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000950
951 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500952 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000953 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500954 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000955
956 -cache-file | --cache-file | --cache-fil | --cache-fi \
957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958 ac_prev=cache_file ;;
959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500961 cache_file=$ac_optarg ;;
962
963 --config-cache | -C)
964 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000965
Theodore Ts'oe1052142006-10-21 21:46:47 -0400966 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000967 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400968 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500969 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000970
Theodore Ts'oe1052142006-10-21 21:46:47 -0400971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972 | --dataroo | --dataro | --datar)
973 ac_prev=datarootdir ;;
974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976 datarootdir=$ac_optarg ;;
977
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000978 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000980 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400982 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
986 *"
987"enable_$ac_useropt"
988"*) ;;
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
991 esac
992 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400993
994 -docdir | --docdir | --docdi | --doc | --do)
995 ac_prev=docdir ;;
996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997 docdir=$ac_optarg ;;
998
999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000 ac_prev=dvidir ;;
1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1002 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001003
1004 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001006 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001008 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1012 *"
1013"enable_$ac_useropt"
1014"*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001019
1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022 | --exec | --exe | --ex)
1023 ac_prev=exec_prefix ;;
1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001027 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001028
1029 -gas | --gas | --ga | --g)
1030 # Obsolete; use --with-gas.
1031 with_gas=yes ;;
1032
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001033 -help | --help | --hel | --he | -h)
1034 ac_init_help=long ;;
1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036 ac_init_help=recursive ;;
1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001039
1040 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001041 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001042 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001043 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001044
Theodore Ts'oe1052142006-10-21 21:46:47 -04001045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 ac_prev=htmldir ;;
1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 | --ht=*)
1049 htmldir=$ac_optarg ;;
1050
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001051 -includedir | --includedir | --includedi | --included | --include \
1052 | --includ | --inclu | --incl | --inc)
1053 ac_prev=includedir ;;
1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001056 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001057
1058 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 ac_prev=infodir ;;
1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001061 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001062
1063 -libdir | --libdir | --libdi | --libd)
1064 ac_prev=libdir ;;
1065 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001066 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001067
1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069 | --libexe | --libex | --libe)
1070 ac_prev=libexecdir ;;
1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001073 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001074
Theodore Ts'oe1052142006-10-21 21:46:47 -04001075 -localedir | --localedir | --localedi | --localed | --locale)
1076 ac_prev=localedir ;;
1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078 localedir=$ac_optarg ;;
1079
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001080 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001081 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001082 ac_prev=localstatedir ;;
1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001085 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001086
1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 ac_prev=mandir ;;
1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001090 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001091
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001092 -nfp | --nfp | --nf)
1093 # Obsolete; use --without-fp.
1094 with_fp=no ;;
1095
1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001097 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001098 no_create=yes ;;
1099
1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102 no_recursion=yes ;;
1103
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106 | --oldin | --oldi | --old | --ol | --o)
1107 ac_prev=oldincludedir ;;
1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001111 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001112
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 ac_prev=prefix ;;
1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001116 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001117
1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119 | --program-pre | --program-pr | --program-p)
1120 ac_prev=program_prefix ;;
1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001123 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001124
1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126 | --program-suf | --program-su | --program-s)
1127 ac_prev=program_suffix ;;
1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001130 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001131
1132 -program-transform-name | --program-transform-name \
1133 | --program-transform-nam | --program-transform-na \
1134 | --program-transform-n | --program-transform- \
1135 | --program-transform | --program-transfor \
1136 | --program-transfo | --program-transf \
1137 | --program-trans | --program-tran \
1138 | --progr-tra | --program-tr | --program-t)
1139 ac_prev=program_transform_name ;;
1140 -program-transform-name=* | --program-transform-name=* \
1141 | --program-transform-nam=* | --program-transform-na=* \
1142 | --program-transform-n=* | --program-transform-=* \
1143 | --program-transform=* | --program-transfor=* \
1144 | --program-transfo=* | --program-transf=* \
1145 | --program-trans=* | --program-tran=* \
1146 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001147 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001148
Theodore Ts'oe1052142006-10-21 21:46:47 -04001149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 ac_prev=pdfdir ;;
1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152 pdfdir=$ac_optarg ;;
1153
1154 -psdir | --psdir | --psdi | --psd | --ps)
1155 ac_prev=psdir ;;
1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157 psdir=$ac_optarg ;;
1158
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1161 silent=yes ;;
1162
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 ac_prev=sbindir ;;
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001167 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001168
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1172 | --sha | --sh)
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001178 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001179
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001180 -site | --site | --sit)
1181 ac_prev=site ;;
1182 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001183 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001184
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 ac_prev=srcdir ;;
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001188 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001189
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001195 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001196
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001197 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001198 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001200 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001201
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203 verbose=yes ;;
1204
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001207
1208 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001210 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001212 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217"with_$ac_useropt"
1218"*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001223
1224 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001226 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001228 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1232 *"
1233"with_$ac_useropt"
1234"*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001239
1240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
1243
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001249 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001250
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001256 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001257
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001258 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001260 ;;
1261
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001262 *=*)
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001265 case $ac_envvar in #(
1266 '' | [0-9]* | *[!_$as_cr_alnum]* )
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001268 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001269 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001270 export $ac_envvar ;;
1271
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001272 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001273 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001274 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001276 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001278 ;;
1279
1280 esac
1281done
1282
1283if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001285 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001286fi
1287
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001288if test -n "$ac_unrecognized_opts"; then
1289 case $enable_option_checking in
1290 no) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293 esac
1294fi
1295
1296# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001297for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001301do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001302 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001303 # Remove trailing slashes.
1304 case $ac_val in
1305 */ )
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1308 esac
1309 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001310 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001313 esac
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001315done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001316
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001317# There might be people who depend on the old broken behavior: `$host'
1318# used to hold the argument of --host etc.
1319# FIXME: To remove some day.
1320build=$build_alias
1321host=$host_alias
1322target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001323
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001324# FIXME: To remove some day.
1325if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001328 elif test "x$build_alias" != "x$host_alias"; then
1329 cross_compiling=yes
1330 fi
1331fi
1332
1333ac_tool_prefix=
1334test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336test "$silent" = yes && exec 6>/dev/null
1337
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001338
Theodore Ts'oe1052142006-10-21 21:46:47 -04001339ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340ac_ls_di=`ls -di .` &&
1341ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001342 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001343test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001344 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001345
1346
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001347# Find the source files, if location was not specified.
1348if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001350 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)[^/].*/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)$/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\).*/{
1370 s//\1/
1371 q
1372 }
1373 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001374 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001375 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001376 srcdir=..
1377 fi
1378else
1379 ac_srcdir_defaulted=no
1380fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001381if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001384fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001385ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386ac_abs_confdir=`(
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001388 pwd)`
1389# When building in place, set srcdir=.
1390if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 srcdir=.
1392fi
1393# Remove unnecessary trailing slashes from srcdir.
1394# Double slashes in file names in object file debugging info
1395# mess up M-x gdb in Emacs.
1396case $srcdir in
1397*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398esac
1399for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001405
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001406#
1407# Report the --help message.
1408#
1409if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1412 cat <<_ACEOF
1413\`configure' configures this package to adapt to many kinds of systems.
1414
1415Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418VAR=VALUE. See below for descriptions of some of the useful variables.
1419
1420Defaults for the options are specified in brackets.
1421
1422Configuration:
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001427 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001433Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001435 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001437 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001438
1439By default, \`make install' will install all the files in
1440\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442for instance \`--prefix=\$HOME'.
1443
1444For better control, use the options below.
1445
1446Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001466_ACEOF
1467
1468 cat <<\_ACEOF
1469
1470System types:
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473_ACEOF
1474fi
1475
1476if test -n "$ac_init_help"; then
1477
1478 cat <<\_ACEOF
1479
1480Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001481 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001484 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001485 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001486 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001487
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001488 --enable-symlink-build use symlinks while building instead of hard links
1489 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001490 --enable-compression enable EXPERIMENTAL compression support
1491 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001492 --enable-elf-shlibs select ELF shared libraries
1493 --enable-bsd-shlibs select BSD shared libraries
1494 --enable-profile build profiling libraries
1495 --enable-checker build checker libraries
1496 --enable-jbd-debug enable journal debugging
1497 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001498 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001499 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001500 --disable-libblkid do not build private blkid library
Eric Sandeen7b8912e2012-11-27 12:21:56 -06001501 --enable-quota enable quota support
Theodore Ts'o3df60142013-06-16 16:14:40 -04001502 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001503 --disable-debugfs disable support of debugfs program
1504 --disable-imager disable support of e2image program
1505 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001506 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001507 --enable-fsck build fsck wrapper program
1508 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001509 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001510 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001511 --disable-nls do not use Native Language Support
1512 --disable-rpath do not hardcode runtime library paths
1513
1514Optional Packages:
1515 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1516 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001517 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001518 --with-cc no longer supported, use CC= instead
1519 --with-ccopts no longer supported, use CFLAGS= instead
1520 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001521 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1522 --with-gnu-ld assume the C compiler uses GNU ld default=no
1523 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1524 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1525 --with-included-gettext use the GNU gettext library included here
1526 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1527 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001528 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001529
1530Some influential environment variables:
1531 CC C compiler command
1532 CFLAGS C compiler flags
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001535 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001536 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001537 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001538 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001539 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001540
1541Use these variables to override the choices made by `configure' or to help
1542it to find libraries and programs with nonstandard names/locations.
1543
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001544Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001545_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001546ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001547fi
1548
1549if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001555 ac_builddir=.
1556
Theodore Ts'oe1052142006-10-21 21:46:47 -04001557case "$ac_dir" in
1558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001561 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 esac ;;
1567esac
1568ac_abs_top_builddir=$ac_pwd
1569ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570# for backward compatibility:
1571ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001572
1573case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001574 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001575 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001579 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1582 *) # Relative name.
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001586esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001588
Theodore Ts'oe1052142006-10-21 21:46:47 -04001589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001597 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001599 fi || ac_status=$?
1600 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001601 done
1602fi
1603
Theodore Ts'oe1052142006-10-21 21:46:47 -04001604test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001605if $ac_init_version; then
1606 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001607configure
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001608generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001609
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001610Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001611This configure script is free software; the Free Software Foundation
1612gives unlimited permission to copy, distribute and modify it.
1613_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001614 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001615fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001616
1617## ------------------------ ##
1618## Autoconf initialization. ##
1619## ------------------------ ##
1620
1621# ac_fn_c_try_compile LINENO
1622# --------------------------
1623# Try to compile conftest.$ac_ext, and return whether this succeeded.
1624ac_fn_c_try_compile ()
1625{
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext
1628 if { { ac_try="$ac_compile"
1629case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632esac
1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634$as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext; then :
1647 ac_retval=0
1648else
1649 $as_echo "$as_me: failed program was:" >&5
1650sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=1
1653fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001655 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001656
1657} # ac_fn_c_try_compile
1658
1659# ac_fn_c_try_link LINENO
1660# -----------------------
1661# Try to link conftest.$ac_ext, and return whether this succeeded.
1662ac_fn_c_try_link ()
1663{
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext conftest$ac_exeext
1666 if { { ac_try="$ac_link"
1667case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1679 fi
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest$ac_exeext && {
1685 test "$cross_compiling" = yes ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001686 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001687 }; then :
1688 ac_retval=0
1689else
1690 $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1
1694fi
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001701 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001702
1703} # ac_fn_c_try_link
1704
1705# ac_fn_c_try_cpp LINENO
1706# ----------------------
1707# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_c_try_cpp ()
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_cpp conftest.$ac_ext"
1712case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1719 ac_status=$?
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1724 fi
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001726 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 }; then :
1730 ac_retval=0
1731else
1732 $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=1
1736fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001738 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001739
1740} # ac_fn_c_try_cpp
1741
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001742# ac_fn_c_try_run LINENO
1743# ----------------------
1744# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1745# that executables *can* be run.
1746ac_fn_c_try_run ()
1747{
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { { ac_try="$ac_link"
1750case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753esac
1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755$as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_link") 2>&5
1757 ac_status=$?
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1760 { { case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_try") 2>&5
1767 ac_status=$?
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; }; }; then :
1770 ac_retval=0
1771else
1772 $as_echo "$as_me: program exited with status $ac_status" >&5
1773 $as_echo "$as_me: failed program was:" >&5
1774sed 's/^/| /' conftest.$ac_ext >&5
1775
1776 ac_retval=$ac_status
1777fi
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001780 as_fn_set_status $ac_retval
1781
1782} # ac_fn_c_try_run
1783
1784# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1785# -------------------------------------------
1786# Tests whether TYPE exists after having included INCLUDES, setting cache
1787# variable VAR accordingly.
1788ac_fn_c_check_type ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001793if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001794 $as_echo_n "(cached) " >&6
1795else
1796 eval "$3=no"
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h. */
1799$4
1800int
1801main ()
1802{
1803if (sizeof ($2))
1804 return 0;
1805 ;
1806 return 0;
1807}
1808_ACEOF
1809if ac_fn_c_try_compile "$LINENO"; then :
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h. */
1812$4
1813int
1814main ()
1815{
1816if (sizeof (($2)))
1817 return 0;
1818 ;
1819 return 0;
1820}
1821_ACEOF
1822if ac_fn_c_try_compile "$LINENO"; then :
1823
1824else
1825 eval "$3=yes"
1826fi
1827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828fi
1829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830fi
1831eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001835
1836} # ac_fn_c_check_type
1837
1838# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1839# -------------------------------------------------------
1840# Tests whether HEADER exists and can be compiled using the include files in
1841# INCLUDES, setting the cache variable VAR accordingly.
1842ac_fn_c_check_header_compile ()
1843{
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001847if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001848 $as_echo_n "(cached) " >&6
1849else
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851/* end confdefs.h. */
1852$4
1853#include <$2>
1854_ACEOF
1855if ac_fn_c_try_compile "$LINENO"; then :
1856 eval "$3=yes"
1857else
1858 eval "$3=no"
1859fi
1860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861fi
1862eval ac_res=\$$3
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001866
1867} # ac_fn_c_check_header_compile
1868
1869# ac_fn_c_check_func LINENO FUNC VAR
1870# ----------------------------------
1871# Tests whether FUNC exists, setting the cache variable VAR accordingly
1872ac_fn_c_check_func ()
1873{
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001877if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001878 $as_echo_n "(cached) " >&6
1879else
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h. */
1882/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1884#define $2 innocuous_$2
1885
1886/* System header to define __stub macros and hopefully few prototypes,
1887 which can conflict with char $2 (); below.
1888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1889 <limits.h> exists even on freestanding compilers. */
1890
1891#ifdef __STDC__
1892# include <limits.h>
1893#else
1894# include <assert.h>
1895#endif
1896
1897#undef $2
1898
1899/* Override any GCC internal prototype to avoid an error.
1900 Use char because int might match the return type of a GCC
1901 builtin and then its argument prototype would still apply. */
1902#ifdef __cplusplus
1903extern "C"
1904#endif
1905char $2 ();
1906/* The GNU C library defines this for functions which it implements
1907 to always fail with ENOSYS. Some functions are actually named
1908 something starting with __ and the normal name is an alias. */
1909#if defined __stub_$2 || defined __stub___$2
1910choke me
1911#endif
1912
1913int
1914main ()
1915{
1916return $2 ();
1917 ;
1918 return 0;
1919}
1920_ACEOF
1921if ac_fn_c_try_link "$LINENO"; then :
1922 eval "$3=yes"
1923else
1924 eval "$3=no"
1925fi
1926rm -f core conftest.err conftest.$ac_objext \
1927 conftest$ac_exeext conftest.$ac_ext
1928fi
1929eval ac_res=\$$3
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001933
1934} # ac_fn_c_check_func
1935
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001936# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1937# -------------------------------------------------------
1938# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1939# the include files in INCLUDES and setting the cache variable VAR
1940# accordingly.
1941ac_fn_c_check_header_mongrel ()
1942{
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001944 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001947if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001948 $as_echo_n "(cached) " >&6
1949fi
1950eval ac_res=\$$3
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952$as_echo "$ac_res" >&6; }
1953else
1954 # Is the header compilable?
1955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1956$as_echo_n "checking $2 usability... " >&6; }
1957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h. */
1959$4
1960#include <$2>
1961_ACEOF
1962if ac_fn_c_try_compile "$LINENO"; then :
1963 ac_header_compiler=yes
1964else
1965 ac_header_compiler=no
1966fi
1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1969$as_echo "$ac_header_compiler" >&6; }
1970
1971# Is the header present?
1972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1973$as_echo_n "checking $2 presence... " >&6; }
1974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h. */
1976#include <$2>
1977_ACEOF
1978if ac_fn_c_try_cpp "$LINENO"; then :
1979 ac_header_preproc=yes
1980else
1981 ac_header_preproc=no
1982fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001983rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1985$as_echo "$ac_header_preproc" >&6; }
1986
1987# So? What about this header?
1988case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1989 yes:no: )
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1991$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994 ;;
1995 no:yes:* )
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1997$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1999$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2001$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2003$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2005$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2006 ;;
2007esac
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002010if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002011 $as_echo_n "(cached) " >&6
2012else
2013 eval "$3=\$ac_header_compiler"
2014fi
2015eval ac_res=\$$3
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017$as_echo "$ac_res" >&6; }
2018fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002020
2021} # ac_fn_c_check_header_mongrel
2022
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002023# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2024# --------------------------------------------
2025# Tries to find the compile-time value of EXPR in a program that includes
2026# INCLUDES, setting VAR accordingly. Returns whether the value could be
2027# computed
2028ac_fn_c_compute_int ()
2029{
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if test "$cross_compiling" = yes; then
2032 # Depending upon the size, compute the lo and hi bounds.
2033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034/* end confdefs.h. */
2035$4
2036int
2037main ()
2038{
2039static int test_array [1 - 2 * !(($2) >= 0)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002040test_array [0] = 0;
2041return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002042
2043 ;
2044 return 0;
2045}
2046_ACEOF
2047if ac_fn_c_try_compile "$LINENO"; then :
2048 ac_lo=0 ac_mid=0
2049 while :; do
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051/* end confdefs.h. */
2052$4
2053int
2054main ()
2055{
2056static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002057test_array [0] = 0;
2058return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002059
2060 ;
2061 return 0;
2062}
2063_ACEOF
2064if ac_fn_c_try_compile "$LINENO"; then :
2065 ac_hi=$ac_mid; break
2066else
2067 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2068 if test $ac_lo -le $ac_mid; then
2069 ac_lo= ac_hi=
2070 break
2071 fi
2072 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2073fi
2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 done
2076else
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h. */
2079$4
2080int
2081main ()
2082{
2083static int test_array [1 - 2 * !(($2) < 0)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002084test_array [0] = 0;
2085return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002086
2087 ;
2088 return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_hi=-1 ac_mid=-1
2093 while :; do
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h. */
2096$4
2097int
2098main ()
2099{
2100static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002101test_array [0] = 0;
2102return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002103
2104 ;
2105 return 0;
2106}
2107_ACEOF
2108if ac_fn_c_try_compile "$LINENO"; then :
2109 ac_lo=$ac_mid; break
2110else
2111 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2112 if test $ac_mid -le $ac_hi; then
2113 ac_lo= ac_hi=
2114 break
2115 fi
2116 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2117fi
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 done
2120else
2121 ac_lo= ac_hi=
2122fi
2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124fi
2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126# Binary search between lo and hi bounds.
2127while test "x$ac_lo" != "x$ac_hi"; do
2128 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130/* end confdefs.h. */
2131$4
2132int
2133main ()
2134{
2135static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002136test_array [0] = 0;
2137return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002138
2139 ;
2140 return 0;
2141}
2142_ACEOF
2143if ac_fn_c_try_compile "$LINENO"; then :
2144 ac_hi=$ac_mid
2145else
2146 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2147fi
2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149done
2150case $ac_lo in #((
2151?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2152'') ac_retval=1 ;;
2153esac
2154 else
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156/* end confdefs.h. */
2157$4
2158static long int longval () { return $2; }
2159static unsigned long int ulongval () { return $2; }
2160#include <stdio.h>
2161#include <stdlib.h>
2162int
2163main ()
2164{
2165
2166 FILE *f = fopen ("conftest.val", "w");
2167 if (! f)
2168 return 1;
2169 if (($2) < 0)
2170 {
2171 long int i = longval ();
2172 if (i != ($2))
2173 return 1;
2174 fprintf (f, "%ld", i);
2175 }
2176 else
2177 {
2178 unsigned long int i = ulongval ();
2179 if (i != ($2))
2180 return 1;
2181 fprintf (f, "%lu", i);
2182 }
2183 /* Do not output a trailing newline, as this causes \r\n confusion
2184 on some platforms. */
2185 return ferror (f) || fclose (f) != 0;
2186
2187 ;
2188 return 0;
2189}
2190_ACEOF
2191if ac_fn_c_try_run "$LINENO"; then :
2192 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2193else
2194 ac_retval=1
2195fi
2196rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2197 conftest.$ac_objext conftest.beam conftest.$ac_ext
2198rm -f conftest.val
2199
2200 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002202 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002203
2204} # ac_fn_c_compute_int
2205
2206# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2207# ----------------------------------------------------
2208# Tries to find if the field MEMBER exists in type AGGR, after including
2209# INCLUDES, setting cache variable VAR accordingly.
2210ac_fn_c_check_member ()
2211{
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2214$as_echo_n "checking for $2.$3... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002215if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002216 $as_echo_n "(cached) " >&6
2217else
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h. */
2220$5
2221int
2222main ()
2223{
2224static $2 ac_aggr;
2225if (ac_aggr.$3)
2226return 0;
2227 ;
2228 return 0;
2229}
2230_ACEOF
2231if ac_fn_c_try_compile "$LINENO"; then :
2232 eval "$4=yes"
2233else
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235/* end confdefs.h. */
2236$5
2237int
2238main ()
2239{
2240static $2 ac_aggr;
2241if (sizeof ac_aggr.$3)
2242return 0;
2243 ;
2244 return 0;
2245}
2246_ACEOF
2247if ac_fn_c_try_compile "$LINENO"; then :
2248 eval "$4=yes"
2249else
2250 eval "$4=no"
2251fi
2252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253fi
2254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255fi
2256eval ac_res=\$$4
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002260
2261} # ac_fn_c_check_member
2262
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002263# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2264# ---------------------------------------------
2265# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2266# accordingly.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002267ac_fn_c_check_decl ()
2268{
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002270 as_decl_name=`echo $2|sed 's/ *(.*//'`
2271 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2273$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2274if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002275 $as_echo_n "(cached) " >&6
2276else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278/* end confdefs.h. */
2279$4
2280int
2281main ()
2282{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002283#ifndef $as_decl_name
2284#ifdef __cplusplus
2285 (void) $as_decl_use;
2286#else
2287 (void) $as_decl_name;
2288#endif
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002289#endif
2290
2291 ;
2292 return 0;
2293}
2294_ACEOF
2295if ac_fn_c_try_compile "$LINENO"; then :
2296 eval "$3=yes"
2297else
2298 eval "$3=no"
2299fi
2300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301fi
2302eval ac_res=\$$3
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002306
2307} # ac_fn_c_check_decl
Theodore Ts'oe1052142006-10-21 21:46:47 -04002308cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002309This file contains any messages produced by compilers while
2310running configure, to aid debugging if configure makes a mistake.
2311
2312It was created by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002313generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002314
2315 $ $0 $@
2316
2317_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002318exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002319{
2320cat <<_ASUNAME
2321## --------- ##
2322## Platform. ##
2323## --------- ##
2324
2325hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2326uname -m = `(uname -m) 2>/dev/null || echo unknown`
2327uname -r = `(uname -r) 2>/dev/null || echo unknown`
2328uname -s = `(uname -s) 2>/dev/null || echo unknown`
2329uname -v = `(uname -v) 2>/dev/null || echo unknown`
2330
2331/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2332/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2333
2334/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2335/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2336/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002337/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002338/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2339/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2340/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2341
2342_ASUNAME
2343
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002349 $as_echo "PATH: $as_dir"
2350 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002351IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002352
2353} >&5
2354
2355cat >&5 <<_ACEOF
2356
2357
2358## ----------- ##
2359## Core tests. ##
2360## ----------- ##
2361
2362_ACEOF
2363
2364
2365# Keep a trace of the command line.
2366# Strip out --no-create and --no-recursion so they do not pile up.
2367# Strip out --silent because we don't want to record it for future runs.
2368# Also quote any args containing shell meta-characters.
2369# Make two passes to allow for proper duplicate-argument suppression.
2370ac_configure_args=
2371ac_configure_args0=
2372ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002373ac_must_keep_next=false
2374for ac_pass in 1 2
2375do
2376 for ac_arg
2377 do
2378 case $ac_arg in
2379 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2381 | -silent | --silent | --silen | --sile | --sil)
2382 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002383 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002384 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002385 esac
2386 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002387 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002388 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002389 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002390 if test $ac_must_keep_next = true; then
2391 ac_must_keep_next=false # Got value, back to normal.
2392 else
2393 case $ac_arg in
2394 *=* | --config-cache | -C | -disable-* | --disable-* \
2395 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2396 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2397 | -with-* | --with-* | -without-* | --without-* | --x)
2398 case "$ac_configure_args0 " in
2399 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2400 esac
2401 ;;
2402 -* ) ac_must_keep_next=true ;;
2403 esac
2404 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002405 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002406 ;;
2407 esac
2408 done
2409done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002410{ ac_configure_args0=; unset ac_configure_args0;}
2411{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002412
2413# When interrupted or exit'd, cleanup temporary files, and complete
2414# config.log. We remove comments because anyway the quotes in there
2415# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002416# WARNING: Use '\'' to represent an apostrophe within the trap.
2417# 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 -05002418trap 'exit_status=$?
2419 # Save into config.log some information that might help in debugging.
2420 {
2421 echo
2422
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002423 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002424## Cache variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002425## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002426 echo
2427 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002428(
2429 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2430 eval ac_val=\$$ac_var
2431 case $ac_val in #(
2432 *${as_nl}*)
2433 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002434 *_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 +01002435$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002436 esac
2437 case $ac_var in #(
2438 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002439 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002440 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002441 esac ;;
2442 esac
2443 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002444 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002445 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2446 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002447 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002448 "s/'\''/'\''\\\\'\'''\''/g;
2449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2450 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002451 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002452 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002453 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002454 esac |
2455 sort
2456)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002457 echo
2458
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002459 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002460## Output variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002461## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002462 echo
2463 for ac_var in $ac_subst_vars
2464 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002465 eval ac_val=\$$ac_var
2466 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002467 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002468 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002469 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002470 done | sort
2471 echo
2472
2473 if test -n "$ac_subst_files"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002474 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002475## File substitutions. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002476## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477 echo
2478 for ac_var in $ac_subst_files
2479 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002480 eval ac_val=\$$ac_var
2481 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002482 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002483 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002484 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002485 done | sort
2486 echo
2487 fi
2488
2489 if test -s confdefs.h; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002490 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002491## confdefs.h. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002492## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002493 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002494 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002495 echo
2496 fi
2497 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002498 $as_echo "$as_me: caught signal $ac_signal"
2499 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002500 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002501 rm -f core *.core core.conftest.* &&
2502 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002503 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002504' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002505for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002506 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002507done
2508ac_signal=0
2509
2510# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002511rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002512
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002513$as_echo "/* confdefs.h */" > confdefs.h
2514
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002515# Predefined preprocessor variables.
2516
2517cat >>confdefs.h <<_ACEOF
2518#define PACKAGE_NAME "$PACKAGE_NAME"
2519_ACEOF
2520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002521cat >>confdefs.h <<_ACEOF
2522#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2523_ACEOF
2524
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002525cat >>confdefs.h <<_ACEOF
2526#define PACKAGE_VERSION "$PACKAGE_VERSION"
2527_ACEOF
2528
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002529cat >>confdefs.h <<_ACEOF
2530#define PACKAGE_STRING "$PACKAGE_STRING"
2531_ACEOF
2532
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002533cat >>confdefs.h <<_ACEOF
2534#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2535_ACEOF
2536
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002537cat >>confdefs.h <<_ACEOF
2538#define PACKAGE_URL "$PACKAGE_URL"
2539_ACEOF
2540
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002541
2542# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002543# Prefer an explicitly selected file to automatically selected ones.
2544ac_site_file1=NONE
2545ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002546if test -n "$CONFIG_SITE"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002547 # We do not want a PATH search for config.site.
2548 case $CONFIG_SITE in #((
2549 -*) ac_site_file1=./$CONFIG_SITE;;
2550 */*) ac_site_file1=$CONFIG_SITE;;
2551 *) ac_site_file1=./$CONFIG_SITE;;
2552 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002553elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002554 ac_site_file1=$prefix/share/config.site
2555 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002556else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002557 ac_site_file1=$ac_default_prefix/share/config.site
2558 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002559fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002560for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002561do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002562 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002563 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002565$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002566 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002567 . "$ac_site_file" \
2568 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570as_fn_error $? "failed to load site script $ac_site_file
2571See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002572 fi
2573done
2574
2575if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002576 # Some versions of bash will fail to source /dev/null (special files
2577 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2578 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002579 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002580$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002581 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002582 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2583 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002584 esac
2585 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002586else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002588$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002589 >$cache_file
2590fi
2591
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002592as_fn_append ac_header_list " stdlib.h"
2593as_fn_append ac_header_list " unistd.h"
2594as_fn_append ac_header_list " sys/param.h"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002595# Check that the precious variables saved in the cache have kept the same
2596# value.
2597ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002598for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002599 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2600 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002601 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2602 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002603 case $ac_old_set,$ac_new_set in
2604 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002605 { $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 +01002606$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 -05002607 ac_cache_corrupted=: ;;
2608 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002609 { $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 +01002610$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002611 ac_cache_corrupted=: ;;
2612 ,);;
2613 *)
2614 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002615 # differences in whitespace do not lead to failure.
2616 ac_old_val_w=`echo x $ac_old_val`
2617 ac_new_val_w=`echo x $ac_new_val`
2618 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002619 { $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 +01002620$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2621 ac_cache_corrupted=:
2622 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002623 { $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 +01002624$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2625 eval $ac_var=\$ac_old_val
2626 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002627 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002628$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002629 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002630$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002631 fi;;
2632 esac
2633 # Pass precious variables to config.status.
2634 if test "$ac_new_set" = set; then
2635 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002636 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002637 *) ac_arg=$ac_var=$ac_new_val ;;
2638 esac
2639 case " $ac_configure_args " in
2640 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002641 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002642 esac
2643 fi
2644done
2645if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002648 { $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 +01002649$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002650 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002651fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002652## -------------------- ##
2653## Main body of script. ##
2654## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002655
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002656ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002657ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002661
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002662
2663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002664ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002665for ac_dir in config "$srcdir"/config; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002666 if 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/install.sh"; then
2671 ac_aux_dir=$ac_dir
2672 ac_install_sh="$ac_aux_dir/install.sh -c"
2673 break
2674 elif test -f "$ac_dir/shtool"; then
2675 ac_aux_dir=$ac_dir
2676 ac_install_sh="$ac_aux_dir/shtool install -c"
2677 break
2678 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002679done
2680if test -z "$ac_aux_dir"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002681 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 +00002682fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002683
2684# These three variables are undocumented and unsupported,
2685# and are intended to be withdrawn in a future Autoconf release.
2686# They can cause serious problems if a builder's source tree is in a directory
2687# whose full name contains unusual characters.
2688ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2689ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2690ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2691
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002692
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002693ac_config_headers="$ac_config_headers lib/config.h"
2694
2695
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002696MCONFIG=./MCONFIG
2697
Theodore Ts'o74becf31997-04-26 14:37:06 +00002698BINARY_TYPE=bin
2699E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2700 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2701DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2702 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002703E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002704MONTH=`echo $DATE | awk -F- '{print $2}'`
2705YEAR=`echo $DATE | awk -F- '{print $3}'`
2706
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002707if expr $YEAR ">" 1900 > /dev/null ; then
2708 E2FSPROGS_YEAR=$YEAR
2709elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002710 E2FSPROGS_YEAR=19$YEAR
2711else
2712 E2FSPROGS_YEAR=20$YEAR
2713fi
2714
2715case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002716Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2717Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2718Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2719Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2720May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2721Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2722Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2723Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2724Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2725Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2726Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2727Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002728*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002729$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002730esac
2731
Andreas Dilger927566a2006-11-12 19:41:25 -05002732base_ver=`echo $E2FSPROGS_VERSION | \
2733 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002734
2735date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2736
2737case $E2FSPROGS_VERSION in
2738*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002739 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002740 ;;
2741*)
2742 E2FSPROGS_PKGVER="$base_ver"
2743 ;;
2744esac
2745
2746unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002747{ $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 +01002748$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002750$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002751
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002752
2753
2754
Andreas Dilger927566a2006-11-12 19:41:25 -05002755
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002756# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002757$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002758 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002759
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002761$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002762if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002763 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002764else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002765 ac_build_alias=$build_alias
2766test "x$ac_build_alias" = x &&
2767 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2768test "x$ac_build_alias" = x &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002769 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002770ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002771 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002772
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002773fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002775$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002776case $ac_cv_build in
2777*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002778*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002779esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002780build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002781ac_save_IFS=$IFS; IFS='-'
2782set x $ac_cv_build
2783shift
2784build_cpu=$1
2785build_vendor=$2
2786shift; shift
2787# Remember, the first character of IFS is used to create $*,
2788# except with old shells:
2789build_os=$*
2790IFS=$ac_save_IFS
2791case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002792
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002793
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002795$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002796if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002797 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002798else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002799 if test "x$host_alias" = x; then
2800 ac_cv_host=$ac_cv_build
2801else
2802 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002803 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002804fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002805
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002806fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002808$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002809case $ac_cv_host in
2810*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002811*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002812esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002813host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002814ac_save_IFS=$IFS; IFS='-'
2815set x $ac_cv_host
2816shift
2817host_cpu=$1
2818host_vendor=$2
2819shift; shift
2820# Remember, the first character of IFS is used to create $*,
2821# except with old shells:
2822host_os=$*
2823IFS=$ac_save_IFS
2824case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002825
2826
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002827DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002828ac_ext=c
2829ac_cpp='$CPP $CPPFLAGS'
2830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833if test -n "$ac_tool_prefix"; then
2834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2835set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002837$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002838if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002839 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002840else
2841 if test -n "$CC"; then
2842 ac_cv_prog_CC="$CC" # Let the user override the test.
2843else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002849 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002851 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002853 break 2
2854 fi
2855done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002856 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002857IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002858
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002859fi
2860fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002861CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002862if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002864$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002865else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002867$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002868fi
2869
Theodore Ts'oe1052142006-10-21 21:46:47 -04002870
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002871fi
2872if test -z "$ac_cv_prog_CC"; then
2873 ac_ct_CC=$CC
2874 # Extract the first word of "gcc", so it can be a program name with args.
2875set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002877$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002878if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002879 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002880else
2881 if test -n "$ac_ct_CC"; then
2882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2883else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002889 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002891 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002893 break 2
2894 fi
2895done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002896 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002897IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002898
2899fi
2900fi
2901ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002904$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002905else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002907$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002908fi
2909
Theodore Ts'oe1052142006-10-21 21:46:47 -04002910 if test "x$ac_ct_CC" = x; then
2911 CC=""
2912 else
2913 case $cross_compiling:$ac_tool_warned in
2914yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002915{ $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 +01002916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002917ac_tool_warned=yes ;;
2918esac
2919 CC=$ac_ct_CC
2920 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002921else
2922 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002923fi
2924
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002925if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002926 if test -n "$ac_tool_prefix"; then
2927 # 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 -05002928set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002930$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002931if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002932 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002933else
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2936else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH
2939do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002942 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002944 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002946 break 2
2947 fi
2948done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002949 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002950IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002951
2952fi
2953fi
2954CC=$ac_cv_prog_CC
2955if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002957$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002958else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002960$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002961fi
2962
Theodore Ts'oe1052142006-10-21 21:46:47 -04002963
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002964 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002965fi
2966if test -z "$CC"; then
2967 # Extract the first word of "cc", so it can be a program name with args.
2968set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002970$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002971if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002972 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002973else
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2976else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002977 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002983 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2986 ac_prog_rejected=yes
2987 continue
2988 fi
2989 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002991 break 2
2992 fi
2993done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002994 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002995IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002996
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002997if test $ac_prog_rejected = yes; then
2998 # We found a bogon in the path, so make sure we never use it.
2999 set dummy $ac_cv_prog_CC
3000 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003001 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003002 # We chose a different compiler from the bogus one.
3003 # However, it has the same basename, so the bogon will be chosen
3004 # first if we set CC to just the basename; use the full file name.
3005 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003006 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003007 fi
3008fi
3009fi
3010fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003011CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003012if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003014$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003015else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003017$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003018fi
3019
Theodore Ts'oe1052142006-10-21 21:46:47 -04003020
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003021fi
3022if test -z "$CC"; then
3023 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003024 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003025 do
3026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3027set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003029$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003030if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003031 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003032else
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3035else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037for as_dir in $PATH
3038do
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003041 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003045 break 2
3046 fi
3047done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003048 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003049IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003050
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003051fi
3052fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003053CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003054if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003056$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003057else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003059$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003060fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003061
Theodore Ts'oe1052142006-10-21 21:46:47 -04003062
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003063 test -n "$CC" && break
3064 done
3065fi
3066if test -z "$CC"; then
3067 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003068 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003069do
3070 # Extract the first word of "$ac_prog", so it can be a program name with args.
3071set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003073$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003074if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003075 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003076else
3077 if test -n "$ac_ct_CC"; then
3078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3079else
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003085 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003087 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003089 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003090 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003091done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003092 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003093IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003094
3095fi
3096fi
3097ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003100$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003101else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003103$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003104fi
3105
Theodore Ts'oe1052142006-10-21 21:46:47 -04003106
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003107 test -n "$ac_ct_CC" && break
3108done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003109
Theodore Ts'oe1052142006-10-21 21:46:47 -04003110 if test "x$ac_ct_CC" = x; then
3111 CC=""
3112 else
3113 case $cross_compiling:$ac_tool_warned in
3114yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003115{ $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 +01003116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003117ac_tool_warned=yes ;;
3118esac
3119 CC=$ac_ct_CC
3120 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003121fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003122
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003123fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003124
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003125
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003126test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003128as_fn_error $? "no acceptable C compiler found in \$PATH
3129See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003130
3131# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003132$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003133set X $ac_compile
3134ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003135for ac_option in --version -v -V -qversion; do
3136 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003137case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142$as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003144 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003145 if test -s conftest.err; then
3146 sed '10a\
3147... rest of stderr output deleted ...
3148 10q' conftest.err >conftest.er1
3149 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003150 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003151 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }
3154done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003155
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003157/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003158
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003159int
3160main ()
3161{
3162
3163 ;
3164 return 0;
3165}
3166_ACEOF
3167ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003168ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003169# Try to create an executable without -o first, disregard a.out.
3170# It will help us diagnose broken compilers, and finding out an intuition
3171# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3173$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003174ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3175
3176# The possible output files:
3177ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3178
Theodore Ts'oe1052142006-10-21 21:46:47 -04003179ac_rmfiles=
3180for ac_file in $ac_files
3181do
3182 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003184 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3185 esac
3186done
3187rm -f $ac_rmfiles
3188
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003189if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003190case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003196 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003197 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003200 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3201# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3202# in a Makefile. We should not override ac_cv_exeext if it was cached,
3203# so that the user can short-circuit this test for compilers unknown to
3204# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003205for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003206do
3207 test -f "$ac_file" || continue
3208 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003210 ;;
3211 [ab].out )
3212 # We found the default executable, but exeext='' is most
3213 # certainly right.
3214 break;;
3215 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003216 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003217 then :; else
3218 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219 fi
3220 # We set ac_cv_exeext here because the later test for it is not
3221 # safe: cross compilers may not add the suffix if given an `-o'
3222 # argument, so we may need to know it at that point already.
3223 # Even if this section looks crufty: it has the advantage of
3224 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003225 break;;
3226 * )
3227 break;;
3228 esac
3229done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003230test "$ac_cv_exeext" = no && ac_cv_exeext=
3231
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003232else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003233 ac_file=''
3234fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003235if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003239sed 's/^/| /' conftest.$ac_ext >&5
3240
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003241{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003243as_fn_error 77 "C compiler cannot create executables
3244See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003245else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003248fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3250$as_echo_n "checking for C compiler default output file name... " >&6; }
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3252$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003253ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003254
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003255rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003256ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003258$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003259if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003260case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003266 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003267 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003270 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3271# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3272# work properly (i.e., refer to `conftest.exe'), while it won't with
3273# `rm'.
3274for ac_file in conftest.exe conftest conftest.*; do
3275 test -f "$ac_file" || continue
3276 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003278 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003279 break;;
3280 * ) break;;
3281 esac
3282done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003283else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003286as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3287See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003288fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003289rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003291$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003292
3293rm -f conftest.$ac_ext
3294EXEEXT=$ac_cv_exeext
3295ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297/* end confdefs.h. */
3298#include <stdio.h>
3299int
3300main ()
3301{
3302FILE *f = fopen ("conftest.out", "w");
3303 return ferror (f) || fclose (f) != 0;
3304
3305 ;
3306 return 0;
3307}
3308_ACEOF
3309ac_clean_files="$ac_clean_files conftest.out"
3310# Check that the compiler produces executables we can run. If not, either
3311# the compiler is broken, or we cross compile.
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3313$as_echo_n "checking whether we are cross compiling... " >&6; }
3314if test "$cross_compiling" != yes; then
3315 { { ac_try="$ac_link"
3316case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319esac
3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321$as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }
3326 if { ac_try='./conftest$ac_cv_exeext'
3327 { { case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330esac
3331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332$as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_try") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; }; then
3337 cross_compiling=no
3338 else
3339 if test "$cross_compiling" = maybe; then
3340 cross_compiling=yes
3341 else
3342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003344as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003345If you meant to cross compile, use \`--host'.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003346See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003347 fi
3348 fi
3349fi
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3351$as_echo "$cross_compiling" >&6; }
3352
3353rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3354ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003356$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003357if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003358 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003359else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003361/* end confdefs.h. */
3362
3363int
3364main ()
3365{
3366
3367 ;
3368 return 0;
3369}
3370_ACEOF
3371rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003372if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003379 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003380 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003383 for ac_file in conftest.o conftest.obj conftest.*; do
3384 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003385 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003387 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3388 break;;
3389 esac
3390done
3391else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003392 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003393sed 's/^/| /' conftest.$ac_ext >&5
3394
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003395{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003397as_fn_error $? "cannot compute suffix of object files: cannot compile
3398See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003399fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003400rm -f conftest.$ac_cv_objext conftest.$ac_ext
3401fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003403$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003404OBJEXT=$ac_cv_objext
3405ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003406{ $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 +01003407$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003408if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003409 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003410else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003412/* end confdefs.h. */
3413
3414int
3415main ()
3416{
3417#ifndef __GNUC__
3418 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003419#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003420
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003421 ;
3422 return 0;
3423}
3424_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003425if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003426 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003427else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003428 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003429fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003431ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003432
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003433fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003435$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3436if test $ac_compiler_gnu = yes; then
3437 GCC=yes
3438else
3439 GCC=
3440fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003441ac_test_CFLAGS=${CFLAGS+set}
3442ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003444$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003445if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003446 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003447else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003448 ac_save_c_werror_flag=$ac_c_werror_flag
3449 ac_c_werror_flag=yes
3450 ac_cv_prog_cc_g=no
3451 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003453/* end confdefs.h. */
3454
3455int
3456main ()
3457{
3458
3459 ;
3460 return 0;
3461}
3462_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003463if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003464 ac_cv_prog_cc_g=yes
3465else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003466 CFLAGS=""
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003468/* end confdefs.h. */
3469
3470int
3471main ()
3472{
3473
3474 ;
3475 return 0;
3476}
3477_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003478if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003479
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003480else
3481 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003482 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003484/* end confdefs.h. */
3485
3486int
3487main ()
3488{
3489
3490 ;
3491 return 0;
3492}
3493_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003494if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003495 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003496fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003498fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 ac_c_werror_flag=$ac_save_c_werror_flag
3503fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003505$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003506if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003507 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003508elif test $ac_cv_prog_cc_g = yes; then
3509 if test "$GCC" = yes; then
3510 CFLAGS="-g -O2"
3511 else
3512 CFLAGS="-g"
3513 fi
3514else
3515 if test "$GCC" = yes; then
3516 CFLAGS="-O2"
3517 else
3518 CFLAGS=
3519 fi
3520fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003522$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003523if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003524 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003525else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003526 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003527ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003529/* end confdefs.h. */
3530#include <stdarg.h>
3531#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003532struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003533/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3534struct buf { int x; };
3535FILE * (*rcsopen) (struct buf *, struct stat *, int);
3536static char *e (p, i)
3537 char **p;
3538 int i;
3539{
3540 return p[i];
3541}
3542static char *f (char * (*g) (char **, int), char **p, ...)
3543{
3544 char *s;
3545 va_list v;
3546 va_start (v,p);
3547 s = g (p, va_arg (v,int));
3548 va_end (v);
3549 return s;
3550}
3551
3552/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3553 function prototypes and stuff, but not '\xHH' hex character constants.
3554 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003555 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003556 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3557 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003558 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003559int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3560
Theodore Ts'oe1052142006-10-21 21:46:47 -04003561/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3562 inside strings and character constants. */
3563#define FOO(x) 'x'
3564int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3565
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003566int test (int i, double x);
3567struct s1 {int (*f) (int a);};
3568struct s2 {int (*f) (double a);};
3569int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3570int argc;
3571char **argv;
3572int
3573main ()
3574{
3575return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3576 ;
3577 return 0;
3578}
3579_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003580for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3581 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003582do
3583 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003584 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003585 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003586fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003587rm -f core conftest.err conftest.$ac_objext
3588 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003589done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003590rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003591CC=$ac_save_CC
3592
3593fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003594# AC_CACHE_VAL
3595case "x$ac_cv_prog_cc_c89" in
3596 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003598$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003599 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003601$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003602 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003603 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003605$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003606esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003607if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003608
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003609fi
3610
3611ac_ext=c
3612ac_cpp='$CPP $CPPFLAGS'
3613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616
3617
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3619$as_echo_n "checking for dlopen in -ldl... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003620if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003621 $as_echo_n "(cached) " >&6
3622else
3623 ac_check_lib_save_LIBS=$LIBS
3624LIBS="-ldl $LIBS"
3625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626/* end confdefs.h. */
3627
3628/* Override any GCC internal prototype to avoid an error.
3629 Use char because int might match the return type of a GCC
3630 builtin and then its argument prototype would still apply. */
3631#ifdef __cplusplus
3632extern "C"
3633#endif
3634char dlopen ();
3635int
3636main ()
3637{
3638return dlopen ();
3639 ;
3640 return 0;
3641}
3642_ACEOF
3643if ac_fn_c_try_link "$LINENO"; then :
3644 ac_cv_lib_dl_dlopen=yes
3645else
3646 ac_cv_lib_dl_dlopen=no
3647fi
3648rm -f core conftest.err conftest.$ac_objext \
3649 conftest$ac_exeext conftest.$ac_ext
3650LIBS=$ac_check_lib_save_LIBS
3651fi
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3653$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003654if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003655 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003656
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003657$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3658
3659fi
3660
3661
3662WITH_DIET_LIBC=
3663
3664# Check whether --with-diet-libc was given.
3665if test "${with_diet_libc+set}" = set; then :
3666 withval=$with_diet_libc; CC="diet cc -nostdinc"
3667WITH_DIET_LIBC=yes
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3669$as_echo "CC=$CC" >&6; }
3670fi
3671
3672# Check whether --with-cc was given.
3673if test "${with_cc+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003674 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003675fi
3676
3677
3678# Check whether --with-ccopts was given.
3679if test "${with_ccopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003680 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003681fi
3682
3683
3684# Check whether --with-ldopts was given.
3685if test "${with_ldopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003686 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003687fi
3688
3689ac_ext=c
3690ac_cpp='$CPP $CPPFLAGS'
3691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694if test -n "$ac_tool_prefix"; then
3695 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3696set dummy ${ac_tool_prefix}gcc; ac_word=$2
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003699if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003700 $as_echo_n "(cached) " >&6
3701else
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC="$CC" # Let the user override the test.
3704else
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003712 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716done
3717 done
3718IFS=$as_save_IFS
3719
3720fi
3721fi
3722CC=$ac_cv_prog_CC
3723if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725$as_echo "$CC" >&6; }
3726else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728$as_echo "no" >&6; }
3729fi
3730
3731
3732fi
3733if test -z "$ac_cv_prog_CC"; then
3734 ac_ct_CC=$CC
3735 # Extract the first word of "gcc", so it can be a program name with args.
3736set dummy gcc; ac_word=$2
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003739if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003740 $as_echo_n "(cached) " >&6
3741else
3742 if test -n "$ac_ct_CC"; then
3743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3744else
3745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746for as_dir in $PATH
3747do
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003752 ac_cv_prog_ac_ct_CC="gcc"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 2
3755 fi
3756done
3757 done
3758IFS=$as_save_IFS
3759
3760fi
3761fi
3762ac_ct_CC=$ac_cv_prog_ac_ct_CC
3763if test -n "$ac_ct_CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3765$as_echo "$ac_ct_CC" >&6; }
3766else
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768$as_echo "no" >&6; }
3769fi
3770
3771 if test "x$ac_ct_CC" = x; then
3772 CC=""
3773 else
3774 case $cross_compiling:$ac_tool_warned in
3775yes:)
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778ac_tool_warned=yes ;;
3779esac
3780 CC=$ac_ct_CC
3781 fi
3782else
3783 CC="$ac_cv_prog_CC"
3784fi
3785
3786if test -z "$CC"; then
3787 if test -n "$ac_tool_prefix"; then
3788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3789set dummy ${ac_tool_prefix}cc; ac_word=$2
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003792if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003793 $as_echo_n "(cached) " >&6
3794else
3795 if test -n "$CC"; then
3796 ac_cv_prog_CC="$CC" # Let the user override the test.
3797else
3798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799for as_dir in $PATH
3800do
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003805 ac_cv_prog_CC="${ac_tool_prefix}cc"
3806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 break 2
3808 fi
3809done
3810 done
3811IFS=$as_save_IFS
3812
3813fi
3814fi
3815CC=$ac_cv_prog_CC
3816if test -n "$CC"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3818$as_echo "$CC" >&6; }
3819else
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821$as_echo "no" >&6; }
3822fi
3823
3824
3825 fi
3826fi
3827if test -z "$CC"; then
3828 # Extract the first word of "cc", so it can be a program name with args.
3829set dummy cc; ac_word=$2
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003832if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003833 $as_echo_n "(cached) " >&6
3834else
3835 if test -n "$CC"; then
3836 ac_cv_prog_CC="$CC" # Let the user override the test.
3837else
3838 ac_prog_rejected=no
3839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840for as_dir in $PATH
3841do
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003846 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3847 ac_prog_rejected=yes
3848 continue
3849 fi
3850 ac_cv_prog_CC="cc"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3853 fi
3854done
3855 done
3856IFS=$as_save_IFS
3857
3858if test $ac_prog_rejected = yes; then
3859 # We found a bogon in the path, so make sure we never use it.
3860 set dummy $ac_cv_prog_CC
3861 shift
3862 if test $# != 0; then
3863 # We chose a different compiler from the bogus one.
3864 # However, it has the same basename, so the bogon will be chosen
3865 # first if we set CC to just the basename; use the full file name.
3866 shift
3867 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3868 fi
3869fi
3870fi
3871fi
3872CC=$ac_cv_prog_CC
3873if test -n "$CC"; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3875$as_echo "$CC" >&6; }
3876else
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878$as_echo "no" >&6; }
3879fi
3880
3881
3882fi
3883if test -z "$CC"; then
3884 if test -n "$ac_tool_prefix"; then
3885 for ac_prog in cl.exe
3886 do
3887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3888set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003891if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003892 $as_echo_n "(cached) " >&6
3893else
3894 if test -n "$CC"; then
3895 ac_cv_prog_CC="$CC" # Let the user override the test.
3896else
3897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898for as_dir in $PATH
3899do
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003904 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 break 2
3907 fi
3908done
3909 done
3910IFS=$as_save_IFS
3911
3912fi
3913fi
3914CC=$ac_cv_prog_CC
3915if test -n "$CC"; then
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3917$as_echo "$CC" >&6; }
3918else
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920$as_echo "no" >&6; }
3921fi
3922
3923
3924 test -n "$CC" && break
3925 done
3926fi
3927if test -z "$CC"; then
3928 ac_ct_CC=$CC
3929 for ac_prog in cl.exe
3930do
3931 # Extract the first word of "$ac_prog", so it can be a program name with args.
3932set dummy $ac_prog; ac_word=$2
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003935if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003936 $as_echo_n "(cached) " >&6
3937else
3938 if test -n "$ac_ct_CC"; then
3939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3940else
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003948 ac_cv_prog_ac_ct_CC="$ac_prog"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952done
3953 done
3954IFS=$as_save_IFS
3955
3956fi
3957fi
3958ac_ct_CC=$ac_cv_prog_ac_ct_CC
3959if test -n "$ac_ct_CC"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3961$as_echo "$ac_ct_CC" >&6; }
3962else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964$as_echo "no" >&6; }
3965fi
3966
3967
3968 test -n "$ac_ct_CC" && break
3969done
3970
3971 if test "x$ac_ct_CC" = x; then
3972 CC=""
3973 else
3974 case $cross_compiling:$ac_tool_warned in
3975yes:)
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3978ac_tool_warned=yes ;;
3979esac
3980 CC=$ac_ct_CC
3981 fi
3982fi
3983
3984fi
3985
3986
3987test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003989as_fn_error $? "no acceptable C compiler found in \$PATH
3990See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003991
3992# Provide some information about the compiler.
3993$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3994set X $ac_compile
3995ac_compiler=$2
3996for ac_option in --version -v -V -qversion; do
3997 { { ac_try="$ac_compiler $ac_option >&5"
3998case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001esac
4002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003$as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4005 ac_status=$?
4006 if test -s conftest.err; then
4007 sed '10a\
4008... rest of stderr output deleted ...
4009 10q' conftest.err >conftest.er1
4010 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004011 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004012 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014 test $ac_status = 0; }
4015done
4016
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4018$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004019if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004020 $as_echo_n "(cached) " >&6
4021else
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023/* end confdefs.h. */
4024
4025int
4026main ()
4027{
4028#ifndef __GNUC__
4029 choke me
4030#endif
4031
4032 ;
4033 return 0;
4034}
4035_ACEOF
4036if ac_fn_c_try_compile "$LINENO"; then :
4037 ac_compiler_gnu=yes
4038else
4039 ac_compiler_gnu=no
4040fi
4041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042ac_cv_c_compiler_gnu=$ac_compiler_gnu
4043
4044fi
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4046$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4047if test $ac_compiler_gnu = yes; then
4048 GCC=yes
4049else
4050 GCC=
4051fi
4052ac_test_CFLAGS=${CFLAGS+set}
4053ac_save_CFLAGS=$CFLAGS
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4055$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004056if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004057 $as_echo_n "(cached) " >&6
4058else
4059 ac_save_c_werror_flag=$ac_c_werror_flag
4060 ac_c_werror_flag=yes
4061 ac_cv_prog_cc_g=no
4062 CFLAGS="-g"
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064/* end confdefs.h. */
4065
4066int
4067main ()
4068{
4069
4070 ;
4071 return 0;
4072}
4073_ACEOF
4074if ac_fn_c_try_compile "$LINENO"; then :
4075 ac_cv_prog_cc_g=yes
4076else
4077 CFLAGS=""
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079/* end confdefs.h. */
4080
4081int
4082main ()
4083{
4084
4085 ;
4086 return 0;
4087}
4088_ACEOF
4089if ac_fn_c_try_compile "$LINENO"; then :
4090
4091else
4092 ac_c_werror_flag=$ac_save_c_werror_flag
4093 CFLAGS="-g"
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095/* end confdefs.h. */
4096
4097int
4098main ()
4099{
4100
4101 ;
4102 return 0;
4103}
4104_ACEOF
4105if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_cv_prog_cc_g=yes
4107fi
4108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109fi
4110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111fi
4112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 ac_c_werror_flag=$ac_save_c_werror_flag
4114fi
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4116$as_echo "$ac_cv_prog_cc_g" >&6; }
4117if test "$ac_test_CFLAGS" = set; then
4118 CFLAGS=$ac_save_CFLAGS
4119elif test $ac_cv_prog_cc_g = yes; then
4120 if test "$GCC" = yes; then
4121 CFLAGS="-g -O2"
4122 else
4123 CFLAGS="-g"
4124 fi
4125else
4126 if test "$GCC" = yes; then
4127 CFLAGS="-O2"
4128 else
4129 CFLAGS=
4130 fi
4131fi
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4133$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004134if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004135 $as_echo_n "(cached) " >&6
4136else
4137 ac_cv_prog_cc_c89=no
4138ac_save_CC=$CC
4139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140/* end confdefs.h. */
4141#include <stdarg.h>
4142#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004143struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004144/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4145struct buf { int x; };
4146FILE * (*rcsopen) (struct buf *, struct stat *, int);
4147static char *e (p, i)
4148 char **p;
4149 int i;
4150{
4151 return p[i];
4152}
4153static char *f (char * (*g) (char **, int), char **p, ...)
4154{
4155 char *s;
4156 va_list v;
4157 va_start (v,p);
4158 s = g (p, va_arg (v,int));
4159 va_end (v);
4160 return s;
4161}
4162
4163/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4164 function prototypes and stuff, but not '\xHH' hex character constants.
4165 These don't provoke an error unfortunately, instead are silently treated
4166 as 'x'. The following induces an error, until -std is added to get
4167 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4168 array size at least. It's necessary to write '\x00'==0 to get something
4169 that's true only with -std. */
4170int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4171
4172/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4173 inside strings and character constants. */
4174#define FOO(x) 'x'
4175int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4176
4177int test (int i, double x);
4178struct s1 {int (*f) (int a);};
4179struct s2 {int (*f) (double a);};
4180int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4181int argc;
4182char **argv;
4183int
4184main ()
4185{
4186return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4187 ;
4188 return 0;
4189}
4190_ACEOF
4191for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4192 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4193do
4194 CC="$ac_save_CC $ac_arg"
4195 if ac_fn_c_try_compile "$LINENO"; then :
4196 ac_cv_prog_cc_c89=$ac_arg
4197fi
4198rm -f core conftest.err conftest.$ac_objext
4199 test "x$ac_cv_prog_cc_c89" != "xno" && break
4200done
4201rm -f conftest.$ac_ext
4202CC=$ac_save_CC
4203
4204fi
4205# AC_CACHE_VAL
4206case "x$ac_cv_prog_cc_c89" in
4207 x)
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4209$as_echo "none needed" >&6; } ;;
4210 xno)
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4212$as_echo "unsupported" >&6; } ;;
4213 *)
4214 CC="$CC $ac_cv_prog_cc_c89"
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4216$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4217esac
4218if test "x$ac_cv_prog_cc_c89" != xno; then :
4219
4220fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004221
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004222ac_ext=c
4223ac_cpp='$CPP $CPPFLAGS'
4224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004228if test "$GCC" = yes; then
4229 RDYNAMIC="-rdynamic"
4230
4231fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004232ac_ext=c
4233ac_cpp='$CPP $CPPFLAGS'
4234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004238$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004239# On Suns, sometimes $CPP names a directory.
4240if test -n "$CPP" && test -d "$CPP"; then
4241 CPP=
4242fi
4243if test -z "$CPP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004244 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004245 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004246else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004247 # Double quotes because CPP needs to be expanded
4248 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4249 do
4250 ac_preproc_ok=false
4251for ac_c_preproc_warn_flag in '' yes
4252do
4253 # Use a header file that comes with gcc, so configuring glibc
4254 # with a fresh cross-compiler works.
4255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4256 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004257 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004258 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004260/* end confdefs.h. */
4261#ifdef __STDC__
4262# include <limits.h>
4263#else
4264# include <assert.h>
4265#endif
4266 Syntax error
4267_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004268if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004269
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004270else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004271 # Broken: fails on valid input.
4272continue
4273fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004274rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004275
Theodore Ts'oe1052142006-10-21 21:46:47 -04004276 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004277 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004279/* end confdefs.h. */
4280#include <ac_nonexistent.h>
4281_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004282if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004283 # Broken: success on invalid input.
4284continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004285else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004286 # Passes both tests.
4287ac_preproc_ok=:
4288break
4289fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004290rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004291
4292done
4293# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004294rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004295if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004296 break
4297fi
4298
4299 done
4300 ac_cv_prog_CPP=$CPP
4301
4302fi
4303 CPP=$ac_cv_prog_CPP
4304else
4305 ac_cv_prog_CPP=$CPP
4306fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004308$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004309ac_preproc_ok=false
4310for ac_c_preproc_warn_flag in '' yes
4311do
4312 # Use a header file that comes with gcc, so configuring glibc
4313 # with a fresh cross-compiler works.
4314 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4315 # <limits.h> exists even on freestanding compilers.
4316 # On the NeXT, cc -E runs the code through the compiler's parser,
4317 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004319/* end confdefs.h. */
4320#ifdef __STDC__
4321# include <limits.h>
4322#else
4323# include <assert.h>
4324#endif
4325 Syntax error
4326_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004327if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004328
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004329else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004330 # Broken: fails on valid input.
4331continue
4332fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004333rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004334
Theodore Ts'oe1052142006-10-21 21:46:47 -04004335 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004336 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004338/* end confdefs.h. */
4339#include <ac_nonexistent.h>
4340_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004341if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004342 # Broken: success on invalid input.
4343continue
4344else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004345 # Passes both tests.
4346ac_preproc_ok=:
4347break
4348fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004349rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004350
4351done
4352# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004353rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004354if $ac_preproc_ok; then :
4355
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004356else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004359as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4360See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004361fi
4362
4363ac_ext=c
4364ac_cpp='$CPP $CPPFLAGS'
4365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004370$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004371if test "$GCC" = yes
4372then
4373 case "$host_cpu" in
4374 alpha) addcflags="-mieee" ;;
4375 esac
4376fi
4377if test "x$addcflags" != x
4378then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004380$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004381 CFLAGS="$addcflags $CFLAGS"
4382else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004384$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004385fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004386LIB_EXT=.a
4387STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004388PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004389
Theodore Ts'oe1052142006-10-21 21:46:47 -04004390# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004391if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004392 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004393else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004394 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004395fi
4396# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004397if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004398 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004399then
4400 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004402$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004403else
4404 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004406$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004407fi
4408
4409else
4410 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004412$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004413
Theodore Ts'oe1052142006-10-21 21:46:47 -04004414fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004415
Theodore Ts'oe1052142006-10-21 21:46:47 -04004416
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004417# Check whether --enable-symlink-install was given.
4418if test "${enable_symlink_install+set}" = set; then :
4419 enableval=$enable_symlink_install; if test "$enableval" = "no"
4420then
4421 LINK_INSTALL_FLAGS=-f
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4423$as_echo "Disabling symlinks for install" >&6; }
4424else
4425 LINK_INSTALL_FLAGS=-sf
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4427$as_echo "Enabling symlinks for install" >&6; }
4428fi
4429
4430else
4431 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4433$as_echo "Disabling symlinks for install by default" >&6; }
4434
4435fi
4436
4437
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004438relative_symlink_defined=
4439# Check whether --enable-relative-symlinks was given.
4440if test "${enable_relative_symlinks+set}" = set; then :
4441 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004442then
4443 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004444 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4446$as_echo "Disabling relative symlinks for install" >&6; }
4447else
4448 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004449 relative_symlink_defined=yes
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4451$as_echo "Enabling relative symlinks for install" >&6; }
4452fi
4453fi
4454
4455# Check whether --enable-symlink-relative-symlinks was given.
4456if test "${enable_symlink_relative_symlinks+set}" = set; then :
4457 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4458then
4459 SYMLINK_RELATIVE=yes
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4461$as_echo "Disabling relative symlinks for install" >&6; }
4462else
4463 SYMLINK_RELATIVE=--relative
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4465$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004466fi
4467
4468else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004469 if test -z "$relative_symlink_defined"
4470then
4471 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4473$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004474fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004475
4476fi
4477
4478
4479# Check whether --enable-symlink-build was given.
4480if test "${enable_symlink_build+set}" = set; then :
4481 enableval=$enable_symlink_build; if test "$enableval" = "no"
4482then
4483 LINK_BUILD_FLAGS=
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4485$as_echo "Disabling symlinks for build" >&6; }
4486else
4487 LINK_BUILD_FLAGS=-s
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4489$as_echo "Enabling symlinks for build" >&6; }
4490fi
4491
4492else
4493 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4495$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004496
4497fi
4498
4499
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004500# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004501if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004502 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4503then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004505$as_echo "Disabling verbose make commands" >&6; }
4506 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004507 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004508 Q=@
4509else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004511$as_echo "Enabling verbose make commands" >&6; }
4512 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004513 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004514 Q=
4515fi
4516
4517else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004519$as_echo "Disabling verbose make commands" >&6; }
4520E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004521ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004522Q=@
4523
4524fi
4525
4526
4527
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004528
Theodore Ts'oe1052142006-10-21 21:46:47 -04004529# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004530if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004531 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004532then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004534$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004535else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004536
4537$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004538
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004540$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004542$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004543fi
4544
4545else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004547$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004548
Theodore Ts'oe1052142006-10-21 21:46:47 -04004549fi
4550
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004551
Theodore Ts'oe1052142006-10-21 21:46:47 -04004552# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004553if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004554 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004555then
4556 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004558$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004559else
4560 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004561 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004562
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004564$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004565fi
4566
4567else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004568 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004569$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004570
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004572$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004573
Theodore Ts'oe1052142006-10-21 21:46:47 -04004574fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004575
Theodore Ts'oe1052142006-10-21 21:46:47 -04004576
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004577E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004578LDFLAG_DYNAMIC=
4579PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004580# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004581if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004582 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004583then
4584 ELF_CMT=#
4585 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004587$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004588else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004589 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004590 ELF_CMT=
4591 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004592 case "$host_os" in
4593 solaris2.*)
4594 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4595 ;;
4596 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004597 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004598 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004599 PRIVATE_LIBS_CMT=#
4600 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004602$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004603fi
4604
4605else
4606 MAKEFILE_ELF=/dev/null
4607ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004609$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004610
Theodore Ts'oe1052142006-10-21 21:46:47 -04004611fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004612
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004613
Theodore Ts'oe1052142006-10-21 21:46:47 -04004614
4615# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004616if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004617 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004618then
4619 BSDLIB_CMT=#
4620 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004622$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004623else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004624 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004625 BSDLIB_CMT=
4626 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004627 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004628 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004629 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004630 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4631 LIB_EXT=.dylib
4632 ;;
4633 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004635$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004636fi
4637
4638else
4639 MAKEFILE_BSDLIB=/dev/null
4640BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004642$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004643
Theodore Ts'oe1052142006-10-21 21:46:47 -04004644fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004645
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004646
Theodore Ts'oe1052142006-10-21 21:46:47 -04004647
4648# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004649if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004650 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004651then
4652 PROFILE_CMT=#
4653 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004655$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004656else
4657 PROFILE_CMT=
4658 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4659 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004661$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004662fi
4663
4664else
4665 PROFILE_CMT=#
4666MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004668$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004669
Theodore Ts'oe1052142006-10-21 21:46:47 -04004670fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004671
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004672
Theodore Ts'oe1052142006-10-21 21:46:47 -04004673
4674# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004675if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004676 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004677then
4678 CHECKER_CMT=#
4679 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004681$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004682else
4683 CHECKER_CMT=
4684 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004686$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004687fi
4688
4689else
4690 CHECKER_CMT=#
4691MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004693$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004694
Theodore Ts'oe1052142006-10-21 21:46:47 -04004695fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004696
4697
4698
4699
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004700
Theodore Ts'oe1052142006-10-21 21:46:47 -04004701
Theodore Ts'o55da9872008-09-02 23:12:38 -04004702
4703
Theodore Ts'oe1052142006-10-21 21:46:47 -04004704# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004705if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004706 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004707then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004709$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004710else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004711
4712$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004713
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004715$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004716fi
4717
4718else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004720$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004721
Theodore Ts'oe1052142006-10-21 21:46:47 -04004722fi
4723
4724# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004725if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004726 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004727then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004729$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004730else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004731
4732$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004733
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004735$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004736fi
4737
4738else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004740$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004741
Theodore Ts'oe1052142006-10-21 21:46:47 -04004742fi
4743
4744# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004745if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004746 enableval=$enable_testio_debug;
4747if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004748then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004750$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004751 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004752else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004753 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004754 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004755
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004757$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004758fi
4759
4760else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004762$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004763$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004764
4765TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004766
Theodore Ts'oe1052142006-10-21 21:46:47 -04004767fi
4768
Theodore Ts'oaf773652008-09-01 11:27:27 -04004769
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004770
4771
4772if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4773 if test -n "$ac_tool_prefix"; then
4774 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4775set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004777$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004778if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004779 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004780else
4781 case $PKG_CONFIG in
4782 [\\/]* | ?:[\\/]*)
4783 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4784 ;;
4785 *)
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787for as_dir in $PATH
4788do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004791 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004793 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004795 break 2
4796 fi
4797done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004798 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004799IFS=$as_save_IFS
4800
4801 ;;
4802esac
4803fi
4804PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4805if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004807$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004808else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004810$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004811fi
4812
4813
4814fi
4815if test -z "$ac_cv_path_PKG_CONFIG"; then
4816 ac_pt_PKG_CONFIG=$PKG_CONFIG
4817 # Extract the first word of "pkg-config", so it can be a program name with args.
4818set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004820$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004821if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004822 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004823else
4824 case $ac_pt_PKG_CONFIG in
4825 [\\/]* | ?:[\\/]*)
4826 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4827 ;;
4828 *)
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004834 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004836 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004838 break 2
4839 fi
4840done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004841 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004842IFS=$as_save_IFS
4843
4844 ;;
4845esac
4846fi
4847ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4848if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004850$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004851else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004853$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004854fi
4855
4856 if test "x$ac_pt_PKG_CONFIG" = x; then
4857 PKG_CONFIG=""
4858 else
4859 case $cross_compiling:$ac_tool_warned in
4860yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004861{ $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 +01004862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004863ac_tool_warned=yes ;;
4864esac
4865 PKG_CONFIG=$ac_pt_PKG_CONFIG
4866 fi
4867else
4868 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4869fi
4870
4871fi
4872if test -n "$PKG_CONFIG"; then
4873 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004874 { $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 +01004875$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004876 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004878$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004879 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004881$as_echo "no" >&6; }
4882 PKG_CONFIG=""
4883 fi
4884
4885fi
4886LIBUUID=
4887DEPLIBUUID=
4888STATIC_LIBUUID=
4889DEPSTATIC_LIBUUID=
4890PROFILED_LIBUUID=
4891DEPPROFILED_LIBUUID=
4892UUID_CMT=
4893# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004894if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004895 enableval=$enable_libuuid; if test "$enableval" = "no"
4896then
4897 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004898 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004899 fi
4900
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004902$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004903if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004904 $as_echo_n "(cached) " >&6
4905else
4906 ac_check_lib_save_LIBS=$LIBS
4907LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004909/* end confdefs.h. */
4910
4911/* Override any GCC internal prototype to avoid an error.
4912 Use char because int might match the return type of a GCC
4913 builtin and then its argument prototype would still apply. */
4914#ifdef __cplusplus
4915extern "C"
4916#endif
4917char uuid_generate ();
4918int
4919main ()
4920{
4921return uuid_generate ();
4922 ;
4923 return 0;
4924}
4925_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004926if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004927 ac_cv_lib_uuid_uuid_generate=yes
4928else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004929 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004930fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004931rm -f core conftest.err conftest.$ac_objext \
4932 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004933LIBS=$ac_check_lib_save_LIBS
4934fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004936$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004937if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004938 LIBUUID=`$PKG_CONFIG --libs uuid`;
4939 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4940else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004941 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004942fi
4943
4944 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004946$as_echo "Disabling private uuid library" >&6; }
4947else
4948 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4949 DEPLIBUUID=$LIBUUID
4950 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4951 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4952 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4953 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004955$as_echo "Enabling private uuid library" >&6; }
4956fi
4957
4958else
4959 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4960DEPLIBUUID=$LIBUUID
4961STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4962DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4963PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4964DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004966$as_echo "Enabling private uuid library by default" >&6; }
4967
4968fi
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4980 if test -n "$ac_tool_prefix"; then
4981 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4982set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004984$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004985if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004986 $as_echo_n "(cached) " >&6
4987else
4988 case $PKG_CONFIG in
4989 [\\/]* | ?:[\\/]*)
4990 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4991 ;;
4992 *)
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004998 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005000 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005002 break 2
5003 fi
5004done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005005 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005006IFS=$as_save_IFS
5007
5008 ;;
5009esac
5010fi
5011PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5012if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005014$as_echo "$PKG_CONFIG" >&6; }
5015else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005017$as_echo "no" >&6; }
5018fi
5019
5020
5021fi
5022if test -z "$ac_cv_path_PKG_CONFIG"; then
5023 ac_pt_PKG_CONFIG=$PKG_CONFIG
5024 # Extract the first word of "pkg-config", so it can be a program name with args.
5025set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005027$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005028if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005029 $as_echo_n "(cached) " >&6
5030else
5031 case $ac_pt_PKG_CONFIG in
5032 [\\/]* | ?:[\\/]*)
5033 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5034 ;;
5035 *)
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037for as_dir in $PATH
5038do
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005041 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005043 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005045 break 2
5046 fi
5047done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005048 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005049IFS=$as_save_IFS
5050
5051 ;;
5052esac
5053fi
5054ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5055if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005057$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5058else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005060$as_echo "no" >&6; }
5061fi
5062
5063 if test "x$ac_pt_PKG_CONFIG" = x; then
5064 PKG_CONFIG=""
5065 else
5066 case $cross_compiling:$ac_tool_warned in
5067yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005068{ $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 +01005069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5070ac_tool_warned=yes ;;
5071esac
5072 PKG_CONFIG=$ac_pt_PKG_CONFIG
5073 fi
5074else
5075 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5076fi
5077
5078fi
5079if test -n "$PKG_CONFIG"; then
5080 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005081 { $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 +01005082$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5083 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005085$as_echo "yes" >&6; }
5086 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005088$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005089 PKG_CONFIG=""
5090 fi
5091
5092fi
5093LIBBLKID=
5094DEPLIBBLKID=
5095STATIC_LIBBLKID=
5096DEPSTATIC_LIBBLKID=
5097PROFILED_LIBBLKID=
5098DEPPROFILED_LIBBLKID=
5099BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005100
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005101# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005102if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005103 enableval=$enable_libblkid; if test "$enableval" = "no"
5104then
5105 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005106 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005107 fi
5108
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005110$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005111if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005112 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005113else
5114 ac_check_lib_save_LIBS=$LIBS
5115LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005117/* end confdefs.h. */
5118
5119/* Override any GCC internal prototype to avoid an error.
5120 Use char because int might match the return type of a GCC
5121 builtin and then its argument prototype would still apply. */
5122#ifdef __cplusplus
5123extern "C"
5124#endif
5125char blkid_get_cache ();
5126int
5127main ()
5128{
5129return blkid_get_cache ();
5130 ;
5131 return 0;
5132}
5133_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005134if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005135 ac_cv_lib_blkid_blkid_get_cache=yes
5136else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005137 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005138fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005139rm -f core conftest.err conftest.$ac_objext \
5140 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005141LIBS=$ac_check_lib_save_LIBS
5142fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005144$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005145if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005146 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5147 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5148else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005149 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005150fi
5151
5152 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005154$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005155else
5156 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5157 DEPLIBBLKID=$LIBBLKID
5158 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5159 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5160 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5161 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005162 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005163
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005165$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005166fi
5167
5168else
5169 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5170DEPLIBBLKID=$LIBBLKID
5171STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5172DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5173PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5174DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005175$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005176
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005178$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005179
5180fi
5181
5182
5183
5184
5185
5186
5187
5188
Eric Sandeenf5589f42013-10-14 08:54:15 -04005189QUOTA_MAN_COMMENT='.\"'
5190
Aditya Kalif239fef2011-07-20 11:40:02 -07005191
5192
5193if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5194 if test -n "$ac_tool_prefix"; then
5195 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5196set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005199if ${ac_cv_path_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005200 $as_echo_n "(cached) " >&6
5201else
5202 case $PKG_CONFIG in
5203 [\\/]* | ?:[\\/]*)
5204 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5205 ;;
5206 *)
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208for as_dir in $PATH
5209do
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005214 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
5217 fi
5218done
5219 done
5220IFS=$as_save_IFS
5221
5222 ;;
5223esac
5224fi
5225PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5226if test -n "$PKG_CONFIG"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5228$as_echo "$PKG_CONFIG" >&6; }
5229else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231$as_echo "no" >&6; }
5232fi
5233
5234
5235fi
5236if test -z "$ac_cv_path_PKG_CONFIG"; then
5237 ac_pt_PKG_CONFIG=$PKG_CONFIG
5238 # Extract the first word of "pkg-config", so it can be a program name with args.
5239set dummy pkg-config; ac_word=$2
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005242if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005243 $as_echo_n "(cached) " >&6
5244else
5245 case $ac_pt_PKG_CONFIG in
5246 [\\/]* | ?:[\\/]*)
5247 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5248 ;;
5249 *)
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH
5252do
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005257 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5260 fi
5261done
5262 done
5263IFS=$as_save_IFS
5264
5265 ;;
5266esac
5267fi
5268ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5269if test -n "$ac_pt_PKG_CONFIG"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5271$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5272else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274$as_echo "no" >&6; }
5275fi
5276
5277 if test "x$ac_pt_PKG_CONFIG" = x; then
5278 PKG_CONFIG=""
5279 else
5280 case $cross_compiling:$ac_tool_warned in
5281yes:)
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5284ac_tool_warned=yes ;;
5285esac
5286 PKG_CONFIG=$ac_pt_PKG_CONFIG
5287 fi
5288else
5289 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5290fi
5291
5292fi
5293if test -n "$PKG_CONFIG"; then
5294 _pkg_min_version=0.9.0
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5296$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5297 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5299$as_echo "yes" >&6; }
5300 else
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302$as_echo "no" >&6; }
5303 PKG_CONFIG=""
5304 fi
5305
5306fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005307
5308# Check whether --enable-quota was given.
5309if test "${enable_quota+set}" = set; then :
5310 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005311then
Theodore Ts'o7becb202011-11-14 10:40:43 -05005312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5313$as_echo "Disabling quota support" >&6; }
5314else
5315 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005316
Theodore Ts'o7becb202011-11-14 10:40:43 -05005317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5318$as_echo "Enabling quota support" >&6; }
Eric Sandeenf5589f42013-10-14 08:54:15 -04005319 QUOTA_MAN_COMMENT=""
5320
Aditya Kalif239fef2011-07-20 11:40:02 -07005321fi
5322
5323else
Theodore Ts'o7becb202011-11-14 10:40:43 -05005324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5325$as_echo "Disabling quota support by default" >&6; }
5326
5327fi
5328
5329LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005330DEPLIBQUOTA=$LIBQUOTA
5331STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5332DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5333PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5334DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005335
5336
5337
5338
5339
5340
5341
Theodore Ts'o3df60142013-06-16 16:14:40 -04005342
5343# Check whether --enable-backtrace was given.
5344if test "${enable_backtrace+set}" = set; then :
5345 enableval=$enable_backtrace; if test "$enableval" = "no"
5346then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5348$as_echo "Disabling use of backtrace" >&6; }
5349 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5350
5351else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5353$as_echo "Enabling use of backtrace" >&6; }
5354fi
5355
5356else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5358$as_echo "Enabling use of backtrace by default" >&6; }
5359
5360fi
5361
Theodore Ts'oe1052142006-10-21 21:46:47 -04005362# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005363if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005364 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005365then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005367$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005368 DEBUGFS_CMT="#"
5369else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005370 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005372$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005373fi
5374
5375else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005377$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005378DEBUGFS_CMT=
5379
Theodore Ts'oe1052142006-10-21 21:46:47 -04005380fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005381
Theodore Ts'oe1052142006-10-21 21:46:47 -04005382
5383# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005384if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005385 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005386then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005388$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005389 IMAGER_CMT="#"
5390else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005391 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005393$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005394fi
5395
5396else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005398$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005399IMAGER_CMT=
5400
Theodore Ts'oe1052142006-10-21 21:46:47 -04005401fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005402
Theodore Ts'oe1052142006-10-21 21:46:47 -04005403
5404# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005405if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005406 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005407then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005409$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005410 RESIZER_CMT="#"
5411else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005412 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005414$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005415fi
5416
5417else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005419$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005420RESIZER_CMT=
5421
Theodore Ts'oe1052142006-10-21 21:46:47 -04005422fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005423
Theodore Ts'oe1052142006-10-21 21:46:47 -04005424
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005425# Check whether --enable-defrag was given.
5426if test "${enable_defrag+set}" = set; then :
5427 enableval=$enable_defrag; if test "$enableval" = "no"
5428then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5430$as_echo "Disabling e4defrag support" >&6; }
5431 DEFRAG_CMT="#"
5432else
5433 DEFRAG_CMT=
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5435$as_echo "Enabling e4defrag support" >&6; }
5436fi
5437
5438else
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5440$as_echo "Enabling e4defrag support by default" >&6; }
5441DEFRAG_CMT=
5442
5443fi
5444
5445
Theodore Ts'oe1052142006-10-21 21:46:47 -04005446# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005447if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005448 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005449then
5450 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005452$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005453else
5454 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005456$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005457fi
5458
5459else
5460 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005461 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005462 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005464$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005465 ;;
5466 *)
5467 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005469$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005470esac
5471
Theodore Ts'oe1052142006-10-21 21:46:47 -04005472fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005473
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005474
Theodore Ts'oe1052142006-10-21 21:46:47 -04005475
5476# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005477if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005478 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005479then
5480 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005482$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005483else
5484 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005486$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005487fi
5488
5489else
5490 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005492$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005493
Theodore Ts'oe1052142006-10-21 21:46:47 -04005494fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005495
5496
Theodore Ts'oe1052142006-10-21 21:46:47 -04005497
Theodore Ts'o32493942007-12-31 10:45:01 -05005498# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005499if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005500 enableval=$enable_tls; if test "$enableval" = "no"
5501then
5502 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005504$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005505else
5506 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005508$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005509fi
5510
5511else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005512 if test -n "$WITH_DIET_LIBC"
5513then
5514 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005515 { $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 +01005516$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005517else
5518 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005520$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005521fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005522
5523fi
5524
5525if test "$try_tls" = "yes"
5526then
5527
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005529$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005530 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005531 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005532else
5533
5534 ax_tls_keywords="__thread __declspec(thread) none"
5535 for ax_tls_keyword in $ax_tls_keywords; do
5536 case $ax_tls_keyword in
5537 none) ac_cv_tls=none ; break ;;
5538 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005540/* end confdefs.h. */
5541#include <stdlib.h>
5542 static void
5543 foo(void) {
5544 static $ax_tls_keyword int bar;
5545 exit(1);
5546 }
5547int
5548main ()
5549{
5550
5551 ;
5552 return 0;
5553}
5554_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005555if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005556 ac_cv_tls=$ax_tls_keyword ; break
5557else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005558 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005559
5560fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 esac
5563 done
5564
5565fi
5566
5567
5568 if test "$ac_cv_tls" != "none"; then
5569
5570cat >>confdefs.h <<_ACEOF
5571#define TLS $ac_cv_tls
5572_ACEOF
5573
5574 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005576$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005577
5578fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005579
Theodore Ts'o5610f992007-12-31 11:16:56 -05005580# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005581if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005582 enableval=$enable_uuidd; if test "$enableval" = "no"
5583then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005585$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005586 UUIDD_CMT="#"
5587else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005588 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005589
5590 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005592$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005593fi
5594
5595else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005596 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005597
5598UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005600$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005601
5602fi
5603
5604
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005605MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5606
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005607GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005608PACKAGE=e2fsprogs
5609VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005610VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005611
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005612cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005613#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005614_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005615
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005616
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005617cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005618#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005619_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005620
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005621
5622
5623
5624
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005626$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5627set x ${MAKE-make}
5628ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005629if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005630 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005631else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005632 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005633SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005634all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005635 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005636_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005637# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005638case `${MAKE-make} -f conftest.make 2>/dev/null` in
5639 *@@@%%%=?*=@@@%%%*)
5640 eval ac_cv_prog_make_${ac_make}_set=yes;;
5641 *)
5642 eval ac_cv_prog_make_${ac_make}_set=no;;
5643esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005644rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005645fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005646if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005648$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005649 SET_MAKE=
5650else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005652$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005653 SET_MAKE="MAKE=${MAKE-make}"
5654fi
5655
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005656# Find a good install program. We prefer a C program (faster),
5657# so one script is as good as another. But avoid the broken or
5658# incompatible versions:
5659# SysV /etc/install, /usr/sbin/install
5660# SunOS /usr/etc/install
5661# IRIX /sbin/install
5662# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005663# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005664# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5665# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5666# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005667# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005668# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005669# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005671$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005672if test -z "$INSTALL"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005673if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005674 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005675else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677for as_dir in $PATH
5678do
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005681 # Account for people who put trailing slashes in PATH elements.
5682case $as_dir/ in #((
5683 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005684 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005685 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005686 /usr/ucb/* ) ;;
5687 *)
5688 # OSF1 and SCO ODT 3.0 have their own names for install.
5689 # Don't use installbsd from OSF since it installs stuff as root
5690 # by default.
5691 for ac_prog in ginstall scoinst install; do
5692 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005693 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005694 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005695 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005696 # AIX install. It has an incompatible calling convention.
5697 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005698 elif test $ac_prog = install &&
5699 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5700 # program-specific install script used by HP pwplus--don't use.
5701 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005702 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005703 rm -rf conftest.one conftest.two conftest.dir
5704 echo one > conftest.one
5705 echo two > conftest.two
5706 mkdir conftest.dir
5707 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5708 test -s conftest.one && test -s conftest.two &&
5709 test -s conftest.dir/conftest.one &&
5710 test -s conftest.dir/conftest.two
5711 then
5712 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5713 break 3
5714 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005715 fi
5716 fi
5717 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005718 done
5719 ;;
5720esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005721
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005722 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005723IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005724
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005725rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005726
5727fi
5728 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005729 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005730 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005731 # As a last resort, use the slow shell script. Don't cache a
5732 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005733 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005734 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005735 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005736 fi
5737fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005739$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005740
5741# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5742# It thinks the first close brace ends the variable substitution.
5743test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5744
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005745test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005746
5747test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5748
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005749
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005750 MKINSTALLDIRS=
5751 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005752 case "$ac_aux_dir" in
5753 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5754 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5755 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005756 fi
5757 if test -z "$MKINSTALLDIRS"; then
5758 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5759 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005760
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005761
5762
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005764$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005765 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005766if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005767 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005768else
5769 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005770fi
5771
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005773$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005774
5775
5776
5777
5778
5779
5780# Prepare PATH_SEPARATOR.
5781# The user is always right.
5782if test "${PATH_SEPARATOR+set}" != set; then
5783 echo "#! /bin/sh" >conf$$.sh
5784 echo "exit 0" >>conf$$.sh
5785 chmod +x conf$$.sh
5786 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5787 PATH_SEPARATOR=';'
5788 else
5789 PATH_SEPARATOR=:
5790 fi
5791 rm -f conf$$.sh
5792fi
5793
5794# Find out how to test for executable files. Don't use a zero-byte file,
5795# as systems may use methods other than mode bits to determine executability.
5796cat >conf$$.file <<_ASEOF
5797#! /bin/sh
5798exit 0
5799_ASEOF
5800chmod +x conf$$.file
5801if test -x conf$$.file >/dev/null 2>&1; then
5802 ac_executable_p="test -x"
5803else
5804 ac_executable_p="test -f"
5805fi
5806rm -f conf$$.file
5807
5808# Extract the first word of "msgfmt", so it can be a program name with args.
5809set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005811$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005812if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005813 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005814else
5815 case "$MSGFMT" in
5816 [\\/]* | ?:[\\/]*)
5817 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5818 ;;
5819 *)
5820 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5821 for ac_dir in $PATH; do
5822 IFS="$ac_save_IFS"
5823 test -z "$ac_dir" && ac_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5826 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5827 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5828 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5829 break 2
5830 fi
5831 fi
5832 done
5833 done
5834 IFS="$ac_save_IFS"
5835 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5836 ;;
5837esac
5838fi
5839MSGFMT="$ac_cv_path_MSGFMT"
5840if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005842$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005843else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005845$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005846fi
5847
5848 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5849set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005851$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005852if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005853 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005854else
5855 case $GMSGFMT in
5856 [\\/]* | ?:[\\/]*)
5857 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5858 ;;
5859 *)
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861for as_dir in $PATH
5862do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005865 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005867 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005869 break 2
5870 fi
5871done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005872 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005873IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005874
5875 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5876 ;;
5877esac
5878fi
5879GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005880if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005882$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005883else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005885$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005886fi
5887
5888
5889
Theodore Ts'oe1052142006-10-21 21:46:47 -04005890
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005891# Prepare PATH_SEPARATOR.
5892# The user is always right.
5893if test "${PATH_SEPARATOR+set}" != set; then
5894 echo "#! /bin/sh" >conf$$.sh
5895 echo "exit 0" >>conf$$.sh
5896 chmod +x conf$$.sh
5897 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5898 PATH_SEPARATOR=';'
5899 else
5900 PATH_SEPARATOR=:
5901 fi
5902 rm -f conf$$.sh
5903fi
5904
5905# Find out how to test for executable files. Don't use a zero-byte file,
5906# as systems may use methods other than mode bits to determine executability.
5907cat >conf$$.file <<_ASEOF
5908#! /bin/sh
5909exit 0
5910_ASEOF
5911chmod +x conf$$.file
5912if test -x conf$$.file >/dev/null 2>&1; then
5913 ac_executable_p="test -x"
5914else
5915 ac_executable_p="test -f"
5916fi
5917rm -f conf$$.file
5918
5919# Extract the first word of "xgettext", so it can be a program name with args.
5920set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005922$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005923if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005924 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005925else
5926 case "$XGETTEXT" in
5927 [\\/]* | ?:[\\/]*)
5928 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5929 ;;
5930 *)
5931 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5932 for ac_dir in $PATH; do
5933 IFS="$ac_save_IFS"
5934 test -z "$ac_dir" && ac_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5937 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5938 (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
5939 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5940 break 2
5941 fi
5942 fi
5943 done
5944 done
5945 IFS="$ac_save_IFS"
5946 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5947 ;;
5948esac
5949fi
5950XGETTEXT="$ac_cv_path_XGETTEXT"
5951if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005953$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005954else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005956$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005957fi
5958
5959 rm -f messages.po
5960
5961
5962# Prepare PATH_SEPARATOR.
5963# The user is always right.
5964if test "${PATH_SEPARATOR+set}" != set; then
5965 echo "#! /bin/sh" >conf$$.sh
5966 echo "exit 0" >>conf$$.sh
5967 chmod +x conf$$.sh
5968 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5969 PATH_SEPARATOR=';'
5970 else
5971 PATH_SEPARATOR=:
5972 fi
5973 rm -f conf$$.sh
5974fi
5975
5976# Find out how to test for executable files. Don't use a zero-byte file,
5977# as systems may use methods other than mode bits to determine executability.
5978cat >conf$$.file <<_ASEOF
5979#! /bin/sh
5980exit 0
5981_ASEOF
5982chmod +x conf$$.file
5983if test -x conf$$.file >/dev/null 2>&1; then
5984 ac_executable_p="test -x"
5985else
5986 ac_executable_p="test -f"
5987fi
5988rm -f conf$$.file
5989
5990# Extract the first word of "msgmerge", so it can be a program name with args.
5991set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005993$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005994if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005995 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005996else
5997 case "$MSGMERGE" in
5998 [\\/]* | ?:[\\/]*)
5999 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6000 ;;
6001 *)
6002 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6003 for ac_dir in $PATH; do
6004 IFS="$ac_save_IFS"
6005 test -z "$ac_dir" && ac_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6008 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6009 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6010 break 2
6011 fi
6012 fi
6013 done
6014 done
6015 IFS="$ac_save_IFS"
6016 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6017 ;;
6018esac
6019fi
6020MSGMERGE="$ac_cv_path_MSGMERGE"
6021if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006023$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006024else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006026$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006027fi
6028
6029
6030 if test "$GMSGFMT" != ":"; then
6031 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6032 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6033 : ;
6034 else
6035 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006036 { $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 +01006037$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006038 GMSGFMT=":"
6039 fi
6040 fi
6041
6042 if test "$XGETTEXT" != ":"; then
6043 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6044 (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
6045 : ;
6046 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006047 { $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 +01006048$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006049 XGETTEXT=":"
6050 fi
6051 rm -f messages.po
6052 fi
6053
Theodore Ts'oe1052142006-10-21 21:46:47 -04006054 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006055
6056
6057if test -n "$ac_tool_prefix"; then
6058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6059set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006061$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006062if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006063 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006064else
6065 if test -n "$RANLIB"; then
6066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6067else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069for as_dir in $PATH
6070do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006073 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006077 break 2
6078 fi
6079done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006080 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006081IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006082
6083fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006084fi
6085RANLIB=$ac_cv_prog_RANLIB
6086if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006088$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006089else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006091$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006092fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006093
Theodore Ts'oe1052142006-10-21 21:46:47 -04006094
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006095fi
6096if test -z "$ac_cv_prog_RANLIB"; then
6097 ac_ct_RANLIB=$RANLIB
6098 # Extract the first word of "ranlib", so it can be a program name with args.
6099set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006101$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006102if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006103 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006104else
6105 if test -n "$ac_ct_RANLIB"; then
6106 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6107else
6108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109for as_dir in $PATH
6110do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006113 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006115 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006117 break 2
6118 fi
6119done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006120 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006121IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006122
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006123fi
6124fi
6125ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6126if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006128$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006129else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006131$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006132fi
6133
Theodore Ts'oe1052142006-10-21 21:46:47 -04006134 if test "x$ac_ct_RANLIB" = x; then
6135 RANLIB=":"
6136 else
6137 case $cross_compiling:$ac_tool_warned in
6138yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006139{ $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 +01006140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006141ac_tool_warned=yes ;;
6142esac
6143 RANLIB=$ac_ct_RANLIB
6144 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006145else
6146 RANLIB="$ac_cv_prog_RANLIB"
6147fi
6148
6149
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006151$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006152if ${ac_cv_lib_cposix_strerror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006153 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006154else
6155 ac_check_lib_save_LIBS=$LIBS
6156LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006158/* end confdefs.h. */
6159
Theodore Ts'oe1052142006-10-21 21:46:47 -04006160/* Override any GCC internal prototype to avoid an error.
6161 Use char because int might match the return type of a GCC
6162 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006163#ifdef __cplusplus
6164extern "C"
6165#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006166char strerror ();
6167int
6168main ()
6169{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006170return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006171 ;
6172 return 0;
6173}
6174_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006175if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006176 ac_cv_lib_cposix_strerror=yes
6177else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006178 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006179fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006180rm -f core conftest.err conftest.$ac_objext \
6181 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006182LIBS=$ac_check_lib_save_LIBS
6183fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006185$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006186if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006187 LIBS="$LIBS -lcposix"
6188fi
6189
6190
6191
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006192
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6194$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006195if ${ac_cv_path_GREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006196 $as_echo_n "(cached) " >&6
6197else
6198 if test -z "$GREP"; then
6199 ac_path_GREP_found=false
6200 # Loop through the user's path and test for each of PROGNAME-LIST
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6203do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_prog in grep ggrep; do
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006209 as_fn_executable_p "$ac_path_GREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006210# Check for GNU ac_path_GREP and select it if it is found.
6211 # Check for GNU $ac_path_GREP
6212case `"$ac_path_GREP" --version 2>&1` in
6213*GNU*)
6214 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6215*)
6216 ac_count=0
6217 $as_echo_n 0123456789 >"conftest.in"
6218 while :
6219 do
6220 cat "conftest.in" "conftest.in" >"conftest.tmp"
6221 mv "conftest.tmp" "conftest.in"
6222 cp "conftest.in" "conftest.nl"
6223 $as_echo 'GREP' >> "conftest.nl"
6224 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6226 as_fn_arith $ac_count + 1 && ac_count=$as_val
6227 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6228 # Best one so far, save it but keep looking for a better one
6229 ac_cv_path_GREP="$ac_path_GREP"
6230 ac_path_GREP_max=$ac_count
6231 fi
6232 # 10*(2^10) chars as input seems more than enough
6233 test $ac_count -gt 10 && break
6234 done
6235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6236esac
6237
6238 $ac_path_GREP_found && break 3
6239 done
6240 done
6241 done
6242IFS=$as_save_IFS
6243 if test -z "$ac_cv_path_GREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006244 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 -04006245 fi
6246else
6247 ac_cv_path_GREP=$GREP
6248fi
6249
6250fi
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6252$as_echo "$ac_cv_path_GREP" >&6; }
6253 GREP="$ac_cv_path_GREP"
6254
6255
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6257$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006258if ${ac_cv_path_EGREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006259 $as_echo_n "(cached) " >&6
6260else
6261 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6262 then ac_cv_path_EGREP="$GREP -E"
6263 else
6264 if test -z "$EGREP"; then
6265 ac_path_EGREP_found=false
6266 # Loop through the user's path and test for each of PROGNAME-LIST
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6269do
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_prog in egrep; do
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006275 as_fn_executable_p "$ac_path_EGREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006276# Check for GNU ac_path_EGREP and select it if it is found.
6277 # Check for GNU $ac_path_EGREP
6278case `"$ac_path_EGREP" --version 2>&1` in
6279*GNU*)
6280 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6281*)
6282 ac_count=0
6283 $as_echo_n 0123456789 >"conftest.in"
6284 while :
6285 do
6286 cat "conftest.in" "conftest.in" >"conftest.tmp"
6287 mv "conftest.tmp" "conftest.in"
6288 cp "conftest.in" "conftest.nl"
6289 $as_echo 'EGREP' >> "conftest.nl"
6290 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6292 as_fn_arith $ac_count + 1 && ac_count=$as_val
6293 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6294 # Best one so far, save it but keep looking for a better one
6295 ac_cv_path_EGREP="$ac_path_EGREP"
6296 ac_path_EGREP_max=$ac_count
6297 fi
6298 # 10*(2^10) chars as input seems more than enough
6299 test $ac_count -gt 10 && break
6300 done
6301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6302esac
6303
6304 $ac_path_EGREP_found && break 3
6305 done
6306 done
6307 done
6308IFS=$as_save_IFS
6309 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006310 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 -04006311 fi
6312else
6313 ac_cv_path_EGREP=$EGREP
6314fi
6315
6316 fi
6317fi
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6319$as_echo "$ac_cv_path_EGREP" >&6; }
6320 EGREP="$ac_cv_path_EGREP"
6321
6322
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6324$as_echo_n "checking for ANSI C header files... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006325if ${ac_cv_header_stdc+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006326 $as_echo_n "(cached) " >&6
6327else
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329/* end confdefs.h. */
6330#include <stdlib.h>
6331#include <stdarg.h>
6332#include <string.h>
6333#include <float.h>
6334
6335int
6336main ()
6337{
6338
6339 ;
6340 return 0;
6341}
6342_ACEOF
6343if ac_fn_c_try_compile "$LINENO"; then :
6344 ac_cv_header_stdc=yes
6345else
6346 ac_cv_header_stdc=no
6347fi
6348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349
6350if test $ac_cv_header_stdc = yes; then
6351 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353/* end confdefs.h. */
6354#include <string.h>
6355
6356_ACEOF
6357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6358 $EGREP "memchr" >/dev/null 2>&1; then :
6359
6360else
6361 ac_cv_header_stdc=no
6362fi
6363rm -f conftest*
6364
6365fi
6366
6367if test $ac_cv_header_stdc = yes; then
6368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370/* end confdefs.h. */
6371#include <stdlib.h>
6372
6373_ACEOF
6374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6375 $EGREP "free" >/dev/null 2>&1; then :
6376
6377else
6378 ac_cv_header_stdc=no
6379fi
6380rm -f conftest*
6381
6382fi
6383
6384if test $ac_cv_header_stdc = yes; then
6385 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6386 if test "$cross_compiling" = yes; then :
6387 :
6388else
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390/* end confdefs.h. */
6391#include <ctype.h>
6392#include <stdlib.h>
6393#if ((' ' & 0x0FF) == 0x020)
6394# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6395# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6396#else
6397# define ISLOWER(c) \
6398 (('a' <= (c) && (c) <= 'i') \
6399 || ('j' <= (c) && (c) <= 'r') \
6400 || ('s' <= (c) && (c) <= 'z'))
6401# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6402#endif
6403
6404#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6405int
6406main ()
6407{
6408 int i;
6409 for (i = 0; i < 256; i++)
6410 if (XOR (islower (i), ISLOWER (i))
6411 || toupper (i) != TOUPPER (i))
6412 return 2;
6413 return 0;
6414}
6415_ACEOF
6416if ac_fn_c_try_run "$LINENO"; then :
6417
6418else
6419 ac_cv_header_stdc=no
6420fi
6421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6422 conftest.$ac_objext conftest.beam conftest.$ac_ext
6423fi
6424
6425fi
6426fi
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6428$as_echo "$ac_cv_header_stdc" >&6; }
6429if test $ac_cv_header_stdc = yes; then
6430
6431$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6432
6433fi
6434
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006436$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006437if ${ac_cv_c_const+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006438 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006439else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006441/* end confdefs.h. */
6442
6443int
6444main ()
6445{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006446
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006447#ifndef __cplusplus
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006448 /* Ultrix mips cc rejects this sort of thing. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006449 typedef int charset[2];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006450 const charset cs = { 0, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006451 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006452 char const *const *pcpcc;
6453 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006454 /* NEC SVR4.0.2 mips cc rejects this. */
6455 struct point {int x, y;};
6456 static struct point const zero = {0,0};
6457 /* AIX XL C 1.02.0.0 rejects this.
6458 It does not let you subtract one const X* pointer from another in
6459 an arm of an if-expression whose if-part is not a constant
6460 expression */
6461 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006462 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006463 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006464 ++pcpcc;
6465 ppc = (char**) pcpcc;
6466 pcpcc = (char const *const *) ppc;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006467 { /* SCO 3.2v4 cc rejects this sort of thing. */
6468 char tx;
6469 char *t = &tx;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006470 char const *s = 0 ? (char *) 0 : (char const *) 0;
6471
6472 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006473 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006474 }
6475 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6476 int x[] = {25, 17};
6477 const int *foo = &x[0];
6478 ++foo;
6479 }
6480 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6481 typedef const int *iptr;
6482 iptr p = 0;
6483 ++p;
6484 }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006485 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006486 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006487 struct s { int j; const int *ap[3]; } bx;
6488 struct s *b = &bx; b->j = 5;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006489 }
6490 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6491 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006492 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006493 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006494 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006495#endif
6496
6497 ;
6498 return 0;
6499}
6500_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006501if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006502 ac_cv_c_const=yes
6503else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006504 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006505fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006507fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006509$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006510if test $ac_cv_c_const = no; then
6511
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006512$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006513
6514fi
6515
6516
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006518$as_echo_n "checking for signed... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006519if ${bh_cv_c_signed+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006520 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006521else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006523/* end confdefs.h. */
6524
6525int
6526main ()
6527{
6528signed char x;
6529 ;
6530 return 0;
6531}
6532_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006533if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006534 bh_cv_c_signed=yes
6535else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006536 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006537fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006539fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006541$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006542 if test $bh_cv_c_signed = no; then
6543
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006544$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006545
6546 fi
6547
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006549$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006550if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006551 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006552else
6553 ac_cv_c_inline=no
6554for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006556/* end confdefs.h. */
6557#ifndef __cplusplus
6558typedef int foo_t;
6559static $ac_kw foo_t static_foo () {return 0; }
6560$ac_kw foo_t foo () {return 0; }
6561#endif
6562
6563_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006564if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006565 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006566fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006569done
6570
6571fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006573$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006574
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006575case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006576 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006577 *)
6578 case $ac_cv_c_inline in
6579 no) ac_val=;;
6580 *) ac_val=$ac_cv_c_inline;;
6581 esac
6582 cat >>confdefs.h <<_ACEOF
6583#ifndef __cplusplus
6584#define inline $ac_val
6585#endif
6586_ACEOF
6587 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006588esac
6589
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006590# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6591for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6592 inttypes.h stdint.h unistd.h
6593do :
6594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6595ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6596"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006597if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006598 cat >>confdefs.h <<_ACEOF
6599#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6600_ACEOF
6601
6602fi
6603
6604done
6605
6606
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006607ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006608if test "x$ac_cv_type_off_t" = xyes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006609
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006610else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006611
6612cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006613#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006614_ACEOF
6615
6616fi
6617
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006618ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006619if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006620
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006621else
6622
6623cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006624#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006625_ACEOF
6626
6627fi
6628
6629
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006631$as_echo_n "checking for long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006632if ${ac_cv_type_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006633 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006634else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006636/* end confdefs.h. */
6637long long ll = 1LL; int i = 63;
6638int
6639main ()
6640{
6641long long llmax = (long long) -1;
6642 return ll << i | ll >> i | llmax / ll | llmax % ll;
6643 ;
6644 return 0;
6645}
6646_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006647if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006648 ac_cv_type_long_long=yes
6649else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006650 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006651fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006652rm -f core conftest.err conftest.$ac_objext \
6653 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006654fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006656$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006657 if test $ac_cv_type_long_long = yes; then
6658
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006659$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006660
6661 fi
6662
6663
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006665$as_echo_n "checking for long double... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006666if ${gt_cv_c_long_double+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006667 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006668else
6669 if test "$GCC" = yes; then
6670 gt_cv_c_long_double=yes
6671 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006673/* end confdefs.h. */
6674
6675 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6676 long double foo = 0.0;
6677 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6678 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6679
6680int
6681main ()
6682{
6683
6684 ;
6685 return 0;
6686}
6687_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006688if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006689 gt_cv_c_long_double=yes
6690else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006691 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006692fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006694 fi
6695fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006697$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006698 if test $gt_cv_c_long_double = yes; then
6699
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006700$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006701
6702 fi
6703
6704
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006706$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006707if ${gt_cv_c_wchar_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006708 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006709else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006711/* end confdefs.h. */
6712#include <stddef.h>
6713 wchar_t foo = (wchar_t)'\0';
6714int
6715main ()
6716{
6717
6718 ;
6719 return 0;
6720}
6721_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006722if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006723 gt_cv_c_wchar_t=yes
6724else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006725 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006726fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006728fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006730$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006731 if test $gt_cv_c_wchar_t = yes; then
6732
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006733$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006734
6735 fi
6736
6737
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006739$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006740if ${gt_cv_c_wint_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006741 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006742else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006744/* end confdefs.h. */
6745#include <wchar.h>
6746 wint_t foo = (wchar_t)'\0';
6747int
6748main ()
6749{
6750
6751 ;
6752 return 0;
6753}
6754_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006755if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006756 gt_cv_c_wint_t=yes
6757else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006758 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006759fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006761fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006763$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006764 if test $gt_cv_c_wint_t = yes; then
6765
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006766$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006767
6768 fi
6769
6770
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006772$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006773if ${jm_ac_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006774 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006775else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006777/* end confdefs.h. */
6778#include <sys/types.h>
6779#include <inttypes.h>
6780int
6781main ()
6782{
6783uintmax_t i = (uintmax_t) -1;
6784 ;
6785 return 0;
6786}
6787_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006788if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006789 jm_ac_cv_header_inttypes_h=yes
6790else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006791 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006792fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006794fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006796$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006797 if test $jm_ac_cv_header_inttypes_h = yes; then
6798
6799cat >>confdefs.h <<_ACEOF
6800#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6801_ACEOF
6802
6803 fi
6804
6805
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006807$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006808if ${jm_ac_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006809 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006810else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006812/* end confdefs.h. */
6813#include <sys/types.h>
6814#include <stdint.h>
6815int
6816main ()
6817{
6818uintmax_t i = (uintmax_t) -1;
6819 ;
6820 return 0;
6821}
6822_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006823if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006824 jm_ac_cv_header_stdint_h=yes
6825else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006826 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006827fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006829fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006831$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006832 if test $jm_ac_cv_header_stdint_h = yes; then
6833
6834cat >>confdefs.h <<_ACEOF
6835#define HAVE_STDINT_H_WITH_UINTMAX 1
6836_ACEOF
6837
6838 fi
6839
6840
6841
6842
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006844$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006845if ${gt_cv_c_intmax_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006846 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006847else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006849/* end confdefs.h. */
6850
6851#include <stddef.h>
6852#include <stdlib.h>
6853#if HAVE_STDINT_H_WITH_UINTMAX
6854#include <stdint.h>
6855#endif
6856#if HAVE_INTTYPES_H_WITH_UINTMAX
6857#include <inttypes.h>
6858#endif
6859
6860int
6861main ()
6862{
6863intmax_t x = -1;
6864 ;
6865 return 0;
6866}
6867_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006868if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006869 gt_cv_c_intmax_t=yes
6870else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006871 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006872fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006874fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006876$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006877 if test $gt_cv_c_intmax_t = yes; then
6878
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006879$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006880
6881 fi
6882
6883
6884
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006886$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006887if ${gt_cv_func_printf_posix+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006888 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006889else
6890
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006891 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006892
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006894/* end confdefs.h. */
6895
6896#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6897 notposix
6898#endif
6899
6900_ACEOF
6901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006902 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006903 gt_cv_func_printf_posix="guessing no"
6904else
6905 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006906fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006907rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006908
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006909
6910else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006912/* end confdefs.h. */
6913
6914#include <stdio.h>
6915#include <string.h>
6916/* The string "%2$d %1$d", with dollar characters protected from the shell's
6917 dollar expansion (possibly an autoconf bug). */
6918static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6919static char buf[100];
6920int main ()
6921{
6922 sprintf (buf, format, 33, 55);
6923 return (strcmp (buf, "55 33") != 0);
6924}
6925_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006926if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006927 gt_cv_func_printf_posix=yes
6928else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006929 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006930fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6932 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006933fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006934
Theodore Ts'oe1052142006-10-21 21:46:47 -04006935
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006936fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006938$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006939 case $gt_cv_func_printf_posix in
6940 *yes)
6941
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006942$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006943
6944 ;;
6945 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006946
6947# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6948# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006950$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006951if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006952 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006953else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006955/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006956#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006957int
6958main ()
6959{
6960char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006961 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006962 ;
6963 return 0;
6964}
6965_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006966if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006967 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006968else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006969 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006970fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006971rm -f core conftest.err conftest.$ac_objext \
6972 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006973fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006975$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006976if test $ac_cv_working_alloca_h = yes; then
6977
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006978$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006979
6980fi
6981
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006983$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006984if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006985 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006986else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006988/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006989#ifdef __GNUC__
6990# define alloca __builtin_alloca
6991#else
6992# ifdef _MSC_VER
6993# include <malloc.h>
6994# define alloca _alloca
6995# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006996# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006997# include <alloca.h>
6998# else
6999# ifdef _AIX
7000 #pragma alloca
7001# else
7002# ifndef alloca /* predefined by HP cc +Olibcalls */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007003void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007004# endif
7005# endif
7006# endif
7007# endif
7008#endif
7009
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007010int
7011main ()
7012{
7013char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007014 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007015 ;
7016 return 0;
7017}
7018_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007019if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007020 ac_cv_func_alloca_works=yes
7021else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007022 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007023fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007024rm -f core conftest.err conftest.$ac_objext \
7025 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007026fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007028$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007029
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007030if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007031
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007032$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007033
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007034else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007035 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7036# that cause trouble. Some versions do not even contain alloca or
7037# contain a buggy version. If you still want to use their alloca,
7038# use ar to extract alloca.o from them instead of compiling alloca.c.
7039
Theodore Ts'oe1052142006-10-21 21:46:47 -04007040ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007041
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007042$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007043
7044
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007046$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007047if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007048 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007049else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007051/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007052#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007053webecray
7054#else
7055wenotbecray
7056#endif
7057
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007058_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007060 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007061 ac_cv_os_cray=yes
7062else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007063 ac_cv_os_cray=no
7064fi
7065rm -f conftest*
7066
7067fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007069$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007070if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007071 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007073ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007074if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007075
7076cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007077#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007078_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007079
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007080 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007081fi
7082
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007083 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007084fi
7085
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007087$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007088if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007089 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007090else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007091 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007092 ac_cv_c_stack_direction=0
7093else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007095/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007096$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007097int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007098find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007099{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007100 int dir, dummy = 0;
7101 if (! addr)
7102 addr = &dummy;
7103 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7104 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7105 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007106}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007107
7108int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007109main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007110{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007111 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007112}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007113_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007114if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007115 ac_cv_c_stack_direction=1
7116else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007117 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007118fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7120 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007121fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007122
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007123fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007125$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007126cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007127#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007128_ACEOF
7129
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007130
7131fi
7132
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007133
7134
7135
7136 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007137do :
7138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007139ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7140"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007141if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007142 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007143#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007144_ACEOF
7145
7146fi
7147
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007148done
7149
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007150
7151
7152
7153
7154
7155
7156
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007157for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007158do :
7159 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007160if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007161 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007162#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007163_ACEOF
7164
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007165fi
7166done
7167
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007169$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007170if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007171 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007172else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007173 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007174 ac_cv_func_mmap_fixed_mapped=no
7175else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007177/* end confdefs.h. */
7178$ac_includes_default
7179/* malloc might have been renamed as rpl_malloc. */
7180#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007181
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007182/* Thanks to Mike Haertel and Jim Avera for this test.
7183 Here is a matrix of mmap possibilities:
7184 mmap private not fixed
7185 mmap private fixed at somewhere currently unmapped
7186 mmap private fixed at somewhere already mapped
7187 mmap shared not fixed
7188 mmap shared fixed at somewhere currently unmapped
7189 mmap shared fixed at somewhere already mapped
7190 For private mappings, we should verify that changes cannot be read()
7191 back from the file, nor mmap's back from the file at a different
7192 address. (There have been systems where private was not correctly
7193 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007194 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007195 like early versions of FreeBSD and possibly contemporary NetBSD.)
7196 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007197 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007198
7199 Grep wants private fixed already mapped.
7200 The main things grep needs to know about mmap are:
7201 * does it exist and is it safe to write into the mmap'd area
7202 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007203
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007204#include <fcntl.h>
7205#include <sys/mman.h>
7206
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007207#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007208char *malloc ();
7209#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007210
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007211/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007212#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007213# ifdef _SC_PAGESIZE
7214# define getpagesize() sysconf(_SC_PAGESIZE)
7215# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007216# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007217# include <sys/param.h>
7218# ifdef EXEC_PAGESIZE
7219# define getpagesize() EXEC_PAGESIZE
7220# else /* no EXEC_PAGESIZE */
7221# ifdef NBPG
7222# define getpagesize() NBPG * CLSIZE
7223# ifndef CLSIZE
7224# define CLSIZE 1
7225# endif /* no CLSIZE */
7226# else /* no NBPG */
7227# ifdef NBPC
7228# define getpagesize() NBPC
7229# else /* no NBPC */
7230# ifdef PAGESIZE
7231# define getpagesize() PAGESIZE
7232# endif /* PAGESIZE */
7233# endif /* no NBPC */
7234# endif /* no NBPG */
7235# endif /* no EXEC_PAGESIZE */
7236# else /* no HAVE_SYS_PARAM_H */
7237# define getpagesize() 8192 /* punt totally */
7238# endif /* no HAVE_SYS_PARAM_H */
7239# endif /* no _SC_PAGESIZE */
7240
7241#endif /* no HAVE_GETPAGESIZE */
7242
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007243int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007244main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007245{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007246 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007247 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007248 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007249 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007250
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007251 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007252
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007253 /* First, make a file with some known garbage in it. */
7254 data = (char *) malloc (pagesize);
7255 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007256 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007257 for (i = 0; i < pagesize; ++i)
7258 *(data + i) = rand ();
7259 umask (0);
7260 fd = creat ("conftest.mmap", 0600);
7261 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007262 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007263 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007264 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007265 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007266
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007267 /* Next, check that the tail of a page is zero-filled. File must have
7268 non-zero length, otherwise we risk SIGBUS for entire page. */
7269 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7270 if (fd2 < 0)
7271 return 4;
7272 cdata2 = "";
7273 if (write (fd2, cdata2, 1) != 1)
7274 return 5;
7275 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7276 if (data2 == MAP_FAILED)
7277 return 6;
7278 for (i = 0; i < pagesize; ++i)
7279 if (*(data2 + i))
7280 return 7;
7281 close (fd2);
7282 if (munmap (data2, pagesize))
7283 return 8;
7284
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007285 /* Next, try to mmap the file at a fixed address which already has
7286 something else allocated at it. If we can, also make sure that
7287 we see the same garbage. */
7288 fd = open ("conftest.mmap", O_RDWR);
7289 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007290 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007291 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7292 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007293 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007294 for (i = 0; i < pagesize; ++i)
7295 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007296 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007297
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007298 /* Finally, make sure that changes to the mapped area do not
7299 percolate back to the file as seen by read(). (This is a bug on
7300 some variants of i386 svr4.0.) */
7301 for (i = 0; i < pagesize; ++i)
7302 *(data2 + i) = *(data2 + i) + 1;
7303 data3 = (char *) malloc (pagesize);
7304 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007305 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007306 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007307 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007308 for (i = 0; i < pagesize; ++i)
7309 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007310 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007311 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007312 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007313}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007314_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007315if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007316 ac_cv_func_mmap_fixed_mapped=yes
7317else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007318 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007319fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7321 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007322fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007323
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007324fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007326$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007327if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007328
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007329$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007330
7331fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007332rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007333
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007334
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007335 { $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 +01007336$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 -04007337if ${ac_cv_gnu_library_2_1+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007338 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007339else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007341/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007342
7343#include <features.h>
7344#ifdef __GNU_LIBRARY__
7345 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7346 Lucky GNU user
7347 #endif
7348#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007349
7350_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007352 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007353 ac_cv_gnu_library_2_1=yes
7354else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007355 ac_cv_gnu_library_2_1=no
7356fi
7357rm -f conftest*
7358
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007359
7360
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007361fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007363$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007364
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007365 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007366
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007367
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007368
7369
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007371$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007372if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007373 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007374else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007375
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007376 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007377
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007378 # Guess based on the CPU.
7379 case "$host_cpu" in
7380 alpha* | i3456786 | m68k | s390*)
7381 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7382 *)
7383 gt_cv_int_divbyzero_sigfpe="guessing no";;
7384 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007385
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007386else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007388/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007389
7390#include <stdlib.h>
7391#include <signal.h>
7392
7393static void
7394#ifdef __cplusplus
7395sigfpe_handler (int sig)
7396#else
7397sigfpe_handler (sig) int sig;
7398#endif
7399{
7400 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7401 exit (sig != SIGFPE);
7402}
7403
7404int x = 1;
7405int y = 0;
7406int z;
7407int nan;
7408
7409int main ()
7410{
7411 signal (SIGFPE, sigfpe_handler);
7412/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7413#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7414 signal (SIGTRAP, sigfpe_handler);
7415#endif
7416/* Linux/SPARC yields signal SIGILL. */
7417#if defined (__sparc__) && defined (__linux__)
7418 signal (SIGILL, sigfpe_handler);
7419#endif
7420
7421 z = x / y;
7422 nan = y / y;
7423 exit (1);
7424}
7425
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007426_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007427if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007428 gt_cv_int_divbyzero_sigfpe=yes
7429else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007430 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007431fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7433 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007434fi
7435
Theodore Ts'oe1052142006-10-21 21:46:47 -04007436
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007437fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007439$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007440 case "$gt_cv_int_divbyzero_sigfpe" in
7441 *yes) value=1;;
7442 *) value=0;;
7443 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007444
7445cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007446#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007447_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007448
7449
7450
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007452$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007453if ${ac_cv_type_unsigned_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007454 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007455else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007457/* end confdefs.h. */
7458unsigned long long ull = 1ULL; int i = 63;
7459int
7460main ()
7461{
7462unsigned long long ullmax = (unsigned long long) -1;
7463 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7464 ;
7465 return 0;
7466}
7467_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007468if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007469 ac_cv_type_unsigned_long_long=yes
7470else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007471 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007472fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007473rm -f core conftest.err conftest.$ac_objext \
7474 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007475fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007477$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007478 if test $ac_cv_type_unsigned_long_long = yes; then
7479
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007480$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007481
7482 fi
7483
7484
7485
7486
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007487 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 -05007488
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007489 test $ac_cv_type_unsigned_long_long = yes \
7490 && ac_type='unsigned long long' \
7491 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007492
7493cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007494#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007495_ACEOF
7496
7497 else
7498
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007499$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007500
7501 fi
7502
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007503
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007505$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007506if ${gt_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007507 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007508else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007509
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007511/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007512#include <sys/types.h>
7513#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007514int
7515main ()
7516{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007517
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007518 ;
7519 return 0;
7520}
7521_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007522if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007523 gt_cv_header_inttypes_h=yes
7524else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007525 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007526fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007528
7529fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007531$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007532 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007533
7534cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007535#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007536_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007537
7538 fi
7539
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007540
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007541
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007542 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007543 { $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 +01007544$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007545if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007546 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007547else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007548
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007550/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007551#include <inttypes.h>
7552#ifdef PRId32
7553char *p = PRId32;
7554#endif
7555
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007556int
7557main ()
7558{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007559
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007560 ;
7561 return 0;
7562}
7563_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007564if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007565 gt_cv_inttypes_pri_broken=no
7566else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007567 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007568fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007570
7571fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007573$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007574 fi
7575 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007576
7577cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007578#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007579_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007580
7581 fi
7582
7583
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007584 for ac_header in stdint.h
7585do :
7586 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 -04007587if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007588 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007589#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007590_ACEOF
7591
7592fi
7593
7594done
7595
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007597$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007598 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007600/* end confdefs.h. */
7601
7602#include <limits.h>
7603#if HAVE_STDINT_H
7604#include <stdint.h>
7605#endif
7606#ifdef SIZE_MAX
7607Found it
7608#endif
7609
7610_ACEOF
7611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007612 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007613 result=yes
7614fi
7615rm -f conftest*
7616
7617 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007618 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 -05007619
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007620else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007621 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007622fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007623
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007624
7625 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7626
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007627else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007628 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007629fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007630
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007631
7632 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7633
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007634else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007635 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007636fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007637
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007638
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007639 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007641/* end confdefs.h. */
7642#include <stddef.h>
7643 extern size_t foo;
7644 extern unsigned long foo;
7645
7646int
7647main ()
7648{
7649
7650 ;
7651 return 0;
7652}
7653_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007654if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007655 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007656fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007658 fi
7659 if test -z "$result"; then
7660 if test "$fits_in_uint" = 1; then
7661 result="$res_hi$res_lo"U
7662 else
7663 result="$res_hi$res_lo"UL
7664 fi
7665 else
7666 result='~(size_t)0'
7667 fi
7668 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007670$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007671 if test "$result" != yes; then
7672
7673cat >>confdefs.h <<_ACEOF
7674#define SIZE_MAX $result
7675_ACEOF
7676
7677 fi
7678
7679
7680
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007681 for ac_header in stdint.h
7682do :
7683 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 -04007684if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007685 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007686#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007687_ACEOF
7688
7689fi
7690
7691done
7692
7693
7694
7695 if test "X$prefix" = "XNONE"; then
7696 acl_final_prefix="$ac_default_prefix"
7697 else
7698 acl_final_prefix="$prefix"
7699 fi
7700 if test "X$exec_prefix" = "XNONE"; then
7701 acl_final_exec_prefix='${prefix}'
7702 else
7703 acl_final_exec_prefix="$exec_prefix"
7704 fi
7705 acl_save_prefix="$prefix"
7706 prefix="$acl_final_prefix"
7707 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7708 prefix="$acl_save_prefix"
7709
7710
Theodore Ts'oe1052142006-10-21 21:46:47 -04007711# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007712if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007713 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007714else
7715 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007716fi
7717
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007718# Prepare PATH_SEPARATOR.
7719# The user is always right.
7720if test "${PATH_SEPARATOR+set}" != set; then
7721 echo "#! /bin/sh" >conf$$.sh
7722 echo "exit 0" >>conf$$.sh
7723 chmod +x conf$$.sh
7724 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7725 PATH_SEPARATOR=';'
7726 else
7727 PATH_SEPARATOR=:
7728 fi
7729 rm -f conf$$.sh
7730fi
7731ac_prog=ld
7732if test "$GCC" = yes; then
7733 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007735$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007736 case $host in
7737 *-*-mingw*)
7738 # gcc leaves a trailing carriage return which upsets mingw
7739 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7740 *)
7741 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7742 esac
7743 case $ac_prog in
7744 # Accept absolute paths.
7745 [\\/]* | [A-Za-z]:[\\/]*)
7746 re_direlt='/[^/][^/]*/\.\./'
7747 # Canonicalize the path of ld
7748 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7749 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7750 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7751 done
7752 test -z "$LD" && LD="$ac_prog"
7753 ;;
7754 "")
7755 # If it fails, then pretend we aren't using GCC.
7756 ac_prog=ld
7757 ;;
7758 *)
7759 # If it is relative, then search for the first ld in PATH.
7760 with_gnu_ld=unknown
7761 ;;
7762 esac
7763elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007765$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007766else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007768$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007769fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007770if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007771 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007772else
7773 if test -z "$LD"; then
7774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7775 for ac_dir in $PATH; do
7776 test -z "$ac_dir" && ac_dir=.
7777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7778 acl_cv_path_LD="$ac_dir/$ac_prog"
7779 # Check to see if the program is GNU ld. I'd rather use --version,
7780 # but apparently some GNU ld's only accept -v.
7781 # Break only if it was the GNU/non-GNU ld that we prefer.
7782 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7783 *GNU* | *'with BFD'*)
7784 test "$with_gnu_ld" != no && break ;;
7785 *)
7786 test "$with_gnu_ld" != yes && break ;;
7787 esac
7788 fi
7789 done
7790 IFS="$ac_save_ifs"
7791else
7792 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7793fi
7794fi
7795
7796LD="$acl_cv_path_LD"
7797if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007799$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007800else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007802$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007803fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007804test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007806$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007807if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007808 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007809else
7810 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7811case `$LD -v 2>&1 </dev/null` in
7812*GNU* | *'with BFD'*)
7813 acl_cv_prog_gnu_ld=yes ;;
7814*)
7815 acl_cv_prog_gnu_ld=no ;;
7816esac
7817fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007819$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007820with_gnu_ld=$acl_cv_prog_gnu_ld
7821
7822
7823
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007825$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007826if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007827 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007828else
7829
7830 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7831 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7832 . ./conftest.sh
7833 rm -f ./conftest.sh
7834 acl_cv_rpath=done
7835
7836fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007838$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007839 wl="$acl_cv_wl"
7840 libext="$acl_cv_libext"
7841 shlibext="$acl_cv_shlibext"
7842 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7843 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7844 hardcode_direct="$acl_cv_hardcode_direct"
7845 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007846 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007847if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007848 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007849else
7850 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007851fi
7852
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007853
7854
7855
7856
7857
7858
7859
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007860 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007861
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007862 acl_save_prefix="$prefix"
7863 prefix="$acl_final_prefix"
7864 acl_save_exec_prefix="$exec_prefix"
7865 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007866
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007867 eval additional_includedir=\"$includedir\"
7868 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007869
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007870 exec_prefix="$acl_save_exec_prefix"
7871 prefix="$acl_save_prefix"
7872
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007873
Theodore Ts'oe1052142006-10-21 21:46:47 -04007874# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007875if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007876 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007877 if test "X$withval" = "Xno"; then
7878 use_additional=no
7879 else
7880 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007881
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007882 acl_save_prefix="$prefix"
7883 prefix="$acl_final_prefix"
7884 acl_save_exec_prefix="$exec_prefix"
7885 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007886
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007887 eval additional_includedir=\"$includedir\"
7888 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007889
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007890 exec_prefix="$acl_save_exec_prefix"
7891 prefix="$acl_save_prefix"
7892
7893 else
7894 additional_includedir="$withval/include"
7895 additional_libdir="$withval/lib"
7896 fi
7897 fi
7898
Theodore Ts'oe1052142006-10-21 21:46:47 -04007899fi
7900
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007901 LIBICONV=
7902 LTLIBICONV=
7903 INCICONV=
7904 rpathdirs=
7905 ltrpathdirs=
7906 names_already_handled=
7907 names_next_round='iconv '
7908 while test -n "$names_next_round"; do
7909 names_this_round="$names_next_round"
7910 names_next_round=
7911 for name in $names_this_round; do
7912 already_handled=
7913 for n in $names_already_handled; do
7914 if test "$n" = "$name"; then
7915 already_handled=yes
7916 break
7917 fi
7918 done
7919 if test -z "$already_handled"; then
7920 names_already_handled="$names_already_handled $name"
7921 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7922 eval value=\"\$HAVE_LIB$uppername\"
7923 if test -n "$value"; then
7924 if test "$value" = yes; then
7925 eval value=\"\$LIB$uppername\"
7926 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7927 eval value=\"\$LTLIB$uppername\"
7928 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7929 else
7930 :
7931 fi
7932 else
7933 found_dir=
7934 found_la=
7935 found_so=
7936 found_a=
7937 if test $use_additional = yes; then
7938 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7939 found_dir="$additional_libdir"
7940 found_so="$additional_libdir/lib$name.$shlibext"
7941 if test -f "$additional_libdir/lib$name.la"; then
7942 found_la="$additional_libdir/lib$name.la"
7943 fi
7944 else
7945 if test -f "$additional_libdir/lib$name.$libext"; then
7946 found_dir="$additional_libdir"
7947 found_a="$additional_libdir/lib$name.$libext"
7948 if test -f "$additional_libdir/lib$name.la"; then
7949 found_la="$additional_libdir/lib$name.la"
7950 fi
7951 fi
7952 fi
7953 fi
7954 if test "X$found_dir" = "X"; then
7955 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007956
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007957 acl_save_prefix="$prefix"
7958 prefix="$acl_final_prefix"
7959 acl_save_exec_prefix="$exec_prefix"
7960 exec_prefix="$acl_final_exec_prefix"
7961 eval x=\"$x\"
7962 exec_prefix="$acl_save_exec_prefix"
7963 prefix="$acl_save_prefix"
7964
7965 case "$x" in
7966 -L*)
7967 dir=`echo "X$x" | sed -e 's/^X-L//'`
7968 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7969 found_dir="$dir"
7970 found_so="$dir/lib$name.$shlibext"
7971 if test -f "$dir/lib$name.la"; then
7972 found_la="$dir/lib$name.la"
7973 fi
7974 else
7975 if test -f "$dir/lib$name.$libext"; then
7976 found_dir="$dir"
7977 found_a="$dir/lib$name.$libext"
7978 if test -f "$dir/lib$name.la"; then
7979 found_la="$dir/lib$name.la"
7980 fi
7981 fi
7982 fi
7983 ;;
7984 esac
7985 if test "X$found_dir" != "X"; then
7986 break
7987 fi
7988 done
7989 fi
7990 if test "X$found_dir" != "X"; then
7991 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7992 if test "X$found_so" != "X"; then
7993 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7994 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7995 else
7996 haveit=
7997 for x in $ltrpathdirs; do
7998 if test "X$x" = "X$found_dir"; then
7999 haveit=yes
8000 break
8001 fi
8002 done
8003 if test -z "$haveit"; then
8004 ltrpathdirs="$ltrpathdirs $found_dir"
8005 fi
8006 if test "$hardcode_direct" = yes; then
8007 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8008 else
8009 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8010 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8011 haveit=
8012 for x in $rpathdirs; do
8013 if test "X$x" = "X$found_dir"; then
8014 haveit=yes
8015 break
8016 fi
8017 done
8018 if test -z "$haveit"; then
8019 rpathdirs="$rpathdirs $found_dir"
8020 fi
8021 else
8022 haveit=
8023 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008024
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008025 acl_save_prefix="$prefix"
8026 prefix="$acl_final_prefix"
8027 acl_save_exec_prefix="$exec_prefix"
8028 exec_prefix="$acl_final_exec_prefix"
8029 eval x=\"$x\"
8030 exec_prefix="$acl_save_exec_prefix"
8031 prefix="$acl_save_prefix"
8032
8033 if test "X$x" = "X-L$found_dir"; then
8034 haveit=yes
8035 break
8036 fi
8037 done
8038 if test -z "$haveit"; then
8039 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8040 fi
8041 if test "$hardcode_minus_L" != no; then
8042 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8043 else
8044 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8045 fi
8046 fi
8047 fi
8048 fi
8049 else
8050 if test "X$found_a" != "X"; then
8051 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8052 else
8053 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8054 fi
8055 fi
8056 additional_includedir=
8057 case "$found_dir" in
8058 */lib | */lib/)
8059 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8060 additional_includedir="$basedir/include"
8061 ;;
8062 esac
8063 if test "X$additional_includedir" != "X"; then
8064 if test "X$additional_includedir" != "X/usr/include"; then
8065 haveit=
8066 if test "X$additional_includedir" = "X/usr/local/include"; then
8067 if test -n "$GCC"; then
8068 case $host_os in
8069 linux*) haveit=yes;;
8070 esac
8071 fi
8072 fi
8073 if test -z "$haveit"; then
8074 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008075
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008076 acl_save_prefix="$prefix"
8077 prefix="$acl_final_prefix"
8078 acl_save_exec_prefix="$exec_prefix"
8079 exec_prefix="$acl_final_exec_prefix"
8080 eval x=\"$x\"
8081 exec_prefix="$acl_save_exec_prefix"
8082 prefix="$acl_save_prefix"
8083
8084 if test "X$x" = "X-I$additional_includedir"; then
8085 haveit=yes
8086 break
8087 fi
8088 done
8089 if test -z "$haveit"; then
8090 if test -d "$additional_includedir"; then
8091 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8092 fi
8093 fi
8094 fi
8095 fi
8096 fi
8097 if test -n "$found_la"; then
8098 save_libdir="$libdir"
8099 case "$found_la" in
8100 */* | *\\*) . "$found_la" ;;
8101 *) . "./$found_la" ;;
8102 esac
8103 libdir="$save_libdir"
8104 for dep in $dependency_libs; do
8105 case "$dep" in
8106 -L*)
8107 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8108 if test "X$additional_libdir" != "X/usr/lib"; then
8109 haveit=
8110 if test "X$additional_libdir" = "X/usr/local/lib"; then
8111 if test -n "$GCC"; then
8112 case $host_os in
8113 linux*) haveit=yes;;
8114 esac
8115 fi
8116 fi
8117 if test -z "$haveit"; then
8118 haveit=
8119 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008120
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008121 acl_save_prefix="$prefix"
8122 prefix="$acl_final_prefix"
8123 acl_save_exec_prefix="$exec_prefix"
8124 exec_prefix="$acl_final_exec_prefix"
8125 eval x=\"$x\"
8126 exec_prefix="$acl_save_exec_prefix"
8127 prefix="$acl_save_prefix"
8128
8129 if test "X$x" = "X-L$additional_libdir"; then
8130 haveit=yes
8131 break
8132 fi
8133 done
8134 if test -z "$haveit"; then
8135 if test -d "$additional_libdir"; then
8136 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8137 fi
8138 fi
8139 haveit=
8140 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008141
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008142 acl_save_prefix="$prefix"
8143 prefix="$acl_final_prefix"
8144 acl_save_exec_prefix="$exec_prefix"
8145 exec_prefix="$acl_final_exec_prefix"
8146 eval x=\"$x\"
8147 exec_prefix="$acl_save_exec_prefix"
8148 prefix="$acl_save_prefix"
8149
8150 if test "X$x" = "X-L$additional_libdir"; then
8151 haveit=yes
8152 break
8153 fi
8154 done
8155 if test -z "$haveit"; then
8156 if test -d "$additional_libdir"; then
8157 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8158 fi
8159 fi
8160 fi
8161 fi
8162 ;;
8163 -R*)
8164 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8165 if test "$enable_rpath" != no; then
8166 haveit=
8167 for x in $rpathdirs; do
8168 if test "X$x" = "X$dir"; then
8169 haveit=yes
8170 break
8171 fi
8172 done
8173 if test -z "$haveit"; then
8174 rpathdirs="$rpathdirs $dir"
8175 fi
8176 haveit=
8177 for x in $ltrpathdirs; do
8178 if test "X$x" = "X$dir"; then
8179 haveit=yes
8180 break
8181 fi
8182 done
8183 if test -z "$haveit"; then
8184 ltrpathdirs="$ltrpathdirs $dir"
8185 fi
8186 fi
8187 ;;
8188 -l*)
8189 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8190 ;;
8191 *.la)
8192 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8193 ;;
8194 *)
8195 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8196 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8197 ;;
8198 esac
8199 done
8200 fi
8201 else
8202 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8203 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8204 fi
8205 fi
8206 fi
8207 done
8208 done
8209 if test "X$rpathdirs" != "X"; then
8210 if test -n "$hardcode_libdir_separator"; then
8211 alldirs=
8212 for found_dir in $rpathdirs; do
8213 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8214 done
8215 acl_save_libdir="$libdir"
8216 libdir="$alldirs"
8217 eval flag=\"$hardcode_libdir_flag_spec\"
8218 libdir="$acl_save_libdir"
8219 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8220 else
8221 for found_dir in $rpathdirs; do
8222 acl_save_libdir="$libdir"
8223 libdir="$found_dir"
8224 eval flag=\"$hardcode_libdir_flag_spec\"
8225 libdir="$acl_save_libdir"
8226 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8227 done
8228 fi
8229 fi
8230 if test "X$ltrpathdirs" != "X"; then
8231 for found_dir in $ltrpathdirs; do
8232 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8233 done
8234 fi
8235
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008236
8237
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008238
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008239
8240
8241
8242
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008243 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008244if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008245
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008246else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008247
8248$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008249
8250
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008251fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008252
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008253 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 -04008254stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008255do :
8256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8257ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008258if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008259 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008260#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008261_ACEOF
8262
8263fi
8264
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008265done
8266
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008267 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008268mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8269strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8270__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008271do :
8272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8273ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008274if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008275 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008276#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008277_ACEOF
8278
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008279fi
8280done
8281
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008282
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008283
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008285$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008286if ${ac_cv_have_decl__snprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008287 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008288else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008290/* end confdefs.h. */
8291#include <stdio.h>
8292int
8293main ()
8294{
8295
8296#ifndef _snprintf
8297 char *p = (char *) _snprintf;
8298#endif
8299
8300 ;
8301 return 0;
8302}
8303_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008304if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008305 ac_cv_have_decl__snprintf=yes
8306else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008307 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008308fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008310fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008312$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008313 if test $ac_cv_have_decl__snprintf = yes; then
8314 gt_value=1
8315 else
8316 gt_value=0
8317 fi
8318
8319cat >>confdefs.h <<_ACEOF
8320#define HAVE_DECL__SNPRINTF $gt_value
8321_ACEOF
8322
8323
8324
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008326$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008327if ${ac_cv_have_decl__snwprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008328 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008329else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008331/* end confdefs.h. */
8332#include <stdio.h>
8333int
8334main ()
8335{
8336
8337#ifndef _snwprintf
8338 char *p = (char *) _snwprintf;
8339#endif
8340
8341 ;
8342 return 0;
8343}
8344_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008345if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008346 ac_cv_have_decl__snwprintf=yes
8347else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008348 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008349fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008351fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008353$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008354 if test $ac_cv_have_decl__snwprintf = yes; then
8355 gt_value=1
8356 else
8357 gt_value=0
8358 fi
8359
8360cat >>confdefs.h <<_ACEOF
8361#define HAVE_DECL__SNWPRINTF $gt_value
8362_ACEOF
8363
8364
8365
8366
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008368$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008369if ${ac_cv_have_decl_feof_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008370 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008371else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008373/* end confdefs.h. */
8374#include <stdio.h>
8375int
8376main ()
8377{
8378
8379#ifndef feof_unlocked
8380 char *p = (char *) feof_unlocked;
8381#endif
8382
8383 ;
8384 return 0;
8385}
8386_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008387if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008388 ac_cv_have_decl_feof_unlocked=yes
8389else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008390 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008391fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008393fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008395$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008396 if test $ac_cv_have_decl_feof_unlocked = yes; then
8397 gt_value=1
8398 else
8399 gt_value=0
8400 fi
8401
8402cat >>confdefs.h <<_ACEOF
8403#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8404_ACEOF
8405
8406
8407
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008409$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008410if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008411 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008412else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008414/* end confdefs.h. */
8415#include <stdio.h>
8416int
8417main ()
8418{
8419
8420#ifndef fgets_unlocked
8421 char *p = (char *) fgets_unlocked;
8422#endif
8423
8424 ;
8425 return 0;
8426}
8427_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008428if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008429 ac_cv_have_decl_fgets_unlocked=yes
8430else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008431 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008432fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008434fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008436$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008437 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8438 gt_value=1
8439 else
8440 gt_value=0
8441 fi
8442
8443cat >>confdefs.h <<_ACEOF
8444#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8445_ACEOF
8446
8447
8448
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008450$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008451if ${ac_cv_have_decl_getc_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008452 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008453else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008455/* end confdefs.h. */
8456#include <stdio.h>
8457int
8458main ()
8459{
8460
8461#ifndef getc_unlocked
8462 char *p = (char *) getc_unlocked;
8463#endif
8464
8465 ;
8466 return 0;
8467}
8468_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008469if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008470 ac_cv_have_decl_getc_unlocked=yes
8471else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008472 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008473fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008475fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008477$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008478 if test $ac_cv_have_decl_getc_unlocked = yes; then
8479 gt_value=1
8480 else
8481 gt_value=0
8482 fi
8483
8484cat >>confdefs.h <<_ACEOF
8485#define HAVE_DECL_GETC_UNLOCKED $gt_value
8486_ACEOF
8487
8488
8489
8490 case $gt_cv_func_printf_posix in
8491 *yes) HAVE_POSIX_PRINTF=1 ;;
8492 *) HAVE_POSIX_PRINTF=0 ;;
8493 esac
8494
8495 if test "$ac_cv_func_asprintf" = yes; then
8496 HAVE_ASPRINTF=1
8497 else
8498 HAVE_ASPRINTF=0
8499 fi
8500
8501 if test "$ac_cv_func_snprintf" = yes; then
8502 HAVE_SNPRINTF=1
8503 else
8504 HAVE_SNPRINTF=0
8505 fi
8506
8507 if test "$ac_cv_func_wprintf" = yes; then
8508 HAVE_WPRINTF=1
8509 else
8510 HAVE_WPRINTF=0
8511 fi
8512
8513
8514
8515
8516
8517
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008518
8519 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008520
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008521 for element in $INCICONV; do
8522 haveit=
8523 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008524
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008525 acl_save_prefix="$prefix"
8526 prefix="$acl_final_prefix"
8527 acl_save_exec_prefix="$exec_prefix"
8528 exec_prefix="$acl_final_exec_prefix"
8529 eval x=\"$x\"
8530 exec_prefix="$acl_save_exec_prefix"
8531 prefix="$acl_save_prefix"
8532
8533 if test "X$x" = "X$element"; then
8534 haveit=yes
8535 break
8536 fi
8537 done
8538 if test -z "$haveit"; then
8539 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8540 fi
8541 done
8542
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008543
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008545$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008546if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008547 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008548else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008549
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008550 am_cv_func_iconv="no, consider installing GNU libiconv"
8551 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008553/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008554#include <stdlib.h>
8555#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008556int
8557main ()
8558{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008559iconv_t cd = iconv_open("","");
8560 iconv(cd,NULL,NULL,NULL,NULL);
8561 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008562 ;
8563 return 0;
8564}
8565_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008566if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008567 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008568fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008569rm -f core conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008571 if test "$am_cv_func_iconv" != yes; then
8572 am_save_LIBS="$LIBS"
8573 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008575/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008576#include <stdlib.h>
8577#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008578int
8579main ()
8580{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008581iconv_t cd = iconv_open("","");
8582 iconv(cd,NULL,NULL,NULL,NULL);
8583 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008584 ;
8585 return 0;
8586}
8587_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008588if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008589 am_cv_lib_iconv=yes
8590 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008591fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008592rm -f core conftest.err conftest.$ac_objext \
8593 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008594 LIBS="$am_save_LIBS"
8595 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008596
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008597fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008599$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008600 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008601
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008602$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008603
8604 fi
8605 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008607$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008609$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008610 else
8611 CPPFLAGS="$am_save_CPPFLAGS"
8612 LIBICONV=
8613 LTLIBICONV=
8614 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008615
8616
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008617
8618 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008620$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008621 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008622 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008623else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008624
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008626/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008627
8628#include <stdlib.h>
8629#include <iconv.h>
8630extern
8631#ifdef __cplusplus
8632"C"
8633#endif
8634#if defined(__STDC__) || defined(__cplusplus)
8635size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8636#else
8637size_t iconv();
8638#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008639
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008640int
8641main ()
8642{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008643
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008644 ;
8645 return 0;
8646}
8647_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008648if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008649 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008650else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008651 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008652fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008654 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 +00008655fi
8656
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008657 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008659 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008660$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008661 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008662
8663cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008664#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008665_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008666
8667 fi
8668
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008669
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008671$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008672if ${am_cv_langinfo_codeset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008673 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008674else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008676/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008677#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008678int
8679main ()
8680{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008681char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008682 ;
8683 return 0;
8684}
8685_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008686if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008687 am_cv_langinfo_codeset=yes
8688else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008689 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008690fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008691rm -f core conftest.err conftest.$ac_objext \
8692 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008693
8694fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008696$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008697 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008698
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008699$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008700
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008701 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008702
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008703 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008704
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008706$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008707if ${am_cv_val_LC_MESSAGES+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008708 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008709else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008711/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008712#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008713int
8714main ()
8715{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008716return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008717 ;
8718 return 0;
8719}
8720_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008721if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008722 am_cv_val_LC_MESSAGES=yes
8723else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008724 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008725fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008726rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008728fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008730$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008731 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008732
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008733$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008734
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008735 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008736
8737 fi
8738
8739 for ac_prog in bison
8740do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008741 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008742set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008744$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008745if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008746 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008747else
8748 if test -n "$INTLBISON"; then
8749 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8750else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752for as_dir in $PATH
8753do
8754 IFS=$as_save_IFS
8755 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008756 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008758 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008760 break 2
8761 fi
8762done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008763 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008764IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008765
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008766fi
8767fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008768INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008769if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008771$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008772else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008774$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008775fi
8776
Theodore Ts'oe1052142006-10-21 21:46:47 -04008777
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008778 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008779done
8780
8781 if test -z "$INTLBISON"; then
8782 ac_verc_fail=yes
8783 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008785$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008786 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8787 case $ac_prog_version in
8788 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8789 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8790 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8791 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8792 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008794$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008795 fi
8796 if test $ac_verc_fail = yes; then
8797 INTLBISON=:
8798 fi
8799
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008800
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008801
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008802
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008803
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008804
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008805
8806
8807
8808
8809
8810
8811
8812
8813
8814
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008816$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008817 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008818if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008819 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008820else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008821 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008822fi
8823
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008825$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008826
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008827
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008828
8829
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008830 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008831 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008832
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008833 LIBINTL=
8834 LTLIBINTL=
8835 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008836
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008837 if test "$USE_NLS" = "yes"; then
8838 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008839
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008841$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008842
Theodore Ts'oe1052142006-10-21 21:46:47 -04008843# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008844if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008845 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008846else
8847 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008848fi
8849
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008851$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008852
8853 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8854 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008855
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008856
8857
8858
8859
8860
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008862$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008863if ${gt_cv_func_gnugettext1_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008864 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008865else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008867/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008868#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008869extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008870extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008871int
8872main ()
8873{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008874bindtextdomain ("", "");
8875return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008876 ;
8877 return 0;
8878}
8879_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008880if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008881 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008882else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008883 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008884fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008885rm -f core conftest.err conftest.$ac_objext \
8886 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008887fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008889$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008890
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008891 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008892
8893
8894
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008895 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008896
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008897 acl_save_prefix="$prefix"
8898 prefix="$acl_final_prefix"
8899 acl_save_exec_prefix="$exec_prefix"
8900 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008901
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008902 eval additional_includedir=\"$includedir\"
8903 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008904
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008905 exec_prefix="$acl_save_exec_prefix"
8906 prefix="$acl_save_prefix"
8907
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008908
Theodore Ts'oe1052142006-10-21 21:46:47 -04008909# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008910if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008911 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008912 if test "X$withval" = "Xno"; then
8913 use_additional=no
8914 else
8915 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008916
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008917 acl_save_prefix="$prefix"
8918 prefix="$acl_final_prefix"
8919 acl_save_exec_prefix="$exec_prefix"
8920 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008921
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008922 eval additional_includedir=\"$includedir\"
8923 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008924
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008925 exec_prefix="$acl_save_exec_prefix"
8926 prefix="$acl_save_prefix"
8927
8928 else
8929 additional_includedir="$withval/include"
8930 additional_libdir="$withval/lib"
8931 fi
8932 fi
8933
Theodore Ts'oe1052142006-10-21 21:46:47 -04008934fi
8935
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008936 LIBINTL=
8937 LTLIBINTL=
8938 INCINTL=
8939 rpathdirs=
8940 ltrpathdirs=
8941 names_already_handled=
8942 names_next_round='intl '
8943 while test -n "$names_next_round"; do
8944 names_this_round="$names_next_round"
8945 names_next_round=
8946 for name in $names_this_round; do
8947 already_handled=
8948 for n in $names_already_handled; do
8949 if test "$n" = "$name"; then
8950 already_handled=yes
8951 break
8952 fi
8953 done
8954 if test -z "$already_handled"; then
8955 names_already_handled="$names_already_handled $name"
8956 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8957 eval value=\"\$HAVE_LIB$uppername\"
8958 if test -n "$value"; then
8959 if test "$value" = yes; then
8960 eval value=\"\$LIB$uppername\"
8961 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8962 eval value=\"\$LTLIB$uppername\"
8963 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8964 else
8965 :
8966 fi
8967 else
8968 found_dir=
8969 found_la=
8970 found_so=
8971 found_a=
8972 if test $use_additional = yes; then
8973 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8974 found_dir="$additional_libdir"
8975 found_so="$additional_libdir/lib$name.$shlibext"
8976 if test -f "$additional_libdir/lib$name.la"; then
8977 found_la="$additional_libdir/lib$name.la"
8978 fi
8979 else
8980 if test -f "$additional_libdir/lib$name.$libext"; then
8981 found_dir="$additional_libdir"
8982 found_a="$additional_libdir/lib$name.$libext"
8983 if test -f "$additional_libdir/lib$name.la"; then
8984 found_la="$additional_libdir/lib$name.la"
8985 fi
8986 fi
8987 fi
8988 fi
8989 if test "X$found_dir" = "X"; then
8990 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008991
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008992 acl_save_prefix="$prefix"
8993 prefix="$acl_final_prefix"
8994 acl_save_exec_prefix="$exec_prefix"
8995 exec_prefix="$acl_final_exec_prefix"
8996 eval x=\"$x\"
8997 exec_prefix="$acl_save_exec_prefix"
8998 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008999
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009000 case "$x" in
9001 -L*)
9002 dir=`echo "X$x" | sed -e 's/^X-L//'`
9003 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9004 found_dir="$dir"
9005 found_so="$dir/lib$name.$shlibext"
9006 if test -f "$dir/lib$name.la"; then
9007 found_la="$dir/lib$name.la"
9008 fi
9009 else
9010 if test -f "$dir/lib$name.$libext"; then
9011 found_dir="$dir"
9012 found_a="$dir/lib$name.$libext"
9013 if test -f "$dir/lib$name.la"; then
9014 found_la="$dir/lib$name.la"
9015 fi
9016 fi
9017 fi
9018 ;;
9019 esac
9020 if test "X$found_dir" != "X"; then
9021 break
9022 fi
9023 done
9024 fi
9025 if test "X$found_dir" != "X"; then
9026 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9027 if test "X$found_so" != "X"; then
9028 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9029 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9030 else
9031 haveit=
9032 for x in $ltrpathdirs; do
9033 if test "X$x" = "X$found_dir"; then
9034 haveit=yes
9035 break
9036 fi
9037 done
9038 if test -z "$haveit"; then
9039 ltrpathdirs="$ltrpathdirs $found_dir"
9040 fi
9041 if test "$hardcode_direct" = yes; then
9042 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9043 else
9044 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9045 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9046 haveit=
9047 for x in $rpathdirs; do
9048 if test "X$x" = "X$found_dir"; then
9049 haveit=yes
9050 break
9051 fi
9052 done
9053 if test -z "$haveit"; then
9054 rpathdirs="$rpathdirs $found_dir"
9055 fi
9056 else
9057 haveit=
9058 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009059
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009060 acl_save_prefix="$prefix"
9061 prefix="$acl_final_prefix"
9062 acl_save_exec_prefix="$exec_prefix"
9063 exec_prefix="$acl_final_exec_prefix"
9064 eval x=\"$x\"
9065 exec_prefix="$acl_save_exec_prefix"
9066 prefix="$acl_save_prefix"
9067
9068 if test "X$x" = "X-L$found_dir"; then
9069 haveit=yes
9070 break
9071 fi
9072 done
9073 if test -z "$haveit"; then
9074 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9075 fi
9076 if test "$hardcode_minus_L" != no; then
9077 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9078 else
9079 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9080 fi
9081 fi
9082 fi
9083 fi
9084 else
9085 if test "X$found_a" != "X"; then
9086 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9087 else
9088 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9089 fi
9090 fi
9091 additional_includedir=
9092 case "$found_dir" in
9093 */lib | */lib/)
9094 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9095 additional_includedir="$basedir/include"
9096 ;;
9097 esac
9098 if test "X$additional_includedir" != "X"; then
9099 if test "X$additional_includedir" != "X/usr/include"; then
9100 haveit=
9101 if test "X$additional_includedir" = "X/usr/local/include"; then
9102 if test -n "$GCC"; then
9103 case $host_os in
9104 linux*) haveit=yes;;
9105 esac
9106 fi
9107 fi
9108 if test -z "$haveit"; then
9109 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009110
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009111 acl_save_prefix="$prefix"
9112 prefix="$acl_final_prefix"
9113 acl_save_exec_prefix="$exec_prefix"
9114 exec_prefix="$acl_final_exec_prefix"
9115 eval x=\"$x\"
9116 exec_prefix="$acl_save_exec_prefix"
9117 prefix="$acl_save_prefix"
9118
9119 if test "X$x" = "X-I$additional_includedir"; then
9120 haveit=yes
9121 break
9122 fi
9123 done
9124 if test -z "$haveit"; then
9125 if test -d "$additional_includedir"; then
9126 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9127 fi
9128 fi
9129 fi
9130 fi
9131 fi
9132 if test -n "$found_la"; then
9133 save_libdir="$libdir"
9134 case "$found_la" in
9135 */* | *\\*) . "$found_la" ;;
9136 *) . "./$found_la" ;;
9137 esac
9138 libdir="$save_libdir"
9139 for dep in $dependency_libs; do
9140 case "$dep" in
9141 -L*)
9142 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9143 if test "X$additional_libdir" != "X/usr/lib"; then
9144 haveit=
9145 if test "X$additional_libdir" = "X/usr/local/lib"; then
9146 if test -n "$GCC"; then
9147 case $host_os in
9148 linux*) haveit=yes;;
9149 esac
9150 fi
9151 fi
9152 if test -z "$haveit"; then
9153 haveit=
9154 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009155
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009156 acl_save_prefix="$prefix"
9157 prefix="$acl_final_prefix"
9158 acl_save_exec_prefix="$exec_prefix"
9159 exec_prefix="$acl_final_exec_prefix"
9160 eval x=\"$x\"
9161 exec_prefix="$acl_save_exec_prefix"
9162 prefix="$acl_save_prefix"
9163
9164 if test "X$x" = "X-L$additional_libdir"; then
9165 haveit=yes
9166 break
9167 fi
9168 done
9169 if test -z "$haveit"; then
9170 if test -d "$additional_libdir"; then
9171 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9172 fi
9173 fi
9174 haveit=
9175 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009176
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009177 acl_save_prefix="$prefix"
9178 prefix="$acl_final_prefix"
9179 acl_save_exec_prefix="$exec_prefix"
9180 exec_prefix="$acl_final_exec_prefix"
9181 eval x=\"$x\"
9182 exec_prefix="$acl_save_exec_prefix"
9183 prefix="$acl_save_prefix"
9184
9185 if test "X$x" = "X-L$additional_libdir"; then
9186 haveit=yes
9187 break
9188 fi
9189 done
9190 if test -z "$haveit"; then
9191 if test -d "$additional_libdir"; then
9192 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9193 fi
9194 fi
9195 fi
9196 fi
9197 ;;
9198 -R*)
9199 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9200 if test "$enable_rpath" != no; then
9201 haveit=
9202 for x in $rpathdirs; do
9203 if test "X$x" = "X$dir"; then
9204 haveit=yes
9205 break
9206 fi
9207 done
9208 if test -z "$haveit"; then
9209 rpathdirs="$rpathdirs $dir"
9210 fi
9211 haveit=
9212 for x in $ltrpathdirs; do
9213 if test "X$x" = "X$dir"; then
9214 haveit=yes
9215 break
9216 fi
9217 done
9218 if test -z "$haveit"; then
9219 ltrpathdirs="$ltrpathdirs $dir"
9220 fi
9221 fi
9222 ;;
9223 -l*)
9224 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9225 ;;
9226 *.la)
9227 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9228 ;;
9229 *)
9230 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9231 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9232 ;;
9233 esac
9234 done
9235 fi
9236 else
9237 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9238 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9239 fi
9240 fi
9241 fi
9242 done
9243 done
9244 if test "X$rpathdirs" != "X"; then
9245 if test -n "$hardcode_libdir_separator"; then
9246 alldirs=
9247 for found_dir in $rpathdirs; do
9248 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9249 done
9250 acl_save_libdir="$libdir"
9251 libdir="$alldirs"
9252 eval flag=\"$hardcode_libdir_flag_spec\"
9253 libdir="$acl_save_libdir"
9254 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9255 else
9256 for found_dir in $rpathdirs; do
9257 acl_save_libdir="$libdir"
9258 libdir="$found_dir"
9259 eval flag=\"$hardcode_libdir_flag_spec\"
9260 libdir="$acl_save_libdir"
9261 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9262 done
9263 fi
9264 fi
9265 if test "X$ltrpathdirs" != "X"; then
9266 for found_dir in $ltrpathdirs; do
9267 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9268 done
9269 fi
9270
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009272$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009273if ${gt_cv_func_gnugettext1_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009274 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009275else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009276 gt_save_CPPFLAGS="$CPPFLAGS"
9277 CPPFLAGS="$CPPFLAGS $INCINTL"
9278 gt_save_LIBS="$LIBS"
9279 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009281/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009282#include <libintl.h>
9283extern int _nl_msg_cat_cntr;
9284extern
9285#ifdef __cplusplus
9286"C"
9287#endif
9288const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009289int
9290main ()
9291{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009292bindtextdomain ("", "");
9293return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009294 ;
9295 return 0;
9296}
9297_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009298if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009299 gt_cv_func_gnugettext1_libintl=yes
9300else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009301 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009302fi
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'o2b5901d2004-11-19 17:06:47 -05009305 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9306 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009308/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009309#include <libintl.h>
9310extern int _nl_msg_cat_cntr;
9311extern
9312#ifdef __cplusplus
9313"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009314#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009315const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009316int
9317main ()
9318{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009319bindtextdomain ("", "");
9320return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009321 ;
9322 return 0;
9323}
9324_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009325if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009326 LIBINTL="$LIBINTL $LIBICONV"
9327 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9328 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009329
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009330fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009331rm -f core conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009333 fi
9334 CPPFLAGS="$gt_save_CPPFLAGS"
9335 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009336fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009338$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009339 fi
9340
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009341 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9342 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009343 && test "$PACKAGE" != gettext-runtime \
9344 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009345 gt_use_preinstalled_gnugettext=yes
9346 else
9347 LIBINTL=
9348 LTLIBINTL=
9349 INCINTL=
9350 fi
9351
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009352
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009353 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9354 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009355 fi
9356 fi
9357
9358 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009359 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009360 USE_INCLUDED_LIBINTL=yes
9361 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9362 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9363 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009364 fi
9365
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009366 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9367 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9368 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009369 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009370
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009371
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009372 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9373 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009374
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009375$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009376
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009377 else
9378 USE_NLS=no
9379 fi
9380 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009381
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009383$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009385$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009386 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009388$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009389 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9390 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9391 gt_source="external libintl"
9392 else
9393 gt_source="libc"
9394 fi
9395 else
9396 gt_source="included intl directory"
9397 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009399$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009400 fi
9401
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009402 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009403
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009404 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9405 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009407$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009409$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009410
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009411 for element in $INCINTL; do
9412 haveit=
9413 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009414
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009415 acl_save_prefix="$prefix"
9416 prefix="$acl_final_prefix"
9417 acl_save_exec_prefix="$exec_prefix"
9418 exec_prefix="$acl_final_exec_prefix"
9419 eval x=\"$x\"
9420 exec_prefix="$acl_save_exec_prefix"
9421 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009422
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009423 if test "X$x" = "X$element"; then
9424 haveit=yes
9425 break
9426 fi
9427 done
9428 if test -z "$haveit"; then
9429 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9430 fi
9431 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009432
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009433 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009434
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009435
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009436$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009437
9438
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009439$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009440
9441 fi
9442
9443 POSUB=po
9444 fi
9445
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009446
9447 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009448 BUILD_INCLUDED_LIBINTL=yes
9449 fi
9450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009451
9452
9453
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009454
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009455 nls_cv_header_intl=
9456 nls_cv_header_libgt=
9457
9458 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009459
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009460
9461 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009462
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009463
9464 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009465
9466
9467 if test "$USE_INCLUDED_LIBINTL" = yes; then
9468 INTLOBJS="\$(GETTOBJS)"
9469 fi
9470
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009471
9472 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009473
9474
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009475
9476 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009477
9478
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009479
9480
9481
9482
9483
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009485$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9486set x ${MAKE-make}
9487ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009488if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009489 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009490else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009491 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009492SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009493all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009494 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009495_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009496# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009497case `${MAKE-make} -f conftest.make 2>/dev/null` in
9498 *@@@%%%=?*=@@@%%%*)
9499 eval ac_cv_prog_make_${ac_make}_set=yes;;
9500 *)
9501 eval ac_cv_prog_make_${ac_make}_set=no;;
9502esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009503rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009504fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009505if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009507$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009508 SET_MAKE=
9509else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009511$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009512 SET_MAKE="MAKE=${MAKE-make}"
9513fi
9514
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009516$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009517if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009518 $as_echo_n "(cached) " >&6
9519else
9520 _cv_gnu_make_command='' ;
9521 for a in "$MAKE" make gmake gnumake ; do
9522 if test -z "$a" ; then continue ; fi ;
9523 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9524 _cv_gnu_make_command=$a ;
9525 break;
9526 fi
9527 done ;
9528
9529fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009531$as_echo "$_cv_gnu_make_command" >&6; } ;
9532 if test "x$_cv_gnu_make_command" != "x" ; then
9533 ifGNUmake='' ;
9534 ifNotGNUmake='#' ;
9535 else
9536 ifGNUmake='#' ;
9537 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009539$as_echo "\"Not found\"" >&6; };
9540 fi
9541
9542
9543
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009544# Extract the first word of "ln", so it can be a program name with args.
9545set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009547$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009548if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009549 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009550else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009551 case $LN in
9552 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009553 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9554 ;;
9555 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557for as_dir in $PATH
9558do
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009561 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009563 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009565 break 2
9566 fi
9567done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009568 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009569IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009570
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009571 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9572 ;;
9573esac
9574fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009575LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009576if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009578$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009579else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009581$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009582fi
9583
Theodore Ts'oe1052142006-10-21 21:46:47 -04009584
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009586$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009587LN_S=$as_ln_s
9588if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009590$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009591else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009593$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009594fi
9595
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009596# Extract the first word of "mv", so it can be a program name with args.
9597set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009599$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009600if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009601 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009602else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009603 case $MV in
9604 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009605 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9606 ;;
9607 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609for as_dir in $PATH
9610do
9611 IFS=$as_save_IFS
9612 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009613 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009615 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009617 break 2
9618 fi
9619done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009620 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009621IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009622
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009623 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9624 ;;
9625esac
9626fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009627MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009628if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009630$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009631else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009633$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009634fi
9635
Theodore Ts'oe1052142006-10-21 21:46:47 -04009636
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009637# Extract the first word of "cp", so it can be a program name with args.
9638set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009640$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009641if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009642 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009643else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009644 case $CP in
9645 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009646 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9647 ;;
9648 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650for as_dir in $PATH
9651do
9652 IFS=$as_save_IFS
9653 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009654 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009656 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009658 break 2
9659 fi
9660done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009661 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009662IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009663
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009664 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9665 ;;
9666esac
9667fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009668CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009669if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009671$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009672else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009674$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009675fi
9676
Theodore Ts'oe1052142006-10-21 21:46:47 -04009677
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009678# Extract the first word of "rm", so it can be a program name with args.
9679set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009681$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009682if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009683 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009684else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009685 case $RM in
9686 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009687 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9688 ;;
9689 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691for as_dir in $PATH
9692do
9693 IFS=$as_save_IFS
9694 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009695 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009697 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009699 break 2
9700 fi
9701done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009702 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009703IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009704
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009705 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9706 ;;
9707esac
9708fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009709RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009710if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009712$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009713else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009715$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009716fi
9717
Theodore Ts'oe1052142006-10-21 21:46:47 -04009718
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009719# Extract the first word of "chmod", so it can be a program name with args.
9720set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009722$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009723if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009724 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009725else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009726 case $CHMOD in
9727 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009728 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9729 ;;
9730 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732for as_dir in $PATH
9733do
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009736 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009738 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009740 break 2
9741 fi
9742done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009743 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009744IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009745
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009746 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9747 ;;
9748esac
9749fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009750CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009751if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009753$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009754else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009756$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009757fi
9758
Theodore Ts'oe1052142006-10-21 21:46:47 -04009759
Theodore Ts'o32237012005-01-17 19:13:39 -05009760for ac_prog in gawk mawk nawk awk
9761do
9762 # Extract the first word of "$ac_prog", so it can be a program name with args.
9763set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009765$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009766if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009767 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009768else
Theodore Ts'o32237012005-01-17 19:13:39 -05009769 if test -n "$AWK"; then
9770 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9771else
9772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009773for as_dir in $PATH
9774do
9775 IFS=$as_save_IFS
9776 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009777 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -05009779 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009781 break 2
9782 fi
9783done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009784 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009785IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009786
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009787fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009788fi
9789AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009790if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009792$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009793else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009795$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009796fi
9797
Theodore Ts'oe1052142006-10-21 21:46:47 -04009798
Theodore Ts'o32237012005-01-17 19:13:39 -05009799 test -n "$AWK" && break
9800done
9801
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009803$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009804if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009805 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009806else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009807 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9808 then ac_cv_path_EGREP="$GREP -E"
9809 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009810 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009811 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009812 # Loop through the user's path and test for each of PROGNAME-LIST
9813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009814for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9815do
9816 IFS=$as_save_IFS
9817 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009818 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009819 for ac_exec_ext in '' $ac_executable_extensions; do
9820 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009821 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009822# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009823 # Check for GNU $ac_path_EGREP
9824case `"$ac_path_EGREP" --version 2>&1` in
9825*GNU*)
9826 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9827*)
9828 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009829 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009830 while :
9831 do
9832 cat "conftest.in" "conftest.in" >"conftest.tmp"
9833 mv "conftest.tmp" "conftest.in"
9834 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009835 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009836 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009838 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009839 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9840 # Best one so far, save it but keep looking for a better one
9841 ac_cv_path_EGREP="$ac_path_EGREP"
9842 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009843 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009844 # 10*(2^10) chars as input seems more than enough
9845 test $ac_count -gt 10 && break
9846 done
9847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9848esac
9849
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009850 $ac_path_EGREP_found && break 3
9851 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009852 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009853 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009854IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009855 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009856 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 +01009857 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009858else
9859 ac_cv_path_EGREP=$EGREP
9860fi
9861
Theodore Ts'oe1052142006-10-21 21:46:47 -04009862 fi
9863fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009865$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009866 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009867
9868
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009869# Extract the first word of "sed", so it can be a program name with args.
9870set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009872$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009873if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009874 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009875else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009876 case $SED in
9877 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009878 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9879 ;;
9880 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9882for as_dir in $PATH
9883do
9884 IFS=$as_save_IFS
9885 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009886 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009888 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009890 break 2
9891 fi
9892done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009893 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009894IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009895
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009896 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9897 ;;
9898esac
9899fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009900SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009901if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009903$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009904else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009906$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009907fi
9908
Theodore Ts'oe1052142006-10-21 21:46:47 -04009909
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009910# Extract the first word of "perl", so it can be a program name with args.
9911set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009913$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009914if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009915 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009916else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009917 case $PERL in
9918 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009919 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9920 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009921 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923for as_dir in $PATH
9924do
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009927 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009929 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009931 break 2
9932 fi
9933done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009934 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009935IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009936
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009937 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9938 ;;
9939esac
9940fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009941PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009942if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009944$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009945else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009947$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009948fi
9949
Theodore Ts'oe1052142006-10-21 21:46:47 -04009950
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009951# Extract the first word of "ldconfig", so it can be a program name with args.
9952set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009954$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009955if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009956 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009957else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009958 case $LDCONFIG in
9959 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009960 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9961 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009962 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964for as_dir in $PATH
9965do
9966 IFS=$as_save_IFS
9967 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009968 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009970 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009972 break 2
9973 fi
9974done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009975 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009976IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009977
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009978 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9979 ;;
9980esac
9981fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009982LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009983if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009985$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009986else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009988$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009989fi
9990
Theodore Ts'oe1052142006-10-21 21:46:47 -04009991
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009992if test -n "$ac_tool_prefix"; then
9993 # 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 +00009994set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009996$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009997if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009998 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009999else
10000 if test -n "$AR"; then
10001 ac_cv_prog_AR="$AR" # Let the user override the test.
10002else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004for as_dir in $PATH
10005do
10006 IFS=$as_save_IFS
10007 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010008 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010010 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010012 break 2
10013 fi
10014done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010015 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010016IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010017
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010018fi
10019fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010020AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010021if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010023$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010024else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010026$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010027fi
10028
Theodore Ts'oe1052142006-10-21 21:46:47 -040010029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010030fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010031if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010032 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010033 # Extract the first word of "ar", so it can be a program name with args.
10034set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010036$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010037if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010038 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010039else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010040 if test -n "$ac_ct_AR"; then
10041 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010042else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044for as_dir in $PATH
10045do
10046 IFS=$as_save_IFS
10047 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010048 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010050 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010052 break 2
10053 fi
10054done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010055 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010056IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010057
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010058fi
10059fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010060ac_ct_AR=$ac_cv_prog_ac_ct_AR
10061if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010063$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010064else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010066$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010067fi
10068
Theodore Ts'oe1052142006-10-21 21:46:47 -040010069 if test "x$ac_ct_AR" = x; then
10070 AR="ar"
10071 else
10072 case $cross_compiling:$ac_tool_warned in
10073yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010074{ $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 +010010075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010076ac_tool_warned=yes ;;
10077esac
10078 AR=$ac_ct_AR
10079 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010080else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010081 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010082fi
10083
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010084if test -n "$ac_tool_prefix"; then
10085 # 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 +000010086set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010088$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010089if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010090 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010091else
10092 if test -n "$RANLIB"; then
10093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10094else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096for as_dir in $PATH
10097do
10098 IFS=$as_save_IFS
10099 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010100 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010102 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010104 break 2
10105 fi
10106done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010107 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010108IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010109
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010110fi
10111fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010112RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010113if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010115$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010116else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010118$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010119fi
10120
Theodore Ts'oe1052142006-10-21 21:46:47 -040010121
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010122fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010123if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010124 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010125 # Extract the first word of "ranlib", so it can be a program name with args.
10126set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010128$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010129if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010130 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010131else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010132 if test -n "$ac_ct_RANLIB"; then
10133 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010134else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136for as_dir in $PATH
10137do
10138 IFS=$as_save_IFS
10139 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010140 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010142 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010144 break 2
10145 fi
10146done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010147 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010148IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010149
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010150fi
10151fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010152ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10153if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010155$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010156else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010158$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010159fi
10160
Theodore Ts'oe1052142006-10-21 21:46:47 -040010161 if test "x$ac_ct_RANLIB" = x; then
10162 RANLIB=":"
10163 else
10164 case $cross_compiling:$ac_tool_warned in
10165yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010166{ $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 +010010167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010168ac_tool_warned=yes ;;
10169esac
10170 RANLIB=$ac_ct_RANLIB
10171 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010172else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010173 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010174fi
10175
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010176if test -n "$ac_tool_prefix"; then
10177 # 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 +000010178set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010180$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010181if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010182 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010183else
10184 if test -n "$STRIP"; then
10185 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10186else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
10189do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010192 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010194 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010196 break 2
10197 fi
10198done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010199 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010200IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010201
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010202fi
10203fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010204STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010205if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010207$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010208else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010210$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010211fi
10212
Theodore Ts'oe1052142006-10-21 21:46:47 -040010213
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010214fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010215if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010216 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010217 # Extract the first word of "strip", so it can be a program name with args.
10218set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010220$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010221if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010222 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010223else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010224 if test -n "$ac_ct_STRIP"; then
10225 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010226else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228for as_dir in $PATH
10229do
10230 IFS=$as_save_IFS
10231 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010232 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010234 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010236 break 2
10237 fi
10238done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010239 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010240IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010241
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010242fi
10243fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010244ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10245if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010247$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010248else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010250$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010251fi
10252
Theodore Ts'oe1052142006-10-21 21:46:47 -040010253 if test "x$ac_ct_STRIP" = x; then
10254 STRIP=":"
10255 else
10256 case $cross_compiling:$ac_tool_warned in
10257yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010258{ $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 +010010259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010260ac_tool_warned=yes ;;
10261esac
10262 STRIP=$ac_ct_STRIP
10263 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010264else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010265 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010266fi
10267
Manish Katiyar7321d942008-04-14 17:20:03 +053010268# Extract the first word of "makeinfo", so it can be a program name with args.
10269set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010271$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010272if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010273 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053010274else
10275 if test -n "$MAKEINFO"; then
10276 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10277else
10278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279for as_dir in $PATH
10280do
10281 IFS=$as_save_IFS
10282 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010283 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053010285 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053010287 break 2
10288 fi
10289done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010290 done
Manish Katiyar7321d942008-04-14 17:20:03 +053010291IFS=$as_save_IFS
10292
10293fi
10294fi
10295MAKEINFO=$ac_cv_prog_MAKEINFO
10296if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010298$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010299else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010301$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010302fi
10303
10304
10305if test "_$MAKEINFO" = "_"; then
10306 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10307else
10308 case "$MAKEINFO" in
10309 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010311*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010312$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010313*** Makeinfo is missing. Info documentation will not be built." >&2;}
10314 ;;
10315 *)
10316 ;;
10317 esac
10318fi
10319
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010320
Theodore Ts'o6c133521999-07-03 20:37:03 +000010321# See if we need a separate native compiler.
10322if test $cross_compiling = no; then
10323 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010324
Theodore Ts'o6c133521999-07-03 20:37:03 +000010325else
10326 for ac_prog in gcc cc
10327do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010328 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010329set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010331$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010332if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010333 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010334else
10335 if test -n "$BUILD_CC"; then
10336 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10337else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10339for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010340do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010341 IFS=$as_save_IFS
10342 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010343 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010345 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010347 break 2
10348 fi
10349done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010350 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010351IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010352
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010353fi
10354fi
10355BUILD_CC=$ac_cv_prog_BUILD_CC
10356if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010358$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010359else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010361$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010362fi
10363
Theodore Ts'oe1052142006-10-21 21:46:47 -040010364
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010365 test -n "$BUILD_CC" && break
10366done
10367
10368fi
Mike Frysinger677fc912012-03-06 20:13:54 -050010369for 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 -050010370do :
10371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10372ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010373if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010374 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010375#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010376_ACEOF
10377
10378fi
10379
10380done
10381
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010382for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010383do :
10384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10385ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010386#if HAVE_SYS_QUEUE_H
10387#include <sys/queue.h>
10388#endif
10389
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010390"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010391if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010392 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010393#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010394_ACEOF
10395
10396fi
10397
10398done
10399
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010400for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010401do :
10402 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010403#if HAVE_SYS_TYPES_H
10404#include <sys/types.h>
10405#endif
10406#if HAVE_SYS_SOCKET
10407#include <sys/socket.h>
10408#endif
10409
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010410"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010411if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010412 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010413#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010414_ACEOF
10415
10416fi
10417
10418done
10419
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010420for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010421do :
10422 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010423if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010424 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010425#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010426_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010427
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010428ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010429if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010430
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010431$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010432
10433fi
10434
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010435fi
10436done
10437
10438
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010439ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10440"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010441if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010442
10443$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010444
10445fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010446
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010447ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10448"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010449if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010450
10451$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010452
Theodore Ts'offf45482003-04-13 00:44:19 -040010453fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010454
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010455ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10456"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010457if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010458
10459$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010460
10461fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010462
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010463ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010464 #define _LARGEFILE64_SOURCE
10465 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010466"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010467if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010468
10469$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010470
10471fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010472
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010473# The cast to long int works around a bug in the HP C Compiler
10474# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10475# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10476# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010478$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010479if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010480 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010481else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010482 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 -050010483
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010484else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010485 if test "$ac_cv_type_short" = yes; then
10486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010488as_fn_error 77 "cannot compute sizeof (short)
10489See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010490 else
10491 ac_cv_sizeof_short=0
10492 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010493fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010494
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010495fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010497$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010498
10499
10500
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010501cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010502#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010503_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010504
10505
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010506# The cast to long int works around a bug in the HP C Compiler
10507# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10508# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10509# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010511$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010512if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010513 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010514else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010515 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 -050010516
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010517else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010518 if test "$ac_cv_type_int" = yes; then
10519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010521as_fn_error 77 "cannot compute sizeof (int)
10522See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010523 else
10524 ac_cv_sizeof_int=0
10525 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010526fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010527
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010528fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010530$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010531
10532
10533
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010534cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010535#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010536_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010537
10538
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010539# The cast to long int works around a bug in the HP C Compiler
10540# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10541# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10542# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010544$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010545if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010546 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010547else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010548 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 -050010549
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010550else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010551 if test "$ac_cv_type_long" = yes; then
10552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010554as_fn_error 77 "cannot compute sizeof (long)
10555See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010556 else
10557 ac_cv_sizeof_long=0
10558 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010559fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010560
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010561fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010563$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010564
10565
10566
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010567cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010568#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010569_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010570
10571
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010572# The cast to long int works around a bug in the HP C Compiler
10573# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10574# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10575# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010577$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010578if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010579 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010580else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010581 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 -050010582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010583else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010584 if test "$ac_cv_type_long_long" = yes; then
10585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010587as_fn_error 77 "cannot compute sizeof (long long)
10588See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010589 else
10590 ac_cv_sizeof_long_long=0
10591 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010592fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010594fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010596$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010597
10598
10599
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010600cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010601#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010602_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010603
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010604
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040010605# The cast to long int works around a bug in the HP C Compiler
10606# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10607# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10608# This bug is HP SR number 8606223364.
10609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10610$as_echo_n "checking size of off_t... " >&6; }
10611if ${ac_cv_sizeof_off_t+:} false; then :
10612 $as_echo_n "(cached) " >&6
10613else
10614 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10615
10616else
10617 if test "$ac_cv_type_off_t" = yes; then
10618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10620as_fn_error 77 "cannot compute sizeof (off_t)
10621See \`config.log' for more details" "$LINENO" 5; }
10622 else
10623 ac_cv_sizeof_off_t=0
10624 fi
10625fi
10626
10627fi
10628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10629$as_echo "$ac_cv_sizeof_off_t" >&6; }
10630
10631
10632
10633cat >>confdefs.h <<_ACEOF
10634#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10635_ACEOF
10636
10637
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010638SIZEOF_SHORT=$ac_cv_sizeof_short
10639SIZEOF_INT=$ac_cv_sizeof_int
10640SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010641SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040010642SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10643
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010644
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010645
10646
10647
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010649$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010650if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010651 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010652else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010653 ac_cv_c_bigendian=unknown
10654 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010656/* end confdefs.h. */
10657#ifndef __APPLE_CC__
10658 not a universal capable compiler
10659 #endif
10660 typedef int dummy;
10661
10662_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010663if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010664
10665 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010666 # there are at least two -arch flags with different values.
10667 ac_arch=
10668 ac_prev=
10669 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10670 if test -n "$ac_prev"; then
10671 case $ac_word in
10672 i?86 | x86_64 | ppc | ppc64)
10673 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10674 ac_arch=$ac_word
10675 else
10676 ac_cv_c_bigendian=universal
10677 break
10678 fi
10679 ;;
10680 esac
10681 ac_prev=
10682 elif test "x$ac_word" = "x-arch"; then
10683 ac_prev=arch
10684 fi
10685 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010686fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10688 if test $ac_cv_c_bigendian = unknown; then
10689 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010691/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010692#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010693 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010694
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010695int
10696main ()
10697{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010698#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10699 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10700 && LITTLE_ENDIAN)
10701 bogus endian macros
10702 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010703
10704 ;
10705 return 0;
10706}
10707_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010708if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010709 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010711/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010712#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010713 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010714
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010715int
10716main ()
10717{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010718#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010719 not big endian
10720 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010721
10722 ;
10723 return 0;
10724}
10725_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010726if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010727 ac_cv_c_bigendian=yes
10728else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010729 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010730fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010732fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10734 fi
10735 if test $ac_cv_c_bigendian = unknown; then
10736 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010738/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010739#include <limits.h>
10740
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010741int
10742main ()
10743{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010744#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10745 bogus endian macros
10746 #endif
10747
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010748 ;
10749 return 0;
10750}
10751_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010752if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010753 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010755/* end confdefs.h. */
10756#include <limits.h>
10757
10758int
10759main ()
10760{
10761#ifndef _BIG_ENDIAN
10762 not big endian
10763 #endif
10764
10765 ;
10766 return 0;
10767}
10768_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010769if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010770 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010771else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010772 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010773fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010775fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10777 fi
10778 if test $ac_cv_c_bigendian = unknown; then
10779 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010780 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010781 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010783/* end confdefs.h. */
10784short int ascii_mm[] =
10785 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10786 short int ascii_ii[] =
10787 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10788 int use_ascii (int i) {
10789 return ascii_mm[i] + ascii_ii[i];
10790 }
10791 short int ebcdic_ii[] =
10792 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10793 short int ebcdic_mm[] =
10794 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10795 int use_ebcdic (int i) {
10796 return ebcdic_mm[i] + ebcdic_ii[i];
10797 }
10798 extern int foo;
10799
10800int
10801main ()
10802{
10803return use_ascii (foo) == use_ebcdic (foo);
10804 ;
10805 return 0;
10806}
10807_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010808if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010809 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10810 ac_cv_c_bigendian=yes
10811 fi
10812 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10813 if test "$ac_cv_c_bigendian" = unknown; then
10814 ac_cv_c_bigendian=no
10815 else
10816 # finding both strings is unlikely to happen, but who knows?
10817 ac_cv_c_bigendian=unknown
10818 fi
10819 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010820fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010822else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010824/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010825$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010826int
10827main ()
10828{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010829
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010830 /* Are we little or big endian? From Harbison&Steele. */
10831 union
10832 {
10833 long int l;
10834 char c[sizeof (long int)];
10835 } u;
10836 u.l = 1;
10837 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010838
10839 ;
10840 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010841}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010842_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010843if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010844 ac_cv_c_bigendian=no
10845else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010846 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010847fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10849 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010850fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010851
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010852 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010853fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010855$as_echo "$ac_cv_c_bigendian" >&6; }
10856 case $ac_cv_c_bigendian in #(
10857 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010858 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010859;; #(
10860 no)
10861 ;; #(
10862 universal)
10863
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010864$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010865
10866 ;; #(
10867 *)
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010868 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010869 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010870 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010871
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010872BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010873ASM_TYPES_HEADER=./asm_types.h
10874
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010875echo "/* These defines are needed for the public ext2fs.h header file */" \
10876 > public_config.h
10877if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10878 uniq tmp_config.$$ >> public_config.h
10879else
10880 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10881fi
10882if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10883 uniq tmp_config.$$ >> public_config.h
10884else
10885 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10886fi
10887rm -f tmp_config.$$
10888PUBLIC_CONFIG_HEADER=./public_config.h
10889
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010890for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010891do :
10892 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 -040010893if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010894 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010895#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010896_ACEOF
10897
10898fi
10899
Theodore Ts'o0c193f82003-08-01 14:26:23 -040010900done
10901
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010902ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010903if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010904
10905cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010906#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010907_ACEOF
10908
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010909
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010910fi
10911
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010912{ $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 +010010913$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010914if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010915 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010916else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010918/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010919#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010920int
10921main ()
10922{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010923struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010924 ;
10925 return 0;
10926}
10927_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010928if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010929 e2fsprogs_cv_struct_st_flags=yes
10930else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010931 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010932fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934fi
10935
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010937$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010938if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010940$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010941 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010942 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010943else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010945/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010946#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010947int
10948main ()
10949{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010950struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010951 ;
10952 return 0;
10953}
10954_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010955if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010956 e2fsprogs_cv_struct_st_flags_immut=yes
10957else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010958 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010959fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961fi
10962
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010964$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010965 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010966
10967$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010968
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010969 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010970fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010971ac_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 -050010972 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010973"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010974if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010975
10976cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010977#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010978_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010979
10980fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010981
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010982if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010984$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010985if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010986 $as_echo_n "(cached) " >&6
10987else
10988 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010990/* end confdefs.h. */
10991
10992/* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
10995#ifdef __cplusplus
10996extern "C"
10997#endif
10998char blkid_probe_all ();
10999int
11000main ()
11001{
11002return blkid_probe_all ();
11003 ;
11004 return 0;
11005}
11006_ACEOF
11007for ac_lib in '' blkid; do
11008 if test -z "$ac_lib"; then
11009 ac_res="none required"
11010 else
11011 ac_res=-l$ac_lib
11012 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11013 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011014 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011015 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011016fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011017rm -f core conftest.err conftest.$ac_objext \
11018 conftest$ac_exeext
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011019 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011020 break
11021fi
11022done
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011023if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011024
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011025else
11026 ac_cv_search_blkid_probe_all=no
11027fi
11028rm conftest.$ac_ext
11029LIBS=$ac_func_search_save_LIBS
11030fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011032$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11033ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011034if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11036
11037fi
11038
11039fi
Theodore Ts'o1ad31742013-06-16 14:34:59 -040011040for 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 secure_getenv setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011041do :
11042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11043ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011044if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011045 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011046#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011047_ACEOF
11048
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011049fi
11050done
11051
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011052SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011054$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011055if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011056 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011057else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011058 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011059LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011061/* end confdefs.h. */
11062
Theodore Ts'oe1052142006-10-21 21:46:47 -040011063/* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011066#ifdef __cplusplus
11067extern "C"
11068#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011069char socket ();
11070int
11071main ()
11072{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011073return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011074 ;
11075 return 0;
11076}
11077_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011078if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011079 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011080else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011081 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011082fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011083rm -f core conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011085LIBS=$ac_check_lib_save_LIBS
11086fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011088$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011089if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011090 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011091fi
11092
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011093
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011095$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011096if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011097 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011098else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011100/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011101#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011102
11103_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011105 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011106 ac_cv_have_optreset=yes
11107else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011108 ac_cv_have_optreset=no
11109fi
11110rm -f conftest*
11111
11112fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011114$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011115if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011116
11117$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011118
11119fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011120
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011121SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011122ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011123if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011124
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011125else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011127$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011128if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011129 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011130else
11131 ac_check_lib_save_LIBS=$LIBS
11132LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011134/* end confdefs.h. */
11135
11136/* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11139#ifdef __cplusplus
11140extern "C"
11141#endif
11142char sem_init ();
11143int
11144main ()
11145{
11146return sem_init ();
11147 ;
11148 return 0;
11149}
11150_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011151if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011152 ac_cv_lib_pthread_sem_init=yes
11153else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011154 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011155fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011156rm -f core conftest.err conftest.$ac_objext \
11157 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011158LIBS=$ac_check_lib_save_LIBS
11159fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011161$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011162if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011163 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011164
11165 SEM_INIT_LIB=-lpthread
11166else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011168$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011169if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011170 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011171else
11172 ac_check_lib_save_LIBS=$LIBS
11173LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011175/* end confdefs.h. */
11176
11177/* Override any GCC internal prototype to avoid an error.
11178 Use char because int might match the return type of a GCC
11179 builtin and then its argument prototype would still apply. */
11180#ifdef __cplusplus
11181extern "C"
11182#endif
11183char sem_init ();
11184int
11185main ()
11186{
11187return sem_init ();
11188 ;
11189 return 0;
11190}
11191_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011192if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011193 ac_cv_lib_rt_sem_init=yes
11194else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011195 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011196fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011197rm -f core conftest.err conftest.$ac_objext \
11198 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011199LIBS=$ac_check_lib_save_LIBS
11200fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011202$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011203if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011204 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011205
11206 SEM_INIT_LIB=-lrt
11207else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011209$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011210if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011211 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011212else
11213 ac_check_lib_save_LIBS=$LIBS
11214LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011216/* end confdefs.h. */
11217
11218/* Override any GCC internal prototype to avoid an error.
11219 Use char because int might match the return type of a GCC
11220 builtin and then its argument prototype would still apply. */
11221#ifdef __cplusplus
11222extern "C"
11223#endif
11224char sem_init ();
11225int
11226main ()
11227{
11228return sem_init ();
11229 ;
11230 return 0;
11231}
11232_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011233if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011234 ac_cv_lib_posix4_sem_init=yes
11235else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011236 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011237fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011238rm -f core conftest.err conftest.$ac_objext \
11239 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011240LIBS=$ac_check_lib_save_LIBS
11241fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011243$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011244if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011245 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011246
11247 SEM_INIT_LIB=-lposix4
11248fi
11249
11250fi
11251
11252fi
11253
11254fi
11255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011257$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040011258if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011259 UNI_DIFF_OPTS=-u
11260else
11261 UNI_DIFF_OPTS=-c
11262fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011264$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011265
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011266case "$host_os" in
11267linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011268
11269$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011270
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011271 ;;
11272esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011273LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011274CYGWIN_CMT="#"
11275UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011276case "$host_os" in
11277linux*)
11278 LINUX_CMT=
11279 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040011280cygwin)
11281 CYGWIN_CMT=
11282 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011283 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011284esac
11285
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011286
11287
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011288case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011289linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011290 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11291 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011292 { $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 +010011293$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011294 fi
11295 ;;
11296esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011297case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011298linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011299 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011300 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011301 { $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 +010011302$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011303 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011305$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011306 mandir=/usr/share/man
11307 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011308 fi
11309;;
11310esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011311if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000011312 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011313 root_prefix="$ac_default_prefix"
11314 else
11315 root_prefix="$prefix"
11316 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040011317 root_bindir=$bindir
11318 root_sbindir=$sbindir
11319 root_libdir=$libdir
11320 root_sysconfdir=$sysconfdir
11321else
11322 root_bindir='${root_prefix}/bin'
11323 root_sbindir='${root_prefix}/sbin'
11324 root_libdir='${root_prefix}/lib'
11325 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011326fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011327if test "$bindir" != '${exec_prefix}/bin'; then
11328 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011330$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011331fi
11332if test "$sbindir" != '${exec_prefix}/sbin'; then
11333 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011335$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011336fi
11337if test "$libdir" != '${exec_prefix}/lib'; then
11338 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011340$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011341fi
11342if test "$sysconfdir" != '${prefix}/etc'; then
11343 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011345$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011346fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011347
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011348
11349
11350
11351
Theodore Ts'o55e00a22011-09-18 23:53:23 -040011352
11353# Check whether --with-multiarch was given.
11354if test "${with_multiarch+set}" = set; then :
11355 withval=$with_multiarch; libdir=$libdir/$withval
11356root_libdir=$root_libdir/$withval
11357
11358fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050011359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11360$as_echo_n "checking whether we can link with -static... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011361if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011362 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000011363else
11364 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011366/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000011367#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011368int
11369main ()
11370{
Theodore Ts'oae851481997-04-29 18:13:24 +000011371fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011372 ;
11373 return 0;
11374}
11375_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011376if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000011377 ac_cv_e2fsprogs_use_static=yes
11378else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011379 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000011380fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011381rm -f core conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000011383LDFLAGS=$SAVE_LDFLAGS
11384fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011385
Theodore Ts'odefde781999-01-04 07:39:19 +000011386case "$host_os" in
11387solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011388 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000011389;;
11390esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011392$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000011393LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000011394if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011395 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000011396fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011397
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011398case "$host_os" in
11399darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011401$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011402
11403$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011404
11405 ;;
11406esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011407SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11408ET_DIR=`cd ${srcdir}/lib/et; pwd`
11409
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011410
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011411if test "$cross_compiling" = yes ; then
11412 DO_TEST_SUITE=
11413else
11414 DO_TEST_SUITE=check
11415fi
11416
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011417INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11418if test -n "$CPPFLAGS" ; then
11419 INCLUDES="$INCLUDES $CPPFLAGS"
11420fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011421if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011422 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011423fi
11424
Theodore Ts'odd947da2005-11-09 18:37:07 -040011425if test $cross_compiling = no; then
Theodore Ts'oc1986ec2012-06-13 15:29:13 -040011426 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040011427 BUILD_LDFLAGS="$LDFLAGS"
11428else
11429 BUILD_CFLAGS=
11430 BUILD_LDFLAGS=
11431fi
11432
11433
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011434test -d lib || mkdir lib
11435test -d include || mkdir include
11436test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000011437test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050011438for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040011439 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040011440 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11441 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011442 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070011443 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050011444 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11445 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050011446 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011447 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020011448 resize/Makefile doc/Makefile intl/Makefile \
11449 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011450 if test -d `dirname ${srcdir}/$i` ; then
11451 outlist="$outlist $i"
11452 fi
11453done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011454ac_config_files="$ac_config_files $outlist"
11455
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011456cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011457# This file is a shell script that caches the results of configure
11458# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011459# scripts and configure runs, see configure's option --config-cache.
11460# It is not useful on other systems. If it contains results you don't
11461# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011462#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011463# config.status only pays attention to the cache file if you give it
11464# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011465#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011466# `ac_cv_env_foo' variables (set or unset) will be overridden when
11467# loading this file, other *unset* `ac_cv_foo' will be assigned the
11468# following values.
11469
11470_ACEOF
11471
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011472# The following way of writing the cache mishandles newlines in values,
11473# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011474# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011475# Ultrix sh set writes to stderr and can't be redirected directly,
11476# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011477(
11478 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11479 eval ac_val=\$$ac_var
11480 case $ac_val in #(
11481 *${as_nl}*)
11482 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011483 *_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 +010011484$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011485 esac
11486 case $ac_var in #(
11487 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011488 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011489 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011490 esac ;;
11491 esac
11492 done
11493
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011494 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011495 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11496 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011497 # `set' does not quote correctly, so add quotes: double-quote
11498 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011499 sed -n \
11500 "s/'/'\\\\''/g;
11501 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011502 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011503 *)
11504 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011505 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011506 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011507 esac |
11508 sort
11509) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011510 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011511 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011512 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011513 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011514 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11515 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011516 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11517 :end' >>confcache
11518if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11519 if test -w "$cache_file"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011520 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011521 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011522$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011523 if test ! -f "$cache_file" || test -h "$cache_file"; then
11524 cat confcache >"$cache_file"
11525 else
11526 case $cache_file in #(
11527 */* | ?:*)
11528 mv -f confcache "$cache_file"$$ &&
11529 mv -f "$cache_file"$$ "$cache_file" ;; #(
11530 *)
11531 mv -f confcache "$cache_file" ;;
11532 esac
11533 fi
11534 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011535 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011536 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011537$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011538 fi
11539fi
11540rm -f confcache
11541
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011542test "x$prefix" = xNONE && prefix=$ac_default_prefix
11543# Let make expand exec_prefix.
11544test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11545
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011546DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011547
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011548ac_libobjs=
11549ac_ltlibobjs=
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011550U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011551for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11552 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011553 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011554 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011555 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11556 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011557 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11558 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011559done
11560LIBOBJS=$ac_libobjs
11561
11562LTLIBOBJS=$ac_ltlibobjs
11563
11564
11565
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011566
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011567: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011568ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011569ac_clean_files_save=$ac_clean_files
11570ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011571{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011572$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011573as_write_fail=0
11574cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011575#! $SHELL
11576# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011577# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011578# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011579# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011580
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011581debug=false
11582ac_cs_recheck=false
11583ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011584
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011585SHELL=\${CONFIG_SHELL-$SHELL}
11586export SHELL
11587_ASEOF
11588cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11589## -------------------- ##
11590## M4sh Initialization. ##
11591## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011592
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011593# Be more Bourne compatible
11594DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011595if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011596 emulate sh
11597 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011598 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011599 # is contrary to our usage. Disable this feature.
11600 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011601 setopt NO_GLOB_SUBST
11602else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011603 case `(set -o) 2>/dev/null` in #(
11604 *posix*) :
11605 set -o posix ;; #(
11606 *) :
11607 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011608esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011609fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011610
11611
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011612as_nl='
11613'
11614export as_nl
11615# Printing a long string crashes Solaris 7 /usr/bin/printf.
11616as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11617as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11618as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011619# Prefer a ksh shell builtin over an external printf program on Solaris,
11620# but without wasting forks for bash or zsh.
11621if test -z "$BASH_VERSION$ZSH_VERSION" \
11622 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11623 as_echo='print -r --'
11624 as_echo_n='print -rn --'
11625elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011626 as_echo='printf %s\n'
11627 as_echo_n='printf %s'
11628else
11629 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11630 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11631 as_echo_n='/usr/ucb/echo -n'
11632 else
11633 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11634 as_echo_n_body='eval
11635 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011636 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011637 *"$as_nl"*)
11638 expr "X$arg" : "X\\(.*\\)$as_nl";
11639 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11640 esac;
11641 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11642 '
11643 export as_echo_n_body
11644 as_echo_n='sh -c $as_echo_n_body as_echo'
11645 fi
11646 export as_echo_body
11647 as_echo='sh -c $as_echo_body as_echo'
11648fi
11649
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011650# The user is always right.
11651if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011652 PATH_SEPARATOR=:
11653 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11654 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11655 PATH_SEPARATOR=';'
11656 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011657fi
11658
Theodore Ts'oe1052142006-10-21 21:46:47 -040011659
11660# IFS
11661# We need space, tab and new line, in precisely that order. Quoting is
11662# there to prevent editors from complaining about space-tab.
11663# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11664# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011665IFS=" "" $as_nl"
11666
11667# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011668as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011669case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011670 *[\\/]* ) as_myself=$0 ;;
11671 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011672for as_dir in $PATH
11673do
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011676 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11677 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011678IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011679
Theodore Ts'oe1052142006-10-21 21:46:47 -040011680 ;;
11681esac
11682# We did not find ourselves, most probably we were run as `sh COMMAND'
11683# in which case we are not to be found in the path.
11684if test "x$as_myself" = x; then
11685 as_myself=$0
11686fi
11687if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011688 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011689 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011690fi
11691
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011692# Unset variables that we do not need and which cause bugs (e.g. in
11693# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11694# suppresses any "Segmentation fault" message there. '((' could
11695# trigger a bug in pdksh 5.2.14.
11696for as_var in BASH_ENV ENV MAIL MAILPATH
11697do eval test x\${$as_var+set} = xset \
11698 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011699done
11700PS1='$ '
11701PS2='> '
11702PS4='+ '
11703
11704# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011705LC_ALL=C
11706export LC_ALL
11707LANGUAGE=C
11708export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011709
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011710# CDPATH.
11711(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11712
11713
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011714# as_fn_error STATUS ERROR [LINENO LOG_FD]
11715# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011716# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11717# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011718# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011719as_fn_error ()
11720{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011721 as_status=$1; test $as_status -eq 0 && as_status=1
11722 if test "$4"; then
11723 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11724 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011725 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011726 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011727 as_fn_exit $as_status
11728} # as_fn_error
11729
11730
11731# as_fn_set_status STATUS
11732# -----------------------
11733# Set $? to STATUS, without forking.
11734as_fn_set_status ()
11735{
11736 return $1
11737} # as_fn_set_status
11738
11739# as_fn_exit STATUS
11740# -----------------
11741# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11742as_fn_exit ()
11743{
11744 set +e
11745 as_fn_set_status $1
11746 exit $1
11747} # as_fn_exit
11748
11749# as_fn_unset VAR
11750# ---------------
11751# Portably unset VAR.
11752as_fn_unset ()
11753{
11754 { eval $1=; unset $1;}
11755}
11756as_unset=as_fn_unset
11757# as_fn_append VAR VALUE
11758# ----------------------
11759# Append the text in VALUE to the end of the definition contained in VAR. Take
11760# advantage of any shell optimizations that allow amortized linear growth over
11761# repeated appends, instead of the typical quadratic growth present in naive
11762# implementations.
11763if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11764 eval 'as_fn_append ()
11765 {
11766 eval $1+=\$2
11767 }'
11768else
11769 as_fn_append ()
11770 {
11771 eval $1=\$$1\$2
11772 }
11773fi # as_fn_append
11774
11775# as_fn_arith ARG...
11776# ------------------
11777# Perform arithmetic evaluation on the ARGs, and store the result in the
11778# global $as_val. Take advantage of shells that can avoid forks. The arguments
11779# must be portable across $(()) and expr.
11780if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11781 eval 'as_fn_arith ()
11782 {
11783 as_val=$(( $* ))
11784 }'
11785else
11786 as_fn_arith ()
11787 {
11788 as_val=`expr "$@" || test $? -eq 1`
11789 }
11790fi # as_fn_arith
11791
11792
Theodore Ts'oe1052142006-10-21 21:46:47 -040011793if expr a : '\(a\)' >/dev/null 2>&1 &&
11794 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11795 as_expr=expr
11796else
11797 as_expr=false
11798fi
11799
11800if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11801 as_basename=basename
11802else
11803 as_basename=false
11804fi
11805
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011806if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11807 as_dirname=dirname
11808else
11809 as_dirname=false
11810fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011811
Theodore Ts'oe1052142006-10-21 21:46:47 -040011812as_me=`$as_basename -- "$0" ||
11813$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11814 X"$0" : 'X\(//\)$' \| \
11815 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011816$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011817 sed '/^.*\/\([^/][^/]*\)\/*$/{
11818 s//\1/
11819 q
11820 }
11821 /^X\/\(\/\/\)$/{
11822 s//\1/
11823 q
11824 }
11825 /^X\/\(\/\).*/{
11826 s//\1/
11827 q
11828 }
11829 s/.*/./; q'`
11830
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011831# Avoid depending upon Character Ranges.
11832as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11833as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11834as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11835as_cr_digits='0123456789'
11836as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011837
11838ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011839case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011840-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011841 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011842 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011843 xy) ECHO_C='\c';;
11844 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11845 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011846 esac;;
11847*)
11848 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011849esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011850
11851rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011852if test -d conf$$.dir; then
11853 rm -f conf$$.dir/conf$$.file
11854else
11855 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011856 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011857fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011858if (echo >conf$$.file) 2>/dev/null; then
11859 if ln -s conf$$.file conf$$ 2>/dev/null; then
11860 as_ln_s='ln -s'
11861 # ... but there are two gotchas:
11862 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11863 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011864 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011865 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011866 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011867 elif ln conf$$.file conf$$ 2>/dev/null; then
11868 as_ln_s=ln
11869 else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011870 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011871 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011872else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011873 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011874fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011875rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11876rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011877
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011878
11879# as_fn_mkdir_p
11880# -------------
11881# Create "$as_dir" as a directory, including parents if necessary.
11882as_fn_mkdir_p ()
11883{
11884
11885 case $as_dir in #(
11886 -*) as_dir=./$as_dir;;
11887 esac
11888 test -d "$as_dir" || eval $as_mkdir_p || {
11889 as_dirs=
11890 while :; do
11891 case $as_dir in #(
11892 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11893 *) as_qdir=$as_dir;;
11894 esac
11895 as_dirs="'$as_qdir' $as_dirs"
11896 as_dir=`$as_dirname -- "$as_dir" ||
11897$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11898 X"$as_dir" : 'X\(//\)[^/]' \| \
11899 X"$as_dir" : 'X\(//\)$' \| \
11900 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11901$as_echo X"$as_dir" |
11902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11903 s//\1/
11904 q
11905 }
11906 /^X\(\/\/\)[^/].*/{
11907 s//\1/
11908 q
11909 }
11910 /^X\(\/\/\)$/{
11911 s//\1/
11912 q
11913 }
11914 /^X\(\/\).*/{
11915 s//\1/
11916 q
11917 }
11918 s/.*/./; q'`
11919 test -d "$as_dir" && break
11920 done
11921 test -z "$as_dirs" || eval "mkdir $as_dirs"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011922 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011923
11924
11925} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011926if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011927 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011928else
11929 test -d ./-p && rmdir ./-p
11930 as_mkdir_p=false
11931fi
11932
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011933
11934# as_fn_executable_p FILE
11935# -----------------------
11936# Test if FILE is an executable regular file.
11937as_fn_executable_p ()
11938{
11939 test -f "$1" && test -x "$1"
11940} # as_fn_executable_p
11941as_test_x='test -x'
11942as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011943
11944# Sed expression to map a string onto a valid CPP name.
11945as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11946
11947# Sed expression to map a string onto a valid variable name.
11948as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11949
11950
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011951exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011952## ----------------------------------- ##
11953## Main body of $CONFIG_STATUS script. ##
11954## ----------------------------------- ##
11955_ASEOF
11956test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011957
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11959# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011960# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040011961# values after options handling.
11962ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011963This file was extended by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011964generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011965
11966 CONFIG_FILES = $CONFIG_FILES
11967 CONFIG_HEADERS = $CONFIG_HEADERS
11968 CONFIG_LINKS = $CONFIG_LINKS
11969 CONFIG_COMMANDS = $CONFIG_COMMANDS
11970 $ $0 $@
11971
Theodore Ts'oe1052142006-10-21 21:46:47 -040011972on `(hostname || uname -n) 2>/dev/null | sed 1q`
11973"
11974
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011975_ACEOF
11976
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011977case $ac_config_files in *"
11978"*) set x $ac_config_files; shift; ac_config_files=$*;;
11979esac
11980
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011981case $ac_config_headers in *"
11982"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11983esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011984
11985
11986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011987# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011988config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011989config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011990config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011991
Theodore Ts'oe1052142006-10-21 21:46:47 -040011992_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011993
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011995ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011996\`$as_me' instantiates files and other configuration actions
11997from templates according to the current configuration. Unless the files
11998and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011999
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012000Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012001
12002 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012003 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012004 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012005 -q, --quiet, --silent
12006 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012007 -d, --debug don't remove temporary files
12008 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012009 --file=FILE[:TEMPLATE]
12010 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012011 --header=FILE[:TEMPLATE]
12012 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012013
12014Configuration files:
12015$config_files
12016
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012017Configuration headers:
12018$config_headers
12019
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012020Configuration commands:
12021$config_commands
12022
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012023Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012024
Theodore Ts'oe1052142006-10-21 21:46:47 -040012025_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012027ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012028ac_cs_version="\\
12029config.status
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012030configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012031 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012032
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012033Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012034This config.status script is free software; the Free Software Foundation
12035gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040012036
12037ac_pwd='$ac_pwd'
12038srcdir='$srcdir'
12039INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012040AWK='$AWK'
12041test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012042_ACEOF
12043
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12045# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012046ac_need_defaults=:
12047while test $# != 0
12048do
12049 case $1 in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012050 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012051 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12052 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012053 ac_shift=:
12054 ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012055 --*=)
12056 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12057 ac_optarg=
12058 ac_shift=:
12059 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012060 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012061 ac_option=$1
12062 ac_optarg=$2
12063 ac_shift=shift
12064 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012065 esac
12066
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012067 case $ac_option in
12068 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012069 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12070 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012071 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012072 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012073 --config | --confi | --conf | --con | --co | --c )
12074 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012075 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012076 debug=: ;;
12077 --file | --fil | --fi | --f )
12078 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012079 case $ac_optarg in
12080 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012081 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012082 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012083 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012084 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012085 --header | --heade | --head | --hea )
12086 $ac_shift
12087 case $ac_optarg in
12088 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12089 esac
12090 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12091 ac_need_defaults=false;;
12092 --he | --h)
12093 # Conflict between --help and --header
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012094 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012095Try \`$0 --help' for more information.";;
12096 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012097 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12099 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12100 ac_cs_silent=: ;;
12101
12102 # This is an error.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012103 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012104Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012105
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012106 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012107 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012108
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012109 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012110 shift
12111done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012112
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012113ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012114
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012115if $ac_cs_silent; then
12116 exec 6>/dev/null
12117 ac_configure_extra_args="$ac_configure_extra_args --silent"
12118fi
12119
12120_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012122if \$ac_cs_recheck; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012123 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012124 shift
12125 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12126 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012127 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012128 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012129fi
12130
12131_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012133exec 5>>config.log
12134{
12135 echo
12136 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12137## Running $as_me. ##
12138_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012139 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012140} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012141
Theodore Ts'oe1052142006-10-21 21:46:47 -040012142_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012144#
Theodore Ts'oe1052142006-10-21 21:46:47 -040012145# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012146#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012147# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012148 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012149 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012150 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012151 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12152 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012153
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012154
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012155_ACEOF
12156
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012158
12159# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160for ac_config_target in $ac_config_targets
12161do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012162 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012163 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012164 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12165 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12166
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012167 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012168 esac
12169done
12170
Theodore Ts'oe1052142006-10-21 21:46:47 -040012171
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012172# If the user did not use the arguments to specify the items to instantiate,
12173# then the envvar interface is used. Set only those that are not.
12174# We use the long form for the default assignment because of an extremely
12175# bizarre bug on SunOS 4.1.3.
12176if $ac_need_defaults; then
12177 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012178 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012179 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12180fi
12181
12182# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040012183# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012184# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012185# Hook for its removal unless debugging.
12186# Note that there is a small window in which the directory will not be cleaned:
12187# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012188$debug ||
12189{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012190 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040012191 trap 'exit_status=$?
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012192 : "${ac_tmp:=$tmp}"
12193 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040012194' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012195 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012196}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012197# Create a (secure) tmp directory for tmp files.
12198
12199{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012200 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012201 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012202} ||
12203{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012204 tmp=./conf$$-$RANDOM
12205 (umask 077 && mkdir "$tmp")
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012206} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12207ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012208
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012209# Set up the scripts for CONFIG_FILES section.
12210# No need to generate them if there are no CONFIG_FILES.
12211# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012212if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012213
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012214if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12215 ac_cs_awk_getline=:
12216 ac_cs_awk_pipe_init=
12217 ac_cs_awk_read_file='
12218 while ((getline aline < (F[key])) > 0)
12219 print(aline)
12220 close(F[key])'
12221 ac_cs_awk_pipe_fini=
12222else
12223 ac_cs_awk_getline=false
12224 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12225 ac_cs_awk_read_file='
12226 print "|#_!!_#|"
12227 print "cat " F[key] " &&"
12228 '$ac_cs_awk_pipe_init
12229 # The final `:' finishes the AND list.
12230 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12231fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012232ac_cr=`echo X | tr X '\015'`
12233# On cygwin, bash can eat \r inside `` if the user requested igncr.
12234# But we know of no other shell where ac_cr would be empty at this
12235# point, so we can use a bashism as a fallback.
12236if test "x$ac_cr" = x; then
12237 eval ac_cr=\$\'\\r\'
12238fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012239ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12240if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012241 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012242else
12243 ac_cs_awk_cr=$ac_cr
12244fi
12245
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012246echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012247_ACEOF
12248
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012249# Create commands to substitute file output variables.
12250{
12251 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012252 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012253 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12254 echo "_ACAWK" &&
12255 echo "_ACEOF"
12256} >conf$$files.sh &&
12257. ./conf$$files.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012258 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012259rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012260
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012261{
12262 echo "cat >conf$$subs.awk <<_ACEOF" &&
12263 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12264 echo "_ACEOF"
12265} >conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012266 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12267ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012268ac_delim='%!_!# '
12269for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012270 . ./conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012271 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012272
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012273 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12274 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012275 break
12276 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012277 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012278 else
12279 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012280 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012281done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012282rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012283
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012285cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012286_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012287sed -n '
12288h
12289s/^/S["/; s/!.*/"]=/
12290p
12291g
12292s/^[^!]*!//
12293:repl
12294t repl
12295s/'"$ac_delim"'$//
12296t delim
12297:nl
12298h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012299s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012300t more1
12301s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12302p
12303n
12304b repl
12305:more1
12306s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12307p
12308g
12309s/.\{148\}//
12310t nl
12311:delim
12312h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012313s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012314t more2
12315s/["\\]/\\&/g; s/^/"/; s/$/"/
12316p
12317b
12318:more2
12319s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12320p
12321g
12322s/.\{148\}//
12323t delim
12324' <conf$$subs.awk | sed '
12325/^[^""]/{
12326 N
12327 s/\n//
12328}
12329' >>$CONFIG_STATUS || ac_write_fail=1
12330rm -f conf$$subs.awk
12331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12332_ACAWK
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012333cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012334 for (key in S) S_is_set[key] = 1
12335 FS = ""
12336 \$ac_cs_awk_pipe_init
12337}
12338{
12339 line = $ 0
12340 nfields = split(line, field, "@")
12341 substed = 0
12342 len = length(field[1])
12343 for (i = 2; i < nfields; i++) {
12344 key = field[i]
12345 keylen = length(key)
12346 if (S_is_set[key]) {
12347 value = S[key]
12348 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12349 len += length(value) + length(field[++i])
12350 substed = 1
12351 } else
12352 len += 1 + keylen
12353 }
12354 if (nfields == 3 && !substed) {
12355 key = field[2]
12356 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12357 \$ac_cs_awk_read_file
12358 next
12359 }
12360 }
12361 print line
12362}
12363\$ac_cs_awk_pipe_fini
12364_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040012365_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12367if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12368 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12369else
12370 cat
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012371fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12372 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012373_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012374
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012375# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12376# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040012377# trailing colons and then remove the whole line if VPATH becomes empty
12378# (actually we leave an empty line to preserve line numbers).
12379if test "x$srcdir" = x.; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012380 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12381h
12382s///
12383s/^/:/
12384s/[ ]*$/:/
12385s/:\$(srcdir):/:/g
12386s/:\${srcdir}:/:/g
12387s/:@srcdir@:/:/g
12388s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012389s/:*$//
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012390x
12391s/\(=[ ]*\).*/\1/
12392G
12393s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012394s/^[^=]*=[ ]*$//
12395}'
12396fi
12397
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012399fi # test -n "$CONFIG_FILES"
12400
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012401# Set up the scripts for CONFIG_HEADERS section.
12402# No need to generate them if there are no CONFIG_HEADERS.
12403# This happens for instance with `./config.status Makefile'.
12404if test -n "$CONFIG_HEADERS"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012405cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012406BEGIN {
12407_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012408
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012409# Transform confdefs.h into an awk script `defines.awk', embedded as
12410# here-document in config.status, that substitutes the proper values into
12411# config.h.in to produce config.h.
12412
12413# Create a delimiter string that does not exist in confdefs.h, to ease
12414# handling of long lines.
12415ac_delim='%!_!# '
12416for ac_last_try in false false :; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012417 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12418 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012419 break
12420 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012421 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012422 else
12423 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12424 fi
12425done
12426
12427# For the awk script, D is an array of macro values keyed by name,
12428# likewise P contains macro parameters if any. Preserve backslash
12429# newline sequences.
12430
12431ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12432sed -n '
12433s/.\{148\}/&'"$ac_delim"'/g
12434t rset
12435:rset
12436s/^[ ]*#[ ]*define[ ][ ]*/ /
12437t def
12438d
12439:def
12440s/\\$//
12441t bsnl
12442s/["\\]/\\&/g
12443s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12444D["\1"]=" \3"/p
12445s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12446d
12447:bsnl
12448s/["\\]/\\&/g
12449s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12450D["\1"]=" \3\\\\\\n"\\/p
12451t cont
12452s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12453t cont
12454d
12455:cont
12456n
12457s/.\{148\}/&'"$ac_delim"'/g
12458t clear
12459:clear
12460s/\\$//
12461t bsnlc
12462s/["\\]/\\&/g; s/^/"/; s/$/"/p
12463d
12464:bsnlc
12465s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12466b cont
12467' <confdefs.h | sed '
12468s/'"$ac_delim"'/"\\\
12469"/g' >>$CONFIG_STATUS || ac_write_fail=1
12470
12471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12472 for (key in D) D_is_set[key] = 1
12473 FS = ""
12474}
12475/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12476 line = \$ 0
12477 split(line, arg, " ")
12478 if (arg[1] == "#") {
12479 defundef = arg[2]
12480 mac1 = arg[3]
12481 } else {
12482 defundef = substr(arg[1], 2)
12483 mac1 = arg[2]
12484 }
12485 split(mac1, mac2, "(") #)
12486 macro = mac2[1]
12487 prefix = substr(line, 1, index(line, defundef) - 1)
12488 if (D_is_set[macro]) {
12489 # Preserve the white space surrounding the "#".
12490 print prefix "define", macro P[macro] D[macro]
12491 next
12492 } else {
12493 # Replace #undef with comments. This is necessary, for example,
12494 # in the case of _POSIX_SOURCE, which is predefined and required
12495 # on some systems where configure will not decide to define it.
12496 if (defundef == "undef") {
12497 print "/*", prefix defundef, macro, "*/"
12498 next
12499 }
12500 }
12501}
12502{ print }
12503_ACAWK
12504_ACEOF
12505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012506 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012507fi # test -n "$CONFIG_HEADERS"
12508
12509
12510eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012511shift
12512for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040012513do
12514 case $ac_tag in
12515 :[FHLC]) ac_mode=$ac_tag; continue;;
12516 esac
12517 case $ac_mode$ac_tag in
12518 :[FHL]*:*);;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012519 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012520 :[FH]-) ac_tag=-:-;;
12521 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12522 esac
12523 ac_save_IFS=$IFS
12524 IFS=:
12525 set x $ac_tag
12526 IFS=$ac_save_IFS
12527 shift
12528 ac_file=$1
12529 shift
12530
12531 case $ac_mode in
12532 :L) ac_source=$1;;
12533 :[FH])
12534 ac_file_inputs=
12535 for ac_f
12536 do
12537 case $ac_f in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012538 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012539 *) # Look for the file first in the build tree, then in the source tree
12540 # (if the path is not absolute). The absolute path cannot be DOS-style,
12541 # because $ac_f cannot contain `:'.
12542 test -f "$ac_f" ||
12543 case $ac_f in
12544 [\\/$]*) false;;
12545 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12546 esac ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012547 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012548 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012549 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012550 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012551 done
12552
12553 # Let's still pretend it is `configure' which instantiates (i.e., don't
12554 # use $as_me), people would be surprised to read:
12555 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012556 configure_input='Generated from '`
12557 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12558 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012559 if test x"$ac_file" != x-; then
12560 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012562$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012563 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012564 # Neutralize special characters interpreted by sed in replacement strings.
12565 case $configure_input in #(
12566 *\&* | *\|* | *\\* )
12567 ac_sed_conf_input=`$as_echo "$configure_input" |
12568 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12569 *) ac_sed_conf_input=$configure_input;;
12570 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012571
12572 case $ac_tag in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012573 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12574 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012575 esac
12576 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012577 esac
12578
Theodore Ts'oe1052142006-10-21 21:46:47 -040012579 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012580$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12581 X"$ac_file" : 'X\(//\)[^/]' \| \
12582 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012583 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012584$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12586 s//\1/
12587 q
12588 }
12589 /^X\(\/\/\)[^/].*/{
12590 s//\1/
12591 q
12592 }
12593 /^X\(\/\/\)$/{
12594 s//\1/
12595 q
12596 }
12597 /^X\(\/\).*/{
12598 s//\1/
12599 q
12600 }
12601 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012602 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012603 ac_builddir=.
12604
Theodore Ts'oe1052142006-10-21 21:46:47 -040012605case "$ac_dir" in
12606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12607*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012609 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012611 case $ac_top_builddir_sub in
12612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12614 esac ;;
12615esac
12616ac_abs_top_builddir=$ac_pwd
12617ac_abs_builddir=$ac_pwd$ac_dir_suffix
12618# for backward compatibility:
12619ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012620
12621case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012622 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012623 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012624 ac_top_srcdir=$ac_top_builddir_sub
12625 ac_abs_top_srcdir=$ac_pwd ;;
12626 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012627 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012628 ac_top_srcdir=$srcdir
12629 ac_abs_top_srcdir=$srcdir ;;
12630 *) # Relative name.
12631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12632 ac_top_srcdir=$ac_top_build_prefix$srcdir
12633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012634esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012636
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012637
Theodore Ts'oe1052142006-10-21 21:46:47 -040012638 case $ac_mode in
12639 :F)
12640 #
12641 # CONFIG_FILE
12642 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012643
12644 case $INSTALL in
12645 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012646 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012647 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012648_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012649
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012651# If the template does not know about datarootdir, expand it.
12652# FIXME: This hack should be removed a few years after 2.60.
12653ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012654ac_sed_dataroot='
12655/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012656 p
12657 q
12658}
12659/@datadir@/p
12660/@docdir@/p
12661/@infodir@/p
12662/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012663/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012664case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012665*datarootdir*) ac_datarootdir_seen=yes;;
12666*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012667 { $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 +010012668$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012669_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012671 ac_datarootdir_hack='
12672 s&@datadir@&$datadir&g
12673 s&@docdir@&$docdir&g
12674 s&@infodir@&$infodir&g
12675 s&@localedir@&$localedir&g
12676 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012677 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012678esac
12679_ACEOF
12680
12681# Neutralize VPATH when `$srcdir' = `.'.
12682# Shell code in configure.ac might set extrasub.
12683# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12685ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012686$extrasub
12687_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012689:t
12690/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012691s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012692s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012693s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012694s&@srcdir@&$ac_srcdir&;t t
12695s&@abs_srcdir@&$ac_abs_srcdir&;t t
12696s&@top_srcdir@&$ac_top_srcdir&;t t
12697s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12698s&@builddir@&$ac_builddir&;t t
12699s&@abs_builddir@&$ac_abs_builddir&;t t
12700s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12701s&@INSTALL@&$ac_INSTALL&;t t
12702$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012703"
12704eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12705if $ac_cs_awk_getline; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012706 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012707else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012708 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12709fi \
12710 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012711
Theodore Ts'oe1052142006-10-21 21:46:47 -040012712test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012713 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12714 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12715 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012716 { $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 -040012717which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012718$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012719which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012720
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012721 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012722 case $ac_file in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012723 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12724 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012725 esac \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012726 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012727 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012728 :H)
12729 #
12730 # CONFIG_HEADER
12731 #
12732 if test x"$ac_file" != x-; then
12733 {
12734 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012735 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12736 } >"$ac_tmp/config.h" \
12737 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12738 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012739 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12740$as_echo "$as_me: $ac_file is unchanged" >&6;}
12741 else
12742 rm -f "$ac_file"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012743 mv "$ac_tmp/config.h" "$ac_file" \
12744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012745 fi
12746 else
12747 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012748 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12749 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012750 fi
12751 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012752
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012753 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012754$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012755 ;;
12756 esac
12757
12758
12759 case $ac_file$ac_mode in
12760 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012761 for ac_file in $CONFIG_FILES; do
12762 # Support "outfile[:infile[:infile...]]"
12763 case "$ac_file" in
12764 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012765 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012766 # PO directories have a Makefile.in generated from Makefile.in.in.
12767 case "$ac_file" in */Makefile.in)
12768 # Adjust a relative srcdir.
12769 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12770 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12771 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12772 # In autoconf-2.13 it is called $ac_given_srcdir.
12773 # In autoconf-2.50 it is called $srcdir.
12774 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12775 case "$ac_given_srcdir" in
12776 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12777 /*) top_srcdir="$ac_given_srcdir" ;;
12778 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12779 esac
12780 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12781 rm -f "$ac_dir/POTFILES"
12782 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12783 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 -050012784 POMAKEFILEDEPS="POTFILES.in"
12785 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012786 # on $ac_dir but don't depend on user-specified configuration
12787 # parameters.
12788 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12789 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012790 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012791 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12792 fi
12793 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12794 # Hide the ALL_LINGUAS assigment from automake.
12795 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012796 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12797 else
12798 # The set of available languages was given in configure.in.
12799 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012800 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012801 # Compute POFILES
12802 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12803 # Compute UPDATEPOFILES
12804 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12805 # Compute DUMMYPOFILES
12806 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12807 # Compute GMOFILES
12808 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012809 case "$ac_given_srcdir" in
12810 .) srcdirpre= ;;
12811 *) srcdirpre='$(srcdir)/' ;;
12812 esac
12813 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012814 UPDATEPOFILES=
12815 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012816 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012817 for lang in $ALL_LINGUAS; do
12818 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012819 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12820 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012821 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012822 done
12823 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12824 # environment variable.
12825 INST_LINGUAS=
12826 if test -n "$ALL_LINGUAS"; then
12827 for presentlang in $ALL_LINGUAS; do
12828 useit=no
12829 if test "%UNSET%" != "$LINGUAS"; then
12830 desiredlanguages="$LINGUAS"
12831 else
12832 desiredlanguages="$ALL_LINGUAS"
12833 fi
12834 for desiredlang in $desiredlanguages; do
12835 # Use the presentlang catalog if desiredlang is
12836 # a. equal to presentlang, or
12837 # b. a variant of presentlang (because in this case,
12838 # presentlang can be used as a fallback for messages
12839 # which are not translated in the desiredlang catalog).
12840 case "$desiredlang" in
12841 "$presentlang"*) useit=yes;;
12842 esac
12843 done
12844 if test $useit = yes; then
12845 INST_LINGUAS="$INST_LINGUAS $presentlang"
12846 fi
12847 done
12848 fi
12849 CATALOGS=
12850 if test -n "$INST_LINGUAS"; then
12851 for lang in $INST_LINGUAS; do
12852 CATALOGS="$CATALOGS $lang.gmo"
12853 done
12854 fi
12855 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012856 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 -040012857 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12858 if test -f "$f"; then
12859 case "$f" in
12860 *.orig | *.bak | *~) ;;
12861 *) cat "$f" >> "$ac_dir/Makefile" ;;
12862 esac
12863 fi
12864 done
12865 fi
12866 ;;
12867 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012868 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012869
Theodore Ts'oe1052142006-10-21 21:46:47 -040012870 esac
12871done # for ac_tag
12872
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012873
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012874as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012875_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012876ac_clean_files=$ac_clean_files_save
12877
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012878test $ac_write_fail = 0 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012879 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012880
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012881
12882# configure is writing to config.log, and then calls config.status.
12883# config.status does its own redirection, appending to config.log.
12884# Unfortunately, on DOS this fails, as config.log is still kept open
12885# by configure, so config.status won't be able to write to it; its
12886# output is simply discarded. So we exec the FD to /dev/null,
12887# effectively closing config.log, so it can be properly (re)opened and
12888# appended to by config.status. When coming back to configure, we
12889# need to make the FD available again.
12890if test "$no_create" != yes; then
12891 ac_cs_success=:
12892 ac_config_status_args=
12893 test "$silent" = yes &&
12894 ac_config_status_args="$ac_config_status_args --quiet"
12895 exec 5>/dev/null
12896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12897 exec 5>>config.log
12898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12899 # would make configure fail if this is the last instruction.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012900 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012901fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012902if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012904$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12905fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012906
Theodore Ts'oee683a12005-02-05 15:53:56 -050012907if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi