blob: 965fe6b37fdf275a8e0c0d0a300c0ce432cc08f4 [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'o6c59a662014-01-04 20:44:29 -05002756WITH_DIET_LIBC=
2757
2758# Check whether --with-diet-libc was given.
2759if test "${with_diet_libc+set}" = set; then :
2760 withval=$with_diet_libc; CC="diet cc -nostdinc"
2761WITH_DIET_LIBC=yes
2762if test -z "$LIBS"
2763then
2764 LIBS="-lcompat"
2765else
2766 LIBS="$LIBS -lcompat"
2767fi
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2769$as_echo "CC=$CC" >&6; }
2770fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002771# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002772$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002773 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002774
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002776$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002777if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002778 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002779else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002780 ac_build_alias=$build_alias
2781test "x$ac_build_alias" = x &&
2782 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2783test "x$ac_build_alias" = x &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002784 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002785ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002786 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002787
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002788fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002790$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002791case $ac_cv_build in
2792*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002793*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002794esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002795build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002796ac_save_IFS=$IFS; IFS='-'
2797set x $ac_cv_build
2798shift
2799build_cpu=$1
2800build_vendor=$2
2801shift; shift
2802# Remember, the first character of IFS is used to create $*,
2803# except with old shells:
2804build_os=$*
2805IFS=$ac_save_IFS
2806case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002807
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002808
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002810$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002811if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002812 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002813else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002814 if test "x$host_alias" = x; then
2815 ac_cv_host=$ac_cv_build
2816else
2817 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002818 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002819fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002820
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002821fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002823$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002824case $ac_cv_host in
2825*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002826*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002827esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002828host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002829ac_save_IFS=$IFS; IFS='-'
2830set x $ac_cv_host
2831shift
2832host_cpu=$1
2833host_vendor=$2
2834shift; shift
2835# Remember, the first character of IFS is used to create $*,
2836# except with old shells:
2837host_os=$*
2838IFS=$ac_save_IFS
2839case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002840
2841
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002842DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002843ac_ext=c
2844ac_cpp='$CPP $CPPFLAGS'
2845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847ac_compiler_gnu=$ac_cv_c_compiler_gnu
2848if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2850set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002852$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002853if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002854 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002855else
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2858else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002864 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002868 break 2
2869 fi
2870done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002871 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002872IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002873
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002874fi
2875fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002876CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002877if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002879$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002880else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002882$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002883fi
2884
Theodore Ts'oe1052142006-10-21 21:46:47 -04002885
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002886fi
2887if test -z "$ac_cv_prog_CC"; then
2888 ac_ct_CC=$CC
2889 # Extract the first word of "gcc", so it can be a program name with args.
2890set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002892$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002893if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002894 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002895else
2896 if test -n "$ac_ct_CC"; then
2897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898else
2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900for as_dir in $PATH
2901do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002904 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002906 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002908 break 2
2909 fi
2910done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002911 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002912IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002913
2914fi
2915fi
2916ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002919$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002920else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002922$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002923fi
2924
Theodore Ts'oe1052142006-10-21 21:46:47 -04002925 if test "x$ac_ct_CC" = x; then
2926 CC=""
2927 else
2928 case $cross_compiling:$ac_tool_warned in
2929yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002930{ $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 +01002931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002932ac_tool_warned=yes ;;
2933esac
2934 CC=$ac_ct_CC
2935 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002936else
2937 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002938fi
2939
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002940if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002941 if test -n "$ac_tool_prefix"; then
2942 # 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 -05002943set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002945$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002946if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002947 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002948else
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002957 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002959 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002961 break 2
2962 fi
2963done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002964 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002965IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002966
2967fi
2968fi
2969CC=$ac_cv_prog_CC
2970if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002972$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002973else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002975$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002976fi
2977
Theodore Ts'oe1052142006-10-21 21:46:47 -04002978
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002979 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002980fi
2981if test -z "$CC"; then
2982 # Extract the first word of "cc", so it can be a program name with args.
2983set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002985$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002986if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002987 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002988else
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2991else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002992 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002998 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3001 ac_prog_rejected=yes
3002 continue
3003 fi
3004 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003006 break 2
3007 fi
3008done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003009 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003010IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003011
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003012if test $ac_prog_rejected = yes; then
3013 # We found a bogon in the path, so make sure we never use it.
3014 set dummy $ac_cv_prog_CC
3015 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003016 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003017 # We chose a different compiler from the bogus one.
3018 # However, it has the same basename, so the bogon will be chosen
3019 # first if we set CC to just the basename; use the full file name.
3020 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003022 fi
3023fi
3024fi
3025fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003026CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003027if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003029$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003030else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003032$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003033fi
3034
Theodore Ts'oe1052142006-10-21 21:46:47 -04003035
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003036fi
3037if test -z "$CC"; then
3038 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003039 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003040 do
3041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3042set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003044$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003045if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003046 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003047else
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3050else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003056 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003060 break 2
3061 fi
3062done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003063 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003064IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003065
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003066fi
3067fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003068CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003069if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003071$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003072else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003074$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003075fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003076
Theodore Ts'oe1052142006-10-21 21:46:47 -04003077
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003078 test -n "$CC" && break
3079 done
3080fi
3081if test -z "$CC"; then
3082 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003083 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003084do
3085 # Extract the first word of "$ac_prog", so it can be a program name with args.
3086set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003088$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003089if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003090 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003091else
3092 if test -n "$ac_ct_CC"; then
3093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3094else
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003100 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003102 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003104 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003105 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003106done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003107 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003108IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003109
3110fi
3111fi
3112ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003115$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003116else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003118$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003119fi
3120
Theodore Ts'oe1052142006-10-21 21:46:47 -04003121
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003122 test -n "$ac_ct_CC" && break
3123done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003124
Theodore Ts'oe1052142006-10-21 21:46:47 -04003125 if test "x$ac_ct_CC" = x; then
3126 CC=""
3127 else
3128 case $cross_compiling:$ac_tool_warned in
3129yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003130{ $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 +01003131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003132ac_tool_warned=yes ;;
3133esac
3134 CC=$ac_ct_CC
3135 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003136fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003137
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003138fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003139
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003140
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003141test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003143as_fn_error $? "no acceptable C compiler found in \$PATH
3144See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003145
3146# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003147$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003148set X $ac_compile
3149ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003150for ac_option in --version -v -V -qversion; do
3151 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003152case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157$as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003159 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003160 if test -s conftest.err; then
3161 sed '10a\
3162... rest of stderr output deleted ...
3163 10q' conftest.err >conftest.er1
3164 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003165 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003166 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }
3169done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003170
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003172/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003173
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003174int
3175main ()
3176{
3177
3178 ;
3179 return 0;
3180}
3181_ACEOF
3182ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003183ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003184# Try to create an executable without -o first, disregard a.out.
3185# It will help us diagnose broken compilers, and finding out an intuition
3186# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3188$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003189ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3190
3191# The possible output files:
3192ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3193
Theodore Ts'oe1052142006-10-21 21:46:47 -04003194ac_rmfiles=
3195for ac_file in $ac_files
3196do
3197 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003199 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3200 esac
3201done
3202rm -f $ac_rmfiles
3203
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003204if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003205case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003211 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003212 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3216# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3217# in a Makefile. We should not override ac_cv_exeext if it was cached,
3218# so that the user can short-circuit this test for compilers unknown to
3219# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003220for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003221do
3222 test -f "$ac_file" || continue
3223 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003225 ;;
3226 [ab].out )
3227 # We found the default executable, but exeext='' is most
3228 # certainly right.
3229 break;;
3230 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003232 then :; else
3233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234 fi
3235 # We set ac_cv_exeext here because the later test for it is not
3236 # safe: cross compilers may not add the suffix if given an `-o'
3237 # argument, so we may need to know it at that point already.
3238 # Even if this section looks crufty: it has the advantage of
3239 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003240 break;;
3241 * )
3242 break;;
3243 esac
3244done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003245test "$ac_cv_exeext" = no && ac_cv_exeext=
3246
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003247else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003248 ac_file=''
3249fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003250if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252$as_echo "no" >&6; }
3253$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003254sed 's/^/| /' conftest.$ac_ext >&5
3255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003256{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003258as_fn_error 77 "C compiler cannot create executables
3259See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003260else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003263fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3265$as_echo_n "checking for C compiler default output file name... " >&6; }
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3267$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003268ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003269
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003270rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003271ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003273$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003274if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003275case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003281 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003282 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003285 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3286# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3287# work properly (i.e., refer to `conftest.exe'), while it won't with
3288# `rm'.
3289for ac_file in conftest.exe conftest conftest.*; do
3290 test -f "$ac_file" || continue
3291 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003293 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003294 break;;
3295 * ) break;;
3296 esac
3297done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003298else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003301as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3302See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003303fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003304rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003306$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003307
3308rm -f conftest.$ac_ext
3309EXEEXT=$ac_cv_exeext
3310ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312/* end confdefs.h. */
3313#include <stdio.h>
3314int
3315main ()
3316{
3317FILE *f = fopen ("conftest.out", "w");
3318 return ferror (f) || fclose (f) != 0;
3319
3320 ;
3321 return 0;
3322}
3323_ACEOF
3324ac_clean_files="$ac_clean_files conftest.out"
3325# Check that the compiler produces executables we can run. If not, either
3326# the compiler is broken, or we cross compile.
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3328$as_echo_n "checking whether we are cross compiling... " >&6; }
3329if test "$cross_compiling" != yes; then
3330 { { ac_try="$ac_link"
3331case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334esac
3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336$as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_link") 2>&5
3338 ac_status=$?
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }
3341 if { ac_try='./conftest$ac_cv_exeext'
3342 { { case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347$as_echo "$ac_try_echo"; } >&5
3348 (eval "$ac_try") 2>&5
3349 ac_status=$?
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }; }; then
3352 cross_compiling=no
3353 else
3354 if test "$cross_compiling" = maybe; then
3355 cross_compiling=yes
3356 else
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003359as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003360If you meant to cross compile, use \`--host'.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003361See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003362 fi
3363 fi
3364fi
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3366$as_echo "$cross_compiling" >&6; }
3367
3368rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3369ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003371$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003372if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003373 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003374else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003376/* end confdefs.h. */
3377
3378int
3379main ()
3380{
3381
3382 ;
3383 return 0;
3384}
3385_ACEOF
3386rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003387if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003388case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003394 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003395 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003398 for ac_file in conftest.o conftest.obj conftest.*; do
3399 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003400 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003402 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3403 break;;
3404 esac
3405done
3406else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003407 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003408sed 's/^/| /' conftest.$ac_ext >&5
3409
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003410{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003412as_fn_error $? "cannot compute suffix of object files: cannot compile
3413See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003414fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003415rm -f conftest.$ac_cv_objext conftest.$ac_ext
3416fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003418$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003419OBJEXT=$ac_cv_objext
3420ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003421{ $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 +01003422$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003423if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003424 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003425else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003427/* end confdefs.h. */
3428
3429int
3430main ()
3431{
3432#ifndef __GNUC__
3433 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003434#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003435
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003436 ;
3437 return 0;
3438}
3439_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003440if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003441 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003442else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003443 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003444fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003446ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003447
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003448fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003450$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3451if test $ac_compiler_gnu = yes; then
3452 GCC=yes
3453else
3454 GCC=
3455fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003456ac_test_CFLAGS=${CFLAGS+set}
3457ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003459$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003460if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003461 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003462else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003463 ac_save_c_werror_flag=$ac_c_werror_flag
3464 ac_c_werror_flag=yes
3465 ac_cv_prog_cc_g=no
3466 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003468/* 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'o73ae2d42000-02-02 16:13:14 +00003479 ac_cv_prog_cc_g=yes
3480else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003481 CFLAGS=""
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003483/* end confdefs.h. */
3484
3485int
3486main ()
3487{
3488
3489 ;
3490 return 0;
3491}
3492_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003493if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003494
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003495else
3496 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003497 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003499/* end confdefs.h. */
3500
3501int
3502main ()
3503{
3504
3505 ;
3506 return 0;
3507}
3508_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003509if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003510 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003511fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003513fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ac_c_werror_flag=$ac_save_c_werror_flag
3518fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003520$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003521if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003522 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003523elif test $ac_cv_prog_cc_g = yes; then
3524 if test "$GCC" = yes; then
3525 CFLAGS="-g -O2"
3526 else
3527 CFLAGS="-g"
3528 fi
3529else
3530 if test "$GCC" = yes; then
3531 CFLAGS="-O2"
3532 else
3533 CFLAGS=
3534 fi
3535fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003537$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003538if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003539 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003540else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003541 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003542ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003544/* end confdefs.h. */
3545#include <stdarg.h>
3546#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003547struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003548/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3549struct buf { int x; };
3550FILE * (*rcsopen) (struct buf *, struct stat *, int);
3551static char *e (p, i)
3552 char **p;
3553 int i;
3554{
3555 return p[i];
3556}
3557static char *f (char * (*g) (char **, int), char **p, ...)
3558{
3559 char *s;
3560 va_list v;
3561 va_start (v,p);
3562 s = g (p, va_arg (v,int));
3563 va_end (v);
3564 return s;
3565}
3566
3567/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3568 function prototypes and stuff, but not '\xHH' hex character constants.
3569 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003570 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003571 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3572 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003573 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003574int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3575
Theodore Ts'oe1052142006-10-21 21:46:47 -04003576/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3577 inside strings and character constants. */
3578#define FOO(x) 'x'
3579int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3580
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003581int test (int i, double x);
3582struct s1 {int (*f) (int a);};
3583struct s2 {int (*f) (double a);};
3584int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3585int argc;
3586char **argv;
3587int
3588main ()
3589{
3590return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3591 ;
3592 return 0;
3593}
3594_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003595for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3596 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003597do
3598 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003599 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003600 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003601fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003602rm -f core conftest.err conftest.$ac_objext
3603 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003604done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003605rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003606CC=$ac_save_CC
3607
3608fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003609# AC_CACHE_VAL
3610case "x$ac_cv_prog_cc_c89" in
3611 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003613$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003614 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003616$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003617 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003618 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003620$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003621esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003622if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003623
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003624fi
3625
3626ac_ext=c
3627ac_cpp='$CPP $CPPFLAGS'
3628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631
3632
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3634$as_echo_n "checking for dlopen in -ldl... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003635if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003636 $as_echo_n "(cached) " >&6
3637else
3638 ac_check_lib_save_LIBS=$LIBS
3639LIBS="-ldl $LIBS"
3640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641/* end confdefs.h. */
3642
3643/* Override any GCC internal prototype to avoid an error.
3644 Use char because int might match the return type of a GCC
3645 builtin and then its argument prototype would still apply. */
3646#ifdef __cplusplus
3647extern "C"
3648#endif
3649char dlopen ();
3650int
3651main ()
3652{
3653return dlopen ();
3654 ;
3655 return 0;
3656}
3657_ACEOF
3658if ac_fn_c_try_link "$LINENO"; then :
3659 ac_cv_lib_dl_dlopen=yes
3660else
3661 ac_cv_lib_dl_dlopen=no
3662fi
3663rm -f core conftest.err conftest.$ac_objext \
3664 conftest$ac_exeext conftest.$ac_ext
3665LIBS=$ac_check_lib_save_LIBS
3666fi
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3668$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003669if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003670 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003671
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003672$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3673
3674fi
3675
3676
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003677
3678# Check whether --with-cc was given.
3679if test "${with_cc+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003680 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003681fi
3682
3683
3684# Check whether --with-ccopts was given.
3685if test "${with_ccopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003686 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003687fi
3688
3689
3690# Check whether --with-ldopts was given.
3691if test "${with_ldopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003692 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003693fi
3694
3695ac_ext=c
3696ac_cpp='$CPP $CPPFLAGS'
3697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700if test -n "$ac_tool_prefix"; then
3701 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3702set dummy ${ac_tool_prefix}gcc; ac_word=$2
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003705if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003706 $as_echo_n "(cached) " >&6
3707else
3708 if test -n "$CC"; then
3709 ac_cv_prog_CC="$CC" # Let the user override the test.
3710else
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH
3713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003718 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3721 fi
3722done
3723 done
3724IFS=$as_save_IFS
3725
3726fi
3727fi
3728CC=$ac_cv_prog_CC
3729if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731$as_echo "$CC" >&6; }
3732else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734$as_echo "no" >&6; }
3735fi
3736
3737
3738fi
3739if test -z "$ac_cv_prog_CC"; then
3740 ac_ct_CC=$CC
3741 # Extract the first word of "gcc", so it can be a program name with args.
3742set dummy gcc; ac_word=$2
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003745if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003746 $as_echo_n "(cached) " >&6
3747else
3748 if test -n "$ac_ct_CC"; then
3749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3750else
3751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752for as_dir in $PATH
3753do
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003758 ac_cv_prog_ac_ct_CC="gcc"
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 break 2
3761 fi
3762done
3763 done
3764IFS=$as_save_IFS
3765
3766fi
3767fi
3768ac_ct_CC=$ac_cv_prog_ac_ct_CC
3769if test -n "$ac_ct_CC"; then
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3771$as_echo "$ac_ct_CC" >&6; }
3772else
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774$as_echo "no" >&6; }
3775fi
3776
3777 if test "x$ac_ct_CC" = x; then
3778 CC=""
3779 else
3780 case $cross_compiling:$ac_tool_warned in
3781yes:)
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3784ac_tool_warned=yes ;;
3785esac
3786 CC=$ac_ct_CC
3787 fi
3788else
3789 CC="$ac_cv_prog_CC"
3790fi
3791
3792if test -z "$CC"; then
3793 if test -n "$ac_tool_prefix"; then
3794 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3795set dummy ${ac_tool_prefix}cc; ac_word=$2
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003798if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003799 $as_echo_n "(cached) " >&6
3800else
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3803else
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003811 ac_cv_prog_CC="${ac_tool_prefix}cc"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815done
3816 done
3817IFS=$as_save_IFS
3818
3819fi
3820fi
3821CC=$ac_cv_prog_CC
3822if test -n "$CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3824$as_echo "$CC" >&6; }
3825else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827$as_echo "no" >&6; }
3828fi
3829
3830
3831 fi
3832fi
3833if test -z "$CC"; then
3834 # Extract the first word of "cc", so it can be a program name with args.
3835set dummy cc; ac_word=$2
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003838if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003839 $as_echo_n "(cached) " >&6
3840else
3841 if test -n "$CC"; then
3842 ac_cv_prog_CC="$CC" # Let the user override the test.
3843else
3844 ac_prog_rejected=no
3845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846for as_dir in $PATH
3847do
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003852 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3853 ac_prog_rejected=yes
3854 continue
3855 fi
3856 ac_cv_prog_CC="cc"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 break 2
3859 fi
3860done
3861 done
3862IFS=$as_save_IFS
3863
3864if test $ac_prog_rejected = yes; then
3865 # We found a bogon in the path, so make sure we never use it.
3866 set dummy $ac_cv_prog_CC
3867 shift
3868 if test $# != 0; then
3869 # We chose a different compiler from the bogus one.
3870 # However, it has the same basename, so the bogon will be chosen
3871 # first if we set CC to just the basename; use the full file name.
3872 shift
3873 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3874 fi
3875fi
3876fi
3877fi
3878CC=$ac_cv_prog_CC
3879if test -n "$CC"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3881$as_echo "$CC" >&6; }
3882else
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884$as_echo "no" >&6; }
3885fi
3886
3887
3888fi
3889if test -z "$CC"; then
3890 if test -n "$ac_tool_prefix"; then
3891 for ac_prog in cl.exe
3892 do
3893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3894set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003897if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003898 $as_echo_n "(cached) " >&6
3899else
3900 if test -n "$CC"; then
3901 ac_cv_prog_CC="$CC" # Let the user override the test.
3902else
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003910 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3913 fi
3914done
3915 done
3916IFS=$as_save_IFS
3917
3918fi
3919fi
3920CC=$ac_cv_prog_CC
3921if test -n "$CC"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923$as_echo "$CC" >&6; }
3924else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926$as_echo "no" >&6; }
3927fi
3928
3929
3930 test -n "$CC" && break
3931 done
3932fi
3933if test -z "$CC"; then
3934 ac_ct_CC=$CC
3935 for ac_prog in cl.exe
3936do
3937 # Extract the first word of "$ac_prog", so it can be a program name with args.
3938set dummy $ac_prog; ac_word=$2
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003941if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003942 $as_echo_n "(cached) " >&6
3943else
3944 if test -n "$ac_ct_CC"; then
3945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3946else
3947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948for as_dir in $PATH
3949do
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003954 ac_cv_prog_ac_ct_CC="$ac_prog"
3955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 break 2
3957 fi
3958done
3959 done
3960IFS=$as_save_IFS
3961
3962fi
3963fi
3964ac_ct_CC=$ac_cv_prog_ac_ct_CC
3965if test -n "$ac_ct_CC"; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3967$as_echo "$ac_ct_CC" >&6; }
3968else
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970$as_echo "no" >&6; }
3971fi
3972
3973
3974 test -n "$ac_ct_CC" && break
3975done
3976
3977 if test "x$ac_ct_CC" = x; then
3978 CC=""
3979 else
3980 case $cross_compiling:$ac_tool_warned in
3981yes:)
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3984ac_tool_warned=yes ;;
3985esac
3986 CC=$ac_ct_CC
3987 fi
3988fi
3989
3990fi
3991
3992
3993test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003995as_fn_error $? "no acceptable C compiler found in \$PATH
3996See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003997
3998# Provide some information about the compiler.
3999$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4000set X $ac_compile
4001ac_compiler=$2
4002for ac_option in --version -v -V -qversion; do
4003 { { ac_try="$ac_compiler $ac_option >&5"
4004case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007esac
4008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009$as_echo "$ac_try_echo"; } >&5
4010 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4011 ac_status=$?
4012 if test -s conftest.err; then
4013 sed '10a\
4014... rest of stderr output deleted ...
4015 10q' conftest.err >conftest.er1
4016 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004017 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004018 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }
4021done
4022
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4024$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004025if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004026 $as_echo_n "(cached) " >&6
4027else
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029/* end confdefs.h. */
4030
4031int
4032main ()
4033{
4034#ifndef __GNUC__
4035 choke me
4036#endif
4037
4038 ;
4039 return 0;
4040}
4041_ACEOF
4042if ac_fn_c_try_compile "$LINENO"; then :
4043 ac_compiler_gnu=yes
4044else
4045 ac_compiler_gnu=no
4046fi
4047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048ac_cv_c_compiler_gnu=$ac_compiler_gnu
4049
4050fi
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4052$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4053if test $ac_compiler_gnu = yes; then
4054 GCC=yes
4055else
4056 GCC=
4057fi
4058ac_test_CFLAGS=${CFLAGS+set}
4059ac_save_CFLAGS=$CFLAGS
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4061$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004062if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004063 $as_echo_n "(cached) " >&6
4064else
4065 ac_save_c_werror_flag=$ac_c_werror_flag
4066 ac_c_werror_flag=yes
4067 ac_cv_prog_cc_g=no
4068 CFLAGS="-g"
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070/* end confdefs.h. */
4071
4072int
4073main ()
4074{
4075
4076 ;
4077 return 0;
4078}
4079_ACEOF
4080if ac_fn_c_try_compile "$LINENO"; then :
4081 ac_cv_prog_cc_g=yes
4082else
4083 CFLAGS=""
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085/* end confdefs.h. */
4086
4087int
4088main ()
4089{
4090
4091 ;
4092 return 0;
4093}
4094_ACEOF
4095if ac_fn_c_try_compile "$LINENO"; then :
4096
4097else
4098 ac_c_werror_flag=$ac_save_c_werror_flag
4099 CFLAGS="-g"
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101/* end confdefs.h. */
4102
4103int
4104main ()
4105{
4106
4107 ;
4108 return 0;
4109}
4110_ACEOF
4111if ac_fn_c_try_compile "$LINENO"; then :
4112 ac_cv_prog_cc_g=yes
4113fi
4114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115fi
4116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117fi
4118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 ac_c_werror_flag=$ac_save_c_werror_flag
4120fi
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4122$as_echo "$ac_cv_prog_cc_g" >&6; }
4123if test "$ac_test_CFLAGS" = set; then
4124 CFLAGS=$ac_save_CFLAGS
4125elif test $ac_cv_prog_cc_g = yes; then
4126 if test "$GCC" = yes; then
4127 CFLAGS="-g -O2"
4128 else
4129 CFLAGS="-g"
4130 fi
4131else
4132 if test "$GCC" = yes; then
4133 CFLAGS="-O2"
4134 else
4135 CFLAGS=
4136 fi
4137fi
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4139$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004140if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004141 $as_echo_n "(cached) " >&6
4142else
4143 ac_cv_prog_cc_c89=no
4144ac_save_CC=$CC
4145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146/* end confdefs.h. */
4147#include <stdarg.h>
4148#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004149struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004150/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4151struct buf { int x; };
4152FILE * (*rcsopen) (struct buf *, struct stat *, int);
4153static char *e (p, i)
4154 char **p;
4155 int i;
4156{
4157 return p[i];
4158}
4159static char *f (char * (*g) (char **, int), char **p, ...)
4160{
4161 char *s;
4162 va_list v;
4163 va_start (v,p);
4164 s = g (p, va_arg (v,int));
4165 va_end (v);
4166 return s;
4167}
4168
4169/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4170 function prototypes and stuff, but not '\xHH' hex character constants.
4171 These don't provoke an error unfortunately, instead are silently treated
4172 as 'x'. The following induces an error, until -std is added to get
4173 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4174 array size at least. It's necessary to write '\x00'==0 to get something
4175 that's true only with -std. */
4176int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4177
4178/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4179 inside strings and character constants. */
4180#define FOO(x) 'x'
4181int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4182
4183int test (int i, double x);
4184struct s1 {int (*f) (int a);};
4185struct s2 {int (*f) (double a);};
4186int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4187int argc;
4188char **argv;
4189int
4190main ()
4191{
4192return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4193 ;
4194 return 0;
4195}
4196_ACEOF
4197for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4198 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4199do
4200 CC="$ac_save_CC $ac_arg"
4201 if ac_fn_c_try_compile "$LINENO"; then :
4202 ac_cv_prog_cc_c89=$ac_arg
4203fi
4204rm -f core conftest.err conftest.$ac_objext
4205 test "x$ac_cv_prog_cc_c89" != "xno" && break
4206done
4207rm -f conftest.$ac_ext
4208CC=$ac_save_CC
4209
4210fi
4211# AC_CACHE_VAL
4212case "x$ac_cv_prog_cc_c89" in
4213 x)
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4215$as_echo "none needed" >&6; } ;;
4216 xno)
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4218$as_echo "unsupported" >&6; } ;;
4219 *)
4220 CC="$CC $ac_cv_prog_cc_c89"
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4222$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4223esac
4224if test "x$ac_cv_prog_cc_c89" != xno; then :
4225
4226fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004227
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004228ac_ext=c
4229ac_cpp='$CPP $CPPFLAGS'
4230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004234if test "$GCC" = yes; then
4235 RDYNAMIC="-rdynamic"
4236
4237fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004238ac_ext=c
4239ac_cpp='$CPP $CPPFLAGS'
4240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004244$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004245# On Suns, sometimes $CPP names a directory.
4246if test -n "$CPP" && test -d "$CPP"; then
4247 CPP=
4248fi
4249if test -z "$CPP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004250 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004251 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004252else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004253 # Double quotes because CPP needs to be expanded
4254 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4255 do
4256 ac_preproc_ok=false
4257for ac_c_preproc_warn_flag in '' yes
4258do
4259 # Use a header file that comes with gcc, so configuring glibc
4260 # with a fresh cross-compiler works.
4261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004263 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004264 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004266/* end confdefs.h. */
4267#ifdef __STDC__
4268# include <limits.h>
4269#else
4270# include <assert.h>
4271#endif
4272 Syntax error
4273_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004274if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004275
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004276else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004277 # Broken: fails on valid input.
4278continue
4279fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004280rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004281
Theodore Ts'oe1052142006-10-21 21:46:47 -04004282 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004283 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004285/* end confdefs.h. */
4286#include <ac_nonexistent.h>
4287_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004288if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004289 # Broken: success on invalid input.
4290continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004291else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004292 # Passes both tests.
4293ac_preproc_ok=:
4294break
4295fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004296rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004297
4298done
4299# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004300rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004301if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004302 break
4303fi
4304
4305 done
4306 ac_cv_prog_CPP=$CPP
4307
4308fi
4309 CPP=$ac_cv_prog_CPP
4310else
4311 ac_cv_prog_CPP=$CPP
4312fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004314$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004315ac_preproc_ok=false
4316for ac_c_preproc_warn_flag in '' yes
4317do
4318 # Use a header file that comes with gcc, so configuring glibc
4319 # with a fresh cross-compiler works.
4320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4321 # <limits.h> exists even on freestanding compilers.
4322 # On the NeXT, cc -E runs the code through the compiler's parser,
4323 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004325/* end confdefs.h. */
4326#ifdef __STDC__
4327# include <limits.h>
4328#else
4329# include <assert.h>
4330#endif
4331 Syntax error
4332_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004333if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004334
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004335else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004336 # Broken: fails on valid input.
4337continue
4338fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004339rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004340
Theodore Ts'oe1052142006-10-21 21:46:47 -04004341 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004342 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004344/* end confdefs.h. */
4345#include <ac_nonexistent.h>
4346_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004347if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004348 # Broken: success on invalid input.
4349continue
4350else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004351 # Passes both tests.
4352ac_preproc_ok=:
4353break
4354fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004355rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004356
4357done
4358# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004359rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004360if $ac_preproc_ok; then :
4361
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004362else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004365as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4366See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004367fi
4368
4369ac_ext=c
4370ac_cpp='$CPP $CPPFLAGS'
4371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004376$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004377if test "$GCC" = yes
4378then
4379 case "$host_cpu" in
4380 alpha) addcflags="-mieee" ;;
4381 esac
4382fi
4383if test "x$addcflags" != x
4384then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004386$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004387 CFLAGS="$addcflags $CFLAGS"
4388else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004390$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004391fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004392LIB_EXT=.a
4393STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004394PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004395
Theodore Ts'oe1052142006-10-21 21:46:47 -04004396# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004397if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004398 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004399else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004400 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004401fi
4402# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004403if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004404 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004405then
4406 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004408$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004409else
4410 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004412$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004413fi
4414
4415else
4416 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004418$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004419
Theodore Ts'oe1052142006-10-21 21:46:47 -04004420fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004421
Theodore Ts'oe1052142006-10-21 21:46:47 -04004422
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004423# Check whether --enable-symlink-install was given.
4424if test "${enable_symlink_install+set}" = set; then :
4425 enableval=$enable_symlink_install; if test "$enableval" = "no"
4426then
4427 LINK_INSTALL_FLAGS=-f
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4429$as_echo "Disabling symlinks for install" >&6; }
4430else
4431 LINK_INSTALL_FLAGS=-sf
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4433$as_echo "Enabling symlinks for install" >&6; }
4434fi
4435
4436else
4437 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4439$as_echo "Disabling symlinks for install by default" >&6; }
4440
4441fi
4442
4443
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004444relative_symlink_defined=
4445# Check whether --enable-relative-symlinks was given.
4446if test "${enable_relative_symlinks+set}" = set; then :
4447 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004448then
4449 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004450 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4452$as_echo "Disabling relative symlinks for install" >&6; }
4453else
4454 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004455 relative_symlink_defined=yes
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4457$as_echo "Enabling relative symlinks for install" >&6; }
4458fi
4459fi
4460
4461# Check whether --enable-symlink-relative-symlinks was given.
4462if test "${enable_symlink_relative_symlinks+set}" = set; then :
4463 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4464then
4465 SYMLINK_RELATIVE=yes
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4467$as_echo "Disabling relative symlinks for install" >&6; }
4468else
4469 SYMLINK_RELATIVE=--relative
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4471$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004472fi
4473
4474else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004475 if test -z "$relative_symlink_defined"
4476then
4477 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4479$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004480fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004481
4482fi
4483
4484
4485# Check whether --enable-symlink-build was given.
4486if test "${enable_symlink_build+set}" = set; then :
4487 enableval=$enable_symlink_build; if test "$enableval" = "no"
4488then
4489 LINK_BUILD_FLAGS=
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4491$as_echo "Disabling symlinks for build" >&6; }
4492else
4493 LINK_BUILD_FLAGS=-s
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4495$as_echo "Enabling symlinks for build" >&6; }
4496fi
4497
4498else
4499 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4501$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004502
4503fi
4504
4505
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004506# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004507if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004508 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4509then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004511$as_echo "Disabling verbose make commands" >&6; }
4512 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004513 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004514 Q=@
4515else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004517$as_echo "Enabling verbose make commands" >&6; }
4518 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004519 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004520 Q=
4521fi
4522
4523else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004525$as_echo "Disabling verbose make commands" >&6; }
4526E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004527ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004528Q=@
4529
4530fi
4531
4532
4533
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004534
Theodore Ts'oe1052142006-10-21 21:46:47 -04004535# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004536if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004537 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004538then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004540$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004541else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004542
4543$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004544
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004546$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004548$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004549fi
4550
4551else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004553$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004554
Theodore Ts'oe1052142006-10-21 21:46:47 -04004555fi
4556
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004557
Theodore Ts'oe1052142006-10-21 21:46:47 -04004558# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004559if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004560 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004561then
4562 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004564$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004565else
4566 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004567 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004568
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004570$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004571fi
4572
4573else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004574 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004575$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004576
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004578$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004579
Theodore Ts'oe1052142006-10-21 21:46:47 -04004580fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004581
Theodore Ts'oe1052142006-10-21 21:46:47 -04004582
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004583E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004584LDFLAG_DYNAMIC=
4585PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004586# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004587if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004588 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004589then
4590 ELF_CMT=#
4591 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004593$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004594else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004595 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004596 ELF_CMT=
4597 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004598 case "$host_os" in
4599 solaris2.*)
4600 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4601 ;;
4602 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004603 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004604 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004605 PRIVATE_LIBS_CMT=#
4606 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004608$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004609fi
4610
4611else
4612 MAKEFILE_ELF=/dev/null
4613ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004615$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004616
Theodore Ts'oe1052142006-10-21 21:46:47 -04004617fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004618
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004619
Theodore Ts'oe1052142006-10-21 21:46:47 -04004620
4621# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004622if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004623 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004624then
4625 BSDLIB_CMT=#
4626 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004628$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004629else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004630 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004631 BSDLIB_CMT=
4632 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004633 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004634 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004635 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004636 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4637 LIB_EXT=.dylib
4638 ;;
4639 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004641$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004642fi
4643
4644else
4645 MAKEFILE_BSDLIB=/dev/null
4646BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004648$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004649
Theodore Ts'oe1052142006-10-21 21:46:47 -04004650fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004651
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004652
Theodore Ts'oe1052142006-10-21 21:46:47 -04004653
4654# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004655if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004656 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004657then
4658 PROFILE_CMT=#
4659 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004661$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004662else
4663 PROFILE_CMT=
4664 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4665 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004667$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004668fi
4669
4670else
4671 PROFILE_CMT=#
4672MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004674$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004675
Theodore Ts'oe1052142006-10-21 21:46:47 -04004676fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004677
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004678
Theodore Ts'oe1052142006-10-21 21:46:47 -04004679
4680# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004681if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004682 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004683then
4684 CHECKER_CMT=#
4685 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004687$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004688else
4689 CHECKER_CMT=
4690 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004692$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004693fi
4694
4695else
4696 CHECKER_CMT=#
4697MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004699$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004700
Theodore Ts'oe1052142006-10-21 21:46:47 -04004701fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004702
4703
4704
4705
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004706
Theodore Ts'oe1052142006-10-21 21:46:47 -04004707
Theodore Ts'o55da9872008-09-02 23:12:38 -04004708
4709
Theodore Ts'oe1052142006-10-21 21:46:47 -04004710# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004711if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004712 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004713then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004715$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004716else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004717
4718$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004719
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004721$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004722fi
4723
4724else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004726$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004727
Theodore Ts'oe1052142006-10-21 21:46:47 -04004728fi
4729
4730# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004731if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004732 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004733then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004735$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004736else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004737
4738$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004739
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004741$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004742fi
4743
4744else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004746$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004747
Theodore Ts'oe1052142006-10-21 21:46:47 -04004748fi
4749
4750# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004751if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004752 enableval=$enable_testio_debug;
4753if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004754then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004756$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004757 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004758else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004759 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004760 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004761
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004763$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004764fi
4765
4766else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004768$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004769$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004770
4771TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004772
Theodore Ts'oe1052142006-10-21 21:46:47 -04004773fi
4774
Theodore Ts'oaf773652008-09-01 11:27:27 -04004775
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004776
4777
4778if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4779 if test -n "$ac_tool_prefix"; then
4780 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4781set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004783$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004784if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004785 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004786else
4787 case $PKG_CONFIG in
4788 [\\/]* | ?:[\\/]*)
4789 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4790 ;;
4791 *)
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004797 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004799 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004801 break 2
4802 fi
4803done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004804 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004805IFS=$as_save_IFS
4806
4807 ;;
4808esac
4809fi
4810PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4811if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004813$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004814else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004816$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004817fi
4818
4819
4820fi
4821if test -z "$ac_cv_path_PKG_CONFIG"; then
4822 ac_pt_PKG_CONFIG=$PKG_CONFIG
4823 # Extract the first word of "pkg-config", so it can be a program name with args.
4824set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004826$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004827if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004828 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004829else
4830 case $ac_pt_PKG_CONFIG in
4831 [\\/]* | ?:[\\/]*)
4832 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4833 ;;
4834 *)
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004840 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004842 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004844 break 2
4845 fi
4846done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004847 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004848IFS=$as_save_IFS
4849
4850 ;;
4851esac
4852fi
4853ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4854if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004856$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004857else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004859$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004860fi
4861
4862 if test "x$ac_pt_PKG_CONFIG" = x; then
4863 PKG_CONFIG=""
4864 else
4865 case $cross_compiling:$ac_tool_warned in
4866yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004867{ $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 +01004868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004869ac_tool_warned=yes ;;
4870esac
4871 PKG_CONFIG=$ac_pt_PKG_CONFIG
4872 fi
4873else
4874 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4875fi
4876
4877fi
4878if test -n "$PKG_CONFIG"; then
4879 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004880 { $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 +01004881$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004882 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004884$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004885 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004887$as_echo "no" >&6; }
4888 PKG_CONFIG=""
4889 fi
4890
4891fi
4892LIBUUID=
4893DEPLIBUUID=
4894STATIC_LIBUUID=
4895DEPSTATIC_LIBUUID=
4896PROFILED_LIBUUID=
4897DEPPROFILED_LIBUUID=
4898UUID_CMT=
4899# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004900if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004901 enableval=$enable_libuuid; if test "$enableval" = "no"
4902then
4903 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004904 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004905 fi
4906
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004908$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004909if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004910 $as_echo_n "(cached) " >&6
4911else
4912 ac_check_lib_save_LIBS=$LIBS
4913LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004915/* end confdefs.h. */
4916
4917/* Override any GCC internal prototype to avoid an error.
4918 Use char because int might match the return type of a GCC
4919 builtin and then its argument prototype would still apply. */
4920#ifdef __cplusplus
4921extern "C"
4922#endif
4923char uuid_generate ();
4924int
4925main ()
4926{
4927return uuid_generate ();
4928 ;
4929 return 0;
4930}
4931_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004932if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004933 ac_cv_lib_uuid_uuid_generate=yes
4934else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004935 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004936fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004937rm -f core conftest.err conftest.$ac_objext \
4938 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004939LIBS=$ac_check_lib_save_LIBS
4940fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004942$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004943if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004944 LIBUUID=`$PKG_CONFIG --libs uuid`;
4945 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4946else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004947 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004948fi
4949
4950 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004952$as_echo "Disabling private uuid library" >&6; }
4953else
4954 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4955 DEPLIBUUID=$LIBUUID
4956 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4957 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4958 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4959 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004961$as_echo "Enabling private uuid library" >&6; }
4962fi
4963
4964else
4965 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4966DEPLIBUUID=$LIBUUID
4967STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4968DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4969PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4970DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004972$as_echo "Enabling private uuid library by default" >&6; }
4973
4974fi
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4986 if test -n "$ac_tool_prefix"; then
4987 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4988set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004990$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004991if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004992 $as_echo_n "(cached) " >&6
4993else
4994 case $PKG_CONFIG in
4995 [\\/]* | ?:[\\/]*)
4996 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4997 ;;
4998 *)
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005004 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005006 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005008 break 2
5009 fi
5010done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005011 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005012IFS=$as_save_IFS
5013
5014 ;;
5015esac
5016fi
5017PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5018if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005020$as_echo "$PKG_CONFIG" >&6; }
5021else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005023$as_echo "no" >&6; }
5024fi
5025
5026
5027fi
5028if test -z "$ac_cv_path_PKG_CONFIG"; then
5029 ac_pt_PKG_CONFIG=$PKG_CONFIG
5030 # Extract the first word of "pkg-config", so it can be a program name with args.
5031set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005033$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005034if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005035 $as_echo_n "(cached) " >&6
5036else
5037 case $ac_pt_PKG_CONFIG in
5038 [\\/]* | ?:[\\/]*)
5039 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5040 ;;
5041 *)
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043for as_dir in $PATH
5044do
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005047 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005049 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005051 break 2
5052 fi
5053done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005054 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005055IFS=$as_save_IFS
5056
5057 ;;
5058esac
5059fi
5060ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5061if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005063$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5064else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005066$as_echo "no" >&6; }
5067fi
5068
5069 if test "x$ac_pt_PKG_CONFIG" = x; then
5070 PKG_CONFIG=""
5071 else
5072 case $cross_compiling:$ac_tool_warned in
5073yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005074{ $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 +01005075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5076ac_tool_warned=yes ;;
5077esac
5078 PKG_CONFIG=$ac_pt_PKG_CONFIG
5079 fi
5080else
5081 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5082fi
5083
5084fi
5085if test -n "$PKG_CONFIG"; then
5086 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005087 { $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 +01005088$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5089 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005091$as_echo "yes" >&6; }
5092 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005094$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005095 PKG_CONFIG=""
5096 fi
5097
5098fi
5099LIBBLKID=
5100DEPLIBBLKID=
5101STATIC_LIBBLKID=
5102DEPSTATIC_LIBBLKID=
5103PROFILED_LIBBLKID=
5104DEPPROFILED_LIBBLKID=
5105BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005106
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005107# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005108if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005109 enableval=$enable_libblkid; if test "$enableval" = "no"
5110then
5111 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005112 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005113 fi
5114
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005116$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005117if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005118 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005119else
5120 ac_check_lib_save_LIBS=$LIBS
5121LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005123/* end confdefs.h. */
5124
5125/* Override any GCC internal prototype to avoid an error.
5126 Use char because int might match the return type of a GCC
5127 builtin and then its argument prototype would still apply. */
5128#ifdef __cplusplus
5129extern "C"
5130#endif
5131char blkid_get_cache ();
5132int
5133main ()
5134{
5135return blkid_get_cache ();
5136 ;
5137 return 0;
5138}
5139_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005140if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005141 ac_cv_lib_blkid_blkid_get_cache=yes
5142else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005143 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005144fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005145rm -f core conftest.err conftest.$ac_objext \
5146 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005147LIBS=$ac_check_lib_save_LIBS
5148fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005150$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005151if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005152 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5153 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5154else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005155 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005156fi
5157
5158 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005160$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005161else
5162 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5163 DEPLIBBLKID=$LIBBLKID
5164 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5165 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5166 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5167 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005168 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005169
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005171$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005172fi
5173
5174else
5175 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5176DEPLIBBLKID=$LIBBLKID
5177STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5178DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5179PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5180DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005181$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005182
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005184$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005185
5186fi
5187
5188
5189
5190
5191
5192
5193
5194
Eric Sandeenf5589f42013-10-14 08:54:15 -04005195QUOTA_MAN_COMMENT='.\"'
Niu Yawei43075b42013-10-14 09:49:27 -04005196QUOTA_CMT=
Eric Sandeenf5589f42013-10-14 08:54:15 -04005197
Aditya Kalif239fef2011-07-20 11:40:02 -07005198
5199
5200if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5201 if test -n "$ac_tool_prefix"; then
5202 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5203set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005206if ${ac_cv_path_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005207 $as_echo_n "(cached) " >&6
5208else
5209 case $PKG_CONFIG in
5210 [\\/]* | ?:[\\/]*)
5211 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5212 ;;
5213 *)
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH
5216do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005221 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5224 fi
5225done
5226 done
5227IFS=$as_save_IFS
5228
5229 ;;
5230esac
5231fi
5232PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5233if test -n "$PKG_CONFIG"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5235$as_echo "$PKG_CONFIG" >&6; }
5236else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238$as_echo "no" >&6; }
5239fi
5240
5241
5242fi
5243if test -z "$ac_cv_path_PKG_CONFIG"; then
5244 ac_pt_PKG_CONFIG=$PKG_CONFIG
5245 # Extract the first word of "pkg-config", so it can be a program name with args.
5246set dummy pkg-config; ac_word=$2
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005249if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005250 $as_echo_n "(cached) " >&6
5251else
5252 case $ac_pt_PKG_CONFIG in
5253 [\\/]* | ?:[\\/]*)
5254 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5255 ;;
5256 *)
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258for as_dir in $PATH
5259do
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005264 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5267 fi
5268done
5269 done
5270IFS=$as_save_IFS
5271
5272 ;;
5273esac
5274fi
5275ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5276if test -n "$ac_pt_PKG_CONFIG"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5278$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5279else
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281$as_echo "no" >&6; }
5282fi
5283
5284 if test "x$ac_pt_PKG_CONFIG" = x; then
5285 PKG_CONFIG=""
5286 else
5287 case $cross_compiling:$ac_tool_warned in
5288yes:)
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5291ac_tool_warned=yes ;;
5292esac
5293 PKG_CONFIG=$ac_pt_PKG_CONFIG
5294 fi
5295else
5296 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5297fi
5298
5299fi
5300if test -n "$PKG_CONFIG"; then
5301 _pkg_min_version=0.9.0
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5303$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5304 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306$as_echo "yes" >&6; }
5307 else
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309$as_echo "no" >&6; }
5310 PKG_CONFIG=""
5311 fi
5312
5313fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005314
5315# Check whether --enable-quota was given.
5316if test "${enable_quota+set}" = set; then :
5317 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005318then
Niu Yawei43075b42013-10-14 09:49:27 -04005319 QUOTA_CMT=#
Theodore Ts'o7becb202011-11-14 10:40:43 -05005320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5321$as_echo "Disabling quota support" >&6; }
5322else
Niu Yawei43075b42013-10-14 09:49:27 -04005323 QUOTA_CMT=
Theodore Ts'o7becb202011-11-14 10:40:43 -05005324 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005325
Theodore Ts'o7becb202011-11-14 10:40:43 -05005326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5327$as_echo "Enabling quota support" >&6; }
Eric Sandeenf5589f42013-10-14 08:54:15 -04005328 QUOTA_MAN_COMMENT=""
5329
Aditya Kalif239fef2011-07-20 11:40:02 -07005330fi
5331
5332else
Niu Yawei43075b42013-10-14 09:49:27 -04005333 QUOTA_CMT=#
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
Theodore Ts'o7becb202011-11-14 10:40:43 -05005335$as_echo "Disabling quota support by default" >&6; }
5336
5337fi
5338
5339LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005340DEPLIBQUOTA=$LIBQUOTA
5341STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5342DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5343PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5344DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005345
5346
5347
5348
5349
5350
5351
Theodore Ts'o3df60142013-06-16 16:14:40 -04005352
5353# Check whether --enable-backtrace was given.
5354if test "${enable_backtrace+set}" = set; then :
5355 enableval=$enable_backtrace; if test "$enableval" = "no"
5356then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5358$as_echo "Disabling use of backtrace" >&6; }
5359 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5360
5361else
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5363$as_echo "Enabling use of backtrace" >&6; }
5364fi
5365
5366else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5368$as_echo "Enabling use of backtrace by default" >&6; }
5369
5370fi
5371
Theodore Ts'oe1052142006-10-21 21:46:47 -04005372# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005373if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005374 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005375then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005377$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005378 DEBUGFS_CMT="#"
5379else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005380 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005382$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005383fi
5384
5385else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005387$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005388DEBUGFS_CMT=
5389
Theodore Ts'oe1052142006-10-21 21:46:47 -04005390fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005391
Theodore Ts'oe1052142006-10-21 21:46:47 -04005392
5393# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005394if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005395 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005396then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005398$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005399 IMAGER_CMT="#"
5400else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005401 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005403$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005404fi
5405
5406else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005408$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005409IMAGER_CMT=
5410
Theodore Ts'oe1052142006-10-21 21:46:47 -04005411fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005412
Theodore Ts'oe1052142006-10-21 21:46:47 -04005413
5414# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005415if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005416 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005417then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005419$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005420 RESIZER_CMT="#"
5421else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005422 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005424$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005425fi
5426
5427else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005429$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005430RESIZER_CMT=
5431
Theodore Ts'oe1052142006-10-21 21:46:47 -04005432fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005433
Theodore Ts'oe1052142006-10-21 21:46:47 -04005434
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005435# Check whether --enable-defrag was given.
5436if test "${enable_defrag+set}" = set; then :
5437 enableval=$enable_defrag; if test "$enableval" = "no"
5438then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5440$as_echo "Disabling e4defrag support" >&6; }
5441 DEFRAG_CMT="#"
5442else
5443 DEFRAG_CMT=
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5445$as_echo "Enabling e4defrag support" >&6; }
5446fi
5447
5448else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005449 if test -z "$WITH_DIET_LIBC"
5450then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005452$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005453 DEFRAG_CMT=
5454else
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5456$as_echo "Disabling e4defrag support by default" >&6; }
5457 DEFRAG_CMT="#"
5458fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005459
5460fi
5461
5462
Theodore Ts'oe1052142006-10-21 21:46:47 -04005463# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005464if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005465 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005466then
5467 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005469$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005470else
5471 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005473$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005474fi
5475
5476else
5477 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005478 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005479 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005481$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005482 ;;
5483 *)
5484 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005486$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005487esac
5488
Theodore Ts'oe1052142006-10-21 21:46:47 -04005489fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005490
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005491
Theodore Ts'oe1052142006-10-21 21:46:47 -04005492
5493# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005494if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005495 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005496then
5497 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005499$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005500else
5501 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005503$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005504fi
5505
5506else
5507 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005509$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005510
Theodore Ts'oe1052142006-10-21 21:46:47 -04005511fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005512
5513
Theodore Ts'oe1052142006-10-21 21:46:47 -04005514
Theodore Ts'o32493942007-12-31 10:45:01 -05005515# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005516if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005517 enableval=$enable_tls; if test "$enableval" = "no"
5518then
5519 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005521$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005522else
5523 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005525$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005526fi
5527
5528else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005529 if test -n "$WITH_DIET_LIBC"
5530then
5531 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005532 { $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 +01005533$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005534else
5535 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005537$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005538fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005539
5540fi
5541
5542if test "$try_tls" = "yes"
5543then
5544
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005546$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005547 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005548 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005549else
5550
5551 ax_tls_keywords="__thread __declspec(thread) none"
5552 for ax_tls_keyword in $ax_tls_keywords; do
5553 case $ax_tls_keyword in
5554 none) ac_cv_tls=none ; break ;;
5555 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005557/* end confdefs.h. */
5558#include <stdlib.h>
5559 static void
5560 foo(void) {
5561 static $ax_tls_keyword int bar;
5562 exit(1);
5563 }
5564int
5565main ()
5566{
5567
5568 ;
5569 return 0;
5570}
5571_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005572if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005573 ac_cv_tls=$ax_tls_keyword ; break
5574else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005575 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005576
5577fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 esac
5580 done
5581
5582fi
5583
5584
5585 if test "$ac_cv_tls" != "none"; then
5586
5587cat >>confdefs.h <<_ACEOF
5588#define TLS $ac_cv_tls
5589_ACEOF
5590
5591 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005593$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005594
5595fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005596
Theodore Ts'o5610f992007-12-31 11:16:56 -05005597# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005598if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005599 enableval=$enable_uuidd; if test "$enableval" = "no"
5600then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005602$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005603 UUIDD_CMT="#"
5604else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005605 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005606
5607 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005609$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005610fi
5611
5612else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005613 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005614
5615UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005617$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005618
5619fi
5620
5621
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005622MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5623
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005624GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005625PACKAGE=e2fsprogs
5626VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005627VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005628
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005629cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005630#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005631_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005632
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005633
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005634cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005635#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005636_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005637
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005638
5639
5640
5641
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005643$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5644set x ${MAKE-make}
5645ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005646if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005647 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005648else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005649 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005650SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005651all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005652 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005653_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005654# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005655case `${MAKE-make} -f conftest.make 2>/dev/null` in
5656 *@@@%%%=?*=@@@%%%*)
5657 eval ac_cv_prog_make_${ac_make}_set=yes;;
5658 *)
5659 eval ac_cv_prog_make_${ac_make}_set=no;;
5660esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005661rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005662fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005663if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005665$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005666 SET_MAKE=
5667else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005669$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005670 SET_MAKE="MAKE=${MAKE-make}"
5671fi
5672
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005673# Find a good install program. We prefer a C program (faster),
5674# so one script is as good as another. But avoid the broken or
5675# incompatible versions:
5676# SysV /etc/install, /usr/sbin/install
5677# SunOS /usr/etc/install
5678# IRIX /sbin/install
5679# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005680# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005681# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5682# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5683# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005684# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005685# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005686# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005688$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005689if test -z "$INSTALL"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005690if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005691 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005692else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694for as_dir in $PATH
5695do
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005698 # Account for people who put trailing slashes in PATH elements.
5699case $as_dir/ in #((
5700 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005701 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005702 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005703 /usr/ucb/* ) ;;
5704 *)
5705 # OSF1 and SCO ODT 3.0 have their own names for install.
5706 # Don't use installbsd from OSF since it installs stuff as root
5707 # by default.
5708 for ac_prog in ginstall scoinst install; do
5709 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005710 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005711 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005712 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005713 # AIX install. It has an incompatible calling convention.
5714 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005715 elif test $ac_prog = install &&
5716 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5717 # program-specific install script used by HP pwplus--don't use.
5718 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005719 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005720 rm -rf conftest.one conftest.two conftest.dir
5721 echo one > conftest.one
5722 echo two > conftest.two
5723 mkdir conftest.dir
5724 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5725 test -s conftest.one && test -s conftest.two &&
5726 test -s conftest.dir/conftest.one &&
5727 test -s conftest.dir/conftest.two
5728 then
5729 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5730 break 3
5731 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005732 fi
5733 fi
5734 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005735 done
5736 ;;
5737esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005738
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005739 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005740IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005741
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005742rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005743
5744fi
5745 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005746 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005747 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005748 # As a last resort, use the slow shell script. Don't cache a
5749 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005750 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005751 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005752 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005753 fi
5754fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005756$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005757
5758# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5759# It thinks the first close brace ends the variable substitution.
5760test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5761
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005762test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005763
5764test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5765
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005766
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005767 MKINSTALLDIRS=
5768 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005769 case "$ac_aux_dir" in
5770 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5771 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5772 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005773 fi
5774 if test -z "$MKINSTALLDIRS"; then
5775 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5776 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005777
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005778
5779
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005781$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005782 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005783if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005784 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005785else
5786 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005787fi
5788
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005790$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005791
5792
5793
5794
5795
5796
5797# Prepare PATH_SEPARATOR.
5798# The user is always right.
5799if test "${PATH_SEPARATOR+set}" != set; then
5800 echo "#! /bin/sh" >conf$$.sh
5801 echo "exit 0" >>conf$$.sh
5802 chmod +x conf$$.sh
5803 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5804 PATH_SEPARATOR=';'
5805 else
5806 PATH_SEPARATOR=:
5807 fi
5808 rm -f conf$$.sh
5809fi
5810
5811# Find out how to test for executable files. Don't use a zero-byte file,
5812# as systems may use methods other than mode bits to determine executability.
5813cat >conf$$.file <<_ASEOF
5814#! /bin/sh
5815exit 0
5816_ASEOF
5817chmod +x conf$$.file
5818if test -x conf$$.file >/dev/null 2>&1; then
5819 ac_executable_p="test -x"
5820else
5821 ac_executable_p="test -f"
5822fi
5823rm -f conf$$.file
5824
5825# Extract the first word of "msgfmt", so it can be a program name with args.
5826set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005828$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005829if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005830 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005831else
5832 case "$MSGFMT" in
5833 [\\/]* | ?:[\\/]*)
5834 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5835 ;;
5836 *)
5837 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5838 for ac_dir in $PATH; do
5839 IFS="$ac_save_IFS"
5840 test -z "$ac_dir" && ac_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5843 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5844 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5845 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5846 break 2
5847 fi
5848 fi
5849 done
5850 done
5851 IFS="$ac_save_IFS"
5852 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5853 ;;
5854esac
5855fi
5856MSGFMT="$ac_cv_path_MSGFMT"
5857if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005859$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005860else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005862$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005863fi
5864
5865 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5866set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005868$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005869if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005870 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005871else
5872 case $GMSGFMT in
5873 [\\/]* | ?:[\\/]*)
5874 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5875 ;;
5876 *)
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878for as_dir in $PATH
5879do
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005882 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005884 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005886 break 2
5887 fi
5888done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005889 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005890IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005891
5892 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5893 ;;
5894esac
5895fi
5896GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005897if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005899$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005900else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005902$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005903fi
5904
5905
5906
Theodore Ts'oe1052142006-10-21 21:46:47 -04005907
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005908# Prepare PATH_SEPARATOR.
5909# The user is always right.
5910if test "${PATH_SEPARATOR+set}" != set; then
5911 echo "#! /bin/sh" >conf$$.sh
5912 echo "exit 0" >>conf$$.sh
5913 chmod +x conf$$.sh
5914 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5915 PATH_SEPARATOR=';'
5916 else
5917 PATH_SEPARATOR=:
5918 fi
5919 rm -f conf$$.sh
5920fi
5921
5922# Find out how to test for executable files. Don't use a zero-byte file,
5923# as systems may use methods other than mode bits to determine executability.
5924cat >conf$$.file <<_ASEOF
5925#! /bin/sh
5926exit 0
5927_ASEOF
5928chmod +x conf$$.file
5929if test -x conf$$.file >/dev/null 2>&1; then
5930 ac_executable_p="test -x"
5931else
5932 ac_executable_p="test -f"
5933fi
5934rm -f conf$$.file
5935
5936# Extract the first word of "xgettext", so it can be a program name with args.
5937set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005939$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005940if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005941 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005942else
5943 case "$XGETTEXT" in
5944 [\\/]* | ?:[\\/]*)
5945 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5946 ;;
5947 *)
5948 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5949 for ac_dir in $PATH; do
5950 IFS="$ac_save_IFS"
5951 test -z "$ac_dir" && ac_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5954 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5955 (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
5956 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5957 break 2
5958 fi
5959 fi
5960 done
5961 done
5962 IFS="$ac_save_IFS"
5963 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5964 ;;
5965esac
5966fi
5967XGETTEXT="$ac_cv_path_XGETTEXT"
5968if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005970$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005971else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005973$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005974fi
5975
5976 rm -f messages.po
5977
5978
5979# Prepare PATH_SEPARATOR.
5980# The user is always right.
5981if test "${PATH_SEPARATOR+set}" != set; then
5982 echo "#! /bin/sh" >conf$$.sh
5983 echo "exit 0" >>conf$$.sh
5984 chmod +x conf$$.sh
5985 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5986 PATH_SEPARATOR=';'
5987 else
5988 PATH_SEPARATOR=:
5989 fi
5990 rm -f conf$$.sh
5991fi
5992
5993# Find out how to test for executable files. Don't use a zero-byte file,
5994# as systems may use methods other than mode bits to determine executability.
5995cat >conf$$.file <<_ASEOF
5996#! /bin/sh
5997exit 0
5998_ASEOF
5999chmod +x conf$$.file
6000if test -x conf$$.file >/dev/null 2>&1; then
6001 ac_executable_p="test -x"
6002else
6003 ac_executable_p="test -f"
6004fi
6005rm -f conf$$.file
6006
6007# Extract the first word of "msgmerge", so it can be a program name with args.
6008set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006010$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006011if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006012 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006013else
6014 case "$MSGMERGE" in
6015 [\\/]* | ?:[\\/]*)
6016 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6017 ;;
6018 *)
6019 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6020 for ac_dir in $PATH; do
6021 IFS="$ac_save_IFS"
6022 test -z "$ac_dir" && ac_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6025 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6026 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6027 break 2
6028 fi
6029 fi
6030 done
6031 done
6032 IFS="$ac_save_IFS"
6033 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6034 ;;
6035esac
6036fi
6037MSGMERGE="$ac_cv_path_MSGMERGE"
6038if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006040$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006041else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006043$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006044fi
6045
6046
6047 if test "$GMSGFMT" != ":"; then
6048 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6049 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6050 : ;
6051 else
6052 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006053 { $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 +01006054$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006055 GMSGFMT=":"
6056 fi
6057 fi
6058
6059 if test "$XGETTEXT" != ":"; then
6060 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6061 (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
6062 : ;
6063 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006064 { $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 +01006065$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006066 XGETTEXT=":"
6067 fi
6068 rm -f messages.po
6069 fi
6070
Theodore Ts'oe1052142006-10-21 21:46:47 -04006071 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006072
6073
6074if test -n "$ac_tool_prefix"; then
6075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6076set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006078$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006079if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006080 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006081else
6082 if test -n "$RANLIB"; then
6083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6084else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086for as_dir in $PATH
6087do
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006090 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006094 break 2
6095 fi
6096done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006097 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006098IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006099
6100fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006101fi
6102RANLIB=$ac_cv_prog_RANLIB
6103if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006105$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006106else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006108$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006109fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006110
Theodore Ts'oe1052142006-10-21 21:46:47 -04006111
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006112fi
6113if test -z "$ac_cv_prog_RANLIB"; then
6114 ac_ct_RANLIB=$RANLIB
6115 # Extract the first word of "ranlib", so it can be a program name with args.
6116set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006118$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006119if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006120 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006121else
6122 if test -n "$ac_ct_RANLIB"; then
6123 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6124else
6125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126for as_dir in $PATH
6127do
6128 IFS=$as_save_IFS
6129 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006130 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006132 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006134 break 2
6135 fi
6136done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006137 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006138IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006139
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006140fi
6141fi
6142ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6143if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006145$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006146else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006148$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006149fi
6150
Theodore Ts'oe1052142006-10-21 21:46:47 -04006151 if test "x$ac_ct_RANLIB" = x; then
6152 RANLIB=":"
6153 else
6154 case $cross_compiling:$ac_tool_warned in
6155yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006156{ $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 +01006157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006158ac_tool_warned=yes ;;
6159esac
6160 RANLIB=$ac_ct_RANLIB
6161 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006162else
6163 RANLIB="$ac_cv_prog_RANLIB"
6164fi
6165
6166
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006168$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006169if ${ac_cv_lib_cposix_strerror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006170 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006171else
6172 ac_check_lib_save_LIBS=$LIBS
6173LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006175/* end confdefs.h. */
6176
Theodore Ts'oe1052142006-10-21 21:46:47 -04006177/* Override any GCC internal prototype to avoid an error.
6178 Use char because int might match the return type of a GCC
6179 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006180#ifdef __cplusplus
6181extern "C"
6182#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006183char strerror ();
6184int
6185main ()
6186{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006187return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006188 ;
6189 return 0;
6190}
6191_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006192if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006193 ac_cv_lib_cposix_strerror=yes
6194else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006195 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006196fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006197rm -f core conftest.err conftest.$ac_objext \
6198 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006199LIBS=$ac_check_lib_save_LIBS
6200fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006202$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006203if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006204 LIBS="$LIBS -lcposix"
6205fi
6206
6207
6208
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006209
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6211$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006212if ${ac_cv_path_GREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006213 $as_echo_n "(cached) " >&6
6214else
6215 if test -z "$GREP"; then
6216 ac_path_GREP_found=false
6217 # Loop through the user's path and test for each of PROGNAME-LIST
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6220do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_prog in grep ggrep; do
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006226 as_fn_executable_p "$ac_path_GREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006227# Check for GNU ac_path_GREP and select it if it is found.
6228 # Check for GNU $ac_path_GREP
6229case `"$ac_path_GREP" --version 2>&1` in
6230*GNU*)
6231 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6232*)
6233 ac_count=0
6234 $as_echo_n 0123456789 >"conftest.in"
6235 while :
6236 do
6237 cat "conftest.in" "conftest.in" >"conftest.tmp"
6238 mv "conftest.tmp" "conftest.in"
6239 cp "conftest.in" "conftest.nl"
6240 $as_echo 'GREP' >> "conftest.nl"
6241 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6243 as_fn_arith $ac_count + 1 && ac_count=$as_val
6244 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6245 # Best one so far, save it but keep looking for a better one
6246 ac_cv_path_GREP="$ac_path_GREP"
6247 ac_path_GREP_max=$ac_count
6248 fi
6249 # 10*(2^10) chars as input seems more than enough
6250 test $ac_count -gt 10 && break
6251 done
6252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6253esac
6254
6255 $ac_path_GREP_found && break 3
6256 done
6257 done
6258 done
6259IFS=$as_save_IFS
6260 if test -z "$ac_cv_path_GREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006261 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 -04006262 fi
6263else
6264 ac_cv_path_GREP=$GREP
6265fi
6266
6267fi
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6269$as_echo "$ac_cv_path_GREP" >&6; }
6270 GREP="$ac_cv_path_GREP"
6271
6272
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6274$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006275if ${ac_cv_path_EGREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006276 $as_echo_n "(cached) " >&6
6277else
6278 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6279 then ac_cv_path_EGREP="$GREP -E"
6280 else
6281 if test -z "$EGREP"; then
6282 ac_path_EGREP_found=false
6283 # Loop through the user's path and test for each of PROGNAME-LIST
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6286do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_prog in egrep; do
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006292 as_fn_executable_p "$ac_path_EGREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006293# Check for GNU ac_path_EGREP and select it if it is found.
6294 # Check for GNU $ac_path_EGREP
6295case `"$ac_path_EGREP" --version 2>&1` in
6296*GNU*)
6297 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6298*)
6299 ac_count=0
6300 $as_echo_n 0123456789 >"conftest.in"
6301 while :
6302 do
6303 cat "conftest.in" "conftest.in" >"conftest.tmp"
6304 mv "conftest.tmp" "conftest.in"
6305 cp "conftest.in" "conftest.nl"
6306 $as_echo 'EGREP' >> "conftest.nl"
6307 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6309 as_fn_arith $ac_count + 1 && ac_count=$as_val
6310 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6311 # Best one so far, save it but keep looking for a better one
6312 ac_cv_path_EGREP="$ac_path_EGREP"
6313 ac_path_EGREP_max=$ac_count
6314 fi
6315 # 10*(2^10) chars as input seems more than enough
6316 test $ac_count -gt 10 && break
6317 done
6318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6319esac
6320
6321 $ac_path_EGREP_found && break 3
6322 done
6323 done
6324 done
6325IFS=$as_save_IFS
6326 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006327 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 -04006328 fi
6329else
6330 ac_cv_path_EGREP=$EGREP
6331fi
6332
6333 fi
6334fi
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6336$as_echo "$ac_cv_path_EGREP" >&6; }
6337 EGREP="$ac_cv_path_EGREP"
6338
6339
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6341$as_echo_n "checking for ANSI C header files... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006342if ${ac_cv_header_stdc+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006343 $as_echo_n "(cached) " >&6
6344else
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346/* end confdefs.h. */
6347#include <stdlib.h>
6348#include <stdarg.h>
6349#include <string.h>
6350#include <float.h>
6351
6352int
6353main ()
6354{
6355
6356 ;
6357 return 0;
6358}
6359_ACEOF
6360if ac_fn_c_try_compile "$LINENO"; then :
6361 ac_cv_header_stdc=yes
6362else
6363 ac_cv_header_stdc=no
6364fi
6365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366
6367if test $ac_cv_header_stdc = yes; then
6368 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370/* end confdefs.h. */
6371#include <string.h>
6372
6373_ACEOF
6374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6375 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387/* end confdefs.h. */
6388#include <stdlib.h>
6389
6390_ACEOF
6391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6392 $EGREP "free" >/dev/null 2>&1; then :
6393
6394else
6395 ac_cv_header_stdc=no
6396fi
6397rm -f conftest*
6398
6399fi
6400
6401if test $ac_cv_header_stdc = yes; then
6402 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6403 if test "$cross_compiling" = yes; then :
6404 :
6405else
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407/* end confdefs.h. */
6408#include <ctype.h>
6409#include <stdlib.h>
6410#if ((' ' & 0x0FF) == 0x020)
6411# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6412# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6413#else
6414# define ISLOWER(c) \
6415 (('a' <= (c) && (c) <= 'i') \
6416 || ('j' <= (c) && (c) <= 'r') \
6417 || ('s' <= (c) && (c) <= 'z'))
6418# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6419#endif
6420
6421#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6422int
6423main ()
6424{
6425 int i;
6426 for (i = 0; i < 256; i++)
6427 if (XOR (islower (i), ISLOWER (i))
6428 || toupper (i) != TOUPPER (i))
6429 return 2;
6430 return 0;
6431}
6432_ACEOF
6433if ac_fn_c_try_run "$LINENO"; then :
6434
6435else
6436 ac_cv_header_stdc=no
6437fi
6438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6439 conftest.$ac_objext conftest.beam conftest.$ac_ext
6440fi
6441
6442fi
6443fi
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6445$as_echo "$ac_cv_header_stdc" >&6; }
6446if test $ac_cv_header_stdc = yes; then
6447
6448$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6449
6450fi
6451
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006453$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006454if ${ac_cv_c_const+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006455 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006456else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006458/* end confdefs.h. */
6459
6460int
6461main ()
6462{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006463
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006464#ifndef __cplusplus
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006465 /* Ultrix mips cc rejects this sort of thing. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006466 typedef int charset[2];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006467 const charset cs = { 0, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006468 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006469 char const *const *pcpcc;
6470 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006471 /* NEC SVR4.0.2 mips cc rejects this. */
6472 struct point {int x, y;};
6473 static struct point const zero = {0,0};
6474 /* AIX XL C 1.02.0.0 rejects this.
6475 It does not let you subtract one const X* pointer from another in
6476 an arm of an if-expression whose if-part is not a constant
6477 expression */
6478 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006479 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006480 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006481 ++pcpcc;
6482 ppc = (char**) pcpcc;
6483 pcpcc = (char const *const *) ppc;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006484 { /* SCO 3.2v4 cc rejects this sort of thing. */
6485 char tx;
6486 char *t = &tx;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006487 char const *s = 0 ? (char *) 0 : (char const *) 0;
6488
6489 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006490 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006491 }
6492 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6493 int x[] = {25, 17};
6494 const int *foo = &x[0];
6495 ++foo;
6496 }
6497 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6498 typedef const int *iptr;
6499 iptr p = 0;
6500 ++p;
6501 }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006502 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006503 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006504 struct s { int j; const int *ap[3]; } bx;
6505 struct s *b = &bx; b->j = 5;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006506 }
6507 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6508 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006509 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006510 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006511 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006512#endif
6513
6514 ;
6515 return 0;
6516}
6517_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006518if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006519 ac_cv_c_const=yes
6520else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006521 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006522fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006524fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006526$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006527if test $ac_cv_c_const = no; then
6528
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006529$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006530
6531fi
6532
6533
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006535$as_echo_n "checking for signed... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006536if ${bh_cv_c_signed+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006537 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006538else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006540/* end confdefs.h. */
6541
6542int
6543main ()
6544{
6545signed char x;
6546 ;
6547 return 0;
6548}
6549_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006550if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006551 bh_cv_c_signed=yes
6552else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006553 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006554fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006556fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006558$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006559 if test $bh_cv_c_signed = no; then
6560
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006561$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006562
6563 fi
6564
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006566$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006567if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006568 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006569else
6570 ac_cv_c_inline=no
6571for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006573/* end confdefs.h. */
6574#ifndef __cplusplus
6575typedef int foo_t;
6576static $ac_kw foo_t static_foo () {return 0; }
6577$ac_kw foo_t foo () {return 0; }
6578#endif
6579
6580_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006581if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006582 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006583fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006586done
6587
6588fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006590$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006591
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006592case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006593 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006594 *)
6595 case $ac_cv_c_inline in
6596 no) ac_val=;;
6597 *) ac_val=$ac_cv_c_inline;;
6598 esac
6599 cat >>confdefs.h <<_ACEOF
6600#ifndef __cplusplus
6601#define inline $ac_val
6602#endif
6603_ACEOF
6604 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006605esac
6606
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006607# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6608for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6609 inttypes.h stdint.h unistd.h
6610do :
6611 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6612ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6613"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006614if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006615 cat >>confdefs.h <<_ACEOF
6616#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6617_ACEOF
6618
6619fi
6620
6621done
6622
6623
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006624ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006625if test "x$ac_cv_type_off_t" = xyes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006626
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006627else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006628
6629cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006630#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006631_ACEOF
6632
6633fi
6634
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006635ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006636if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006637
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006638else
6639
6640cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006641#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006642_ACEOF
6643
6644fi
6645
6646
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006648$as_echo_n "checking for long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006649if ${ac_cv_type_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006650 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006651else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006653/* end confdefs.h. */
6654long long ll = 1LL; int i = 63;
6655int
6656main ()
6657{
6658long long llmax = (long long) -1;
6659 return ll << i | ll >> i | llmax / ll | llmax % ll;
6660 ;
6661 return 0;
6662}
6663_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006664if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006665 ac_cv_type_long_long=yes
6666else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006667 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006668fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006669rm -f core conftest.err conftest.$ac_objext \
6670 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006671fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006673$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006674 if test $ac_cv_type_long_long = yes; then
6675
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006676$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677
6678 fi
6679
6680
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006682$as_echo_n "checking for long double... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006683if ${gt_cv_c_long_double+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006684 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685else
6686 if test "$GCC" = yes; then
6687 gt_cv_c_long_double=yes
6688 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006690/* end confdefs.h. */
6691
6692 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6693 long double foo = 0.0;
6694 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6695 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6696
6697int
6698main ()
6699{
6700
6701 ;
6702 return 0;
6703}
6704_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006705if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006706 gt_cv_c_long_double=yes
6707else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006708 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006709fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006711 fi
6712fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006714$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006715 if test $gt_cv_c_long_double = yes; then
6716
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006717$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006718
6719 fi
6720
6721
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006723$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006724if ${gt_cv_c_wchar_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006725 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006726else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006728/* end confdefs.h. */
6729#include <stddef.h>
6730 wchar_t foo = (wchar_t)'\0';
6731int
6732main ()
6733{
6734
6735 ;
6736 return 0;
6737}
6738_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006739if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740 gt_cv_c_wchar_t=yes
6741else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006742 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006743fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006745fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006747$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006748 if test $gt_cv_c_wchar_t = yes; then
6749
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006750$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006751
6752 fi
6753
6754
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006756$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006757if ${gt_cv_c_wint_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006758 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006759else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006761/* end confdefs.h. */
6762#include <wchar.h>
6763 wint_t foo = (wchar_t)'\0';
6764int
6765main ()
6766{
6767
6768 ;
6769 return 0;
6770}
6771_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006772if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006773 gt_cv_c_wint_t=yes
6774else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006775 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006776fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006778fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006780$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006781 if test $gt_cv_c_wint_t = yes; then
6782
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006783$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006784
6785 fi
6786
6787
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006789$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006790if ${jm_ac_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006791 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006792else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006794/* end confdefs.h. */
6795#include <sys/types.h>
6796#include <inttypes.h>
6797int
6798main ()
6799{
6800uintmax_t i = (uintmax_t) -1;
6801 ;
6802 return 0;
6803}
6804_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006805if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006806 jm_ac_cv_header_inttypes_h=yes
6807else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006808 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006809fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006811fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006813$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006814 if test $jm_ac_cv_header_inttypes_h = yes; then
6815
6816cat >>confdefs.h <<_ACEOF
6817#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6818_ACEOF
6819
6820 fi
6821
6822
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006824$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006825if ${jm_ac_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006826 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006827else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006829/* end confdefs.h. */
6830#include <sys/types.h>
6831#include <stdint.h>
6832int
6833main ()
6834{
6835uintmax_t i = (uintmax_t) -1;
6836 ;
6837 return 0;
6838}
6839_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006840if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006841 jm_ac_cv_header_stdint_h=yes
6842else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006843 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006844fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006846fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006848$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006849 if test $jm_ac_cv_header_stdint_h = yes; then
6850
6851cat >>confdefs.h <<_ACEOF
6852#define HAVE_STDINT_H_WITH_UINTMAX 1
6853_ACEOF
6854
6855 fi
6856
6857
6858
6859
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006861$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006862if ${gt_cv_c_intmax_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006863 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006864else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006866/* end confdefs.h. */
6867
6868#include <stddef.h>
6869#include <stdlib.h>
6870#if HAVE_STDINT_H_WITH_UINTMAX
6871#include <stdint.h>
6872#endif
6873#if HAVE_INTTYPES_H_WITH_UINTMAX
6874#include <inttypes.h>
6875#endif
6876
6877int
6878main ()
6879{
6880intmax_t x = -1;
6881 ;
6882 return 0;
6883}
6884_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006885if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006886 gt_cv_c_intmax_t=yes
6887else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006888 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006889fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006891fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006893$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006894 if test $gt_cv_c_intmax_t = yes; then
6895
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006896$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006897
6898 fi
6899
6900
6901
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006903$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006904if ${gt_cv_func_printf_posix+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006905 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006906else
6907
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006908 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006909
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006911/* end confdefs.h. */
6912
6913#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6914 notposix
6915#endif
6916
6917_ACEOF
6918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006919 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006920 gt_cv_func_printf_posix="guessing no"
6921else
6922 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006923fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006924rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006925
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006926
6927else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006929/* end confdefs.h. */
6930
6931#include <stdio.h>
6932#include <string.h>
6933/* The string "%2$d %1$d", with dollar characters protected from the shell's
6934 dollar expansion (possibly an autoconf bug). */
6935static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6936static char buf[100];
6937int main ()
6938{
6939 sprintf (buf, format, 33, 55);
6940 return (strcmp (buf, "55 33") != 0);
6941}
6942_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006943if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006944 gt_cv_func_printf_posix=yes
6945else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006946 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006947fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6949 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006950fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006951
Theodore Ts'oe1052142006-10-21 21:46:47 -04006952
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006953fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006955$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006956 case $gt_cv_func_printf_posix in
6957 *yes)
6958
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006959$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006960
6961 ;;
6962 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006963
6964# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6965# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006967$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006968if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006969 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006970else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006972/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006973#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006974int
6975main ()
6976{
6977char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006978 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006979 ;
6980 return 0;
6981}
6982_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006983if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006984 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006985else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006986 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006987fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006988rm -f core conftest.err conftest.$ac_objext \
6989 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006990fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006992$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006993if test $ac_cv_working_alloca_h = yes; then
6994
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006995$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006996
6997fi
6998
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007000$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007001if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007002 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007003else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007005/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007006#ifdef __GNUC__
7007# define alloca __builtin_alloca
7008#else
7009# ifdef _MSC_VER
7010# include <malloc.h>
7011# define alloca _alloca
7012# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007013# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007014# include <alloca.h>
7015# else
7016# ifdef _AIX
7017 #pragma alloca
7018# else
7019# ifndef alloca /* predefined by HP cc +Olibcalls */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007020void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007021# endif
7022# endif
7023# endif
7024# endif
7025#endif
7026
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007027int
7028main ()
7029{
7030char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007031 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007032 ;
7033 return 0;
7034}
7035_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007036if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007037 ac_cv_func_alloca_works=yes
7038else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007039 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007040fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007041rm -f core conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007043fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007045$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007046
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007047if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007048
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007049$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007050
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007051else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007052 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7053# that cause trouble. Some versions do not even contain alloca or
7054# contain a buggy version. If you still want to use their alloca,
7055# use ar to extract alloca.o from them instead of compiling alloca.c.
7056
Theodore Ts'oe1052142006-10-21 21:46:47 -04007057ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007058
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007059$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007060
7061
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007063$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007064if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007065 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007066else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007068/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007069#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007070webecray
7071#else
7072wenotbecray
7073#endif
7074
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007075_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007077 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007078 ac_cv_os_cray=yes
7079else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007080 ac_cv_os_cray=no
7081fi
7082rm -f conftest*
7083
7084fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007086$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007087if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007088 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007090ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007091if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007092
7093cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007094#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007095_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007096
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007097 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007098fi
7099
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007100 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007101fi
7102
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007104$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007105if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007106 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007107else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007108 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007109 ac_cv_c_stack_direction=0
7110else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007112/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007113$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007114int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007115find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007116{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007117 int dir, dummy = 0;
7118 if (! addr)
7119 addr = &dummy;
7120 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7121 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7122 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007123}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007124
7125int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007126main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007127{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007128 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007129}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007130_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007131if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007132 ac_cv_c_stack_direction=1
7133else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007134 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007135fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7137 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007138fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007139
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007140fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007142$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007143cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007144#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007145_ACEOF
7146
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007147
7148fi
7149
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007150
7151
7152
7153 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007154do :
7155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007156ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7157"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007158if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007159 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007160#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007161_ACEOF
7162
7163fi
7164
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007165done
7166
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007167
7168
7169
7170
7171
7172
7173
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007174for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007175do :
7176 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007177if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007178 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007179#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007180_ACEOF
7181
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007182fi
7183done
7184
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007186$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007187if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007188 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007189else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007190 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007191 ac_cv_func_mmap_fixed_mapped=no
7192else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007194/* end confdefs.h. */
7195$ac_includes_default
7196/* malloc might have been renamed as rpl_malloc. */
7197#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007198
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007199/* Thanks to Mike Haertel and Jim Avera for this test.
7200 Here is a matrix of mmap possibilities:
7201 mmap private not fixed
7202 mmap private fixed at somewhere currently unmapped
7203 mmap private fixed at somewhere already mapped
7204 mmap shared not fixed
7205 mmap shared fixed at somewhere currently unmapped
7206 mmap shared fixed at somewhere already mapped
7207 For private mappings, we should verify that changes cannot be read()
7208 back from the file, nor mmap's back from the file at a different
7209 address. (There have been systems where private was not correctly
7210 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007211 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007212 like early versions of FreeBSD and possibly contemporary NetBSD.)
7213 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007214 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007215
7216 Grep wants private fixed already mapped.
7217 The main things grep needs to know about mmap are:
7218 * does it exist and is it safe to write into the mmap'd area
7219 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007220
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007221#include <fcntl.h>
7222#include <sys/mman.h>
7223
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007224#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007225char *malloc ();
7226#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007227
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007228/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007229#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007230# ifdef _SC_PAGESIZE
7231# define getpagesize() sysconf(_SC_PAGESIZE)
7232# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007233# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007234# include <sys/param.h>
7235# ifdef EXEC_PAGESIZE
7236# define getpagesize() EXEC_PAGESIZE
7237# else /* no EXEC_PAGESIZE */
7238# ifdef NBPG
7239# define getpagesize() NBPG * CLSIZE
7240# ifndef CLSIZE
7241# define CLSIZE 1
7242# endif /* no CLSIZE */
7243# else /* no NBPG */
7244# ifdef NBPC
7245# define getpagesize() NBPC
7246# else /* no NBPC */
7247# ifdef PAGESIZE
7248# define getpagesize() PAGESIZE
7249# endif /* PAGESIZE */
7250# endif /* no NBPC */
7251# endif /* no NBPG */
7252# endif /* no EXEC_PAGESIZE */
7253# else /* no HAVE_SYS_PARAM_H */
7254# define getpagesize() 8192 /* punt totally */
7255# endif /* no HAVE_SYS_PARAM_H */
7256# endif /* no _SC_PAGESIZE */
7257
7258#endif /* no HAVE_GETPAGESIZE */
7259
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007260int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007261main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007262{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007263 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007264 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007265 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007266 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007267
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007268 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007270 /* First, make a file with some known garbage in it. */
7271 data = (char *) malloc (pagesize);
7272 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007273 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007274 for (i = 0; i < pagesize; ++i)
7275 *(data + i) = rand ();
7276 umask (0);
7277 fd = creat ("conftest.mmap", 0600);
7278 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007279 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007280 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007281 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007282 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007283
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007284 /* Next, check that the tail of a page is zero-filled. File must have
7285 non-zero length, otherwise we risk SIGBUS for entire page. */
7286 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7287 if (fd2 < 0)
7288 return 4;
7289 cdata2 = "";
7290 if (write (fd2, cdata2, 1) != 1)
7291 return 5;
7292 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7293 if (data2 == MAP_FAILED)
7294 return 6;
7295 for (i = 0; i < pagesize; ++i)
7296 if (*(data2 + i))
7297 return 7;
7298 close (fd2);
7299 if (munmap (data2, pagesize))
7300 return 8;
7301
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007302 /* Next, try to mmap the file at a fixed address which already has
7303 something else allocated at it. If we can, also make sure that
7304 we see the same garbage. */
7305 fd = open ("conftest.mmap", O_RDWR);
7306 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007307 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007308 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7309 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007310 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007311 for (i = 0; i < pagesize; ++i)
7312 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007313 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007314
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007315 /* Finally, make sure that changes to the mapped area do not
7316 percolate back to the file as seen by read(). (This is a bug on
7317 some variants of i386 svr4.0.) */
7318 for (i = 0; i < pagesize; ++i)
7319 *(data2 + i) = *(data2 + i) + 1;
7320 data3 = (char *) malloc (pagesize);
7321 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007322 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007323 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007324 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007325 for (i = 0; i < pagesize; ++i)
7326 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007327 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007328 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007329 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007330}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007331_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007332if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007333 ac_cv_func_mmap_fixed_mapped=yes
7334else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007335 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007336fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7338 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007339fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007340
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007341fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007343$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007344if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007345
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007346$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007347
7348fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007349rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007350
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007351
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007352 { $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 +01007353$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 -04007354if ${ac_cv_gnu_library_2_1+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007355 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007356else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007358/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007359
7360#include <features.h>
7361#ifdef __GNU_LIBRARY__
7362 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7363 Lucky GNU user
7364 #endif
7365#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007366
7367_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007369 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007370 ac_cv_gnu_library_2_1=yes
7371else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007372 ac_cv_gnu_library_2_1=no
7373fi
7374rm -f conftest*
7375
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007376
7377
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007378fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007380$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007381
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007382 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007383
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007384
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007385
7386
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007388$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007389if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007390 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007391else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007392
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007393 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007394
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007395 # Guess based on the CPU.
7396 case "$host_cpu" in
7397 alpha* | i3456786 | m68k | s390*)
7398 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7399 *)
7400 gt_cv_int_divbyzero_sigfpe="guessing no";;
7401 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007402
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007403else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007405/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007406
7407#include <stdlib.h>
7408#include <signal.h>
7409
7410static void
7411#ifdef __cplusplus
7412sigfpe_handler (int sig)
7413#else
7414sigfpe_handler (sig) int sig;
7415#endif
7416{
7417 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7418 exit (sig != SIGFPE);
7419}
7420
7421int x = 1;
7422int y = 0;
7423int z;
7424int nan;
7425
7426int main ()
7427{
7428 signal (SIGFPE, sigfpe_handler);
7429/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7430#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7431 signal (SIGTRAP, sigfpe_handler);
7432#endif
7433/* Linux/SPARC yields signal SIGILL. */
7434#if defined (__sparc__) && defined (__linux__)
7435 signal (SIGILL, sigfpe_handler);
7436#endif
7437
7438 z = x / y;
7439 nan = y / y;
7440 exit (1);
7441}
7442
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007443_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007444if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007445 gt_cv_int_divbyzero_sigfpe=yes
7446else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007447 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007448fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7450 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007451fi
7452
Theodore Ts'oe1052142006-10-21 21:46:47 -04007453
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007454fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007456$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007457 case "$gt_cv_int_divbyzero_sigfpe" in
7458 *yes) value=1;;
7459 *) value=0;;
7460 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007461
7462cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007463#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007464_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007465
7466
7467
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007469$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007470if ${ac_cv_type_unsigned_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007471 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007472else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007474/* end confdefs.h. */
7475unsigned long long ull = 1ULL; int i = 63;
7476int
7477main ()
7478{
7479unsigned long long ullmax = (unsigned long long) -1;
7480 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7481 ;
7482 return 0;
7483}
7484_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007485if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007486 ac_cv_type_unsigned_long_long=yes
7487else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007488 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007489fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007490rm -f core conftest.err conftest.$ac_objext \
7491 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007492fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007494$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007495 if test $ac_cv_type_unsigned_long_long = yes; then
7496
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007497$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007498
7499 fi
7500
7501
7502
7503
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007504 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 -05007505
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007506 test $ac_cv_type_unsigned_long_long = yes \
7507 && ac_type='unsigned long long' \
7508 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007509
7510cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007511#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007512_ACEOF
7513
7514 else
7515
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007516$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007517
7518 fi
7519
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007520
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007522$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007523if ${gt_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007524 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007525else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007526
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007528/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007529#include <sys/types.h>
7530#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007531int
7532main ()
7533{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007534
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007535 ;
7536 return 0;
7537}
7538_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007539if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007540 gt_cv_header_inttypes_h=yes
7541else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007542 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007543fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007545
7546fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007548$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007549 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007550
7551cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007552#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007553_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007554
7555 fi
7556
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007557
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007558
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007559 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007560 { $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 +01007561$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007562if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007563 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007564else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007565
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007567/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007568#include <inttypes.h>
7569#ifdef PRId32
7570char *p = PRId32;
7571#endif
7572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007573int
7574main ()
7575{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007577 ;
7578 return 0;
7579}
7580_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007581if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007582 gt_cv_inttypes_pri_broken=no
7583else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007584 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007585fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007587
7588fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007590$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007591 fi
7592 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007593
7594cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007595#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007596_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007597
7598 fi
7599
7600
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007601 for ac_header in stdint.h
7602do :
7603 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 -04007604if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007605 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007606#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007607_ACEOF
7608
7609fi
7610
7611done
7612
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007614$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007615 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007617/* end confdefs.h. */
7618
7619#include <limits.h>
7620#if HAVE_STDINT_H
7621#include <stdint.h>
7622#endif
7623#ifdef SIZE_MAX
7624Found it
7625#endif
7626
7627_ACEOF
7628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007629 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007630 result=yes
7631fi
7632rm -f conftest*
7633
7634 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007635 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 -05007636
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007637else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007638 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007639fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007640
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007641
7642 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7643
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007644else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007645 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007646fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007647
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007648
7649 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7650
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007651else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007652 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007653fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007654
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007655
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007656 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007658/* end confdefs.h. */
7659#include <stddef.h>
7660 extern size_t foo;
7661 extern unsigned long foo;
7662
7663int
7664main ()
7665{
7666
7667 ;
7668 return 0;
7669}
7670_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007671if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007672 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007673fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007675 fi
7676 if test -z "$result"; then
7677 if test "$fits_in_uint" = 1; then
7678 result="$res_hi$res_lo"U
7679 else
7680 result="$res_hi$res_lo"UL
7681 fi
7682 else
7683 result='~(size_t)0'
7684 fi
7685 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007687$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007688 if test "$result" != yes; then
7689
7690cat >>confdefs.h <<_ACEOF
7691#define SIZE_MAX $result
7692_ACEOF
7693
7694 fi
7695
7696
7697
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007698 for ac_header in stdint.h
7699do :
7700 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 -04007701if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007702 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007703#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007704_ACEOF
7705
7706fi
7707
7708done
7709
7710
7711
7712 if test "X$prefix" = "XNONE"; then
7713 acl_final_prefix="$ac_default_prefix"
7714 else
7715 acl_final_prefix="$prefix"
7716 fi
7717 if test "X$exec_prefix" = "XNONE"; then
7718 acl_final_exec_prefix='${prefix}'
7719 else
7720 acl_final_exec_prefix="$exec_prefix"
7721 fi
7722 acl_save_prefix="$prefix"
7723 prefix="$acl_final_prefix"
7724 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7725 prefix="$acl_save_prefix"
7726
7727
Theodore Ts'oe1052142006-10-21 21:46:47 -04007728# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007729if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007730 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007731else
7732 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007733fi
7734
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007735# Prepare PATH_SEPARATOR.
7736# The user is always right.
7737if test "${PATH_SEPARATOR+set}" != set; then
7738 echo "#! /bin/sh" >conf$$.sh
7739 echo "exit 0" >>conf$$.sh
7740 chmod +x conf$$.sh
7741 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7742 PATH_SEPARATOR=';'
7743 else
7744 PATH_SEPARATOR=:
7745 fi
7746 rm -f conf$$.sh
7747fi
7748ac_prog=ld
7749if test "$GCC" = yes; then
7750 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007752$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007753 case $host in
7754 *-*-mingw*)
7755 # gcc leaves a trailing carriage return which upsets mingw
7756 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7757 *)
7758 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7759 esac
7760 case $ac_prog in
7761 # Accept absolute paths.
7762 [\\/]* | [A-Za-z]:[\\/]*)
7763 re_direlt='/[^/][^/]*/\.\./'
7764 # Canonicalize the path of ld
7765 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7766 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7767 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7768 done
7769 test -z "$LD" && LD="$ac_prog"
7770 ;;
7771 "")
7772 # If it fails, then pretend we aren't using GCC.
7773 ac_prog=ld
7774 ;;
7775 *)
7776 # If it is relative, then search for the first ld in PATH.
7777 with_gnu_ld=unknown
7778 ;;
7779 esac
7780elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007782$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007783else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007785$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007786fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007787if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007788 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007789else
7790 if test -z "$LD"; then
7791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7792 for ac_dir in $PATH; do
7793 test -z "$ac_dir" && ac_dir=.
7794 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7795 acl_cv_path_LD="$ac_dir/$ac_prog"
7796 # Check to see if the program is GNU ld. I'd rather use --version,
7797 # but apparently some GNU ld's only accept -v.
7798 # Break only if it was the GNU/non-GNU ld that we prefer.
7799 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7800 *GNU* | *'with BFD'*)
7801 test "$with_gnu_ld" != no && break ;;
7802 *)
7803 test "$with_gnu_ld" != yes && break ;;
7804 esac
7805 fi
7806 done
7807 IFS="$ac_save_ifs"
7808else
7809 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7810fi
7811fi
7812
7813LD="$acl_cv_path_LD"
7814if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007816$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007817else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007819$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007820fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007821test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007823$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007824if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007825 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007826else
7827 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7828case `$LD -v 2>&1 </dev/null` in
7829*GNU* | *'with BFD'*)
7830 acl_cv_prog_gnu_ld=yes ;;
7831*)
7832 acl_cv_prog_gnu_ld=no ;;
7833esac
7834fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007836$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007837with_gnu_ld=$acl_cv_prog_gnu_ld
7838
7839
7840
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007842$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007843if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007844 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007845else
7846
7847 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7848 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7849 . ./conftest.sh
7850 rm -f ./conftest.sh
7851 acl_cv_rpath=done
7852
7853fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007855$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007856 wl="$acl_cv_wl"
7857 libext="$acl_cv_libext"
7858 shlibext="$acl_cv_shlibext"
7859 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7860 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7861 hardcode_direct="$acl_cv_hardcode_direct"
7862 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007863 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007864if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007865 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007866else
7867 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007868fi
7869
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007870
7871
7872
7873
7874
7875
7876
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007877 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007878
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007879 acl_save_prefix="$prefix"
7880 prefix="$acl_final_prefix"
7881 acl_save_exec_prefix="$exec_prefix"
7882 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007883
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007884 eval additional_includedir=\"$includedir\"
7885 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007886
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007887 exec_prefix="$acl_save_exec_prefix"
7888 prefix="$acl_save_prefix"
7889
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007890
Theodore Ts'oe1052142006-10-21 21:46:47 -04007891# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007892if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007893 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007894 if test "X$withval" = "Xno"; then
7895 use_additional=no
7896 else
7897 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007898
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007899 acl_save_prefix="$prefix"
7900 prefix="$acl_final_prefix"
7901 acl_save_exec_prefix="$exec_prefix"
7902 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007903
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007904 eval additional_includedir=\"$includedir\"
7905 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007906
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007907 exec_prefix="$acl_save_exec_prefix"
7908 prefix="$acl_save_prefix"
7909
7910 else
7911 additional_includedir="$withval/include"
7912 additional_libdir="$withval/lib"
7913 fi
7914 fi
7915
Theodore Ts'oe1052142006-10-21 21:46:47 -04007916fi
7917
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007918 LIBICONV=
7919 LTLIBICONV=
7920 INCICONV=
7921 rpathdirs=
7922 ltrpathdirs=
7923 names_already_handled=
7924 names_next_round='iconv '
7925 while test -n "$names_next_round"; do
7926 names_this_round="$names_next_round"
7927 names_next_round=
7928 for name in $names_this_round; do
7929 already_handled=
7930 for n in $names_already_handled; do
7931 if test "$n" = "$name"; then
7932 already_handled=yes
7933 break
7934 fi
7935 done
7936 if test -z "$already_handled"; then
7937 names_already_handled="$names_already_handled $name"
7938 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7939 eval value=\"\$HAVE_LIB$uppername\"
7940 if test -n "$value"; then
7941 if test "$value" = yes; then
7942 eval value=\"\$LIB$uppername\"
7943 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7944 eval value=\"\$LTLIB$uppername\"
7945 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7946 else
7947 :
7948 fi
7949 else
7950 found_dir=
7951 found_la=
7952 found_so=
7953 found_a=
7954 if test $use_additional = yes; then
7955 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7956 found_dir="$additional_libdir"
7957 found_so="$additional_libdir/lib$name.$shlibext"
7958 if test -f "$additional_libdir/lib$name.la"; then
7959 found_la="$additional_libdir/lib$name.la"
7960 fi
7961 else
7962 if test -f "$additional_libdir/lib$name.$libext"; then
7963 found_dir="$additional_libdir"
7964 found_a="$additional_libdir/lib$name.$libext"
7965 if test -f "$additional_libdir/lib$name.la"; then
7966 found_la="$additional_libdir/lib$name.la"
7967 fi
7968 fi
7969 fi
7970 fi
7971 if test "X$found_dir" = "X"; then
7972 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007973
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007974 acl_save_prefix="$prefix"
7975 prefix="$acl_final_prefix"
7976 acl_save_exec_prefix="$exec_prefix"
7977 exec_prefix="$acl_final_exec_prefix"
7978 eval x=\"$x\"
7979 exec_prefix="$acl_save_exec_prefix"
7980 prefix="$acl_save_prefix"
7981
7982 case "$x" in
7983 -L*)
7984 dir=`echo "X$x" | sed -e 's/^X-L//'`
7985 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7986 found_dir="$dir"
7987 found_so="$dir/lib$name.$shlibext"
7988 if test -f "$dir/lib$name.la"; then
7989 found_la="$dir/lib$name.la"
7990 fi
7991 else
7992 if test -f "$dir/lib$name.$libext"; then
7993 found_dir="$dir"
7994 found_a="$dir/lib$name.$libext"
7995 if test -f "$dir/lib$name.la"; then
7996 found_la="$dir/lib$name.la"
7997 fi
7998 fi
7999 fi
8000 ;;
8001 esac
8002 if test "X$found_dir" != "X"; then
8003 break
8004 fi
8005 done
8006 fi
8007 if test "X$found_dir" != "X"; then
8008 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8009 if test "X$found_so" != "X"; then
8010 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8011 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8012 else
8013 haveit=
8014 for x in $ltrpathdirs; do
8015 if test "X$x" = "X$found_dir"; then
8016 haveit=yes
8017 break
8018 fi
8019 done
8020 if test -z "$haveit"; then
8021 ltrpathdirs="$ltrpathdirs $found_dir"
8022 fi
8023 if test "$hardcode_direct" = yes; then
8024 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8025 else
8026 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8027 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8028 haveit=
8029 for x in $rpathdirs; do
8030 if test "X$x" = "X$found_dir"; then
8031 haveit=yes
8032 break
8033 fi
8034 done
8035 if test -z "$haveit"; then
8036 rpathdirs="$rpathdirs $found_dir"
8037 fi
8038 else
8039 haveit=
8040 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008041
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008042 acl_save_prefix="$prefix"
8043 prefix="$acl_final_prefix"
8044 acl_save_exec_prefix="$exec_prefix"
8045 exec_prefix="$acl_final_exec_prefix"
8046 eval x=\"$x\"
8047 exec_prefix="$acl_save_exec_prefix"
8048 prefix="$acl_save_prefix"
8049
8050 if test "X$x" = "X-L$found_dir"; then
8051 haveit=yes
8052 break
8053 fi
8054 done
8055 if test -z "$haveit"; then
8056 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8057 fi
8058 if test "$hardcode_minus_L" != no; then
8059 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8060 else
8061 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8062 fi
8063 fi
8064 fi
8065 fi
8066 else
8067 if test "X$found_a" != "X"; then
8068 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8069 else
8070 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8071 fi
8072 fi
8073 additional_includedir=
8074 case "$found_dir" in
8075 */lib | */lib/)
8076 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8077 additional_includedir="$basedir/include"
8078 ;;
8079 esac
8080 if test "X$additional_includedir" != "X"; then
8081 if test "X$additional_includedir" != "X/usr/include"; then
8082 haveit=
8083 if test "X$additional_includedir" = "X/usr/local/include"; then
8084 if test -n "$GCC"; then
8085 case $host_os in
8086 linux*) haveit=yes;;
8087 esac
8088 fi
8089 fi
8090 if test -z "$haveit"; then
8091 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008092
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008093 acl_save_prefix="$prefix"
8094 prefix="$acl_final_prefix"
8095 acl_save_exec_prefix="$exec_prefix"
8096 exec_prefix="$acl_final_exec_prefix"
8097 eval x=\"$x\"
8098 exec_prefix="$acl_save_exec_prefix"
8099 prefix="$acl_save_prefix"
8100
8101 if test "X$x" = "X-I$additional_includedir"; then
8102 haveit=yes
8103 break
8104 fi
8105 done
8106 if test -z "$haveit"; then
8107 if test -d "$additional_includedir"; then
8108 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8109 fi
8110 fi
8111 fi
8112 fi
8113 fi
8114 if test -n "$found_la"; then
8115 save_libdir="$libdir"
8116 case "$found_la" in
8117 */* | *\\*) . "$found_la" ;;
8118 *) . "./$found_la" ;;
8119 esac
8120 libdir="$save_libdir"
8121 for dep in $dependency_libs; do
8122 case "$dep" in
8123 -L*)
8124 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8125 if test "X$additional_libdir" != "X/usr/lib"; then
8126 haveit=
8127 if test "X$additional_libdir" = "X/usr/local/lib"; then
8128 if test -n "$GCC"; then
8129 case $host_os in
8130 linux*) haveit=yes;;
8131 esac
8132 fi
8133 fi
8134 if test -z "$haveit"; then
8135 haveit=
8136 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008137
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008138 acl_save_prefix="$prefix"
8139 prefix="$acl_final_prefix"
8140 acl_save_exec_prefix="$exec_prefix"
8141 exec_prefix="$acl_final_exec_prefix"
8142 eval x=\"$x\"
8143 exec_prefix="$acl_save_exec_prefix"
8144 prefix="$acl_save_prefix"
8145
8146 if test "X$x" = "X-L$additional_libdir"; then
8147 haveit=yes
8148 break
8149 fi
8150 done
8151 if test -z "$haveit"; then
8152 if test -d "$additional_libdir"; then
8153 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8154 fi
8155 fi
8156 haveit=
8157 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008158
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008159 acl_save_prefix="$prefix"
8160 prefix="$acl_final_prefix"
8161 acl_save_exec_prefix="$exec_prefix"
8162 exec_prefix="$acl_final_exec_prefix"
8163 eval x=\"$x\"
8164 exec_prefix="$acl_save_exec_prefix"
8165 prefix="$acl_save_prefix"
8166
8167 if test "X$x" = "X-L$additional_libdir"; then
8168 haveit=yes
8169 break
8170 fi
8171 done
8172 if test -z "$haveit"; then
8173 if test -d "$additional_libdir"; then
8174 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8175 fi
8176 fi
8177 fi
8178 fi
8179 ;;
8180 -R*)
8181 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8182 if test "$enable_rpath" != no; then
8183 haveit=
8184 for x in $rpathdirs; do
8185 if test "X$x" = "X$dir"; then
8186 haveit=yes
8187 break
8188 fi
8189 done
8190 if test -z "$haveit"; then
8191 rpathdirs="$rpathdirs $dir"
8192 fi
8193 haveit=
8194 for x in $ltrpathdirs; do
8195 if test "X$x" = "X$dir"; then
8196 haveit=yes
8197 break
8198 fi
8199 done
8200 if test -z "$haveit"; then
8201 ltrpathdirs="$ltrpathdirs $dir"
8202 fi
8203 fi
8204 ;;
8205 -l*)
8206 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8207 ;;
8208 *.la)
8209 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8210 ;;
8211 *)
8212 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8213 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8214 ;;
8215 esac
8216 done
8217 fi
8218 else
8219 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8220 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8221 fi
8222 fi
8223 fi
8224 done
8225 done
8226 if test "X$rpathdirs" != "X"; then
8227 if test -n "$hardcode_libdir_separator"; then
8228 alldirs=
8229 for found_dir in $rpathdirs; do
8230 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8231 done
8232 acl_save_libdir="$libdir"
8233 libdir="$alldirs"
8234 eval flag=\"$hardcode_libdir_flag_spec\"
8235 libdir="$acl_save_libdir"
8236 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8237 else
8238 for found_dir in $rpathdirs; do
8239 acl_save_libdir="$libdir"
8240 libdir="$found_dir"
8241 eval flag=\"$hardcode_libdir_flag_spec\"
8242 libdir="$acl_save_libdir"
8243 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8244 done
8245 fi
8246 fi
8247 if test "X$ltrpathdirs" != "X"; then
8248 for found_dir in $ltrpathdirs; do
8249 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8250 done
8251 fi
8252
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008253
8254
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008255
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008256
8257
8258
8259
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008260 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008261if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008262
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008263else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008264
8265$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008266
8267
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008268fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008269
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008270 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 -04008271stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008272do :
8273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8274ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008275if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008276 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008277#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008278_ACEOF
8279
8280fi
8281
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008282done
8283
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008284 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008285mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8286strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8287__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008288do :
8289 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8290ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008291if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008292 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008293#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008294_ACEOF
8295
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008296fi
8297done
8298
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008299
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008300
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008302$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008303if ${ac_cv_have_decl__snprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008304 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008305else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008307/* end confdefs.h. */
8308#include <stdio.h>
8309int
8310main ()
8311{
8312
8313#ifndef _snprintf
8314 char *p = (char *) _snprintf;
8315#endif
8316
8317 ;
8318 return 0;
8319}
8320_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008321if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008322 ac_cv_have_decl__snprintf=yes
8323else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008324 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008325fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008327fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008329$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008330 if test $ac_cv_have_decl__snprintf = yes; then
8331 gt_value=1
8332 else
8333 gt_value=0
8334 fi
8335
8336cat >>confdefs.h <<_ACEOF
8337#define HAVE_DECL__SNPRINTF $gt_value
8338_ACEOF
8339
8340
8341
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008343$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008344if ${ac_cv_have_decl__snwprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008345 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008346else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008348/* end confdefs.h. */
8349#include <stdio.h>
8350int
8351main ()
8352{
8353
8354#ifndef _snwprintf
8355 char *p = (char *) _snwprintf;
8356#endif
8357
8358 ;
8359 return 0;
8360}
8361_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008362if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008363 ac_cv_have_decl__snwprintf=yes
8364else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008365 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008366fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008368fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008370$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008371 if test $ac_cv_have_decl__snwprintf = yes; then
8372 gt_value=1
8373 else
8374 gt_value=0
8375 fi
8376
8377cat >>confdefs.h <<_ACEOF
8378#define HAVE_DECL__SNWPRINTF $gt_value
8379_ACEOF
8380
8381
8382
8383
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008385$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008386if ${ac_cv_have_decl_feof_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008387 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008388else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008390/* end confdefs.h. */
8391#include <stdio.h>
8392int
8393main ()
8394{
8395
8396#ifndef feof_unlocked
8397 char *p = (char *) feof_unlocked;
8398#endif
8399
8400 ;
8401 return 0;
8402}
8403_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008404if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008405 ac_cv_have_decl_feof_unlocked=yes
8406else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008407 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008408fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008410fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008412$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008413 if test $ac_cv_have_decl_feof_unlocked = yes; then
8414 gt_value=1
8415 else
8416 gt_value=0
8417 fi
8418
8419cat >>confdefs.h <<_ACEOF
8420#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8421_ACEOF
8422
8423
8424
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008426$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008427if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008428 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008429else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008431/* end confdefs.h. */
8432#include <stdio.h>
8433int
8434main ()
8435{
8436
8437#ifndef fgets_unlocked
8438 char *p = (char *) fgets_unlocked;
8439#endif
8440
8441 ;
8442 return 0;
8443}
8444_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008445if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008446 ac_cv_have_decl_fgets_unlocked=yes
8447else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008448 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008449fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008451fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008453$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008454 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8455 gt_value=1
8456 else
8457 gt_value=0
8458 fi
8459
8460cat >>confdefs.h <<_ACEOF
8461#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8462_ACEOF
8463
8464
8465
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008467$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008468if ${ac_cv_have_decl_getc_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008469 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008470else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008472/* end confdefs.h. */
8473#include <stdio.h>
8474int
8475main ()
8476{
8477
8478#ifndef getc_unlocked
8479 char *p = (char *) getc_unlocked;
8480#endif
8481
8482 ;
8483 return 0;
8484}
8485_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008486if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008487 ac_cv_have_decl_getc_unlocked=yes
8488else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008489 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008490fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008492fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008494$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008495 if test $ac_cv_have_decl_getc_unlocked = yes; then
8496 gt_value=1
8497 else
8498 gt_value=0
8499 fi
8500
8501cat >>confdefs.h <<_ACEOF
8502#define HAVE_DECL_GETC_UNLOCKED $gt_value
8503_ACEOF
8504
8505
8506
8507 case $gt_cv_func_printf_posix in
8508 *yes) HAVE_POSIX_PRINTF=1 ;;
8509 *) HAVE_POSIX_PRINTF=0 ;;
8510 esac
8511
8512 if test "$ac_cv_func_asprintf" = yes; then
8513 HAVE_ASPRINTF=1
8514 else
8515 HAVE_ASPRINTF=0
8516 fi
8517
8518 if test "$ac_cv_func_snprintf" = yes; then
8519 HAVE_SNPRINTF=1
8520 else
8521 HAVE_SNPRINTF=0
8522 fi
8523
8524 if test "$ac_cv_func_wprintf" = yes; then
8525 HAVE_WPRINTF=1
8526 else
8527 HAVE_WPRINTF=0
8528 fi
8529
8530
8531
8532
8533
8534
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008535
8536 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008537
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008538 for element in $INCICONV; do
8539 haveit=
8540 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008541
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008542 acl_save_prefix="$prefix"
8543 prefix="$acl_final_prefix"
8544 acl_save_exec_prefix="$exec_prefix"
8545 exec_prefix="$acl_final_exec_prefix"
8546 eval x=\"$x\"
8547 exec_prefix="$acl_save_exec_prefix"
8548 prefix="$acl_save_prefix"
8549
8550 if test "X$x" = "X$element"; then
8551 haveit=yes
8552 break
8553 fi
8554 done
8555 if test -z "$haveit"; then
8556 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8557 fi
8558 done
8559
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008560
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008562$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008563if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008564 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008565else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008566
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008567 am_cv_func_iconv="no, consider installing GNU libiconv"
8568 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008570/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008571#include <stdlib.h>
8572#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008573int
8574main ()
8575{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008576iconv_t cd = iconv_open("","");
8577 iconv(cd,NULL,NULL,NULL,NULL);
8578 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008579 ;
8580 return 0;
8581}
8582_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008583if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008584 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008585fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008586rm -f core conftest.err conftest.$ac_objext \
8587 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008588 if test "$am_cv_func_iconv" != yes; then
8589 am_save_LIBS="$LIBS"
8590 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008592/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008593#include <stdlib.h>
8594#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008595int
8596main ()
8597{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008598iconv_t cd = iconv_open("","");
8599 iconv(cd,NULL,NULL,NULL,NULL);
8600 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008601 ;
8602 return 0;
8603}
8604_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008605if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008606 am_cv_lib_iconv=yes
8607 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008608fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008609rm -f core conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008611 LIBS="$am_save_LIBS"
8612 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008613
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008614fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008616$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008617 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008618
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008619$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008620
8621 fi
8622 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008624$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008626$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008627 else
8628 CPPFLAGS="$am_save_CPPFLAGS"
8629 LIBICONV=
8630 LTLIBICONV=
8631 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008632
8633
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008634
8635 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008637$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008638 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008639 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008640else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008641
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008643/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008644
8645#include <stdlib.h>
8646#include <iconv.h>
8647extern
8648#ifdef __cplusplus
8649"C"
8650#endif
8651#if defined(__STDC__) || defined(__cplusplus)
8652size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8653#else
8654size_t iconv();
8655#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008656
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008657int
8658main ()
8659{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008660
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008661 ;
8662 return 0;
8663}
8664_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008665if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008666 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008667else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008668 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008669fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008671 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 +00008672fi
8673
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008674 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008676 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008677$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008678 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008679
8680cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008681#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008682_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008683
8684 fi
8685
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008686
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008688$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008689if ${am_cv_langinfo_codeset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008690 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008691else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008693/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008694#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008695int
8696main ()
8697{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008698char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008699 ;
8700 return 0;
8701}
8702_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008703if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008704 am_cv_langinfo_codeset=yes
8705else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008706 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008707fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008708rm -f core conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008710
8711fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008713$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008714 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008715
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008716$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008717
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008718 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008719
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008720 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008721
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008723$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008724if ${am_cv_val_LC_MESSAGES+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008725 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008726else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008728/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008729#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008730int
8731main ()
8732{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008733return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008734 ;
8735 return 0;
8736}
8737_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008738if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008739 am_cv_val_LC_MESSAGES=yes
8740else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008741 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008742fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008743rm -f core conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008745fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008747$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008748 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008749
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008750$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008751
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008752 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008753
8754 fi
8755
8756 for ac_prog in bison
8757do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008758 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008759set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008761$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008762if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008763 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008764else
8765 if test -n "$INTLBISON"; then
8766 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8767else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769for as_dir in $PATH
8770do
8771 IFS=$as_save_IFS
8772 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008773 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008775 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008777 break 2
8778 fi
8779done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008780 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008781IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008782
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008783fi
8784fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008785INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008786if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008788$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008789else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008791$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008792fi
8793
Theodore Ts'oe1052142006-10-21 21:46:47 -04008794
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008795 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008796done
8797
8798 if test -z "$INTLBISON"; then
8799 ac_verc_fail=yes
8800 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008802$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008803 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8804 case $ac_prog_version in
8805 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8806 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8807 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8808 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8809 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008811$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008812 fi
8813 if test $ac_verc_fail = yes; then
8814 INTLBISON=:
8815 fi
8816
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008817
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008818
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008819
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008820
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008821
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008822
8823
8824
8825
8826
8827
8828
8829
8830
8831
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008833$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008834 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008835if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008836 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008837else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008838 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008839fi
8840
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008842$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008843
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008844
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008845
8846
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008847 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008848 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008849
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008850 LIBINTL=
8851 LTLIBINTL=
8852 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008853
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008854 if test "$USE_NLS" = "yes"; then
8855 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008856
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008858$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008859
Theodore Ts'oe1052142006-10-21 21:46:47 -04008860# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008861if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008862 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008863else
8864 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008865fi
8866
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008868$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008869
8870 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8871 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008872
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008873
8874
8875
8876
8877
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008879$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008880if ${gt_cv_func_gnugettext1_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008881 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008882else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008884/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008885#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008886extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008887extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008888int
8889main ()
8890{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008891bindtextdomain ("", "");
8892return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008893 ;
8894 return 0;
8895}
8896_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008897if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008898 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008899else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008900 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008901fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008902rm -f core conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008904fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008906$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008907
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008908 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008909
8910
8911
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008912 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008913
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008914 acl_save_prefix="$prefix"
8915 prefix="$acl_final_prefix"
8916 acl_save_exec_prefix="$exec_prefix"
8917 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008918
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008919 eval additional_includedir=\"$includedir\"
8920 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008921
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008922 exec_prefix="$acl_save_exec_prefix"
8923 prefix="$acl_save_prefix"
8924
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008925
Theodore Ts'oe1052142006-10-21 21:46:47 -04008926# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008927if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008928 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008929 if test "X$withval" = "Xno"; then
8930 use_additional=no
8931 else
8932 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008933
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008934 acl_save_prefix="$prefix"
8935 prefix="$acl_final_prefix"
8936 acl_save_exec_prefix="$exec_prefix"
8937 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008938
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008939 eval additional_includedir=\"$includedir\"
8940 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008941
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008942 exec_prefix="$acl_save_exec_prefix"
8943 prefix="$acl_save_prefix"
8944
8945 else
8946 additional_includedir="$withval/include"
8947 additional_libdir="$withval/lib"
8948 fi
8949 fi
8950
Theodore Ts'oe1052142006-10-21 21:46:47 -04008951fi
8952
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008953 LIBINTL=
8954 LTLIBINTL=
8955 INCINTL=
8956 rpathdirs=
8957 ltrpathdirs=
8958 names_already_handled=
8959 names_next_round='intl '
8960 while test -n "$names_next_round"; do
8961 names_this_round="$names_next_round"
8962 names_next_round=
8963 for name in $names_this_round; do
8964 already_handled=
8965 for n in $names_already_handled; do
8966 if test "$n" = "$name"; then
8967 already_handled=yes
8968 break
8969 fi
8970 done
8971 if test -z "$already_handled"; then
8972 names_already_handled="$names_already_handled $name"
8973 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8974 eval value=\"\$HAVE_LIB$uppername\"
8975 if test -n "$value"; then
8976 if test "$value" = yes; then
8977 eval value=\"\$LIB$uppername\"
8978 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8979 eval value=\"\$LTLIB$uppername\"
8980 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8981 else
8982 :
8983 fi
8984 else
8985 found_dir=
8986 found_la=
8987 found_so=
8988 found_a=
8989 if test $use_additional = yes; then
8990 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8991 found_dir="$additional_libdir"
8992 found_so="$additional_libdir/lib$name.$shlibext"
8993 if test -f "$additional_libdir/lib$name.la"; then
8994 found_la="$additional_libdir/lib$name.la"
8995 fi
8996 else
8997 if test -f "$additional_libdir/lib$name.$libext"; then
8998 found_dir="$additional_libdir"
8999 found_a="$additional_libdir/lib$name.$libext"
9000 if test -f "$additional_libdir/lib$name.la"; then
9001 found_la="$additional_libdir/lib$name.la"
9002 fi
9003 fi
9004 fi
9005 fi
9006 if test "X$found_dir" = "X"; then
9007 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009008
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009009 acl_save_prefix="$prefix"
9010 prefix="$acl_final_prefix"
9011 acl_save_exec_prefix="$exec_prefix"
9012 exec_prefix="$acl_final_exec_prefix"
9013 eval x=\"$x\"
9014 exec_prefix="$acl_save_exec_prefix"
9015 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009016
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009017 case "$x" in
9018 -L*)
9019 dir=`echo "X$x" | sed -e 's/^X-L//'`
9020 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9021 found_dir="$dir"
9022 found_so="$dir/lib$name.$shlibext"
9023 if test -f "$dir/lib$name.la"; then
9024 found_la="$dir/lib$name.la"
9025 fi
9026 else
9027 if test -f "$dir/lib$name.$libext"; then
9028 found_dir="$dir"
9029 found_a="$dir/lib$name.$libext"
9030 if test -f "$dir/lib$name.la"; then
9031 found_la="$dir/lib$name.la"
9032 fi
9033 fi
9034 fi
9035 ;;
9036 esac
9037 if test "X$found_dir" != "X"; then
9038 break
9039 fi
9040 done
9041 fi
9042 if test "X$found_dir" != "X"; then
9043 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9044 if test "X$found_so" != "X"; then
9045 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9046 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9047 else
9048 haveit=
9049 for x in $ltrpathdirs; do
9050 if test "X$x" = "X$found_dir"; then
9051 haveit=yes
9052 break
9053 fi
9054 done
9055 if test -z "$haveit"; then
9056 ltrpathdirs="$ltrpathdirs $found_dir"
9057 fi
9058 if test "$hardcode_direct" = yes; then
9059 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9060 else
9061 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9062 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9063 haveit=
9064 for x in $rpathdirs; do
9065 if test "X$x" = "X$found_dir"; then
9066 haveit=yes
9067 break
9068 fi
9069 done
9070 if test -z "$haveit"; then
9071 rpathdirs="$rpathdirs $found_dir"
9072 fi
9073 else
9074 haveit=
9075 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009076
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009077 acl_save_prefix="$prefix"
9078 prefix="$acl_final_prefix"
9079 acl_save_exec_prefix="$exec_prefix"
9080 exec_prefix="$acl_final_exec_prefix"
9081 eval x=\"$x\"
9082 exec_prefix="$acl_save_exec_prefix"
9083 prefix="$acl_save_prefix"
9084
9085 if test "X$x" = "X-L$found_dir"; then
9086 haveit=yes
9087 break
9088 fi
9089 done
9090 if test -z "$haveit"; then
9091 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9092 fi
9093 if test "$hardcode_minus_L" != no; then
9094 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9095 else
9096 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9097 fi
9098 fi
9099 fi
9100 fi
9101 else
9102 if test "X$found_a" != "X"; then
9103 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9104 else
9105 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9106 fi
9107 fi
9108 additional_includedir=
9109 case "$found_dir" in
9110 */lib | */lib/)
9111 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9112 additional_includedir="$basedir/include"
9113 ;;
9114 esac
9115 if test "X$additional_includedir" != "X"; then
9116 if test "X$additional_includedir" != "X/usr/include"; then
9117 haveit=
9118 if test "X$additional_includedir" = "X/usr/local/include"; then
9119 if test -n "$GCC"; then
9120 case $host_os in
9121 linux*) haveit=yes;;
9122 esac
9123 fi
9124 fi
9125 if test -z "$haveit"; then
9126 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009127
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009128 acl_save_prefix="$prefix"
9129 prefix="$acl_final_prefix"
9130 acl_save_exec_prefix="$exec_prefix"
9131 exec_prefix="$acl_final_exec_prefix"
9132 eval x=\"$x\"
9133 exec_prefix="$acl_save_exec_prefix"
9134 prefix="$acl_save_prefix"
9135
9136 if test "X$x" = "X-I$additional_includedir"; then
9137 haveit=yes
9138 break
9139 fi
9140 done
9141 if test -z "$haveit"; then
9142 if test -d "$additional_includedir"; then
9143 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9144 fi
9145 fi
9146 fi
9147 fi
9148 fi
9149 if test -n "$found_la"; then
9150 save_libdir="$libdir"
9151 case "$found_la" in
9152 */* | *\\*) . "$found_la" ;;
9153 *) . "./$found_la" ;;
9154 esac
9155 libdir="$save_libdir"
9156 for dep in $dependency_libs; do
9157 case "$dep" in
9158 -L*)
9159 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9160 if test "X$additional_libdir" != "X/usr/lib"; then
9161 haveit=
9162 if test "X$additional_libdir" = "X/usr/local/lib"; then
9163 if test -n "$GCC"; then
9164 case $host_os in
9165 linux*) haveit=yes;;
9166 esac
9167 fi
9168 fi
9169 if test -z "$haveit"; then
9170 haveit=
9171 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009172
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009173 acl_save_prefix="$prefix"
9174 prefix="$acl_final_prefix"
9175 acl_save_exec_prefix="$exec_prefix"
9176 exec_prefix="$acl_final_exec_prefix"
9177 eval x=\"$x\"
9178 exec_prefix="$acl_save_exec_prefix"
9179 prefix="$acl_save_prefix"
9180
9181 if test "X$x" = "X-L$additional_libdir"; then
9182 haveit=yes
9183 break
9184 fi
9185 done
9186 if test -z "$haveit"; then
9187 if test -d "$additional_libdir"; then
9188 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9189 fi
9190 fi
9191 haveit=
9192 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009193
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009194 acl_save_prefix="$prefix"
9195 prefix="$acl_final_prefix"
9196 acl_save_exec_prefix="$exec_prefix"
9197 exec_prefix="$acl_final_exec_prefix"
9198 eval x=\"$x\"
9199 exec_prefix="$acl_save_exec_prefix"
9200 prefix="$acl_save_prefix"
9201
9202 if test "X$x" = "X-L$additional_libdir"; then
9203 haveit=yes
9204 break
9205 fi
9206 done
9207 if test -z "$haveit"; then
9208 if test -d "$additional_libdir"; then
9209 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9210 fi
9211 fi
9212 fi
9213 fi
9214 ;;
9215 -R*)
9216 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9217 if test "$enable_rpath" != no; then
9218 haveit=
9219 for x in $rpathdirs; do
9220 if test "X$x" = "X$dir"; then
9221 haveit=yes
9222 break
9223 fi
9224 done
9225 if test -z "$haveit"; then
9226 rpathdirs="$rpathdirs $dir"
9227 fi
9228 haveit=
9229 for x in $ltrpathdirs; do
9230 if test "X$x" = "X$dir"; then
9231 haveit=yes
9232 break
9233 fi
9234 done
9235 if test -z "$haveit"; then
9236 ltrpathdirs="$ltrpathdirs $dir"
9237 fi
9238 fi
9239 ;;
9240 -l*)
9241 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9242 ;;
9243 *.la)
9244 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9245 ;;
9246 *)
9247 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9248 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9249 ;;
9250 esac
9251 done
9252 fi
9253 else
9254 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9255 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9256 fi
9257 fi
9258 fi
9259 done
9260 done
9261 if test "X$rpathdirs" != "X"; then
9262 if test -n "$hardcode_libdir_separator"; then
9263 alldirs=
9264 for found_dir in $rpathdirs; do
9265 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9266 done
9267 acl_save_libdir="$libdir"
9268 libdir="$alldirs"
9269 eval flag=\"$hardcode_libdir_flag_spec\"
9270 libdir="$acl_save_libdir"
9271 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9272 else
9273 for found_dir in $rpathdirs; do
9274 acl_save_libdir="$libdir"
9275 libdir="$found_dir"
9276 eval flag=\"$hardcode_libdir_flag_spec\"
9277 libdir="$acl_save_libdir"
9278 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9279 done
9280 fi
9281 fi
9282 if test "X$ltrpathdirs" != "X"; then
9283 for found_dir in $ltrpathdirs; do
9284 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9285 done
9286 fi
9287
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009289$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009290if ${gt_cv_func_gnugettext1_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009291 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009292else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009293 gt_save_CPPFLAGS="$CPPFLAGS"
9294 CPPFLAGS="$CPPFLAGS $INCINTL"
9295 gt_save_LIBS="$LIBS"
9296 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009298/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009299#include <libintl.h>
9300extern int _nl_msg_cat_cntr;
9301extern
9302#ifdef __cplusplus
9303"C"
9304#endif
9305const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009306int
9307main ()
9308{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009309bindtextdomain ("", "");
9310return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009311 ;
9312 return 0;
9313}
9314_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009315if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009316 gt_cv_func_gnugettext1_libintl=yes
9317else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009318 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009319fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009320rm -f core conftest.err conftest.$ac_objext \
9321 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009322 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9323 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009325/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009326#include <libintl.h>
9327extern int _nl_msg_cat_cntr;
9328extern
9329#ifdef __cplusplus
9330"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009331#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009332const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009333int
9334main ()
9335{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009336bindtextdomain ("", "");
9337return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009338 ;
9339 return 0;
9340}
9341_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009342if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009343 LIBINTL="$LIBINTL $LIBICONV"
9344 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9345 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009346
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009347fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009348rm -f core conftest.err conftest.$ac_objext \
9349 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009350 fi
9351 CPPFLAGS="$gt_save_CPPFLAGS"
9352 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009353fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009355$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009356 fi
9357
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009358 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9359 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009360 && test "$PACKAGE" != gettext-runtime \
9361 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009362 gt_use_preinstalled_gnugettext=yes
9363 else
9364 LIBINTL=
9365 LTLIBINTL=
9366 INCINTL=
9367 fi
9368
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009369
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009370 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9371 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009372 fi
9373 fi
9374
9375 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009376 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009377 USE_INCLUDED_LIBINTL=yes
9378 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9379 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9380 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009381 fi
9382
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009383 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9384 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9385 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009386 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009387
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009388
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009389 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9390 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009391
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009392$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009393
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009394 else
9395 USE_NLS=no
9396 fi
9397 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009398
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009400$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009402$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009403 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009405$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009406 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9407 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9408 gt_source="external libintl"
9409 else
9410 gt_source="libc"
9411 fi
9412 else
9413 gt_source="included intl directory"
9414 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009416$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009417 fi
9418
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009419 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009420
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009421 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9422 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009424$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009426$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009427
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009428 for element in $INCINTL; do
9429 haveit=
9430 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009431
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009432 acl_save_prefix="$prefix"
9433 prefix="$acl_final_prefix"
9434 acl_save_exec_prefix="$exec_prefix"
9435 exec_prefix="$acl_final_exec_prefix"
9436 eval x=\"$x\"
9437 exec_prefix="$acl_save_exec_prefix"
9438 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009439
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009440 if test "X$x" = "X$element"; then
9441 haveit=yes
9442 break
9443 fi
9444 done
9445 if test -z "$haveit"; then
9446 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9447 fi
9448 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009449
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009450 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009451
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009452
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009453$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009454
9455
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009456$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009457
9458 fi
9459
9460 POSUB=po
9461 fi
9462
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009463
9464 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009465 BUILD_INCLUDED_LIBINTL=yes
9466 fi
9467
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009468
9469
9470
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009471
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009472 nls_cv_header_intl=
9473 nls_cv_header_libgt=
9474
9475 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009476
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009477
9478 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009479
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009480
9481 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009482
9483
9484 if test "$USE_INCLUDED_LIBINTL" = yes; then
9485 INTLOBJS="\$(GETTOBJS)"
9486 fi
9487
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009488
9489 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009490
9491
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009492
9493 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009494
9495
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009496
9497
9498
9499
9500
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009502$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9503set x ${MAKE-make}
9504ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009505if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009506 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009507else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009508 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009509SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009510all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009511 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009512_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009513# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009514case `${MAKE-make} -f conftest.make 2>/dev/null` in
9515 *@@@%%%=?*=@@@%%%*)
9516 eval ac_cv_prog_make_${ac_make}_set=yes;;
9517 *)
9518 eval ac_cv_prog_make_${ac_make}_set=no;;
9519esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009520rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009521fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009522if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009524$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009525 SET_MAKE=
9526else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009528$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009529 SET_MAKE="MAKE=${MAKE-make}"
9530fi
9531
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009533$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009534if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009535 $as_echo_n "(cached) " >&6
9536else
9537 _cv_gnu_make_command='' ;
9538 for a in "$MAKE" make gmake gnumake ; do
9539 if test -z "$a" ; then continue ; fi ;
9540 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9541 _cv_gnu_make_command=$a ;
9542 break;
9543 fi
9544 done ;
9545
9546fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009548$as_echo "$_cv_gnu_make_command" >&6; } ;
9549 if test "x$_cv_gnu_make_command" != "x" ; then
9550 ifGNUmake='' ;
9551 ifNotGNUmake='#' ;
9552 else
9553 ifGNUmake='#' ;
9554 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009556$as_echo "\"Not found\"" >&6; };
9557 fi
9558
9559
9560
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009561# Extract the first word of "ln", so it can be a program name with args.
9562set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009564$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009565if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009566 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009567else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009568 case $LN in
9569 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009570 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9571 ;;
9572 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9574for as_dir in $PATH
9575do
9576 IFS=$as_save_IFS
9577 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009578 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009580 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009582 break 2
9583 fi
9584done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009585 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009586IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009587
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009588 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9589 ;;
9590esac
9591fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009592LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009593if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009595$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009596else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009598$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009599fi
9600
Theodore Ts'oe1052142006-10-21 21:46:47 -04009601
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009603$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009604LN_S=$as_ln_s
9605if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009607$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009608else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009610$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009611fi
9612
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009613# Extract the first word of "mv", so it can be a program name with args.
9614set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009616$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009617if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009618 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009619else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009620 case $MV in
9621 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009622 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9623 ;;
9624 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626for as_dir in $PATH
9627do
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009630 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009632 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009634 break 2
9635 fi
9636done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009637 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009638IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009639
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009640 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9641 ;;
9642esac
9643fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009644MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009645if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009647$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009648else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009650$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009651fi
9652
Theodore Ts'oe1052142006-10-21 21:46:47 -04009653
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009654# Extract the first word of "cp", so it can be a program name with args.
9655set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009657$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009658if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009659 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009660else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009661 case $CP in
9662 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009663 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9664 ;;
9665 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667for as_dir in $PATH
9668do
9669 IFS=$as_save_IFS
9670 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009671 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009673 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009675 break 2
9676 fi
9677done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009678 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009679IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009680
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009681 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9682 ;;
9683esac
9684fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009685CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009686if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009688$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009689else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009691$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009692fi
9693
Theodore Ts'oe1052142006-10-21 21:46:47 -04009694
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009695# Extract the first word of "rm", so it can be a program name with args.
9696set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009698$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009699if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009700 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009701else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009702 case $RM in
9703 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009704 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9705 ;;
9706 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9708for as_dir in $PATH
9709do
9710 IFS=$as_save_IFS
9711 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009712 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009714 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009716 break 2
9717 fi
9718done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009719 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009720IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009721
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009722 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9723 ;;
9724esac
9725fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009726RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009727if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009729$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009730else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009732$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009733fi
9734
Theodore Ts'oe1052142006-10-21 21:46:47 -04009735
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009736# Extract the first word of "chmod", so it can be a program name with args.
9737set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009739$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009740if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009741 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009742else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009743 case $CHMOD in
9744 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009745 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9746 ;;
9747 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749for as_dir in $PATH
9750do
9751 IFS=$as_save_IFS
9752 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009753 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009755 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009757 break 2
9758 fi
9759done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009760 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009761IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009762
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009763 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9764 ;;
9765esac
9766fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009767CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009768if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009770$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009771else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009773$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009774fi
9775
Theodore Ts'oe1052142006-10-21 21:46:47 -04009776
Theodore Ts'o32237012005-01-17 19:13:39 -05009777for ac_prog in gawk mawk nawk awk
9778do
9779 # Extract the first word of "$ac_prog", so it can be a program name with args.
9780set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009782$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009783if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009784 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009785else
Theodore Ts'o32237012005-01-17 19:13:39 -05009786 if test -n "$AWK"; then
9787 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9788else
9789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009790for as_dir in $PATH
9791do
9792 IFS=$as_save_IFS
9793 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009794 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -05009796 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009798 break 2
9799 fi
9800done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009801 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009802IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009803
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009804fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009805fi
9806AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009807if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009809$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009810else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009812$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009813fi
9814
Theodore Ts'oe1052142006-10-21 21:46:47 -04009815
Theodore Ts'o32237012005-01-17 19:13:39 -05009816 test -n "$AWK" && break
9817done
9818
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009820$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009821if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009822 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009823else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009824 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9825 then ac_cv_path_EGREP="$GREP -E"
9826 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009827 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009828 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009829 # Loop through the user's path and test for each of PROGNAME-LIST
9830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009831for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9832do
9833 IFS=$as_save_IFS
9834 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009835 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009838 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009839# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009840 # Check for GNU $ac_path_EGREP
9841case `"$ac_path_EGREP" --version 2>&1` in
9842*GNU*)
9843 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9844*)
9845 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009846 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009847 while :
9848 do
9849 cat "conftest.in" "conftest.in" >"conftest.tmp"
9850 mv "conftest.tmp" "conftest.in"
9851 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009852 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009853 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009855 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009856 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9857 # Best one so far, save it but keep looking for a better one
9858 ac_cv_path_EGREP="$ac_path_EGREP"
9859 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009860 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009861 # 10*(2^10) chars as input seems more than enough
9862 test $ac_count -gt 10 && break
9863 done
9864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9865esac
9866
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009867 $ac_path_EGREP_found && break 3
9868 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009869 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009870 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009871IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009872 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009873 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 +01009874 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009875else
9876 ac_cv_path_EGREP=$EGREP
9877fi
9878
Theodore Ts'oe1052142006-10-21 21:46:47 -04009879 fi
9880fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009882$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009883 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009884
9885
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009886# Extract the first word of "sed", so it can be a program name with args.
9887set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009889$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009890if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009891 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009892else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009893 case $SED in
9894 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009895 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9896 ;;
9897 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9899for as_dir in $PATH
9900do
9901 IFS=$as_save_IFS
9902 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009903 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009905 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009907 break 2
9908 fi
9909done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009910 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009911IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009912
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009913 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9914 ;;
9915esac
9916fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009917SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009918if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009920$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009921else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009923$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009924fi
9925
Theodore Ts'oe1052142006-10-21 21:46:47 -04009926
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009927# Extract the first word of "perl", so it can be a program name with args.
9928set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009930$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009931if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009932 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009933else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009934 case $PERL in
9935 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009936 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9937 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009938 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940for as_dir in $PATH
9941do
9942 IFS=$as_save_IFS
9943 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009944 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009946 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009948 break 2
9949 fi
9950done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009951 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009952IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009953
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009954 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9955 ;;
9956esac
9957fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009958PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009959if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009961$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009962else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009964$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009965fi
9966
Theodore Ts'oe1052142006-10-21 21:46:47 -04009967
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009968# Extract the first word of "ldconfig", so it can be a program name with args.
9969set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009971$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009972if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009973 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009974else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009975 case $LDCONFIG in
9976 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009977 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9978 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009979 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981for as_dir in $PATH
9982do
9983 IFS=$as_save_IFS
9984 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009985 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009987 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009989 break 2
9990 fi
9991done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009992 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009993IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009994
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009995 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9996 ;;
9997esac
9998fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009999LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010000if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010002$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010003else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010005$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010006fi
10007
Theodore Ts'oe1052142006-10-21 21:46:47 -040010008
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010009if test -n "$ac_tool_prefix"; then
10010 # 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 +000010011set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010013$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010014if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010015 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010016else
10017 if test -n "$AR"; then
10018 ac_cv_prog_AR="$AR" # Let the user override the test.
10019else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021for as_dir in $PATH
10022do
10023 IFS=$as_save_IFS
10024 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010025 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010027 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010029 break 2
10030 fi
10031done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010032 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010033IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010034
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010035fi
10036fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010037AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010038if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010040$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010041else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010043$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010044fi
10045
Theodore Ts'oe1052142006-10-21 21:46:47 -040010046
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010047fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010048if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010049 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010050 # Extract the first word of "ar", so it can be a program name with args.
10051set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010053$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010054if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010055 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010056else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010057 if test -n "$ac_ct_AR"; then
10058 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010059else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061for as_dir in $PATH
10062do
10063 IFS=$as_save_IFS
10064 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010065 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010067 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010069 break 2
10070 fi
10071done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010072 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010073IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010074
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010075fi
10076fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010077ac_ct_AR=$ac_cv_prog_ac_ct_AR
10078if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010080$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010081else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010083$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010084fi
10085
Theodore Ts'oe1052142006-10-21 21:46:47 -040010086 if test "x$ac_ct_AR" = x; then
10087 AR="ar"
10088 else
10089 case $cross_compiling:$ac_tool_warned in
10090yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010091{ $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 +010010092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010093ac_tool_warned=yes ;;
10094esac
10095 AR=$ac_ct_AR
10096 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010097else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010098 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010099fi
10100
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010101if test -n "$ac_tool_prefix"; then
10102 # 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 +000010103set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010105$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010106if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010107 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010108else
10109 if test -n "$RANLIB"; then
10110 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10111else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113for as_dir in $PATH
10114do
10115 IFS=$as_save_IFS
10116 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010117 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010119 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010121 break 2
10122 fi
10123done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010124 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010125IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010126
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010127fi
10128fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010129RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010130if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010132$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010133else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010135$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010136fi
10137
Theodore Ts'oe1052142006-10-21 21:46:47 -040010138
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010139fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010140if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010141 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010142 # Extract the first word of "ranlib", so it can be a program name with args.
10143set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010145$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010146if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010147 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010148else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010149 if test -n "$ac_ct_RANLIB"; then
10150 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010151else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153for as_dir in $PATH
10154do
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010157 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010159 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010161 break 2
10162 fi
10163done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010164 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010165IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010166
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010167fi
10168fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010169ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10170if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010172$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010173else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010175$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010176fi
10177
Theodore Ts'oe1052142006-10-21 21:46:47 -040010178 if test "x$ac_ct_RANLIB" = x; then
10179 RANLIB=":"
10180 else
10181 case $cross_compiling:$ac_tool_warned in
10182yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010183{ $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 +010010184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010185ac_tool_warned=yes ;;
10186esac
10187 RANLIB=$ac_ct_RANLIB
10188 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010189else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010190 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010191fi
10192
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010193if test -n "$ac_tool_prefix"; then
10194 # 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 +000010195set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010197$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010198if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010199 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010200else
10201 if test -n "$STRIP"; then
10202 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10203else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205for as_dir in $PATH
10206do
10207 IFS=$as_save_IFS
10208 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010209 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010211 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010213 break 2
10214 fi
10215done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010216 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010217IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010218
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010219fi
10220fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010221STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010222if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010224$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010225else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010227$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010228fi
10229
Theodore Ts'oe1052142006-10-21 21:46:47 -040010230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010231fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010232if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010233 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010234 # Extract the first word of "strip", so it can be a program name with args.
10235set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010237$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010238if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010239 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010240else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010241 if test -n "$ac_ct_STRIP"; then
10242 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010243else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010249 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010251 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010253 break 2
10254 fi
10255done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010256 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010257IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010258
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010259fi
10260fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010261ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10262if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010264$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010265else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010267$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010268fi
10269
Theodore Ts'oe1052142006-10-21 21:46:47 -040010270 if test "x$ac_ct_STRIP" = x; then
10271 STRIP=":"
10272 else
10273 case $cross_compiling:$ac_tool_warned in
10274yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010275{ $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 +010010276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010277ac_tool_warned=yes ;;
10278esac
10279 STRIP=$ac_ct_STRIP
10280 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010281else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010282 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010283fi
10284
Manish Katiyar7321d942008-04-14 17:20:03 +053010285# Extract the first word of "makeinfo", so it can be a program name with args.
10286set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010288$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010289if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010290 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053010291else
10292 if test -n "$MAKEINFO"; then
10293 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10294else
10295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296for as_dir in $PATH
10297do
10298 IFS=$as_save_IFS
10299 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010300 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053010302 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053010304 break 2
10305 fi
10306done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010307 done
Manish Katiyar7321d942008-04-14 17:20:03 +053010308IFS=$as_save_IFS
10309
10310fi
10311fi
10312MAKEINFO=$ac_cv_prog_MAKEINFO
10313if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010315$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010316else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010318$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010319fi
10320
10321
10322if test "_$MAKEINFO" = "_"; then
10323 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10324else
10325 case "$MAKEINFO" in
10326 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010328*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010329$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010330*** Makeinfo is missing. Info documentation will not be built." >&2;}
10331 ;;
10332 *)
10333 ;;
10334 esac
10335fi
10336
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010337
Theodore Ts'o6c133521999-07-03 20:37:03 +000010338# See if we need a separate native compiler.
10339if test $cross_compiling = no; then
10340 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010341
Theodore Ts'o6c133521999-07-03 20:37:03 +000010342else
10343 for ac_prog in gcc cc
10344do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010345 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010346set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010348$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010349if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010350 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010351else
10352 if test -n "$BUILD_CC"; then
10353 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10354else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010357do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010358 IFS=$as_save_IFS
10359 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010360 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010362 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010364 break 2
10365 fi
10366done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010367 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010368IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010369
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010370fi
10371fi
10372BUILD_CC=$ac_cv_prog_BUILD_CC
10373if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010375$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010376else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010378$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010379fi
10380
Theodore Ts'oe1052142006-10-21 21:46:47 -040010381
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010382 test -n "$BUILD_CC" && break
10383done
10384
10385fi
Kazuya Miofbabd5c2013-12-16 00:48:12 -050010386for 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 linux/loop.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 -050010387do :
10388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10389ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010390if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010391 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010392#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010393_ACEOF
10394
10395fi
10396
10397done
10398
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010399for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010400do :
10401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10402ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010403#if HAVE_SYS_QUEUE_H
10404#include <sys/queue.h>
10405#endif
10406
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010407"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010408if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010409 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010410#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010411_ACEOF
10412
10413fi
10414
10415done
10416
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010417for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010418do :
10419 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010420#if HAVE_SYS_TYPES_H
10421#include <sys/types.h>
10422#endif
10423#if HAVE_SYS_SOCKET
10424#include <sys/socket.h>
10425#endif
10426
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010427"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010428if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010429 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010430#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010431_ACEOF
10432
10433fi
10434
10435done
10436
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010437for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010438do :
10439 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010440if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010441 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010442#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010443_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010444
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010445ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010446if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010447
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010448$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010449
10450fi
10451
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010452fi
10453done
10454
10455
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010456ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10457"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010458if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010459
10460$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010461
10462fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010463
Theodore Ts'o28739272014-01-03 00:26:43 -050010464ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10465if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10466
10467cat >>confdefs.h <<_ACEOF
10468#define HAVE_STRUCT_STAT_ST_ATIM 1
10469_ACEOF
10470
10471
10472fi
10473
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010474ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10475"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010476if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010477
10478$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010479
Theodore Ts'offf45482003-04-13 00:44:19 -040010480fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010481
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010482ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10483"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010484if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010485
10486$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010487
10488fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010489
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010490ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010491 #define _LARGEFILE64_SOURCE
10492 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010493"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010494if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010495
10496$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010497
10498fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010499
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010500# The cast to long int works around a bug in the HP C Compiler
10501# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10502# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10503# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010505$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010506if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010507 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010508else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010509 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 -050010510
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010511else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010512 if test "$ac_cv_type_short" = yes; then
10513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010515as_fn_error 77 "cannot compute sizeof (short)
10516See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010517 else
10518 ac_cv_sizeof_short=0
10519 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010520fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010521
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010522fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010524$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010525
10526
10527
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010528cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010529#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010530_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010531
10532
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010533# The cast to long int works around a bug in the HP C Compiler
10534# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10535# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10536# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010538$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010539if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010540 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010541else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010542 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 -050010543
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010544else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010545 if test "$ac_cv_type_int" = yes; then
10546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010548as_fn_error 77 "cannot compute sizeof (int)
10549See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010550 else
10551 ac_cv_sizeof_int=0
10552 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010553fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010554
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010555fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010557$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010558
10559
10560
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010561cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010562#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010563_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010564
10565
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010566# The cast to long int works around a bug in the HP C Compiler
10567# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10568# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10569# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010571$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010572if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010573 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010574else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010575 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 -050010576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010577else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010578 if test "$ac_cv_type_long" = yes; then
10579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010581as_fn_error 77 "cannot compute sizeof (long)
10582See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010583 else
10584 ac_cv_sizeof_long=0
10585 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010586fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010587
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010588fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010590$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010591
10592
10593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010594cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010595#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010596_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010597
10598
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010599# The cast to long int works around a bug in the HP C Compiler
10600# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10601# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10602# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010604$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010605if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010606 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010607else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010608 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 -050010609
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010610else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010611 if test "$ac_cv_type_long_long" = yes; then
10612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010614as_fn_error 77 "cannot compute sizeof (long long)
10615See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010616 else
10617 ac_cv_sizeof_long_long=0
10618 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010619fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010620
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010621fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010623$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010624
10625
10626
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010627cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010628#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010629_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010630
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010631
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040010632# The cast to long int works around a bug in the HP C Compiler
10633# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10634# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10635# This bug is HP SR number 8606223364.
10636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10637$as_echo_n "checking size of off_t... " >&6; }
10638if ${ac_cv_sizeof_off_t+:} false; then :
10639 $as_echo_n "(cached) " >&6
10640else
10641 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10642
10643else
10644 if test "$ac_cv_type_off_t" = yes; then
10645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10647as_fn_error 77 "cannot compute sizeof (off_t)
10648See \`config.log' for more details" "$LINENO" 5; }
10649 else
10650 ac_cv_sizeof_off_t=0
10651 fi
10652fi
10653
10654fi
10655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10656$as_echo "$ac_cv_sizeof_off_t" >&6; }
10657
10658
10659
10660cat >>confdefs.h <<_ACEOF
10661#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10662_ACEOF
10663
10664
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010665SIZEOF_SHORT=$ac_cv_sizeof_short
10666SIZEOF_INT=$ac_cv_sizeof_int
10667SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010668SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040010669SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10670
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010671
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010672
10673
10674
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010676$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010677if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010678 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010679else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010680 ac_cv_c_bigendian=unknown
10681 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010683/* end confdefs.h. */
10684#ifndef __APPLE_CC__
10685 not a universal capable compiler
10686 #endif
10687 typedef int dummy;
10688
10689_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010690if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010691
10692 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010693 # there are at least two -arch flags with different values.
10694 ac_arch=
10695 ac_prev=
10696 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10697 if test -n "$ac_prev"; then
10698 case $ac_word in
10699 i?86 | x86_64 | ppc | ppc64)
10700 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10701 ac_arch=$ac_word
10702 else
10703 ac_cv_c_bigendian=universal
10704 break
10705 fi
10706 ;;
10707 esac
10708 ac_prev=
10709 elif test "x$ac_word" = "x-arch"; then
10710 ac_prev=arch
10711 fi
10712 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010713fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10715 if test $ac_cv_c_bigendian = unknown; then
10716 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010718/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010719#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010720 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010721
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010722int
10723main ()
10724{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010725#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10726 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10727 && LITTLE_ENDIAN)
10728 bogus endian macros
10729 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010730
10731 ;
10732 return 0;
10733}
10734_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010735if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010736 # It does; now see whether it defined to BIG_ENDIAN or not.
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. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010739#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010740 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010741
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010742int
10743main ()
10744{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010745#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010746 not big endian
10747 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010748
10749 ;
10750 return 0;
10751}
10752_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010753if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010754 ac_cv_c_bigendian=yes
10755else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010756 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010757fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010759fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 fi
10762 if test $ac_cv_c_bigendian = unknown; then
10763 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010765/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010766#include <limits.h>
10767
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010768int
10769main ()
10770{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010771#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10772 bogus endian macros
10773 #endif
10774
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010775 ;
10776 return 0;
10777}
10778_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010779if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010780 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010782/* end confdefs.h. */
10783#include <limits.h>
10784
10785int
10786main ()
10787{
10788#ifndef _BIG_ENDIAN
10789 not big endian
10790 #endif
10791
10792 ;
10793 return 0;
10794}
10795_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010796if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010797 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010798else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010799 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010800fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010802fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 fi
10805 if test $ac_cv_c_bigendian = unknown; then
10806 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010807 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010808 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010810/* end confdefs.h. */
10811short int ascii_mm[] =
10812 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10813 short int ascii_ii[] =
10814 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10815 int use_ascii (int i) {
10816 return ascii_mm[i] + ascii_ii[i];
10817 }
10818 short int ebcdic_ii[] =
10819 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10820 short int ebcdic_mm[] =
10821 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10822 int use_ebcdic (int i) {
10823 return ebcdic_mm[i] + ebcdic_ii[i];
10824 }
10825 extern int foo;
10826
10827int
10828main ()
10829{
10830return use_ascii (foo) == use_ebcdic (foo);
10831 ;
10832 return 0;
10833}
10834_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010835if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010836 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10837 ac_cv_c_bigendian=yes
10838 fi
10839 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10840 if test "$ac_cv_c_bigendian" = unknown; then
10841 ac_cv_c_bigendian=no
10842 else
10843 # finding both strings is unlikely to happen, but who knows?
10844 ac_cv_c_bigendian=unknown
10845 fi
10846 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010847fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010849else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010851/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010852$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010853int
10854main ()
10855{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010856
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010857 /* Are we little or big endian? From Harbison&Steele. */
10858 union
10859 {
10860 long int l;
10861 char c[sizeof (long int)];
10862 } u;
10863 u.l = 1;
10864 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010865
10866 ;
10867 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010868}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010869_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010870if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010871 ac_cv_c_bigendian=no
10872else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010873 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010874fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10876 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010877fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010878
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010879 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010880fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010882$as_echo "$ac_cv_c_bigendian" >&6; }
10883 case $ac_cv_c_bigendian in #(
10884 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010885 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010886;; #(
10887 no)
10888 ;; #(
10889 universal)
10890
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010891$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010892
10893 ;; #(
10894 *)
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010895 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010896 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010897 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010898
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010899BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010900ASM_TYPES_HEADER=./asm_types.h
10901
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010902echo "/* These defines are needed for the public ext2fs.h header file */" \
10903 > public_config.h
10904if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10905 uniq tmp_config.$$ >> public_config.h
10906else
10907 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10908fi
10909if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10910 uniq tmp_config.$$ >> public_config.h
10911else
10912 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10913fi
10914rm -f tmp_config.$$
10915PUBLIC_CONFIG_HEADER=./public_config.h
10916
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010917for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010918do :
10919 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 -040010920if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010921 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010922#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010923_ACEOF
10924
10925fi
10926
Theodore Ts'o0c193f82003-08-01 14:26:23 -040010927done
10928
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010929ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010930if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010931
10932cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010933#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010934_ACEOF
10935
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010936
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010937fi
10938
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010939{ $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 +010010940$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010941if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010942 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010943else
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'o50e1e101997-04-26 13:58:21 +000010946#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010947int
10948main ()
10949{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010950struct stat stat; stat.st_flags = 0;
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'o50e1e101997-04-26 13:58:21 +000010956 e2fsprogs_cv_struct_st_flags=yes
10957else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010958 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +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" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010964$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010965if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010967$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010968 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010969 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010970else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010972/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010973#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010974int
10975main ()
10976{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010977struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010978 ;
10979 return 0;
10980}
10981_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010982if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010983 e2fsprogs_cv_struct_st_flags_immut=yes
10984else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010985 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010986fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10988fi
10989
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010991$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010992 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010993
10994$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010995
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010996 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010997fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010998ac_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 -050010999 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011000"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011001if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011002
11003cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050011004#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011005_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050011006
11007fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011008
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011009if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011011$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011012if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011013 $as_echo_n "(cached) " >&6
11014else
11015 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011017/* end confdefs.h. */
11018
11019/* Override any GCC internal prototype to avoid an error.
11020 Use char because int might match the return type of a GCC
11021 builtin and then its argument prototype would still apply. */
11022#ifdef __cplusplus
11023extern "C"
11024#endif
11025char blkid_probe_all ();
11026int
11027main ()
11028{
11029return blkid_probe_all ();
11030 ;
11031 return 0;
11032}
11033_ACEOF
11034for ac_lib in '' blkid; do
11035 if test -z "$ac_lib"; then
11036 ac_res="none required"
11037 else
11038 ac_res=-l$ac_lib
11039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11040 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011041 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011042 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011043fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011044rm -f core conftest.err conftest.$ac_objext \
11045 conftest$ac_exeext
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011046 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011047 break
11048fi
11049done
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011050if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011051
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011052else
11053 ac_cv_search_blkid_probe_all=no
11054fi
11055rm conftest.$ac_ext
11056LIBS=$ac_func_search_save_LIBS
11057fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011059$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11060ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011061if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011062 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11063
11064fi
11065
11066fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050011067for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl secure_getenv setmntent setresgid setresuid srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011068do :
11069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11070ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011071if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011072 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011073#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011074_ACEOF
11075
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011076fi
11077done
11078
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011079SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011081$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011082if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011083 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011084else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011085 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011086LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011088/* end confdefs.h. */
11089
Theodore Ts'oe1052142006-10-21 21:46:47 -040011090/* Override any GCC internal prototype to avoid an error.
11091 Use char because int might match the return type of a GCC
11092 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011093#ifdef __cplusplus
11094extern "C"
11095#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011096char socket ();
11097int
11098main ()
11099{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011100return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011101 ;
11102 return 0;
11103}
11104_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011105if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011106 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011107else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011108 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011109fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011110rm -f core conftest.err conftest.$ac_objext \
11111 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011112LIBS=$ac_check_lib_save_LIBS
11113fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011115$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011116if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011117 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011118fi
11119
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011120
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011122$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011123if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011124 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011125else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011127/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011128#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011129
11130_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011132 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011133 ac_cv_have_optreset=yes
11134else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011135 ac_cv_have_optreset=no
11136fi
11137rm -f conftest*
11138
11139fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011141$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011142if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011143
11144$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011145
11146fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011147
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011148SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011149ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011150if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011151
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011152else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011154$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011155if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011156 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011157else
11158 ac_check_lib_save_LIBS=$LIBS
11159LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011161/* end confdefs.h. */
11162
11163/* Override any GCC internal prototype to avoid an error.
11164 Use char because int might match the return type of a GCC
11165 builtin and then its argument prototype would still apply. */
11166#ifdef __cplusplus
11167extern "C"
11168#endif
11169char sem_init ();
11170int
11171main ()
11172{
11173return sem_init ();
11174 ;
11175 return 0;
11176}
11177_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011178if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011179 ac_cv_lib_pthread_sem_init=yes
11180else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011181 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011182fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011183rm -f core conftest.err conftest.$ac_objext \
11184 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011185LIBS=$ac_check_lib_save_LIBS
11186fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011188$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011189if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011190 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011191
11192 SEM_INIT_LIB=-lpthread
11193else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011195$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011196if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011197 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011198else
11199 ac_check_lib_save_LIBS=$LIBS
11200LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011202/* end confdefs.h. */
11203
11204/* Override any GCC internal prototype to avoid an error.
11205 Use char because int might match the return type of a GCC
11206 builtin and then its argument prototype would still apply. */
11207#ifdef __cplusplus
11208extern "C"
11209#endif
11210char sem_init ();
11211int
11212main ()
11213{
11214return sem_init ();
11215 ;
11216 return 0;
11217}
11218_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011219if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011220 ac_cv_lib_rt_sem_init=yes
11221else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011222 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011223fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011224rm -f core conftest.err conftest.$ac_objext \
11225 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011226LIBS=$ac_check_lib_save_LIBS
11227fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011229$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011230if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011231 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011232
11233 SEM_INIT_LIB=-lrt
11234else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011236$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011237if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011238 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011239else
11240 ac_check_lib_save_LIBS=$LIBS
11241LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011243/* end confdefs.h. */
11244
11245/* Override any GCC internal prototype to avoid an error.
11246 Use char because int might match the return type of a GCC
11247 builtin and then its argument prototype would still apply. */
11248#ifdef __cplusplus
11249extern "C"
11250#endif
11251char sem_init ();
11252int
11253main ()
11254{
11255return sem_init ();
11256 ;
11257 return 0;
11258}
11259_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011260if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011261 ac_cv_lib_posix4_sem_init=yes
11262else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011263 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011264fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011265rm -f core conftest.err conftest.$ac_objext \
11266 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011267LIBS=$ac_check_lib_save_LIBS
11268fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011270$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011271if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011272 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011273
11274 SEM_INIT_LIB=-lposix4
11275fi
11276
11277fi
11278
11279fi
11280
11281fi
11282
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011284$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040011285if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011286 UNI_DIFF_OPTS=-u
11287else
11288 UNI_DIFF_OPTS=-c
11289fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011291$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011292
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011293case "$host_os" in
11294linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011295
11296$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011297
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011298 ;;
11299esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011300LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011301CYGWIN_CMT="#"
11302UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011303case "$host_os" in
11304linux*)
11305 LINUX_CMT=
11306 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040011307cygwin)
11308 CYGWIN_CMT=
11309 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011310 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011311esac
11312
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011313
11314
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011315case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011316linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011317 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11318 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011319 { $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 +010011320$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011321 fi
11322 ;;
11323esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011324case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011325linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011326 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011327 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011328 { $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 +010011329$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011330 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011332$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011333 mandir=/usr/share/man
11334 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011335 fi
11336;;
11337esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011338if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000011339 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011340 root_prefix="$ac_default_prefix"
11341 else
11342 root_prefix="$prefix"
11343 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040011344 root_bindir=$bindir
11345 root_sbindir=$sbindir
11346 root_libdir=$libdir
11347 root_sysconfdir=$sysconfdir
11348else
11349 root_bindir='${root_prefix}/bin'
11350 root_sbindir='${root_prefix}/sbin'
11351 root_libdir='${root_prefix}/lib'
11352 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011353fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011354if test "$bindir" != '${exec_prefix}/bin'; then
11355 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011357$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011358fi
11359if test "$sbindir" != '${exec_prefix}/sbin'; then
11360 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011362$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011363fi
11364if test "$libdir" != '${exec_prefix}/lib'; then
11365 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011367$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011368fi
11369if test "$sysconfdir" != '${prefix}/etc'; then
11370 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011372$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011373fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011374
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011375
11376
11377
11378
Theodore Ts'o55e00a22011-09-18 23:53:23 -040011379
11380# Check whether --with-multiarch was given.
11381if test "${with_multiarch+set}" = set; then :
11382 withval=$with_multiarch; libdir=$libdir/$withval
11383root_libdir=$root_libdir/$withval
11384
11385fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050011386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11387$as_echo_n "checking whether we can link with -static... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011388if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011389 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000011390else
11391 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011393/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000011394#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011395int
11396main ()
11397{
Theodore Ts'oae851481997-04-29 18:13:24 +000011398fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011399 ;
11400 return 0;
11401}
11402_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011403if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000011404 ac_cv_e2fsprogs_use_static=yes
11405else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011406 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000011407fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011408rm -f core conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000011410LDFLAGS=$SAVE_LDFLAGS
11411fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011412
Theodore Ts'odefde781999-01-04 07:39:19 +000011413case "$host_os" in
11414solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011415 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000011416;;
11417esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011419$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000011420LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000011421if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011422 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000011423fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011424
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011425case "$host_os" in
11426darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011428$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011429
11430$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011431
11432 ;;
11433esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011434SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11435ET_DIR=`cd ${srcdir}/lib/et; pwd`
11436
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011437
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011438if test "$cross_compiling" = yes ; then
11439 DO_TEST_SUITE=
11440else
11441 DO_TEST_SUITE=check
11442fi
11443
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011444INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11445if test -n "$CPPFLAGS" ; then
11446 INCLUDES="$INCLUDES $CPPFLAGS"
11447fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011448if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011449 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011450fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050011451if test -n "$WITH_DIET_LIBC" ; then
11452 INCLUDES="$INCLUDES -D_REENTRANT"
11453fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011454
Theodore Ts'odd947da2005-11-09 18:37:07 -040011455if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050011456 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040011457 BUILD_LDFLAGS="$LDFLAGS"
11458else
11459 BUILD_CFLAGS=
11460 BUILD_LDFLAGS=
11461fi
11462
11463
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011464test -d lib || mkdir lib
11465test -d include || mkdir include
11466test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000011467test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050011468for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040011469 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040011470 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11471 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011472 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070011473 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050011474 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11475 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050011476 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011477 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020011478 resize/Makefile doc/Makefile intl/Makefile \
11479 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011480 if test -d `dirname ${srcdir}/$i` ; then
11481 outlist="$outlist $i"
11482 fi
11483done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011484ac_config_files="$ac_config_files $outlist"
11485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011486cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011487# This file is a shell script that caches the results of configure
11488# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011489# scripts and configure runs, see configure's option --config-cache.
11490# It is not useful on other systems. If it contains results you don't
11491# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011492#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011493# config.status only pays attention to the cache file if you give it
11494# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011495#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011496# `ac_cv_env_foo' variables (set or unset) will be overridden when
11497# loading this file, other *unset* `ac_cv_foo' will be assigned the
11498# following values.
11499
11500_ACEOF
11501
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011502# The following way of writing the cache mishandles newlines in values,
11503# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011504# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011505# Ultrix sh set writes to stderr and can't be redirected directly,
11506# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011507(
11508 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11509 eval ac_val=\$$ac_var
11510 case $ac_val in #(
11511 *${as_nl}*)
11512 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011513 *_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 +010011514$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011515 esac
11516 case $ac_var in #(
11517 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011518 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011519 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011520 esac ;;
11521 esac
11522 done
11523
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011524 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011525 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11526 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011527 # `set' does not quote correctly, so add quotes: double-quote
11528 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011529 sed -n \
11530 "s/'/'\\\\''/g;
11531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011532 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011533 *)
11534 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011535 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011536 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011537 esac |
11538 sort
11539) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011540 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011541 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011542 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011543 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011544 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11545 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011546 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11547 :end' >>confcache
11548if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11549 if test -w "$cache_file"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011550 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011551 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011552$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011553 if test ! -f "$cache_file" || test -h "$cache_file"; then
11554 cat confcache >"$cache_file"
11555 else
11556 case $cache_file in #(
11557 */* | ?:*)
11558 mv -f confcache "$cache_file"$$ &&
11559 mv -f "$cache_file"$$ "$cache_file" ;; #(
11560 *)
11561 mv -f confcache "$cache_file" ;;
11562 esac
11563 fi
11564 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011565 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011566 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011567$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011568 fi
11569fi
11570rm -f confcache
11571
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011572test "x$prefix" = xNONE && prefix=$ac_default_prefix
11573# Let make expand exec_prefix.
11574test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11575
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011576DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011577
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011578ac_libobjs=
11579ac_ltlibobjs=
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011580U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011581for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11582 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011583 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011584 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011585 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11586 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011587 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11588 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011589done
11590LIBOBJS=$ac_libobjs
11591
11592LTLIBOBJS=$ac_ltlibobjs
11593
11594
11595
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011596
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011597: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011598ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011599ac_clean_files_save=$ac_clean_files
11600ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011601{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011602$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011603as_write_fail=0
11604cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011605#! $SHELL
11606# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011607# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011608# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011609# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011610
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011611debug=false
11612ac_cs_recheck=false
11613ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011614
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011615SHELL=\${CONFIG_SHELL-$SHELL}
11616export SHELL
11617_ASEOF
11618cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11619## -------------------- ##
11620## M4sh Initialization. ##
11621## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011622
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011623# Be more Bourne compatible
11624DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011625if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011626 emulate sh
11627 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011628 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011629 # is contrary to our usage. Disable this feature.
11630 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011631 setopt NO_GLOB_SUBST
11632else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011633 case `(set -o) 2>/dev/null` in #(
11634 *posix*) :
11635 set -o posix ;; #(
11636 *) :
11637 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011638esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011639fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011640
11641
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011642as_nl='
11643'
11644export as_nl
11645# Printing a long string crashes Solaris 7 /usr/bin/printf.
11646as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11647as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11648as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011649# Prefer a ksh shell builtin over an external printf program on Solaris,
11650# but without wasting forks for bash or zsh.
11651if test -z "$BASH_VERSION$ZSH_VERSION" \
11652 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11653 as_echo='print -r --'
11654 as_echo_n='print -rn --'
11655elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011656 as_echo='printf %s\n'
11657 as_echo_n='printf %s'
11658else
11659 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11660 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11661 as_echo_n='/usr/ucb/echo -n'
11662 else
11663 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11664 as_echo_n_body='eval
11665 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011666 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011667 *"$as_nl"*)
11668 expr "X$arg" : "X\\(.*\\)$as_nl";
11669 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11670 esac;
11671 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11672 '
11673 export as_echo_n_body
11674 as_echo_n='sh -c $as_echo_n_body as_echo'
11675 fi
11676 export as_echo_body
11677 as_echo='sh -c $as_echo_body as_echo'
11678fi
11679
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011680# The user is always right.
11681if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011682 PATH_SEPARATOR=:
11683 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11684 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11685 PATH_SEPARATOR=';'
11686 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011687fi
11688
Theodore Ts'oe1052142006-10-21 21:46:47 -040011689
11690# IFS
11691# We need space, tab and new line, in precisely that order. Quoting is
11692# there to prevent editors from complaining about space-tab.
11693# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11694# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011695IFS=" "" $as_nl"
11696
11697# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011698as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011699case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011700 *[\\/]* ) as_myself=$0 ;;
11701 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011702for as_dir in $PATH
11703do
11704 IFS=$as_save_IFS
11705 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011706 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11707 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011708IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011709
Theodore Ts'oe1052142006-10-21 21:46:47 -040011710 ;;
11711esac
11712# We did not find ourselves, most probably we were run as `sh COMMAND'
11713# in which case we are not to be found in the path.
11714if test "x$as_myself" = x; then
11715 as_myself=$0
11716fi
11717if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011718 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011719 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011720fi
11721
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011722# Unset variables that we do not need and which cause bugs (e.g. in
11723# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11724# suppresses any "Segmentation fault" message there. '((' could
11725# trigger a bug in pdksh 5.2.14.
11726for as_var in BASH_ENV ENV MAIL MAILPATH
11727do eval test x\${$as_var+set} = xset \
11728 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011729done
11730PS1='$ '
11731PS2='> '
11732PS4='+ '
11733
11734# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011735LC_ALL=C
11736export LC_ALL
11737LANGUAGE=C
11738export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011739
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011740# CDPATH.
11741(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11742
11743
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011744# as_fn_error STATUS ERROR [LINENO LOG_FD]
11745# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011746# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11747# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011748# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011749as_fn_error ()
11750{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011751 as_status=$1; test $as_status -eq 0 && as_status=1
11752 if test "$4"; then
11753 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11754 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011755 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011756 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011757 as_fn_exit $as_status
11758} # as_fn_error
11759
11760
11761# as_fn_set_status STATUS
11762# -----------------------
11763# Set $? to STATUS, without forking.
11764as_fn_set_status ()
11765{
11766 return $1
11767} # as_fn_set_status
11768
11769# as_fn_exit STATUS
11770# -----------------
11771# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11772as_fn_exit ()
11773{
11774 set +e
11775 as_fn_set_status $1
11776 exit $1
11777} # as_fn_exit
11778
11779# as_fn_unset VAR
11780# ---------------
11781# Portably unset VAR.
11782as_fn_unset ()
11783{
11784 { eval $1=; unset $1;}
11785}
11786as_unset=as_fn_unset
11787# as_fn_append VAR VALUE
11788# ----------------------
11789# Append the text in VALUE to the end of the definition contained in VAR. Take
11790# advantage of any shell optimizations that allow amortized linear growth over
11791# repeated appends, instead of the typical quadratic growth present in naive
11792# implementations.
11793if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11794 eval 'as_fn_append ()
11795 {
11796 eval $1+=\$2
11797 }'
11798else
11799 as_fn_append ()
11800 {
11801 eval $1=\$$1\$2
11802 }
11803fi # as_fn_append
11804
11805# as_fn_arith ARG...
11806# ------------------
11807# Perform arithmetic evaluation on the ARGs, and store the result in the
11808# global $as_val. Take advantage of shells that can avoid forks. The arguments
11809# must be portable across $(()) and expr.
11810if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11811 eval 'as_fn_arith ()
11812 {
11813 as_val=$(( $* ))
11814 }'
11815else
11816 as_fn_arith ()
11817 {
11818 as_val=`expr "$@" || test $? -eq 1`
11819 }
11820fi # as_fn_arith
11821
11822
Theodore Ts'oe1052142006-10-21 21:46:47 -040011823if expr a : '\(a\)' >/dev/null 2>&1 &&
11824 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11825 as_expr=expr
11826else
11827 as_expr=false
11828fi
11829
11830if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11831 as_basename=basename
11832else
11833 as_basename=false
11834fi
11835
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011836if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11837 as_dirname=dirname
11838else
11839 as_dirname=false
11840fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011841
Theodore Ts'oe1052142006-10-21 21:46:47 -040011842as_me=`$as_basename -- "$0" ||
11843$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11844 X"$0" : 'X\(//\)$' \| \
11845 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011846$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011847 sed '/^.*\/\([^/][^/]*\)\/*$/{
11848 s//\1/
11849 q
11850 }
11851 /^X\/\(\/\/\)$/{
11852 s//\1/
11853 q
11854 }
11855 /^X\/\(\/\).*/{
11856 s//\1/
11857 q
11858 }
11859 s/.*/./; q'`
11860
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011861# Avoid depending upon Character Ranges.
11862as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11863as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11864as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11865as_cr_digits='0123456789'
11866as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011867
11868ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011869case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011870-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011871 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011872 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011873 xy) ECHO_C='\c';;
11874 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11875 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011876 esac;;
11877*)
11878 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011879esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011880
11881rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011882if test -d conf$$.dir; then
11883 rm -f conf$$.dir/conf$$.file
11884else
11885 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011886 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011887fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011888if (echo >conf$$.file) 2>/dev/null; then
11889 if ln -s conf$$.file conf$$ 2>/dev/null; then
11890 as_ln_s='ln -s'
11891 # ... but there are two gotchas:
11892 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11893 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011894 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011895 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011896 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011897 elif ln conf$$.file conf$$ 2>/dev/null; then
11898 as_ln_s=ln
11899 else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011900 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011901 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011902else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011903 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011904fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011905rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11906rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011907
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011908
11909# as_fn_mkdir_p
11910# -------------
11911# Create "$as_dir" as a directory, including parents if necessary.
11912as_fn_mkdir_p ()
11913{
11914
11915 case $as_dir in #(
11916 -*) as_dir=./$as_dir;;
11917 esac
11918 test -d "$as_dir" || eval $as_mkdir_p || {
11919 as_dirs=
11920 while :; do
11921 case $as_dir in #(
11922 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11923 *) as_qdir=$as_dir;;
11924 esac
11925 as_dirs="'$as_qdir' $as_dirs"
11926 as_dir=`$as_dirname -- "$as_dir" ||
11927$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11928 X"$as_dir" : 'X\(//\)[^/]' \| \
11929 X"$as_dir" : 'X\(//\)$' \| \
11930 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11931$as_echo X"$as_dir" |
11932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11933 s//\1/
11934 q
11935 }
11936 /^X\(\/\/\)[^/].*/{
11937 s//\1/
11938 q
11939 }
11940 /^X\(\/\/\)$/{
11941 s//\1/
11942 q
11943 }
11944 /^X\(\/\).*/{
11945 s//\1/
11946 q
11947 }
11948 s/.*/./; q'`
11949 test -d "$as_dir" && break
11950 done
11951 test -z "$as_dirs" || eval "mkdir $as_dirs"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011952 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011953
11954
11955} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011956if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011957 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011958else
11959 test -d ./-p && rmdir ./-p
11960 as_mkdir_p=false
11961fi
11962
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011963
11964# as_fn_executable_p FILE
11965# -----------------------
11966# Test if FILE is an executable regular file.
11967as_fn_executable_p ()
11968{
11969 test -f "$1" && test -x "$1"
11970} # as_fn_executable_p
11971as_test_x='test -x'
11972as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011973
11974# Sed expression to map a string onto a valid CPP name.
11975as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11976
11977# Sed expression to map a string onto a valid variable name.
11978as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11979
11980
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011981exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011982## ----------------------------------- ##
11983## Main body of $CONFIG_STATUS script. ##
11984## ----------------------------------- ##
11985_ASEOF
11986test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011987
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11989# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011990# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040011991# values after options handling.
11992ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011993This file was extended by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011994generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011995
11996 CONFIG_FILES = $CONFIG_FILES
11997 CONFIG_HEADERS = $CONFIG_HEADERS
11998 CONFIG_LINKS = $CONFIG_LINKS
11999 CONFIG_COMMANDS = $CONFIG_COMMANDS
12000 $ $0 $@
12001
Theodore Ts'oe1052142006-10-21 21:46:47 -040012002on `(hostname || uname -n) 2>/dev/null | sed 1q`
12003"
12004
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012005_ACEOF
12006
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012007case $ac_config_files in *"
12008"*) set x $ac_config_files; shift; ac_config_files=$*;;
12009esac
12010
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012011case $ac_config_headers in *"
12012"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12013esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012014
12015
12016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012017# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012018config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012019config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012020config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012021
Theodore Ts'oe1052142006-10-21 21:46:47 -040012022_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012023
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012025ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012026\`$as_me' instantiates files and other configuration actions
12027from templates according to the current configuration. Unless the files
12028and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012029
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012030Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012031
12032 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012033 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012034 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012035 -q, --quiet, --silent
12036 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012037 -d, --debug don't remove temporary files
12038 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012039 --file=FILE[:TEMPLATE]
12040 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012041 --header=FILE[:TEMPLATE]
12042 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012043
12044Configuration files:
12045$config_files
12046
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012047Configuration headers:
12048$config_headers
12049
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012050Configuration commands:
12051$config_commands
12052
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012053Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012054
Theodore Ts'oe1052142006-10-21 21:46:47 -040012055_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012056cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012057ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012058ac_cs_version="\\
12059config.status
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012060configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012061 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012062
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012063Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012064This config.status script is free software; the Free Software Foundation
12065gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040012066
12067ac_pwd='$ac_pwd'
12068srcdir='$srcdir'
12069INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012070AWK='$AWK'
12071test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012072_ACEOF
12073
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12075# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012076ac_need_defaults=:
12077while test $# != 0
12078do
12079 case $1 in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012080 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012081 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12082 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012083 ac_shift=:
12084 ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012085 --*=)
12086 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12087 ac_optarg=
12088 ac_shift=:
12089 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012090 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012091 ac_option=$1
12092 ac_optarg=$2
12093 ac_shift=shift
12094 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012095 esac
12096
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012097 case $ac_option in
12098 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012099 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12100 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012101 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012102 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012103 --config | --confi | --conf | --con | --co | --c )
12104 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012105 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012106 debug=: ;;
12107 --file | --fil | --fi | --f )
12108 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012109 case $ac_optarg in
12110 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012111 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012112 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012113 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012114 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012115 --header | --heade | --head | --hea )
12116 $ac_shift
12117 case $ac_optarg in
12118 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12119 esac
12120 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12121 ac_need_defaults=false;;
12122 --he | --h)
12123 # Conflict between --help and --header
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012124 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012125Try \`$0 --help' for more information.";;
12126 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012127 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12129 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12130 ac_cs_silent=: ;;
12131
12132 # This is an error.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012133 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012134Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012135
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012136 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012137 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012138
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012139 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012140 shift
12141done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012142
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012143ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012144
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012145if $ac_cs_silent; then
12146 exec 6>/dev/null
12147 ac_configure_extra_args="$ac_configure_extra_args --silent"
12148fi
12149
12150_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012152if \$ac_cs_recheck; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012153 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012154 shift
12155 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12156 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012157 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012158 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012159fi
12160
12161_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012163exec 5>>config.log
12164{
12165 echo
12166 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12167## Running $as_me. ##
12168_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012169 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012170} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012171
Theodore Ts'oe1052142006-10-21 21:46:47 -040012172_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012174#
Theodore Ts'oe1052142006-10-21 21:46:47 -040012175# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012176#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012177# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012178 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012179 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012180 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012181 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12182 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012183
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012184
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012185_ACEOF
12186
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012188
12189# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012190for ac_config_target in $ac_config_targets
12191do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012192 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012193 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012194 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12195 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12196
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012197 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012198 esac
12199done
12200
Theodore Ts'oe1052142006-10-21 21:46:47 -040012201
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012202# If the user did not use the arguments to specify the items to instantiate,
12203# then the envvar interface is used. Set only those that are not.
12204# We use the long form for the default assignment because of an extremely
12205# bizarre bug on SunOS 4.1.3.
12206if $ac_need_defaults; then
12207 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012208 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012209 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12210fi
12211
12212# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040012213# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012214# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012215# Hook for its removal unless debugging.
12216# Note that there is a small window in which the directory will not be cleaned:
12217# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012218$debug ||
12219{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012220 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040012221 trap 'exit_status=$?
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012222 : "${ac_tmp:=$tmp}"
12223 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040012224' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012225 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012226}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012227# Create a (secure) tmp directory for tmp files.
12228
12229{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012230 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012231 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232} ||
12233{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012234 tmp=./conf$$-$RANDOM
12235 (umask 077 && mkdir "$tmp")
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012236} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12237ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012238
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012239# Set up the scripts for CONFIG_FILES section.
12240# No need to generate them if there are no CONFIG_FILES.
12241# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012242if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012243
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012244if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12245 ac_cs_awk_getline=:
12246 ac_cs_awk_pipe_init=
12247 ac_cs_awk_read_file='
12248 while ((getline aline < (F[key])) > 0)
12249 print(aline)
12250 close(F[key])'
12251 ac_cs_awk_pipe_fini=
12252else
12253 ac_cs_awk_getline=false
12254 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12255 ac_cs_awk_read_file='
12256 print "|#_!!_#|"
12257 print "cat " F[key] " &&"
12258 '$ac_cs_awk_pipe_init
12259 # The final `:' finishes the AND list.
12260 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12261fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012262ac_cr=`echo X | tr X '\015'`
12263# On cygwin, bash can eat \r inside `` if the user requested igncr.
12264# But we know of no other shell where ac_cr would be empty at this
12265# point, so we can use a bashism as a fallback.
12266if test "x$ac_cr" = x; then
12267 eval ac_cr=\$\'\\r\'
12268fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012269ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12270if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012271 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012272else
12273 ac_cs_awk_cr=$ac_cr
12274fi
12275
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012276echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012277_ACEOF
12278
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012279# Create commands to substitute file output variables.
12280{
12281 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012282 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012283 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12284 echo "_ACAWK" &&
12285 echo "_ACEOF"
12286} >conf$$files.sh &&
12287. ./conf$$files.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012288 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012289rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012290
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012291{
12292 echo "cat >conf$$subs.awk <<_ACEOF" &&
12293 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12294 echo "_ACEOF"
12295} >conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12297ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012298ac_delim='%!_!# '
12299for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012300 . ./conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012302
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012303 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12304 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012305 break
12306 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012308 else
12309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012310 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012311done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012312rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012313
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012315cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012316_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012317sed -n '
12318h
12319s/^/S["/; s/!.*/"]=/
12320p
12321g
12322s/^[^!]*!//
12323:repl
12324t repl
12325s/'"$ac_delim"'$//
12326t delim
12327:nl
12328h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012329s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012330t more1
12331s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12332p
12333n
12334b repl
12335:more1
12336s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12337p
12338g
12339s/.\{148\}//
12340t nl
12341:delim
12342h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012343s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012344t more2
12345s/["\\]/\\&/g; s/^/"/; s/$/"/
12346p
12347b
12348:more2
12349s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12350p
12351g
12352s/.\{148\}//
12353t delim
12354' <conf$$subs.awk | sed '
12355/^[^""]/{
12356 N
12357 s/\n//
12358}
12359' >>$CONFIG_STATUS || ac_write_fail=1
12360rm -f conf$$subs.awk
12361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12362_ACAWK
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012363cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012364 for (key in S) S_is_set[key] = 1
12365 FS = ""
12366 \$ac_cs_awk_pipe_init
12367}
12368{
12369 line = $ 0
12370 nfields = split(line, field, "@")
12371 substed = 0
12372 len = length(field[1])
12373 for (i = 2; i < nfields; i++) {
12374 key = field[i]
12375 keylen = length(key)
12376 if (S_is_set[key]) {
12377 value = S[key]
12378 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12379 len += length(value) + length(field[++i])
12380 substed = 1
12381 } else
12382 len += 1 + keylen
12383 }
12384 if (nfields == 3 && !substed) {
12385 key = field[2]
12386 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12387 \$ac_cs_awk_read_file
12388 next
12389 }
12390 }
12391 print line
12392}
12393\$ac_cs_awk_pipe_fini
12394_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040012395_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12397if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12398 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12399else
12400 cat
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012401fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12402 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012403_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012404
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012405# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12406# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040012407# trailing colons and then remove the whole line if VPATH becomes empty
12408# (actually we leave an empty line to preserve line numbers).
12409if test "x$srcdir" = x.; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012410 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12411h
12412s///
12413s/^/:/
12414s/[ ]*$/:/
12415s/:\$(srcdir):/:/g
12416s/:\${srcdir}:/:/g
12417s/:@srcdir@:/:/g
12418s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012419s/:*$//
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012420x
12421s/\(=[ ]*\).*/\1/
12422G
12423s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012424s/^[^=]*=[ ]*$//
12425}'
12426fi
12427
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012429fi # test -n "$CONFIG_FILES"
12430
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012431# Set up the scripts for CONFIG_HEADERS section.
12432# No need to generate them if there are no CONFIG_HEADERS.
12433# This happens for instance with `./config.status Makefile'.
12434if test -n "$CONFIG_HEADERS"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012435cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012436BEGIN {
12437_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012438
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012439# Transform confdefs.h into an awk script `defines.awk', embedded as
12440# here-document in config.status, that substitutes the proper values into
12441# config.h.in to produce config.h.
12442
12443# Create a delimiter string that does not exist in confdefs.h, to ease
12444# handling of long lines.
12445ac_delim='%!_!# '
12446for ac_last_try in false false :; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012447 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12448 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012449 break
12450 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012451 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012452 else
12453 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12454 fi
12455done
12456
12457# For the awk script, D is an array of macro values keyed by name,
12458# likewise P contains macro parameters if any. Preserve backslash
12459# newline sequences.
12460
12461ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12462sed -n '
12463s/.\{148\}/&'"$ac_delim"'/g
12464t rset
12465:rset
12466s/^[ ]*#[ ]*define[ ][ ]*/ /
12467t def
12468d
12469:def
12470s/\\$//
12471t bsnl
12472s/["\\]/\\&/g
12473s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12474D["\1"]=" \3"/p
12475s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12476d
12477:bsnl
12478s/["\\]/\\&/g
12479s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12480D["\1"]=" \3\\\\\\n"\\/p
12481t cont
12482s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12483t cont
12484d
12485:cont
12486n
12487s/.\{148\}/&'"$ac_delim"'/g
12488t clear
12489:clear
12490s/\\$//
12491t bsnlc
12492s/["\\]/\\&/g; s/^/"/; s/$/"/p
12493d
12494:bsnlc
12495s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12496b cont
12497' <confdefs.h | sed '
12498s/'"$ac_delim"'/"\\\
12499"/g' >>$CONFIG_STATUS || ac_write_fail=1
12500
12501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12502 for (key in D) D_is_set[key] = 1
12503 FS = ""
12504}
12505/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12506 line = \$ 0
12507 split(line, arg, " ")
12508 if (arg[1] == "#") {
12509 defundef = arg[2]
12510 mac1 = arg[3]
12511 } else {
12512 defundef = substr(arg[1], 2)
12513 mac1 = arg[2]
12514 }
12515 split(mac1, mac2, "(") #)
12516 macro = mac2[1]
12517 prefix = substr(line, 1, index(line, defundef) - 1)
12518 if (D_is_set[macro]) {
12519 # Preserve the white space surrounding the "#".
12520 print prefix "define", macro P[macro] D[macro]
12521 next
12522 } else {
12523 # Replace #undef with comments. This is necessary, for example,
12524 # in the case of _POSIX_SOURCE, which is predefined and required
12525 # on some systems where configure will not decide to define it.
12526 if (defundef == "undef") {
12527 print "/*", prefix defundef, macro, "*/"
12528 next
12529 }
12530 }
12531}
12532{ print }
12533_ACAWK
12534_ACEOF
12535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012536 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012537fi # test -n "$CONFIG_HEADERS"
12538
12539
12540eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012541shift
12542for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040012543do
12544 case $ac_tag in
12545 :[FHLC]) ac_mode=$ac_tag; continue;;
12546 esac
12547 case $ac_mode$ac_tag in
12548 :[FHL]*:*);;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012549 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012550 :[FH]-) ac_tag=-:-;;
12551 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12552 esac
12553 ac_save_IFS=$IFS
12554 IFS=:
12555 set x $ac_tag
12556 IFS=$ac_save_IFS
12557 shift
12558 ac_file=$1
12559 shift
12560
12561 case $ac_mode in
12562 :L) ac_source=$1;;
12563 :[FH])
12564 ac_file_inputs=
12565 for ac_f
12566 do
12567 case $ac_f in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012568 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012569 *) # Look for the file first in the build tree, then in the source tree
12570 # (if the path is not absolute). The absolute path cannot be DOS-style,
12571 # because $ac_f cannot contain `:'.
12572 test -f "$ac_f" ||
12573 case $ac_f in
12574 [\\/$]*) false;;
12575 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12576 esac ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012577 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012578 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012579 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012580 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012581 done
12582
12583 # Let's still pretend it is `configure' which instantiates (i.e., don't
12584 # use $as_me), people would be surprised to read:
12585 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012586 configure_input='Generated from '`
12587 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12588 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012589 if test x"$ac_file" != x-; then
12590 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012591 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012592$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012593 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012594 # Neutralize special characters interpreted by sed in replacement strings.
12595 case $configure_input in #(
12596 *\&* | *\|* | *\\* )
12597 ac_sed_conf_input=`$as_echo "$configure_input" |
12598 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12599 *) ac_sed_conf_input=$configure_input;;
12600 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012601
12602 case $ac_tag in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012603 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012605 esac
12606 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012607 esac
12608
Theodore Ts'oe1052142006-10-21 21:46:47 -040012609 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012610$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12611 X"$ac_file" : 'X\(//\)[^/]' \| \
12612 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012613 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012614$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12616 s//\1/
12617 q
12618 }
12619 /^X\(\/\/\)[^/].*/{
12620 s//\1/
12621 q
12622 }
12623 /^X\(\/\/\)$/{
12624 s//\1/
12625 q
12626 }
12627 /^X\(\/\).*/{
12628 s//\1/
12629 q
12630 }
12631 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012632 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012633 ac_builddir=.
12634
Theodore Ts'oe1052142006-10-21 21:46:47 -040012635case "$ac_dir" in
12636.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12637*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012638 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012639 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012640 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012641 case $ac_top_builddir_sub in
12642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12644 esac ;;
12645esac
12646ac_abs_top_builddir=$ac_pwd
12647ac_abs_builddir=$ac_pwd$ac_dir_suffix
12648# for backward compatibility:
12649ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012650
12651case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012652 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012653 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012654 ac_top_srcdir=$ac_top_builddir_sub
12655 ac_abs_top_srcdir=$ac_pwd ;;
12656 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012657 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012658 ac_top_srcdir=$srcdir
12659 ac_abs_top_srcdir=$srcdir ;;
12660 *) # Relative name.
12661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12662 ac_top_srcdir=$ac_top_build_prefix$srcdir
12663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012664esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012665ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012666
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012667
Theodore Ts'oe1052142006-10-21 21:46:47 -040012668 case $ac_mode in
12669 :F)
12670 #
12671 # CONFIG_FILE
12672 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012673
12674 case $INSTALL in
12675 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012676 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012677 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012678_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012679
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012681# If the template does not know about datarootdir, expand it.
12682# FIXME: This hack should be removed a few years after 2.60.
12683ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012684ac_sed_dataroot='
12685/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012686 p
12687 q
12688}
12689/@datadir@/p
12690/@docdir@/p
12691/@infodir@/p
12692/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012693/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012694case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012695*datarootdir*) ac_datarootdir_seen=yes;;
12696*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012697 { $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 +010012698$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012699_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012701 ac_datarootdir_hack='
12702 s&@datadir@&$datadir&g
12703 s&@docdir@&$docdir&g
12704 s&@infodir@&$infodir&g
12705 s&@localedir@&$localedir&g
12706 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012707 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012708esac
12709_ACEOF
12710
12711# Neutralize VPATH when `$srcdir' = `.'.
12712# Shell code in configure.ac might set extrasub.
12713# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12715ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012716$extrasub
12717_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012719:t
12720/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012721s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012722s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012723s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012724s&@srcdir@&$ac_srcdir&;t t
12725s&@abs_srcdir@&$ac_abs_srcdir&;t t
12726s&@top_srcdir@&$ac_top_srcdir&;t t
12727s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12728s&@builddir@&$ac_builddir&;t t
12729s&@abs_builddir@&$ac_abs_builddir&;t t
12730s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12731s&@INSTALL@&$ac_INSTALL&;t t
12732$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012733"
12734eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12735if $ac_cs_awk_getline; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012736 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012737else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012738 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12739fi \
12740 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012741
Theodore Ts'oe1052142006-10-21 21:46:47 -040012742test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012743 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12744 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12745 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012746 { $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 -040012747which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012748$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012749which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012750
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012751 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012752 case $ac_file in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012753 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12754 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012755 esac \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012757 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012758 :H)
12759 #
12760 # CONFIG_HEADER
12761 #
12762 if test x"$ac_file" != x-; then
12763 {
12764 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012765 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12766 } >"$ac_tmp/config.h" \
12767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12768 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012769 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12770$as_echo "$as_me: $ac_file is unchanged" >&6;}
12771 else
12772 rm -f "$ac_file"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012773 mv "$ac_tmp/config.h" "$ac_file" \
12774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012775 fi
12776 else
12777 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012778 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12779 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012780 fi
12781 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012782
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012783 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012784$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012785 ;;
12786 esac
12787
12788
12789 case $ac_file$ac_mode in
12790 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012791 for ac_file in $CONFIG_FILES; do
12792 # Support "outfile[:infile[:infile...]]"
12793 case "$ac_file" in
12794 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012795 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012796 # PO directories have a Makefile.in generated from Makefile.in.in.
12797 case "$ac_file" in */Makefile.in)
12798 # Adjust a relative srcdir.
12799 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12800 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12801 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12802 # In autoconf-2.13 it is called $ac_given_srcdir.
12803 # In autoconf-2.50 it is called $srcdir.
12804 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12805 case "$ac_given_srcdir" in
12806 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12807 /*) top_srcdir="$ac_given_srcdir" ;;
12808 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12809 esac
12810 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12811 rm -f "$ac_dir/POTFILES"
12812 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12813 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 -050012814 POMAKEFILEDEPS="POTFILES.in"
12815 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012816 # on $ac_dir but don't depend on user-specified configuration
12817 # parameters.
12818 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12819 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012820 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012821 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12822 fi
12823 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12824 # Hide the ALL_LINGUAS assigment from automake.
12825 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012826 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12827 else
12828 # The set of available languages was given in configure.in.
12829 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012830 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012831 # Compute POFILES
12832 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12833 # Compute UPDATEPOFILES
12834 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12835 # Compute DUMMYPOFILES
12836 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12837 # Compute GMOFILES
12838 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012839 case "$ac_given_srcdir" in
12840 .) srcdirpre= ;;
12841 *) srcdirpre='$(srcdir)/' ;;
12842 esac
12843 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012844 UPDATEPOFILES=
12845 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012846 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012847 for lang in $ALL_LINGUAS; do
12848 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012849 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12850 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012851 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012852 done
12853 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12854 # environment variable.
12855 INST_LINGUAS=
12856 if test -n "$ALL_LINGUAS"; then
12857 for presentlang in $ALL_LINGUAS; do
12858 useit=no
12859 if test "%UNSET%" != "$LINGUAS"; then
12860 desiredlanguages="$LINGUAS"
12861 else
12862 desiredlanguages="$ALL_LINGUAS"
12863 fi
12864 for desiredlang in $desiredlanguages; do
12865 # Use the presentlang catalog if desiredlang is
12866 # a. equal to presentlang, or
12867 # b. a variant of presentlang (because in this case,
12868 # presentlang can be used as a fallback for messages
12869 # which are not translated in the desiredlang catalog).
12870 case "$desiredlang" in
12871 "$presentlang"*) useit=yes;;
12872 esac
12873 done
12874 if test $useit = yes; then
12875 INST_LINGUAS="$INST_LINGUAS $presentlang"
12876 fi
12877 done
12878 fi
12879 CATALOGS=
12880 if test -n "$INST_LINGUAS"; then
12881 for lang in $INST_LINGUAS; do
12882 CATALOGS="$CATALOGS $lang.gmo"
12883 done
12884 fi
12885 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012886 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 -040012887 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12888 if test -f "$f"; then
12889 case "$f" in
12890 *.orig | *.bak | *~) ;;
12891 *) cat "$f" >> "$ac_dir/Makefile" ;;
12892 esac
12893 fi
12894 done
12895 fi
12896 ;;
12897 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012898 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012899
Theodore Ts'oe1052142006-10-21 21:46:47 -040012900 esac
12901done # for ac_tag
12902
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012903
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012904as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012905_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012906ac_clean_files=$ac_clean_files_save
12907
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012908test $ac_write_fail = 0 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012909 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012910
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012911
12912# configure is writing to config.log, and then calls config.status.
12913# config.status does its own redirection, appending to config.log.
12914# Unfortunately, on DOS this fails, as config.log is still kept open
12915# by configure, so config.status won't be able to write to it; its
12916# output is simply discarded. So we exec the FD to /dev/null,
12917# effectively closing config.log, so it can be properly (re)opened and
12918# appended to by config.status. When coming back to configure, we
12919# need to make the FD available again.
12920if test "$no_create" != yes; then
12921 ac_cs_success=:
12922 ac_config_status_args=
12923 test "$silent" = yes &&
12924 ac_config_status_args="$ac_config_status_args --quiet"
12925 exec 5>/dev/null
12926 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12927 exec 5>>config.log
12928 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12929 # would make configure fail if this is the last instruction.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012930 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012931fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012932if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012934$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12935fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012936
Theodore Ts'oee683a12005-02-05 15:53:56 -050012937if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi