blob: 4c47f7a86af571ff43fff08e13e80cfaf5cb7c20 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003# Generated by GNU Autoconf 2.69.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005#
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018 emulate sh
19 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040023 setopt NO_GLOB_SUBST
24else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040030esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040032
33
Scott James Remnant39fd3d42009-05-14 13:03:25 +010034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050041# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010048 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050058 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010059 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050079fi
80
Theodore Ts'oe1052142006-10-21 21:46:47 -040081
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040087IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040090as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050091case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050094for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
Theodore Ts'oe1052142006-10-21 21:46:47 -0400100IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500101
Theodore Ts'oe1052142006-10-21 21:46:47 -0400102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500111 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -0400112fi
113
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -0400121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400131
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500356
357
358} # as_fn_mkdir_p
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400407# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500408as_fn_error ()
409{
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500414 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400415 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500416 as_fn_exit $as_status
417} # as_fn_error
418
Theodore Ts'oe1052142006-10-21 21:46:47 -0400419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400437
Theodore Ts'oe1052142006-10-21 21:46:47 -0400438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100442$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -0400463
464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500474 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500479 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500482 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500484 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400485 chmod +x "$as_me.lineno" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500487
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500496 # Exit status is that of the last command.
497 exit
498}
499
Theodore Ts'oe1052142006-10-21 21:46:47 -0400500ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500501case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -0400502-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500503 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -0400504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400508 esac;;
509*)
510 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500511esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500512
513rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100518 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400519fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400526 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400528 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400532 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100533 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500534else
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400535 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500539
540if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500541 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559
560# Name of the host.
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565#
566# Initializations.
567#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000568ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400569ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500570ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400571LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500583PACKAGE_URL=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <sys/types.h>
591#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400592#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500593# include <sys/stat.h>
594#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400595#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500596# include <stdlib.h>
597# include <stddef.h>
598#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400599# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500600# include <stdlib.h>
601# endif
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500605# include <memory.h>
606# endif
607# include <string.h>
608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500610# include <strings.h>
611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400614#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400615#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500617#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400618#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500619# include <unistd.h>
620#endif"
621
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400622ac_header_list=
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100623ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400624LIBOBJS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100625BUILD_LDFLAGS
626BUILD_CFLAGS
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400627INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100628DO_TEST_SUITE
629ET_DIR
630SS_DIR
631LDFLAG_STATIC
632root_sysconfdir
633root_libdir
634root_sbindir
635root_bindir
636root_prefix
637UNIX_CMT
638CYGWIN_CMT
639LINUX_CMT
640UNI_DIFF_OPTS
641SEM_INIT_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100642SOCKET_LIB
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400643SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100644SIZEOF_LONG_LONG
645SIZEOF_LONG
646SIZEOF_INT
647SIZEOF_SHORT
648BUILD_CC
649MAKEINFO
650STRIP
651AR
652LDCONFIG
653PERL
654SED
655AWK
656CHMOD
657RM
658CP
659MV
660LN_S
661LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400662ifNotGNUmake
663ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100664BINARY_TYPE
665POSUB
666LTLIBINTL
667LIBINTL
668INTLLIBS
669INTL_LIBTOOL_SUFFIX_PREFIX
670INTLOBJS
671GENCAT
672INSTOBJEXT
673DATADIRNAME
674CATOBJEXT
675USE_INCLUDED_LIBINTL
676BUILD_INCLUDED_LIBINTL
677INTLBISON
678LTLIBICONV
679LIBICONV
680HAVE_WPRINTF
681HAVE_SNPRINTF
682HAVE_ASPRINTF
683HAVE_POSIX_PRINTF
684GLIBC21
685ALLOCA
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400686EGREP
687GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100688RANLIB
689MSGMERGE
690XGETTEXT
691GMSGFMT
692MSGFMT
693USE_NLS
694MKINSTALLDIRS
695INSTALL_DATA
696INSTALL_SCRIPT
697INSTALL_PROGRAM
698SET_MAKE
699VERSION
700PACKAGE
701GETTEXT_PACKAGE
702UUIDD_CMT
703E2INITRD_MAN
704E2INITRD_PROG
705FSCK_MAN
706FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500707DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100708RESIZER_CMT
709IMAGER_CMT
710DEBUGFS_CMT
Aditya Kalif239fef2011-07-20 11:40:02 -0700711QUOTA_CMT
712DEPPROFILED_LIBQUOTA
713PROFILED_LIBQUOTA
714DEPSTATIC_LIBQUOTA
715STATIC_LIBQUOTA
716DEPLIBQUOTA
717LIBQUOTA
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100718BLKID_CMT
719DEPPROFILED_LIBBLKID
720PROFILED_LIBBLKID
721DEPSTATIC_LIBBLKID
722STATIC_LIBBLKID
723DEPLIBBLKID
724LIBBLKID
725UUID_CMT
726DEPPROFILED_LIBUUID
727PROFILED_LIBUUID
728DEPSTATIC_LIBUUID
729STATIC_LIBUUID
730DEPLIBUUID
731LIBUUID
732PKG_CONFIG
733TEST_IO_CMT
734PRIVATE_LIBS_CMT
735LDFLAG_DYNAMIC
736PROFILED_LIB_EXT
737STATIC_LIB_EXT
738LIB_EXT
739CHECKER_CMT
740PROFILE_CMT
741BSDLIB_CMT
742ELF_CMT
743HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400744Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400745ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400746E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400747LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400748SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400749LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100750MAINTAINER_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100751CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400752RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500753DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100754OBJEXT
755EXEEXT
756ac_ct_CC
757CPPFLAGS
758LDFLAGS
759CFLAGS
760CC
761host_os
762host_vendor
763host_cpu
764host
765build_os
766build_vendor
767build_cpu
768build
769E2FSPROGS_PKGVER
770E2FSPROGS_VERSION
771E2FSPROGS_DAY
772E2FSPROGS_MONTH
773E2FSPROGS_YEAR
774target_alias
775host_alias
776build_alias
777LIBS
778ECHO_T
779ECHO_N
780ECHO_C
781DEFS
782mandir
783localedir
784libdir
785psdir
786pdfdir
787dvidir
788htmldir
789infodir
790docdir
791oldincludedir
792includedir
793localstatedir
794sharedstatedir
795sysconfdir
796datadir
797datarootdir
798libexecdir
799sbindir
800bindir
801program_transform_name
802prefix
803exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500804PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100805PACKAGE_BUGREPORT
806PACKAGE_STRING
807PACKAGE_VERSION
808PACKAGE_TARNAME
809PACKAGE_NAME
810PATH_SEPARATOR
811SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400812ac_subst_files='MCONFIG
813MAKEFILE_ELF
814MAKEFILE_BSDLIB
815MAKEFILE_PROFILE
816MAKEFILE_CHECKER
817MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400818ASM_TYPES_HEADER
819PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100820ac_user_opts='
821enable_option_checking
822with_diet_libc
823with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100824with_ccopts
825with_ldopts
826with_root_prefix
827enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400828enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400829enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400830enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400831enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400832enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100833enable_compression
834enable_htree
835enable_elf_shlibs
836enable_bsd_shlibs
837enable_profile
838enable_checker
839enable_jbd_debug
840enable_blkid_debug
841enable_testio_debug
842enable_libuuid
843enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500844enable_quota
Theodore Ts'o3df60142013-06-16 16:14:40 -0400845enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100846enable_debugfs
847enable_imager
848enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500849enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100850enable_fsck
851enable_e2initrd_helper
852enable_tls
853enable_uuidd
854enable_nls
855with_gnu_ld
856enable_rpath
857with_libiconv_prefix
858with_included_gettext
859with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400860with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100861'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400862 ac_precious_vars='build_alias
863host_alias
864target_alias
865CC
866CFLAGS
867LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400868LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400869CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400870CPP
871PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400872
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000873
874# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500875ac_init_help=
876ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100877ac_unrecognized_opts=
878ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000879# The variables have the same names as the options, with
880# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500881cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000882exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000883no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000884no_recursion=
885prefix=NONE
886program_prefix=NONE
887program_suffix=NONE
888program_transform_name=s,x,x,
889silent=
890site=
891srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000892verbose=
893x_includes=NONE
894x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500895
896# Installation directory options.
897# These are left unexpanded so users can "make install exec_prefix=/foo"
898# and all the variables that are supposed to be based on exec_prefix
899# by default will actually change.
900# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400901# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000902bindir='${exec_prefix}/bin'
903sbindir='${exec_prefix}/sbin'
904libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400905datarootdir='${prefix}/share'
906datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000907sysconfdir='${prefix}/etc'
908sharedstatedir='${prefix}/com'
909localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000910includedir='${prefix}/include'
911oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400912docdir='${datarootdir}/doc/${PACKAGE}'
913infodir='${datarootdir}/info'
914htmldir='${docdir}'
915dvidir='${docdir}'
916pdfdir='${docdir}'
917psdir='${docdir}'
918libdir='${exec_prefix}/lib'
919localedir='${datarootdir}/locale'
920mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000921
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000922ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400923ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000924for ac_option
925do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400928 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000929 ac_prev=
930 continue
931 fi
932
Theodore Ts'oe1052142006-10-21 21:46:47 -0400933 case $ac_option in
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 *=) ac_optarg= ;;
936 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400937 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000938
939 # Accept the important Cygnus configure options, so we can diagnose typos.
940
Theodore Ts'oe1052142006-10-21 21:46:47 -0400941 case $ac_dashdash$ac_option in
942 --)
943 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000944
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000945 -bindir | --bindir | --bindi | --bind | --bin | --bi)
946 ac_prev=bindir ;;
947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500948 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000949
950 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500951 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000952 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500953 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000954
955 -cache-file | --cache-file | --cache-fil | --cache-fi \
956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957 ac_prev=cache_file ;;
958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500960 cache_file=$ac_optarg ;;
961
962 --config-cache | -C)
963 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000964
Theodore Ts'oe1052142006-10-21 21:46:47 -0400965 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000966 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400967 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500968 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000969
Theodore Ts'oe1052142006-10-21 21:46:47 -0400970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971 | --dataroo | --dataro | --datar)
972 ac_prev=datarootdir ;;
973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975 datarootdir=$ac_optarg ;;
976
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000977 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100978 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000979 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400981 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986"enable_$ac_useropt"
987"*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400992
993 -docdir | --docdir | --docdi | --doc | --do)
994 ac_prev=docdir ;;
995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996 docdir=$ac_optarg ;;
997
998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999 ac_prev=dvidir ;;
1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001002
1003 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001004 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001005 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001007 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1011 *"
1012"enable_$ac_useropt"
1013"*) ;;
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1016 esac
1017 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001018
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001026 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001027
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1030 with_gas=yes ;;
1031
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001038
1039 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001040 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001041 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001042 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001043
Theodore Ts'oe1052142006-10-21 21:46:47 -04001044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045 ac_prev=htmldir ;;
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047 | --ht=*)
1048 htmldir=$ac_optarg ;;
1049
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001055 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001056
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1058 ac_prev=infodir ;;
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001060 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001061
1062 -libdir | --libdir | --libdi | --libd)
1063 ac_prev=libdir ;;
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001065 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001066
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001072 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001073
Theodore Ts'oe1052142006-10-21 21:46:47 -04001074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1078
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001079 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001080 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001084 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001085
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087 ac_prev=mandir ;;
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001089 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001090
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1093 with_fp=no ;;
1094
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001096 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001097 no_create=yes ;;
1098
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101 no_recursion=yes ;;
1102
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001110 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001111
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113 ac_prev=prefix ;;
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001115 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001116
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001122 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001123
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001129 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001130
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001146 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001147
Theodore Ts'oe1052142006-10-21 21:46:47 -04001148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149 ac_prev=pdfdir ;;
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1152
1153 -psdir | --psdir | --psdi | --psd | --ps)
1154 ac_prev=psdir ;;
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156 psdir=$ac_optarg ;;
1157
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1160 silent=yes ;;
1161
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163 ac_prev=sbindir ;;
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001166 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001167
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1171 | --sha | --sh)
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001177 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001178
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001179 -site | --site | --sit)
1180 ac_prev=site ;;
1181 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001182 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001183
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185 ac_prev=srcdir ;;
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001187 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001188
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001194 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001195
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001196 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001197 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001199 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001200
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202 verbose=yes ;;
1203
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001206
1207 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001209 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001211 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216"with_$ac_useropt"
1217"*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001222
1223 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001225 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001227 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1231 *"
1232"with_$ac_useropt"
1233"*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001238
1239 --x)
1240 # Obsolete; use --with-x.
1241 with_x=yes ;;
1242
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001248 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001249
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001255 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001256
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001257 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001259 ;;
1260
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001261 *=*)
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001264 case $ac_envvar in #(
1265 '' | [0-9]* | *[!_$as_cr_alnum]* )
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001266 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001267 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001268 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001269 export $ac_envvar ;;
1270
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001271 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001272 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001273 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001275 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001276 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001277 ;;
1278
1279 esac
1280done
1281
1282if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001284 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001285fi
1286
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001287if test -n "$ac_unrecognized_opts"; then
1288 case $enable_option_checking in
1289 no) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001290 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292 esac
1293fi
1294
1295# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001296for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001300do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001301 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001302 # Remove trailing slashes.
1303 case $ac_val in
1304 */ )
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1307 esac
1308 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001309 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001312 esac
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001313 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001314done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001315
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001316# There might be people who depend on the old broken behavior: `$host'
1317# used to hold the argument of --host etc.
1318# FIXME: To remove some day.
1319build=$build_alias
1320host=$host_alias
1321target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001322
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001323# FIXME: To remove some day.
1324if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001327 elif test "x$build_alias" != "x$host_alias"; then
1328 cross_compiling=yes
1329 fi
1330fi
1331
1332ac_tool_prefix=
1333test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335test "$silent" = yes && exec 6>/dev/null
1336
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001337
Theodore Ts'oe1052142006-10-21 21:46:47 -04001338ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339ac_ls_di=`ls -di .` &&
1340ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001341 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001342test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001343 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001344
1345
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001346# Find the source files, if location was not specified.
1347if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001349 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)[^/].*/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\).*/{
1369 s//\1/
1370 q
1371 }
1372 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001373 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001374 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001375 srcdir=..
1376 fi
1377else
1378 ac_srcdir_defaulted=no
1379fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001380if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001383fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001384ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385ac_abs_confdir=`(
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001387 pwd)`
1388# When building in place, set srcdir=.
1389if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 srcdir=.
1391fi
1392# Remove unnecessary trailing slashes from srcdir.
1393# Double slashes in file names in object file debugging info
1394# mess up M-x gdb in Emacs.
1395case $srcdir in
1396*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397esac
1398for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001404
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001405#
1406# Report the --help message.
1407#
1408if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1411 cat <<_ACEOF
1412\`configure' configures this package to adapt to many kinds of systems.
1413
1414Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417VAR=VALUE. See below for descriptions of some of the useful variables.
1418
1419Defaults for the options are specified in brackets.
1420
1421Configuration:
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001426 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001432Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001434 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001436 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001437
1438By default, \`make install' will install all the files in
1439\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441for instance \`--prefix=\$HOME'.
1442
1443For better control, use the options below.
1444
1445Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001465_ACEOF
1466
1467 cat <<\_ACEOF
1468
1469System types:
1470 --build=BUILD configure for building on BUILD [guessed]
1471 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472_ACEOF
1473fi
1474
1475if test -n "$ac_init_help"; then
1476
1477 cat <<\_ACEOF
1478
1479Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001480 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001483 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001484 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001485 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001486
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001487 --enable-symlink-build use symlinks while building instead of hard links
1488 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001489 --enable-compression enable EXPERIMENTAL compression support
1490 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001491 --enable-elf-shlibs select ELF shared libraries
1492 --enable-bsd-shlibs select BSD shared libraries
1493 --enable-profile build profiling libraries
1494 --enable-checker build checker libraries
1495 --enable-jbd-debug enable journal debugging
1496 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001497 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001498 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001499 --disable-libblkid do not build private blkid library
Eric Sandeen7b8912e2012-11-27 12:21:56 -06001500 --enable-quota enable quota support
Theodore Ts'o3df60142013-06-16 16:14:40 -04001501 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001502 --disable-debugfs disable support of debugfs program
1503 --disable-imager disable support of e2image program
1504 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001505 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001506 --enable-fsck build fsck wrapper program
1507 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001508 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001509 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001510 --disable-nls do not use Native Language Support
1511 --disable-rpath do not hardcode runtime library paths
1512
1513Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001516 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001517 --with-cc no longer supported, use CC= instead
1518 --with-ccopts no longer supported, use CFLAGS= instead
1519 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001520 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1521 --with-gnu-ld assume the C compiler uses GNU ld default=no
1522 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1523 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1524 --with-included-gettext use the GNU gettext library included here
1525 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1526 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001527 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001528
1529Some influential environment variables:
1530 CC C compiler command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001534 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001536 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001537 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001538 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001539
1540Use these variables to override the choices made by `configure' or to help
1541it to find libraries and programs with nonstandard names/locations.
1542
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001543Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001544_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001545ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001546fi
1547
1548if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1553 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001554 ac_builddir=.
1555
Theodore Ts'oe1052142006-10-21 21:46:47 -04001556case "$ac_dir" in
1557.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001560 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 esac ;;
1566esac
1567ac_abs_top_builddir=$ac_pwd
1568ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569# for backward compatibility:
1570ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001571
1572case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001573 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001574 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001578 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1581 *) # Relative name.
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001585esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001586ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001587
Theodore Ts'oe1052142006-10-21 21:46:47 -04001588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001596 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001598 fi || ac_status=$?
1599 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001600 done
1601fi
1602
Theodore Ts'oe1052142006-10-21 21:46:47 -04001603test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001604if $ac_init_version; then
1605 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001606configure
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001607generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001608
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001609Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001610This configure script is free software; the Free Software Foundation
1611gives unlimited permission to copy, distribute and modify it.
1612_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001613 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001614fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001615
1616## ------------------------ ##
1617## Autoconf initialization. ##
1618## ------------------------ ##
1619
1620# ac_fn_c_try_compile LINENO
1621# --------------------------
1622# Try to compile conftest.$ac_ext, and return whether this succeeded.
1623ac_fn_c_try_compile ()
1624{
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext
1627 if { { ac_try="$ac_compile"
1628case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631esac
1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633$as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext; then :
1646 ac_retval=0
1647else
1648 $as_echo "$as_me: failed program was:" >&5
1649sed 's/^/| /' conftest.$ac_ext >&5
1650
1651 ac_retval=1
1652fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001654 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001655
1656} # ac_fn_c_try_compile
1657
1658# ac_fn_c_try_link LINENO
1659# -----------------------
1660# Try to link conftest.$ac_ext, and return whether this succeeded.
1661ac_fn_c_try_link ()
1662{
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest$ac_exeext
1665 if { { ac_try="$ac_link"
1666case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671$as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest$ac_exeext && {
1684 test "$cross_compiling" = yes ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001685 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001686 }; then :
1687 ac_retval=0
1688else
1689 $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1
1693fi
1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696 # interfere with the next link command; also delete a directory that is
1697 # left behind by Apple's compiler. We do this before executing the actions.
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001700 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001701
1702} # ac_fn_c_try_link
1703
1704# ac_fn_c_try_cpp LINENO
1705# ----------------------
1706# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1707ac_fn_c_try_cpp ()
1708{
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { { ac_try="$ac_cpp conftest.$ac_ext"
1711case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1723 fi
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001725 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 }; then :
1729 ac_retval=0
1730else
1731 $as_echo "$as_me: failed program was:" >&5
1732sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=1
1735fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001737 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001738
1739} # ac_fn_c_try_cpp
1740
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001741# ac_fn_c_try_run LINENO
1742# ----------------------
1743# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1744# that executables *can* be run.
1745ac_fn_c_try_run ()
1746{
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_link"
1749case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>&5
1756 ac_status=$?
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1759 { { case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762esac
1763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764$as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_try") 2>&5
1766 ac_status=$?
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; }; }; then :
1769 ac_retval=0
1770else
1771 $as_echo "$as_me: program exited with status $ac_status" >&5
1772 $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=$ac_status
1776fi
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001779 as_fn_set_status $ac_retval
1780
1781} # ac_fn_c_try_run
1782
1783# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1784# -------------------------------------------
1785# Tests whether TYPE exists after having included INCLUDES, setting cache
1786# variable VAR accordingly.
1787ac_fn_c_check_type ()
1788{
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001792if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001793 $as_echo_n "(cached) " >&6
1794else
1795 eval "$3=no"
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h. */
1798$4
1799int
1800main ()
1801{
1802if (sizeof ($2))
1803 return 0;
1804 ;
1805 return 0;
1806}
1807_ACEOF
1808if ac_fn_c_try_compile "$LINENO"; then :
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h. */
1811$4
1812int
1813main ()
1814{
1815if (sizeof (($2)))
1816 return 0;
1817 ;
1818 return 0;
1819}
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"; then :
1822
1823else
1824 eval "$3=yes"
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827fi
1828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829fi
1830eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001834
1835} # ac_fn_c_check_type
1836
1837# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1838# -------------------------------------------------------
1839# Tests whether HEADER exists and can be compiled using the include files in
1840# INCLUDES, setting the cache variable VAR accordingly.
1841ac_fn_c_check_header_compile ()
1842{
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001846if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001847 $as_echo_n "(cached) " >&6
1848else
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h. */
1851$4
1852#include <$2>
1853_ACEOF
1854if ac_fn_c_try_compile "$LINENO"; then :
1855 eval "$3=yes"
1856else
1857 eval "$3=no"
1858fi
1859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860fi
1861eval ac_res=\$$3
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001865
1866} # ac_fn_c_check_header_compile
1867
1868# ac_fn_c_check_func LINENO FUNC VAR
1869# ----------------------------------
1870# Tests whether FUNC exists, setting the cache variable VAR accordingly
1871ac_fn_c_check_func ()
1872{
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001876if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001877 $as_echo_n "(cached) " >&6
1878else
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h. */
1881/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1883#define $2 innocuous_$2
1884
1885/* System header to define __stub macros and hopefully few prototypes,
1886 which can conflict with char $2 (); below.
1887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1888 <limits.h> exists even on freestanding compilers. */
1889
1890#ifdef __STDC__
1891# include <limits.h>
1892#else
1893# include <assert.h>
1894#endif
1895
1896#undef $2
1897
1898/* Override any GCC internal prototype to avoid an error.
1899 Use char because int might match the return type of a GCC
1900 builtin and then its argument prototype would still apply. */
1901#ifdef __cplusplus
1902extern "C"
1903#endif
1904char $2 ();
1905/* The GNU C library defines this for functions which it implements
1906 to always fail with ENOSYS. Some functions are actually named
1907 something starting with __ and the normal name is an alias. */
1908#if defined __stub_$2 || defined __stub___$2
1909choke me
1910#endif
1911
1912int
1913main ()
1914{
1915return $2 ();
1916 ;
1917 return 0;
1918}
1919_ACEOF
1920if ac_fn_c_try_link "$LINENO"; then :
1921 eval "$3=yes"
1922else
1923 eval "$3=no"
1924fi
1925rm -f core conftest.err conftest.$ac_objext \
1926 conftest$ac_exeext conftest.$ac_ext
1927fi
1928eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001932
1933} # ac_fn_c_check_func
1934
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001935# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1936# -------------------------------------------------------
1937# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1938# the include files in INCLUDES and setting the cache variable VAR
1939# accordingly.
1940ac_fn_c_check_header_mongrel ()
1941{
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001943 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001946if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001947 $as_echo_n "(cached) " >&6
1948fi
1949eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951$as_echo "$ac_res" >&6; }
1952else
1953 # Is the header compilable?
1954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1955$as_echo_n "checking $2 usability... " >&6; }
1956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957/* end confdefs.h. */
1958$4
1959#include <$2>
1960_ACEOF
1961if ac_fn_c_try_compile "$LINENO"; then :
1962 ac_header_compiler=yes
1963else
1964 ac_header_compiler=no
1965fi
1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1968$as_echo "$ac_header_compiler" >&6; }
1969
1970# Is the header present?
1971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1972$as_echo_n "checking $2 presence... " >&6; }
1973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974/* end confdefs.h. */
1975#include <$2>
1976_ACEOF
1977if ac_fn_c_try_cpp "$LINENO"; then :
1978 ac_header_preproc=yes
1979else
1980 ac_header_preproc=no
1981fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001982rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1984$as_echo "$ac_header_preproc" >&6; }
1985
1986# So? What about this header?
1987case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1988 yes:no: )
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1990$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1992$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1993 ;;
1994 no:yes:* )
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1996$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1998$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2000$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2002$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2004$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2005 ;;
2006esac
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002009if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002010 $as_echo_n "(cached) " >&6
2011else
2012 eval "$3=\$ac_header_compiler"
2013fi
2014eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016$as_echo "$ac_res" >&6; }
2017fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002019
2020} # ac_fn_c_check_header_mongrel
2021
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002022# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2023# --------------------------------------------
2024# Tries to find the compile-time value of EXPR in a program that includes
2025# INCLUDES, setting VAR accordingly. Returns whether the value could be
2026# computed
2027ac_fn_c_compute_int ()
2028{
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 if test "$cross_compiling" = yes; then
2031 # Depending upon the size, compute the lo and hi bounds.
2032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h. */
2034$4
2035int
2036main ()
2037{
2038static int test_array [1 - 2 * !(($2) >= 0)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002039test_array [0] = 0;
2040return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002041
2042 ;
2043 return 0;
2044}
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"; then :
2047 ac_lo=0 ac_mid=0
2048 while :; do
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050/* end confdefs.h. */
2051$4
2052int
2053main ()
2054{
2055static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002056test_array [0] = 0;
2057return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002058
2059 ;
2060 return 0;
2061}
2062_ACEOF
2063if ac_fn_c_try_compile "$LINENO"; then :
2064 ac_hi=$ac_mid; break
2065else
2066 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2067 if test $ac_lo -le $ac_mid; then
2068 ac_lo= ac_hi=
2069 break
2070 fi
2071 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2072fi
2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 done
2075else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h. */
2078$4
2079int
2080main ()
2081{
2082static int test_array [1 - 2 * !(($2) < 0)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002083test_array [0] = 0;
2084return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002085
2086 ;
2087 return 0;
2088}
2089_ACEOF
2090if ac_fn_c_try_compile "$LINENO"; then :
2091 ac_hi=-1 ac_mid=-1
2092 while :; do
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094/* end confdefs.h. */
2095$4
2096int
2097main ()
2098{
2099static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002100test_array [0] = 0;
2101return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002102
2103 ;
2104 return 0;
2105}
2106_ACEOF
2107if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_lo=$ac_mid; break
2109else
2110 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2111 if test $ac_mid -le $ac_hi; then
2112 ac_lo= ac_hi=
2113 break
2114 fi
2115 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 done
2119else
2120 ac_lo= ac_hi=
2121fi
2122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123fi
2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125# Binary search between lo and hi bounds.
2126while test "x$ac_lo" != "x$ac_hi"; do
2127 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h. */
2130$4
2131int
2132main ()
2133{
2134static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002135test_array [0] = 0;
2136return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002137
2138 ;
2139 return 0;
2140}
2141_ACEOF
2142if ac_fn_c_try_compile "$LINENO"; then :
2143 ac_hi=$ac_mid
2144else
2145 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2146fi
2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148done
2149case $ac_lo in #((
2150?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2151'') ac_retval=1 ;;
2152esac
2153 else
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155/* end confdefs.h. */
2156$4
2157static long int longval () { return $2; }
2158static unsigned long int ulongval () { return $2; }
2159#include <stdio.h>
2160#include <stdlib.h>
2161int
2162main ()
2163{
2164
2165 FILE *f = fopen ("conftest.val", "w");
2166 if (! f)
2167 return 1;
2168 if (($2) < 0)
2169 {
2170 long int i = longval ();
2171 if (i != ($2))
2172 return 1;
2173 fprintf (f, "%ld", i);
2174 }
2175 else
2176 {
2177 unsigned long int i = ulongval ();
2178 if (i != ($2))
2179 return 1;
2180 fprintf (f, "%lu", i);
2181 }
2182 /* Do not output a trailing newline, as this causes \r\n confusion
2183 on some platforms. */
2184 return ferror (f) || fclose (f) != 0;
2185
2186 ;
2187 return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_run "$LINENO"; then :
2191 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2192else
2193 ac_retval=1
2194fi
2195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2196 conftest.$ac_objext conftest.beam conftest.$ac_ext
2197rm -f conftest.val
2198
2199 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002201 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002202
2203} # ac_fn_c_compute_int
2204
2205# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2206# ----------------------------------------------------
2207# Tries to find if the field MEMBER exists in type AGGR, after including
2208# INCLUDES, setting cache variable VAR accordingly.
2209ac_fn_c_check_member ()
2210{
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2213$as_echo_n "checking for $2.$3... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002214if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002215 $as_echo_n "(cached) " >&6
2216else
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218/* end confdefs.h. */
2219$5
2220int
2221main ()
2222{
2223static $2 ac_aggr;
2224if (ac_aggr.$3)
2225return 0;
2226 ;
2227 return 0;
2228}
2229_ACEOF
2230if ac_fn_c_try_compile "$LINENO"; then :
2231 eval "$4=yes"
2232else
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234/* end confdefs.h. */
2235$5
2236int
2237main ()
2238{
2239static $2 ac_aggr;
2240if (sizeof ac_aggr.$3)
2241return 0;
2242 ;
2243 return 0;
2244}
2245_ACEOF
2246if ac_fn_c_try_compile "$LINENO"; then :
2247 eval "$4=yes"
2248else
2249 eval "$4=no"
2250fi
2251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252fi
2253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254fi
2255eval ac_res=\$$4
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002259
2260} # ac_fn_c_check_member
2261
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002262# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2263# ---------------------------------------------
2264# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2265# accordingly.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002266ac_fn_c_check_decl ()
2267{
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002269 as_decl_name=`echo $2|sed 's/ *(.*//'`
2270 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2272$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2273if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002274 $as_echo_n "(cached) " >&6
2275else
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277/* end confdefs.h. */
2278$4
2279int
2280main ()
2281{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002282#ifndef $as_decl_name
2283#ifdef __cplusplus
2284 (void) $as_decl_use;
2285#else
2286 (void) $as_decl_name;
2287#endif
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002288#endif
2289
2290 ;
2291 return 0;
2292}
2293_ACEOF
2294if ac_fn_c_try_compile "$LINENO"; then :
2295 eval "$3=yes"
2296else
2297 eval "$3=no"
2298fi
2299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300fi
2301eval ac_res=\$$3
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002305
2306} # ac_fn_c_check_decl
Theodore Ts'oe1052142006-10-21 21:46:47 -04002307cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002308This file contains any messages produced by compilers while
2309running configure, to aid debugging if configure makes a mistake.
2310
2311It was created by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002312generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002313
2314 $ $0 $@
2315
2316_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002317exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002318{
2319cat <<_ASUNAME
2320## --------- ##
2321## Platform. ##
2322## --------- ##
2323
2324hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2325uname -m = `(uname -m) 2>/dev/null || echo unknown`
2326uname -r = `(uname -r) 2>/dev/null || echo unknown`
2327uname -s = `(uname -s) 2>/dev/null || echo unknown`
2328uname -v = `(uname -v) 2>/dev/null || echo unknown`
2329
2330/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2331/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2332
2333/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2334/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2335/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002336/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002337/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2338/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2339/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2340
2341_ASUNAME
2342
2343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344for as_dir in $PATH
2345do
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002348 $as_echo "PATH: $as_dir"
2349 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002350IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002351
2352} >&5
2353
2354cat >&5 <<_ACEOF
2355
2356
2357## ----------- ##
2358## Core tests. ##
2359## ----------- ##
2360
2361_ACEOF
2362
2363
2364# Keep a trace of the command line.
2365# Strip out --no-create and --no-recursion so they do not pile up.
2366# Strip out --silent because we don't want to record it for future runs.
2367# Also quote any args containing shell meta-characters.
2368# Make two passes to allow for proper duplicate-argument suppression.
2369ac_configure_args=
2370ac_configure_args0=
2371ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002372ac_must_keep_next=false
2373for ac_pass in 1 2
2374do
2375 for ac_arg
2376 do
2377 case $ac_arg in
2378 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2380 | -silent | --silent | --silen | --sile | --sil)
2381 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002382 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002383 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002384 esac
2385 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002386 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002387 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002388 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002389 if test $ac_must_keep_next = true; then
2390 ac_must_keep_next=false # Got value, back to normal.
2391 else
2392 case $ac_arg in
2393 *=* | --config-cache | -C | -disable-* | --disable-* \
2394 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2395 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2396 | -with-* | --with-* | -without-* | --without-* | --x)
2397 case "$ac_configure_args0 " in
2398 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2399 esac
2400 ;;
2401 -* ) ac_must_keep_next=true ;;
2402 esac
2403 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002404 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002405 ;;
2406 esac
2407 done
2408done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002409{ ac_configure_args0=; unset ac_configure_args0;}
2410{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002411
2412# When interrupted or exit'd, cleanup temporary files, and complete
2413# config.log. We remove comments because anyway the quotes in there
2414# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002415# WARNING: Use '\'' to represent an apostrophe within the trap.
2416# 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 -05002417trap 'exit_status=$?
2418 # Save into config.log some information that might help in debugging.
2419 {
2420 echo
2421
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002422 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002423## Cache variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002424## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002425 echo
2426 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002427(
2428 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2429 eval ac_val=\$$ac_var
2430 case $ac_val in #(
2431 *${as_nl}*)
2432 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002433 *_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 +01002434$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002435 esac
2436 case $ac_var in #(
2437 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002438 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002439 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002440 esac ;;
2441 esac
2442 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002443 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002444 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2445 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002446 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002447 "s/'\''/'\''\\\\'\'''\''/g;
2448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2449 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002450 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002452 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002453 esac |
2454 sort
2455)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002456 echo
2457
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002458 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002459## Output variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002460## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002461 echo
2462 for ac_var in $ac_subst_vars
2463 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002464 eval ac_val=\$$ac_var
2465 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002466 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002467 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002468 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002469 done | sort
2470 echo
2471
2472 if test -n "$ac_subst_files"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002473 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002474## File substitutions. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002475## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002476 echo
2477 for ac_var in $ac_subst_files
2478 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002479 eval ac_val=\$$ac_var
2480 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002481 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002482 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002483 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002484 done | sort
2485 echo
2486 fi
2487
2488 if test -s confdefs.h; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002489 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002490## confdefs.h. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002491## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002492 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002493 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002494 echo
2495 fi
2496 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002497 $as_echo "$as_me: caught signal $ac_signal"
2498 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002499 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002500 rm -f core *.core core.conftest.* &&
2501 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002502 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002503' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002504for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002505 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002506done
2507ac_signal=0
2508
2509# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002510rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002511
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002512$as_echo "/* confdefs.h */" > confdefs.h
2513
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002514# Predefined preprocessor variables.
2515
2516cat >>confdefs.h <<_ACEOF
2517#define PACKAGE_NAME "$PACKAGE_NAME"
2518_ACEOF
2519
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002520cat >>confdefs.h <<_ACEOF
2521#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2522_ACEOF
2523
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002524cat >>confdefs.h <<_ACEOF
2525#define PACKAGE_VERSION "$PACKAGE_VERSION"
2526_ACEOF
2527
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002528cat >>confdefs.h <<_ACEOF
2529#define PACKAGE_STRING "$PACKAGE_STRING"
2530_ACEOF
2531
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2534_ACEOF
2535
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002536cat >>confdefs.h <<_ACEOF
2537#define PACKAGE_URL "$PACKAGE_URL"
2538_ACEOF
2539
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002540
2541# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002542# Prefer an explicitly selected file to automatically selected ones.
2543ac_site_file1=NONE
2544ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002545if test -n "$CONFIG_SITE"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002546 # We do not want a PATH search for config.site.
2547 case $CONFIG_SITE in #((
2548 -*) ac_site_file1=./$CONFIG_SITE;;
2549 */*) ac_site_file1=$CONFIG_SITE;;
2550 *) ac_site_file1=./$CONFIG_SITE;;
2551 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002552elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002553 ac_site_file1=$prefix/share/config.site
2554 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002555else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002556 ac_site_file1=$ac_default_prefix/share/config.site
2557 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002558fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002559for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002560do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002561 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002562 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002563 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002564$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002565 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002566 . "$ac_site_file" \
2567 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569as_fn_error $? "failed to load site script $ac_site_file
2570See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002571 fi
2572done
2573
2574if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002575 # Some versions of bash will fail to source /dev/null (special files
2576 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2577 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002578 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002579$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002580 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002581 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2582 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002583 esac
2584 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002585else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002586 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002587$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002588 >$cache_file
2589fi
2590
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002591as_fn_append ac_header_list " stdlib.h"
2592as_fn_append ac_header_list " unistd.h"
2593as_fn_append ac_header_list " sys/param.h"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002594# Check that the precious variables saved in the cache have kept the same
2595# value.
2596ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002597for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002598 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2599 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002600 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2601 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002602 case $ac_old_set,$ac_new_set in
2603 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002604 { $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 +01002605$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 -05002606 ac_cache_corrupted=: ;;
2607 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002608 { $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 +01002609$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002610 ac_cache_corrupted=: ;;
2611 ,);;
2612 *)
2613 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002614 # differences in whitespace do not lead to failure.
2615 ac_old_val_w=`echo x $ac_old_val`
2616 ac_new_val_w=`echo x $ac_new_val`
2617 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002618 { $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 +01002619$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2620 ac_cache_corrupted=:
2621 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002622 { $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 +01002623$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2624 eval $ac_var=\$ac_old_val
2625 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002626 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002627$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002628 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002629$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002630 fi;;
2631 esac
2632 # Pass precious variables to config.status.
2633 if test "$ac_new_set" = set; then
2634 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002635 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002636 *) ac_arg=$ac_var=$ac_new_val ;;
2637 esac
2638 case " $ac_configure_args " in
2639 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002640 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002641 esac
2642 fi
2643done
2644if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002647 { $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 +01002648$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002649 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002650fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002651## -------------------- ##
2652## Main body of script. ##
2653## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002654
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002655ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002656ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002660
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002661
2662
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002663ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002664for ac_dir in config "$srcdir"/config; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002665 if test -f "$ac_dir/install-sh"; then
2666 ac_aux_dir=$ac_dir
2667 ac_install_sh="$ac_aux_dir/install-sh -c"
2668 break
2669 elif test -f "$ac_dir/install.sh"; then
2670 ac_aux_dir=$ac_dir
2671 ac_install_sh="$ac_aux_dir/install.sh -c"
2672 break
2673 elif test -f "$ac_dir/shtool"; then
2674 ac_aux_dir=$ac_dir
2675 ac_install_sh="$ac_aux_dir/shtool install -c"
2676 break
2677 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002678done
2679if test -z "$ac_aux_dir"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002680 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 +00002681fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002682
2683# These three variables are undocumented and unsupported,
2684# and are intended to be withdrawn in a future Autoconf release.
2685# They can cause serious problems if a builder's source tree is in a directory
2686# whose full name contains unusual characters.
2687ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2688ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2689ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2690
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002691
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002692ac_config_headers="$ac_config_headers lib/config.h"
2693
2694
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002695MCONFIG=./MCONFIG
2696
Theodore Ts'o74becf31997-04-26 14:37:06 +00002697BINARY_TYPE=bin
2698E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2699 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2700DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2701 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002702E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002703MONTH=`echo $DATE | awk -F- '{print $2}'`
2704YEAR=`echo $DATE | awk -F- '{print $3}'`
2705
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002706if expr $YEAR ">" 1900 > /dev/null ; then
2707 E2FSPROGS_YEAR=$YEAR
2708elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002709 E2FSPROGS_YEAR=19$YEAR
2710else
2711 E2FSPROGS_YEAR=20$YEAR
2712fi
2713
2714case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002715Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2716Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2717Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2718Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2719May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2720Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2721Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2722Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2723Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2724Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2725Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2726Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002727*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002728$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002729esac
2730
Andreas Dilger927566a2006-11-12 19:41:25 -05002731base_ver=`echo $E2FSPROGS_VERSION | \
2732 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002733
2734date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2735
2736case $E2FSPROGS_VERSION in
2737*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002738 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002739 ;;
2740*)
2741 E2FSPROGS_PKGVER="$base_ver"
2742 ;;
2743esac
2744
2745unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002746{ $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 +01002747$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002749$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002750
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002751
2752
2753
Andreas Dilger927566a2006-11-12 19:41:25 -05002754
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002755# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002756$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002757 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002758
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002760$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002761if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002762 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002763else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002764 ac_build_alias=$build_alias
2765test "x$ac_build_alias" = x &&
2766 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2767test "x$ac_build_alias" = x &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002768 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002769ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002770 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002771
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002772fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002774$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002775case $ac_cv_build in
2776*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002777*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002778esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002779build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002780ac_save_IFS=$IFS; IFS='-'
2781set x $ac_cv_build
2782shift
2783build_cpu=$1
2784build_vendor=$2
2785shift; shift
2786# Remember, the first character of IFS is used to create $*,
2787# except with old shells:
2788build_os=$*
2789IFS=$ac_save_IFS
2790case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002791
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002792
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002794$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002795if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002796 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002797else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002798 if test "x$host_alias" = x; then
2799 ac_cv_host=$ac_cv_build
2800else
2801 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002802 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002803fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002804
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002805fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002807$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002808case $ac_cv_host in
2809*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002810*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002811esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002812host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002813ac_save_IFS=$IFS; IFS='-'
2814set x $ac_cv_host
2815shift
2816host_cpu=$1
2817host_vendor=$2
2818shift; shift
2819# Remember, the first character of IFS is used to create $*,
2820# except with old shells:
2821host_os=$*
2822IFS=$ac_save_IFS
2823case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002824
2825
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002826DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002827ac_ext=c
2828ac_cpp='$CPP $CPPFLAGS'
2829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2831ac_compiler_gnu=$ac_cv_c_compiler_gnu
2832if test -n "$ac_tool_prefix"; then
2833 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2834set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002836$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002837if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002838 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002839else
2840 if test -n "$CC"; then
2841 ac_cv_prog_CC="$CC" # Let the user override the test.
2842else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002848 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002850 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002852 break 2
2853 fi
2854done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002855 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002856IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002857
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002858fi
2859fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002860CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002861if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002863$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002864else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002866$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002867fi
2868
Theodore Ts'oe1052142006-10-21 21:46:47 -04002869
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002870fi
2871if test -z "$ac_cv_prog_CC"; then
2872 ac_ct_CC=$CC
2873 # Extract the first word of "gcc", so it can be a program name with args.
2874set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002876$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002877if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002878 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002879else
2880 if test -n "$ac_ct_CC"; then
2881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2882else
2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884for as_dir in $PATH
2885do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002888 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002890 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002892 break 2
2893 fi
2894done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002895 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002896IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002897
2898fi
2899fi
2900ac_ct_CC=$ac_cv_prog_ac_ct_CC
2901if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002903$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002904else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002906$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002907fi
2908
Theodore Ts'oe1052142006-10-21 21:46:47 -04002909 if test "x$ac_ct_CC" = x; then
2910 CC=""
2911 else
2912 case $cross_compiling:$ac_tool_warned in
2913yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002914{ $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 +01002915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002916ac_tool_warned=yes ;;
2917esac
2918 CC=$ac_ct_CC
2919 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002920else
2921 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002922fi
2923
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002924if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002925 if test -n "$ac_tool_prefix"; then
2926 # 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 -05002927set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002929$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002930if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002931 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002932else
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2935else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002941 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002943 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002945 break 2
2946 fi
2947done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002948 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002949IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002950
2951fi
2952fi
2953CC=$ac_cv_prog_CC
2954if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002956$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002957else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002959$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002960fi
2961
Theodore Ts'oe1052142006-10-21 21:46:47 -04002962
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002963 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002964fi
2965if test -z "$CC"; then
2966 # Extract the first word of "cc", so it can be a program name with args.
2967set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002969$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002970if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002971 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002972else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002976 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978for as_dir in $PATH
2979do
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002982 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002984 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2985 ac_prog_rejected=yes
2986 continue
2987 fi
2988 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002990 break 2
2991 fi
2992done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002993 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002994IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002995
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002996if test $ac_prog_rejected = yes; then
2997 # We found a bogon in the path, so make sure we never use it.
2998 set dummy $ac_cv_prog_CC
2999 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003000 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003001 # We chose a different compiler from the bogus one.
3002 # However, it has the same basename, so the bogon will be chosen
3003 # first if we set CC to just the basename; use the full file name.
3004 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003005 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003006 fi
3007fi
3008fi
3009fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003010CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003011if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003013$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003014else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003016$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003017fi
3018
Theodore Ts'oe1052142006-10-21 21:46:47 -04003019
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003020fi
3021if test -z "$CC"; then
3022 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003023 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003024 do
3025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3026set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003028$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003029if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003030 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003031else
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3034else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003040 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003042 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003044 break 2
3045 fi
3046done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003047 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003048IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003049
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003050fi
3051fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003052CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003053if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003055$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003056else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003058$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003059fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003060
Theodore Ts'oe1052142006-10-21 21:46:47 -04003061
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003062 test -n "$CC" && break
3063 done
3064fi
3065if test -z "$CC"; then
3066 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003067 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003068do
3069 # Extract the first word of "$ac_prog", so it can be a program name with args.
3070set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003072$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003073if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003074 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003075else
3076 if test -n "$ac_ct_CC"; then
3077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3078else
3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080for as_dir in $PATH
3081do
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003084 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003086 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003088 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003089 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003090done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003091 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003092IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003093
3094fi
3095fi
3096ac_ct_CC=$ac_cv_prog_ac_ct_CC
3097if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003099$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003100else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003102$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003103fi
3104
Theodore Ts'oe1052142006-10-21 21:46:47 -04003105
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003106 test -n "$ac_ct_CC" && break
3107done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003108
Theodore Ts'oe1052142006-10-21 21:46:47 -04003109 if test "x$ac_ct_CC" = x; then
3110 CC=""
3111 else
3112 case $cross_compiling:$ac_tool_warned in
3113yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003114{ $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 +01003115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003116ac_tool_warned=yes ;;
3117esac
3118 CC=$ac_ct_CC
3119 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003120fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003121
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003122fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003123
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003124
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003125test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003127as_fn_error $? "no acceptable C compiler found in \$PATH
3128See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003129
3130# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003131$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003132set X $ac_compile
3133ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003134for ac_option in --version -v -V -qversion; do
3135 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003136case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141$as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003143 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003144 if test -s conftest.err; then
3145 sed '10a\
3146... rest of stderr output deleted ...
3147 10q' conftest.err >conftest.er1
3148 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003149 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003150 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }
3153done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003154
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003156/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003157
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003158int
3159main ()
3160{
3161
3162 ;
3163 return 0;
3164}
3165_ACEOF
3166ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003167ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003168# Try to create an executable without -o first, disregard a.out.
3169# It will help us diagnose broken compilers, and finding out an intuition
3170# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3172$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003173ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3174
3175# The possible output files:
3176ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3177
Theodore Ts'oe1052142006-10-21 21:46:47 -04003178ac_rmfiles=
3179for ac_file in $ac_files
3180do
3181 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003183 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3184 esac
3185done
3186rm -f $ac_rmfiles
3187
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003188if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003189case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003195 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003196 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003199 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3200# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3201# in a Makefile. We should not override ac_cv_exeext if it was cached,
3202# so that the user can short-circuit this test for compilers unknown to
3203# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003204for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003205do
3206 test -f "$ac_file" || continue
3207 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003209 ;;
3210 [ab].out )
3211 # We found the default executable, but exeext='' is most
3212 # certainly right.
3213 break;;
3214 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003215 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003216 then :; else
3217 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3218 fi
3219 # We set ac_cv_exeext here because the later test for it is not
3220 # safe: cross compilers may not add the suffix if given an `-o'
3221 # argument, so we may need to know it at that point already.
3222 # Even if this section looks crufty: it has the advantage of
3223 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003224 break;;
3225 * )
3226 break;;
3227 esac
3228done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003229test "$ac_cv_exeext" = no && ac_cv_exeext=
3230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003231else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003232 ac_file=''
3233fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003234if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236$as_echo "no" >&6; }
3237$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003238sed 's/^/| /' conftest.$ac_ext >&5
3239
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003240{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003242as_fn_error 77 "C compiler cannot create executables
3243See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003244else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003247fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3249$as_echo_n "checking for C compiler default output file name... " >&6; }
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3251$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003252ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003253
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003254rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003255ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003257$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003258if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003259case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003265 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003266 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003269 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3270# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3271# work properly (i.e., refer to `conftest.exe'), while it won't with
3272# `rm'.
3273for ac_file in conftest.exe conftest conftest.*; do
3274 test -f "$ac_file" || continue
3275 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003278 break;;
3279 * ) break;;
3280 esac
3281done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003282else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003285as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3286See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003287fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003288rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003290$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003291
3292rm -f conftest.$ac_ext
3293EXEEXT=$ac_cv_exeext
3294ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296/* end confdefs.h. */
3297#include <stdio.h>
3298int
3299main ()
3300{
3301FILE *f = fopen ("conftest.out", "w");
3302 return ferror (f) || fclose (f) != 0;
3303
3304 ;
3305 return 0;
3306}
3307_ACEOF
3308ac_clean_files="$ac_clean_files conftest.out"
3309# Check that the compiler produces executables we can run. If not, either
3310# the compiler is broken, or we cross compile.
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3312$as_echo_n "checking whether we are cross compiling... " >&6; }
3313if test "$cross_compiling" != yes; then
3314 { { ac_try="$ac_link"
3315case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318esac
3319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320$as_echo "$ac_try_echo"; } >&5
3321 (eval "$ac_link") 2>&5
3322 ac_status=$?
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }
3325 if { ac_try='./conftest$ac_cv_exeext'
3326 { { case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329esac
3330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331$as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_try") 2>&5
3333 ac_status=$?
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }; }; then
3336 cross_compiling=no
3337 else
3338 if test "$cross_compiling" = maybe; then
3339 cross_compiling=yes
3340 else
3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003343as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003344If you meant to cross compile, use \`--host'.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003345See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003346 fi
3347 fi
3348fi
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3350$as_echo "$cross_compiling" >&6; }
3351
3352rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3353ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003355$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003356if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003357 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003358else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003360/* end confdefs.h. */
3361
3362int
3363main ()
3364{
3365
3366 ;
3367 return 0;
3368}
3369_ACEOF
3370rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003371if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003372case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003378 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003379 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003382 for ac_file in conftest.o conftest.obj conftest.*; do
3383 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003384 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003386 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3387 break;;
3388 esac
3389done
3390else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003391 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003392sed 's/^/| /' conftest.$ac_ext >&5
3393
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003394{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003396as_fn_error $? "cannot compute suffix of object files: cannot compile
3397See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003398fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003399rm -f conftest.$ac_cv_objext conftest.$ac_ext
3400fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003402$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003403OBJEXT=$ac_cv_objext
3404ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003405{ $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 +01003406$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003407if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003408 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003409else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003411/* end confdefs.h. */
3412
3413int
3414main ()
3415{
3416#ifndef __GNUC__
3417 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003418#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003419
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003420 ;
3421 return 0;
3422}
3423_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003424if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003425 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003426else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003427 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003428fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003430ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003431
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003432fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003434$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3435if test $ac_compiler_gnu = yes; then
3436 GCC=yes
3437else
3438 GCC=
3439fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003440ac_test_CFLAGS=${CFLAGS+set}
3441ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003443$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003444if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003445 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003446else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003447 ac_save_c_werror_flag=$ac_c_werror_flag
3448 ac_c_werror_flag=yes
3449 ac_cv_prog_cc_g=no
3450 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003452/* end confdefs.h. */
3453
3454int
3455main ()
3456{
3457
3458 ;
3459 return 0;
3460}
3461_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003462if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003463 ac_cv_prog_cc_g=yes
3464else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003465 CFLAGS=""
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003467/* end confdefs.h. */
3468
3469int
3470main ()
3471{
3472
3473 ;
3474 return 0;
3475}
3476_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003477if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003478
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003479else
3480 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003481 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003482 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 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003495fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003497fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 ac_c_werror_flag=$ac_save_c_werror_flag
3502fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003504$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003505if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003506 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003507elif test $ac_cv_prog_cc_g = yes; then
3508 if test "$GCC" = yes; then
3509 CFLAGS="-g -O2"
3510 else
3511 CFLAGS="-g"
3512 fi
3513else
3514 if test "$GCC" = yes; then
3515 CFLAGS="-O2"
3516 else
3517 CFLAGS=
3518 fi
3519fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003521$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003522if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003523 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003524else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003525 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003526ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003528/* end confdefs.h. */
3529#include <stdarg.h>
3530#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003531struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003532/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3533struct buf { int x; };
3534FILE * (*rcsopen) (struct buf *, struct stat *, int);
3535static char *e (p, i)
3536 char **p;
3537 int i;
3538{
3539 return p[i];
3540}
3541static char *f (char * (*g) (char **, int), char **p, ...)
3542{
3543 char *s;
3544 va_list v;
3545 va_start (v,p);
3546 s = g (p, va_arg (v,int));
3547 va_end (v);
3548 return s;
3549}
3550
3551/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3552 function prototypes and stuff, but not '\xHH' hex character constants.
3553 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003554 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003555 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3556 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003557 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003558int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3559
Theodore Ts'oe1052142006-10-21 21:46:47 -04003560/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3561 inside strings and character constants. */
3562#define FOO(x) 'x'
3563int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003565int test (int i, double x);
3566struct s1 {int (*f) (int a);};
3567struct s2 {int (*f) (double a);};
3568int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3569int argc;
3570char **argv;
3571int
3572main ()
3573{
3574return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3575 ;
3576 return 0;
3577}
3578_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003579for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3580 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003581do
3582 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003583 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003584 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003585fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003586rm -f core conftest.err conftest.$ac_objext
3587 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003588done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003589rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003590CC=$ac_save_CC
3591
3592fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003593# AC_CACHE_VAL
3594case "x$ac_cv_prog_cc_c89" in
3595 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003597$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003598 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003600$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003601 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003602 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003604$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003605esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003606if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003607
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003608fi
3609
3610ac_ext=c
3611ac_cpp='$CPP $CPPFLAGS'
3612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615
3616
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3618$as_echo_n "checking for dlopen in -ldl... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003619if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003620 $as_echo_n "(cached) " >&6
3621else
3622 ac_check_lib_save_LIBS=$LIBS
3623LIBS="-ldl $LIBS"
3624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625/* end confdefs.h. */
3626
3627/* Override any GCC internal prototype to avoid an error.
3628 Use char because int might match the return type of a GCC
3629 builtin and then its argument prototype would still apply. */
3630#ifdef __cplusplus
3631extern "C"
3632#endif
3633char dlopen ();
3634int
3635main ()
3636{
3637return dlopen ();
3638 ;
3639 return 0;
3640}
3641_ACEOF
3642if ac_fn_c_try_link "$LINENO"; then :
3643 ac_cv_lib_dl_dlopen=yes
3644else
3645 ac_cv_lib_dl_dlopen=no
3646fi
3647rm -f core conftest.err conftest.$ac_objext \
3648 conftest$ac_exeext conftest.$ac_ext
3649LIBS=$ac_check_lib_save_LIBS
3650fi
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3652$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003653if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003654 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003655
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003656$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3657
3658fi
3659
3660
3661WITH_DIET_LIBC=
3662
3663# Check whether --with-diet-libc was given.
3664if test "${with_diet_libc+set}" = set; then :
3665 withval=$with_diet_libc; CC="diet cc -nostdinc"
3666WITH_DIET_LIBC=yes
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3668$as_echo "CC=$CC" >&6; }
3669fi
3670
3671# Check whether --with-cc was given.
3672if test "${with_cc+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003673 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003674fi
3675
3676
3677# Check whether --with-ccopts was given.
3678if test "${with_ccopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003679 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003680fi
3681
3682
3683# Check whether --with-ldopts was given.
3684if test "${with_ldopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003685 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003686fi
3687
3688ac_ext=c
3689ac_cpp='$CPP $CPPFLAGS'
3690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692ac_compiler_gnu=$ac_cv_c_compiler_gnu
3693if test -n "$ac_tool_prefix"; then
3694 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3695set dummy ${ac_tool_prefix}gcc; ac_word=$2
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003698if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003699 $as_echo_n "(cached) " >&6
3700else
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC="$CC" # Let the user override the test.
3703else
3704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705for as_dir in $PATH
3706do
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003711 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3714 fi
3715done
3716 done
3717IFS=$as_save_IFS
3718
3719fi
3720fi
3721CC=$ac_cv_prog_CC
3722if test -n "$CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724$as_echo "$CC" >&6; }
3725else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727$as_echo "no" >&6; }
3728fi
3729
3730
3731fi
3732if test -z "$ac_cv_prog_CC"; then
3733 ac_ct_CC=$CC
3734 # Extract the first word of "gcc", so it can be a program name with args.
3735set dummy gcc; ac_word=$2
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003738if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003739 $as_echo_n "(cached) " >&6
3740else
3741 if test -n "$ac_ct_CC"; then
3742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3743else
3744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745for as_dir in $PATH
3746do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003751 ac_cv_prog_ac_ct_CC="gcc"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3754 fi
3755done
3756 done
3757IFS=$as_save_IFS
3758
3759fi
3760fi
3761ac_ct_CC=$ac_cv_prog_ac_ct_CC
3762if test -n "$ac_ct_CC"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3764$as_echo "$ac_ct_CC" >&6; }
3765else
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767$as_echo "no" >&6; }
3768fi
3769
3770 if test "x$ac_ct_CC" = x; then
3771 CC=""
3772 else
3773 case $cross_compiling:$ac_tool_warned in
3774yes:)
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777ac_tool_warned=yes ;;
3778esac
3779 CC=$ac_ct_CC
3780 fi
3781else
3782 CC="$ac_cv_prog_CC"
3783fi
3784
3785if test -z "$CC"; then
3786 if test -n "$ac_tool_prefix"; then
3787 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3788set dummy ${ac_tool_prefix}cc; ac_word=$2
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003791if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003792 $as_echo_n "(cached) " >&6
3793else
3794 if test -n "$CC"; then
3795 ac_cv_prog_CC="$CC" # Let the user override the test.
3796else
3797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798for as_dir in $PATH
3799do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003804 ac_cv_prog_CC="${ac_tool_prefix}cc"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3807 fi
3808done
3809 done
3810IFS=$as_save_IFS
3811
3812fi
3813fi
3814CC=$ac_cv_prog_CC
3815if test -n "$CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3817$as_echo "$CC" >&6; }
3818else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820$as_echo "no" >&6; }
3821fi
3822
3823
3824 fi
3825fi
3826if test -z "$CC"; then
3827 # Extract the first word of "cc", so it can be a program name with args.
3828set dummy cc; ac_word=$2
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003831if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003832 $as_echo_n "(cached) " >&6
3833else
3834 if test -n "$CC"; then
3835 ac_cv_prog_CC="$CC" # Let the user override the test.
3836else
3837 ac_prog_rejected=no
3838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839for as_dir in $PATH
3840do
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003845 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3846 ac_prog_rejected=yes
3847 continue
3848 fi
3849 ac_cv_prog_CC="cc"
3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 break 2
3852 fi
3853done
3854 done
3855IFS=$as_save_IFS
3856
3857if test $ac_prog_rejected = yes; then
3858 # We found a bogon in the path, so make sure we never use it.
3859 set dummy $ac_cv_prog_CC
3860 shift
3861 if test $# != 0; then
3862 # We chose a different compiler from the bogus one.
3863 # However, it has the same basename, so the bogon will be chosen
3864 # first if we set CC to just the basename; use the full file name.
3865 shift
3866 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3867 fi
3868fi
3869fi
3870fi
3871CC=$ac_cv_prog_CC
3872if test -n "$CC"; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3874$as_echo "$CC" >&6; }
3875else
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877$as_echo "no" >&6; }
3878fi
3879
3880
3881fi
3882if test -z "$CC"; then
3883 if test -n "$ac_tool_prefix"; then
3884 for ac_prog in cl.exe
3885 do
3886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3887set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003890if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003891 $as_echo_n "(cached) " >&6
3892else
3893 if test -n "$CC"; then
3894 ac_cv_prog_CC="$CC" # Let the user override the test.
3895else
3896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897for as_dir in $PATH
3898do
3899 IFS=$as_save_IFS
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003903 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 break 2
3906 fi
3907done
3908 done
3909IFS=$as_save_IFS
3910
3911fi
3912fi
3913CC=$ac_cv_prog_CC
3914if test -n "$CC"; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3916$as_echo "$CC" >&6; }
3917else
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919$as_echo "no" >&6; }
3920fi
3921
3922
3923 test -n "$CC" && break
3924 done
3925fi
3926if test -z "$CC"; then
3927 ac_ct_CC=$CC
3928 for ac_prog in cl.exe
3929do
3930 # Extract the first word of "$ac_prog", so it can be a program name with args.
3931set dummy $ac_prog; ac_word=$2
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003934if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003935 $as_echo_n "(cached) " >&6
3936else
3937 if test -n "$ac_ct_CC"; then
3938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3939else
3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH
3942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003947 ac_cv_prog_ac_ct_CC="$ac_prog"
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 break 2
3950 fi
3951done
3952 done
3953IFS=$as_save_IFS
3954
3955fi
3956fi
3957ac_ct_CC=$ac_cv_prog_ac_ct_CC
3958if test -n "$ac_ct_CC"; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3960$as_echo "$ac_ct_CC" >&6; }
3961else
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963$as_echo "no" >&6; }
3964fi
3965
3966
3967 test -n "$ac_ct_CC" && break
3968done
3969
3970 if test "x$ac_ct_CC" = x; then
3971 CC=""
3972 else
3973 case $cross_compiling:$ac_tool_warned in
3974yes:)
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3977ac_tool_warned=yes ;;
3978esac
3979 CC=$ac_ct_CC
3980 fi
3981fi
3982
3983fi
3984
3985
3986test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003988as_fn_error $? "no acceptable C compiler found in \$PATH
3989See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003990
3991# Provide some information about the compiler.
3992$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3993set X $ac_compile
3994ac_compiler=$2
3995for ac_option in --version -v -V -qversion; do
3996 { { ac_try="$ac_compiler $ac_option >&5"
3997case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4000esac
4001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4002$as_echo "$ac_try_echo"; } >&5
4003 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4004 ac_status=$?
4005 if test -s conftest.err; then
4006 sed '10a\
4007... rest of stderr output deleted ...
4008 10q' conftest.err >conftest.er1
4009 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004010 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004011 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }
4014done
4015
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4017$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004018if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004019 $as_echo_n "(cached) " >&6
4020else
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022/* end confdefs.h. */
4023
4024int
4025main ()
4026{
4027#ifndef __GNUC__
4028 choke me
4029#endif
4030
4031 ;
4032 return 0;
4033}
4034_ACEOF
4035if ac_fn_c_try_compile "$LINENO"; then :
4036 ac_compiler_gnu=yes
4037else
4038 ac_compiler_gnu=no
4039fi
4040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041ac_cv_c_compiler_gnu=$ac_compiler_gnu
4042
4043fi
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4045$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4046if test $ac_compiler_gnu = yes; then
4047 GCC=yes
4048else
4049 GCC=
4050fi
4051ac_test_CFLAGS=${CFLAGS+set}
4052ac_save_CFLAGS=$CFLAGS
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4054$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004055if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004056 $as_echo_n "(cached) " >&6
4057else
4058 ac_save_c_werror_flag=$ac_c_werror_flag
4059 ac_c_werror_flag=yes
4060 ac_cv_prog_cc_g=no
4061 CFLAGS="-g"
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063/* end confdefs.h. */
4064
4065int
4066main ()
4067{
4068
4069 ;
4070 return 0;
4071}
4072_ACEOF
4073if ac_fn_c_try_compile "$LINENO"; then :
4074 ac_cv_prog_cc_g=yes
4075else
4076 CFLAGS=""
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078/* end confdefs.h. */
4079
4080int
4081main ()
4082{
4083
4084 ;
4085 return 0;
4086}
4087_ACEOF
4088if ac_fn_c_try_compile "$LINENO"; then :
4089
4090else
4091 ac_c_werror_flag=$ac_save_c_werror_flag
4092 CFLAGS="-g"
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094/* end confdefs.h. */
4095
4096int
4097main ()
4098{
4099
4100 ;
4101 return 0;
4102}
4103_ACEOF
4104if ac_fn_c_try_compile "$LINENO"; then :
4105 ac_cv_prog_cc_g=yes
4106fi
4107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108fi
4109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110fi
4111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 ac_c_werror_flag=$ac_save_c_werror_flag
4113fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4115$as_echo "$ac_cv_prog_cc_g" >&6; }
4116if test "$ac_test_CFLAGS" = set; then
4117 CFLAGS=$ac_save_CFLAGS
4118elif test $ac_cv_prog_cc_g = yes; then
4119 if test "$GCC" = yes; then
4120 CFLAGS="-g -O2"
4121 else
4122 CFLAGS="-g"
4123 fi
4124else
4125 if test "$GCC" = yes; then
4126 CFLAGS="-O2"
4127 else
4128 CFLAGS=
4129 fi
4130fi
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4132$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004133if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004134 $as_echo_n "(cached) " >&6
4135else
4136 ac_cv_prog_cc_c89=no
4137ac_save_CC=$CC
4138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139/* end confdefs.h. */
4140#include <stdarg.h>
4141#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004142struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004143/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4144struct buf { int x; };
4145FILE * (*rcsopen) (struct buf *, struct stat *, int);
4146static char *e (p, i)
4147 char **p;
4148 int i;
4149{
4150 return p[i];
4151}
4152static char *f (char * (*g) (char **, int), char **p, ...)
4153{
4154 char *s;
4155 va_list v;
4156 va_start (v,p);
4157 s = g (p, va_arg (v,int));
4158 va_end (v);
4159 return s;
4160}
4161
4162/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4163 function prototypes and stuff, but not '\xHH' hex character constants.
4164 These don't provoke an error unfortunately, instead are silently treated
4165 as 'x'. The following induces an error, until -std is added to get
4166 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4167 array size at least. It's necessary to write '\x00'==0 to get something
4168 that's true only with -std. */
4169int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4170
4171/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4172 inside strings and character constants. */
4173#define FOO(x) 'x'
4174int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4175
4176int test (int i, double x);
4177struct s1 {int (*f) (int a);};
4178struct s2 {int (*f) (double a);};
4179int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4180int argc;
4181char **argv;
4182int
4183main ()
4184{
4185return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4186 ;
4187 return 0;
4188}
4189_ACEOF
4190for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4191 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4192do
4193 CC="$ac_save_CC $ac_arg"
4194 if ac_fn_c_try_compile "$LINENO"; then :
4195 ac_cv_prog_cc_c89=$ac_arg
4196fi
4197rm -f core conftest.err conftest.$ac_objext
4198 test "x$ac_cv_prog_cc_c89" != "xno" && break
4199done
4200rm -f conftest.$ac_ext
4201CC=$ac_save_CC
4202
4203fi
4204# AC_CACHE_VAL
4205case "x$ac_cv_prog_cc_c89" in
4206 x)
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4208$as_echo "none needed" >&6; } ;;
4209 xno)
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4211$as_echo "unsupported" >&6; } ;;
4212 *)
4213 CC="$CC $ac_cv_prog_cc_c89"
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4215$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4216esac
4217if test "x$ac_cv_prog_cc_c89" != xno; then :
4218
4219fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004220
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004221ac_ext=c
4222ac_cpp='$CPP $CPPFLAGS'
4223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4225ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004227if test "$GCC" = yes; then
4228 RDYNAMIC="-rdynamic"
4229
4230fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004231ac_ext=c
4232ac_cpp='$CPP $CPPFLAGS'
4233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004237$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004238# On Suns, sometimes $CPP names a directory.
4239if test -n "$CPP" && test -d "$CPP"; then
4240 CPP=
4241fi
4242if test -z "$CPP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004243 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004244 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004245else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004246 # Double quotes because CPP needs to be expanded
4247 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4248 do
4249 ac_preproc_ok=false
4250for ac_c_preproc_warn_flag in '' yes
4251do
4252 # Use a header file that comes with gcc, so configuring glibc
4253 # with a fresh cross-compiler works.
4254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4255 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004256 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004257 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004259/* end confdefs.h. */
4260#ifdef __STDC__
4261# include <limits.h>
4262#else
4263# include <assert.h>
4264#endif
4265 Syntax error
4266_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004267if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004268
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004269else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004270 # Broken: fails on valid input.
4271continue
4272fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004273rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004274
Theodore Ts'oe1052142006-10-21 21:46:47 -04004275 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004276 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004278/* end confdefs.h. */
4279#include <ac_nonexistent.h>
4280_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004281if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004282 # Broken: success on invalid input.
4283continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004284else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004285 # Passes both tests.
4286ac_preproc_ok=:
4287break
4288fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004289rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004290
4291done
4292# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004293rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004294if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004295 break
4296fi
4297
4298 done
4299 ac_cv_prog_CPP=$CPP
4300
4301fi
4302 CPP=$ac_cv_prog_CPP
4303else
4304 ac_cv_prog_CPP=$CPP
4305fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004307$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004308ac_preproc_ok=false
4309for ac_c_preproc_warn_flag in '' yes
4310do
4311 # Use a header file that comes with gcc, so configuring glibc
4312 # with a fresh cross-compiler works.
4313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4314 # <limits.h> exists even on freestanding compilers.
4315 # On the NeXT, cc -E runs the code through the compiler's parser,
4316 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004318/* end confdefs.h. */
4319#ifdef __STDC__
4320# include <limits.h>
4321#else
4322# include <assert.h>
4323#endif
4324 Syntax error
4325_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004326if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004327
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004328else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004329 # Broken: fails on valid input.
4330continue
4331fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004332rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004333
Theodore Ts'oe1052142006-10-21 21:46:47 -04004334 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004335 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004337/* end confdefs.h. */
4338#include <ac_nonexistent.h>
4339_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004340if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004341 # Broken: success on invalid input.
4342continue
4343else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004344 # Passes both tests.
4345ac_preproc_ok=:
4346break
4347fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004348rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004349
4350done
4351# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004352rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004353if $ac_preproc_ok; then :
4354
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004355else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004358as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4359See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004360fi
4361
4362ac_ext=c
4363ac_cpp='$CPP $CPPFLAGS'
4364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366ac_compiler_gnu=$ac_cv_c_compiler_gnu
4367
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004369$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004370if test "$GCC" = yes
4371then
4372 case "$host_cpu" in
4373 alpha) addcflags="-mieee" ;;
4374 esac
4375fi
4376if test "x$addcflags" != x
4377then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004379$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004380 CFLAGS="$addcflags $CFLAGS"
4381else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004383$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004384fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004385LIB_EXT=.a
4386STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004387PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004388
Theodore Ts'oe1052142006-10-21 21:46:47 -04004389# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004390if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004391 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004392else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004393 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004394fi
4395# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004396if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004397 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004398then
4399 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004401$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004402else
4403 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004405$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004406fi
4407
4408else
4409 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004411$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004412
Theodore Ts'oe1052142006-10-21 21:46:47 -04004413fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004414
Theodore Ts'oe1052142006-10-21 21:46:47 -04004415
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004416# Check whether --enable-symlink-install was given.
4417if test "${enable_symlink_install+set}" = set; then :
4418 enableval=$enable_symlink_install; if test "$enableval" = "no"
4419then
4420 LINK_INSTALL_FLAGS=-f
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4422$as_echo "Disabling symlinks for install" >&6; }
4423else
4424 LINK_INSTALL_FLAGS=-sf
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4426$as_echo "Enabling symlinks for install" >&6; }
4427fi
4428
4429else
4430 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4432$as_echo "Disabling symlinks for install by default" >&6; }
4433
4434fi
4435
4436
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004437relative_symlink_defined=
4438# Check whether --enable-relative-symlinks was given.
4439if test "${enable_relative_symlinks+set}" = set; then :
4440 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004441then
4442 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004443 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4445$as_echo "Disabling relative symlinks for install" >&6; }
4446else
4447 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004448 relative_symlink_defined=yes
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4450$as_echo "Enabling relative symlinks for install" >&6; }
4451fi
4452fi
4453
4454# Check whether --enable-symlink-relative-symlinks was given.
4455if test "${enable_symlink_relative_symlinks+set}" = set; then :
4456 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4457then
4458 SYMLINK_RELATIVE=yes
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4460$as_echo "Disabling relative symlinks for install" >&6; }
4461else
4462 SYMLINK_RELATIVE=--relative
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4464$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004465fi
4466
4467else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004468 if test -z "$relative_symlink_defined"
4469then
4470 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4472$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004473fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004474
4475fi
4476
4477
4478# Check whether --enable-symlink-build was given.
4479if test "${enable_symlink_build+set}" = set; then :
4480 enableval=$enable_symlink_build; if test "$enableval" = "no"
4481then
4482 LINK_BUILD_FLAGS=
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4484$as_echo "Disabling symlinks for build" >&6; }
4485else
4486 LINK_BUILD_FLAGS=-s
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4488$as_echo "Enabling symlinks for build" >&6; }
4489fi
4490
4491else
4492 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4494$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004495
4496fi
4497
4498
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004499# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004500if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004501 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4502then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004504$as_echo "Disabling verbose make commands" >&6; }
4505 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004506 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004507 Q=@
4508else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004510$as_echo "Enabling verbose make commands" >&6; }
4511 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004512 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004513 Q=
4514fi
4515
4516else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004518$as_echo "Disabling verbose make commands" >&6; }
4519E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004520ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004521Q=@
4522
4523fi
4524
4525
4526
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004527
Theodore Ts'oe1052142006-10-21 21:46:47 -04004528# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004529if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004530 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004531then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004533$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004534else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004535
4536$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004537
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004539$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004541$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004542fi
4543
4544else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004546$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004547
Theodore Ts'oe1052142006-10-21 21:46:47 -04004548fi
4549
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004550
Theodore Ts'oe1052142006-10-21 21:46:47 -04004551# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004552if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004553 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004554then
4555 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004557$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004558else
4559 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004560 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004561
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004563$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004564fi
4565
4566else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004567 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004568$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004569
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004571$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004572
Theodore Ts'oe1052142006-10-21 21:46:47 -04004573fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004574
Theodore Ts'oe1052142006-10-21 21:46:47 -04004575
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004576E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004577LDFLAG_DYNAMIC=
4578PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004579# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004580if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004581 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004582then
4583 ELF_CMT=#
4584 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004586$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004587else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004588 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004589 ELF_CMT=
4590 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004591 case "$host_os" in
4592 solaris2.*)
4593 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4594 ;;
4595 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004596 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004597 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004598 PRIVATE_LIBS_CMT=#
4599 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004601$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004602fi
4603
4604else
4605 MAKEFILE_ELF=/dev/null
4606ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004608$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004609
Theodore Ts'oe1052142006-10-21 21:46:47 -04004610fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004611
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004612
Theodore Ts'oe1052142006-10-21 21:46:47 -04004613
4614# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004615if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004616 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004617then
4618 BSDLIB_CMT=#
4619 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004621$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004622else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004623 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004624 BSDLIB_CMT=
4625 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004626 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004627 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004628 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004629 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4630 LIB_EXT=.dylib
4631 ;;
4632 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004634$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004635fi
4636
4637else
4638 MAKEFILE_BSDLIB=/dev/null
4639BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004641$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004642
Theodore Ts'oe1052142006-10-21 21:46:47 -04004643fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004644
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004645
Theodore Ts'oe1052142006-10-21 21:46:47 -04004646
4647# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004648if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004649 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004650then
4651 PROFILE_CMT=#
4652 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004654$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004655else
4656 PROFILE_CMT=
4657 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4658 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004660$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004661fi
4662
4663else
4664 PROFILE_CMT=#
4665MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004667$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004668
Theodore Ts'oe1052142006-10-21 21:46:47 -04004669fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004670
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004671
Theodore Ts'oe1052142006-10-21 21:46:47 -04004672
4673# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004674if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004675 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004676then
4677 CHECKER_CMT=#
4678 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004680$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004681else
4682 CHECKER_CMT=
4683 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004685$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004686fi
4687
4688else
4689 CHECKER_CMT=#
4690MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004692$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004693
Theodore Ts'oe1052142006-10-21 21:46:47 -04004694fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004695
4696
4697
4698
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004699
Theodore Ts'oe1052142006-10-21 21:46:47 -04004700
Theodore Ts'o55da9872008-09-02 23:12:38 -04004701
4702
Theodore Ts'oe1052142006-10-21 21:46:47 -04004703# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004704if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004705 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004706then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004708$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004709else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004710
4711$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004712
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004714$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004715fi
4716
4717else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004719$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004720
Theodore Ts'oe1052142006-10-21 21:46:47 -04004721fi
4722
4723# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004724if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004725 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004726then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004728$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004729else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004730
4731$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004732
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004734$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004735fi
4736
4737else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004739$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004740
Theodore Ts'oe1052142006-10-21 21:46:47 -04004741fi
4742
4743# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004744if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004745 enableval=$enable_testio_debug;
4746if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004747then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004749$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004750 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004751else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004752 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004753 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004754
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004756$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004757fi
4758
4759else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004761$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004762$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004763
4764TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004765
Theodore Ts'oe1052142006-10-21 21:46:47 -04004766fi
4767
Theodore Ts'oaf773652008-09-01 11:27:27 -04004768
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004769
4770
4771if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4772 if test -n "$ac_tool_prefix"; then
4773 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4774set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004776$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004777if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004778 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004779else
4780 case $PKG_CONFIG in
4781 [\\/]* | ?:[\\/]*)
4782 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4783 ;;
4784 *)
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786for as_dir in $PATH
4787do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004790 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004792 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004794 break 2
4795 fi
4796done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004797 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004798IFS=$as_save_IFS
4799
4800 ;;
4801esac
4802fi
4803PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4804if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004806$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004807else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004809$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004810fi
4811
4812
4813fi
4814if test -z "$ac_cv_path_PKG_CONFIG"; then
4815 ac_pt_PKG_CONFIG=$PKG_CONFIG
4816 # Extract the first word of "pkg-config", so it can be a program name with args.
4817set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004819$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004820if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004821 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004822else
4823 case $ac_pt_PKG_CONFIG in
4824 [\\/]* | ?:[\\/]*)
4825 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4826 ;;
4827 *)
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829for as_dir in $PATH
4830do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004833 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004835 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004837 break 2
4838 fi
4839done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004840 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004841IFS=$as_save_IFS
4842
4843 ;;
4844esac
4845fi
4846ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4847if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004849$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004850else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004852$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004853fi
4854
4855 if test "x$ac_pt_PKG_CONFIG" = x; then
4856 PKG_CONFIG=""
4857 else
4858 case $cross_compiling:$ac_tool_warned in
4859yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004860{ $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 +01004861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004862ac_tool_warned=yes ;;
4863esac
4864 PKG_CONFIG=$ac_pt_PKG_CONFIG
4865 fi
4866else
4867 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4868fi
4869
4870fi
4871if test -n "$PKG_CONFIG"; then
4872 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004873 { $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 +01004874$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004875 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004877$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004878 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004880$as_echo "no" >&6; }
4881 PKG_CONFIG=""
4882 fi
4883
4884fi
4885LIBUUID=
4886DEPLIBUUID=
4887STATIC_LIBUUID=
4888DEPSTATIC_LIBUUID=
4889PROFILED_LIBUUID=
4890DEPPROFILED_LIBUUID=
4891UUID_CMT=
4892# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004893if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004894 enableval=$enable_libuuid; if test "$enableval" = "no"
4895then
4896 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004897 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004898 fi
4899
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004901$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004902if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004903 $as_echo_n "(cached) " >&6
4904else
4905 ac_check_lib_save_LIBS=$LIBS
4906LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004908/* end confdefs.h. */
4909
4910/* Override any GCC internal prototype to avoid an error.
4911 Use char because int might match the return type of a GCC
4912 builtin and then its argument prototype would still apply. */
4913#ifdef __cplusplus
4914extern "C"
4915#endif
4916char uuid_generate ();
4917int
4918main ()
4919{
4920return uuid_generate ();
4921 ;
4922 return 0;
4923}
4924_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004925if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004926 ac_cv_lib_uuid_uuid_generate=yes
4927else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004928 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004929fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004930rm -f core conftest.err conftest.$ac_objext \
4931 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004932LIBS=$ac_check_lib_save_LIBS
4933fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004935$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004936if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004937 LIBUUID=`$PKG_CONFIG --libs uuid`;
4938 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4939else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004940 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004941fi
4942
4943 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004945$as_echo "Disabling private uuid library" >&6; }
4946else
4947 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4948 DEPLIBUUID=$LIBUUID
4949 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4950 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4951 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4952 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004954$as_echo "Enabling private uuid library" >&6; }
4955fi
4956
4957else
4958 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4959DEPLIBUUID=$LIBUUID
4960STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4961DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4962PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4963DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004965$as_echo "Enabling private uuid library by default" >&6; }
4966
4967fi
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4979 if test -n "$ac_tool_prefix"; then
4980 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4981set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004983$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004984if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004985 $as_echo_n "(cached) " >&6
4986else
4987 case $PKG_CONFIG in
4988 [\\/]* | ?:[\\/]*)
4989 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4990 ;;
4991 *)
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993for as_dir in $PATH
4994do
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004997 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004999 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005001 break 2
5002 fi
5003done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005004 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005005IFS=$as_save_IFS
5006
5007 ;;
5008esac
5009fi
5010PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5011if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005013$as_echo "$PKG_CONFIG" >&6; }
5014else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005016$as_echo "no" >&6; }
5017fi
5018
5019
5020fi
5021if test -z "$ac_cv_path_PKG_CONFIG"; then
5022 ac_pt_PKG_CONFIG=$PKG_CONFIG
5023 # Extract the first word of "pkg-config", so it can be a program name with args.
5024set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005026$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005027if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005028 $as_echo_n "(cached) " >&6
5029else
5030 case $ac_pt_PKG_CONFIG in
5031 [\\/]* | ?:[\\/]*)
5032 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5033 ;;
5034 *)
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036for as_dir in $PATH
5037do
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005040 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005042 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005044 break 2
5045 fi
5046done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005047 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005048IFS=$as_save_IFS
5049
5050 ;;
5051esac
5052fi
5053ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5054if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005056$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5057else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005059$as_echo "no" >&6; }
5060fi
5061
5062 if test "x$ac_pt_PKG_CONFIG" = x; then
5063 PKG_CONFIG=""
5064 else
5065 case $cross_compiling:$ac_tool_warned in
5066yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005067{ $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 +01005068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5069ac_tool_warned=yes ;;
5070esac
5071 PKG_CONFIG=$ac_pt_PKG_CONFIG
5072 fi
5073else
5074 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5075fi
5076
5077fi
5078if test -n "$PKG_CONFIG"; then
5079 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005080 { $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 +01005081$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5082 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005084$as_echo "yes" >&6; }
5085 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005087$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005088 PKG_CONFIG=""
5089 fi
5090
5091fi
5092LIBBLKID=
5093DEPLIBBLKID=
5094STATIC_LIBBLKID=
5095DEPSTATIC_LIBBLKID=
5096PROFILED_LIBBLKID=
5097DEPPROFILED_LIBBLKID=
5098BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005099
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005100# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005101if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005102 enableval=$enable_libblkid; if test "$enableval" = "no"
5103then
5104 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005105 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005106 fi
5107
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005109$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005110if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005111 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005112else
5113 ac_check_lib_save_LIBS=$LIBS
5114LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005116/* end confdefs.h. */
5117
5118/* Override any GCC internal prototype to avoid an error.
5119 Use char because int might match the return type of a GCC
5120 builtin and then its argument prototype would still apply. */
5121#ifdef __cplusplus
5122extern "C"
5123#endif
5124char blkid_get_cache ();
5125int
5126main ()
5127{
5128return blkid_get_cache ();
5129 ;
5130 return 0;
5131}
5132_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005133if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005134 ac_cv_lib_blkid_blkid_get_cache=yes
5135else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005136 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005137fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005138rm -f core conftest.err conftest.$ac_objext \
5139 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005140LIBS=$ac_check_lib_save_LIBS
5141fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005143$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005144if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005145 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5146 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5147else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005148 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005149fi
5150
5151 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005153$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005154else
5155 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5156 DEPLIBBLKID=$LIBBLKID
5157 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5158 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5159 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5160 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005161 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005162
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005164$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005165fi
5166
5167else
5168 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5169DEPLIBBLKID=$LIBBLKID
5170STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5171DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5172PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5173DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005174$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005175
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005177$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005178
5179fi
5180
5181
5182
5183
5184
5185
5186
5187
Aditya Kalif239fef2011-07-20 11:40:02 -07005188
5189
5190if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5191 if test -n "$ac_tool_prefix"; then
5192 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5193set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005196if ${ac_cv_path_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005197 $as_echo_n "(cached) " >&6
5198else
5199 case $PKG_CONFIG in
5200 [\\/]* | ?:[\\/]*)
5201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5202 ;;
5203 *)
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205for as_dir in $PATH
5206do
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5214 fi
5215done
5216 done
5217IFS=$as_save_IFS
5218
5219 ;;
5220esac
5221fi
5222PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5223if test -n "$PKG_CONFIG"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5225$as_echo "$PKG_CONFIG" >&6; }
5226else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228$as_echo "no" >&6; }
5229fi
5230
5231
5232fi
5233if test -z "$ac_cv_path_PKG_CONFIG"; then
5234 ac_pt_PKG_CONFIG=$PKG_CONFIG
5235 # Extract the first word of "pkg-config", so it can be a program name with args.
5236set dummy pkg-config; ac_word=$2
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005239if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005240 $as_echo_n "(cached) " >&6
5241else
5242 case $ac_pt_PKG_CONFIG in
5243 [\\/]* | ?:[\\/]*)
5244 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5245 ;;
5246 *)
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248for as_dir in $PATH
5249do
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005254 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 break 2
5257 fi
5258done
5259 done
5260IFS=$as_save_IFS
5261
5262 ;;
5263esac
5264fi
5265ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5266if test -n "$ac_pt_PKG_CONFIG"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5268$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5269else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271$as_echo "no" >&6; }
5272fi
5273
5274 if test "x$ac_pt_PKG_CONFIG" = x; then
5275 PKG_CONFIG=""
5276 else
5277 case $cross_compiling:$ac_tool_warned in
5278yes:)
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281ac_tool_warned=yes ;;
5282esac
5283 PKG_CONFIG=$ac_pt_PKG_CONFIG
5284 fi
5285else
5286 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5287fi
5288
5289fi
5290if test -n "$PKG_CONFIG"; then
5291 _pkg_min_version=0.9.0
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5293$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5294 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5296$as_echo "yes" >&6; }
5297 else
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299$as_echo "no" >&6; }
5300 PKG_CONFIG=""
5301 fi
5302
5303fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005304
5305# Check whether --enable-quota was given.
5306if test "${enable_quota+set}" = set; then :
5307 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005308then
Theodore Ts'o7becb202011-11-14 10:40:43 -05005309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5310$as_echo "Disabling quota support" >&6; }
5311else
5312 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005313
Theodore Ts'o7becb202011-11-14 10:40:43 -05005314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5315$as_echo "Enabling quota support" >&6; }
Aditya Kalif239fef2011-07-20 11:40:02 -07005316fi
5317
5318else
Theodore Ts'o7becb202011-11-14 10:40:43 -05005319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5320$as_echo "Disabling quota support by default" >&6; }
5321
5322fi
5323
5324LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005325DEPLIBQUOTA=$LIBQUOTA
5326STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5327DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5328PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5329DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005330
5331
5332
5333
5334
5335
5336
Theodore Ts'o3df60142013-06-16 16:14:40 -04005337
5338# Check whether --enable-backtrace was given.
5339if test "${enable_backtrace+set}" = set; then :
5340 enableval=$enable_backtrace; if test "$enableval" = "no"
5341then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5343$as_echo "Disabling use of backtrace" >&6; }
5344 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5345
5346else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5348$as_echo "Enabling use of backtrace" >&6; }
5349fi
5350
5351else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5353$as_echo "Enabling use of backtrace by default" >&6; }
5354
5355fi
5356
Theodore Ts'oe1052142006-10-21 21:46:47 -04005357# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005358if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005359 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005360then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005362$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005363 DEBUGFS_CMT="#"
5364else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005365 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005367$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005368fi
5369
5370else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005372$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005373DEBUGFS_CMT=
5374
Theodore Ts'oe1052142006-10-21 21:46:47 -04005375fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005376
Theodore Ts'oe1052142006-10-21 21:46:47 -04005377
5378# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005379if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005380 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005381then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005383$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005384 IMAGER_CMT="#"
5385else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005386 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005388$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005389fi
5390
5391else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005393$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005394IMAGER_CMT=
5395
Theodore Ts'oe1052142006-10-21 21:46:47 -04005396fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005397
Theodore Ts'oe1052142006-10-21 21:46:47 -04005398
5399# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005400if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005401 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005402then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005404$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005405 RESIZER_CMT="#"
5406else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005407 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005409$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005410fi
5411
5412else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005414$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005415RESIZER_CMT=
5416
Theodore Ts'oe1052142006-10-21 21:46:47 -04005417fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005418
Theodore Ts'oe1052142006-10-21 21:46:47 -04005419
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005420# Check whether --enable-defrag was given.
5421if test "${enable_defrag+set}" = set; then :
5422 enableval=$enable_defrag; if test "$enableval" = "no"
5423then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5425$as_echo "Disabling e4defrag support" >&6; }
5426 DEFRAG_CMT="#"
5427else
5428 DEFRAG_CMT=
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5430$as_echo "Enabling e4defrag support" >&6; }
5431fi
5432
5433else
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5435$as_echo "Enabling e4defrag support by default" >&6; }
5436DEFRAG_CMT=
5437
5438fi
5439
5440
Theodore Ts'oe1052142006-10-21 21:46:47 -04005441# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005442if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005443 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005444then
5445 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005447$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005448else
5449 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005451$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005452fi
5453
5454else
5455 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005456 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005457 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005459$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005460 ;;
5461 *)
5462 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005464$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005465esac
5466
Theodore Ts'oe1052142006-10-21 21:46:47 -04005467fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005468
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005469
Theodore Ts'oe1052142006-10-21 21:46:47 -04005470
5471# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005472if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005473 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005474then
5475 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005477$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005478else
5479 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005481$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005482fi
5483
5484else
5485 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005487$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005488
Theodore Ts'oe1052142006-10-21 21:46:47 -04005489fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005490
5491
Theodore Ts'oe1052142006-10-21 21:46:47 -04005492
Theodore Ts'o32493942007-12-31 10:45:01 -05005493# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005494if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005495 enableval=$enable_tls; if test "$enableval" = "no"
5496then
5497 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005499$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005500else
5501 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005503$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005504fi
5505
5506else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005507 if test -n "$WITH_DIET_LIBC"
5508then
5509 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005510 { $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 +01005511$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005512else
5513 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005515$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005516fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005517
5518fi
5519
5520if test "$try_tls" = "yes"
5521then
5522
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005524$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005525 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005526 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005527else
5528
5529 ax_tls_keywords="__thread __declspec(thread) none"
5530 for ax_tls_keyword in $ax_tls_keywords; do
5531 case $ax_tls_keyword in
5532 none) ac_cv_tls=none ; break ;;
5533 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005535/* end confdefs.h. */
5536#include <stdlib.h>
5537 static void
5538 foo(void) {
5539 static $ax_tls_keyword int bar;
5540 exit(1);
5541 }
5542int
5543main ()
5544{
5545
5546 ;
5547 return 0;
5548}
5549_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005550if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005551 ac_cv_tls=$ax_tls_keyword ; break
5552else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005553 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005554
5555fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 esac
5558 done
5559
5560fi
5561
5562
5563 if test "$ac_cv_tls" != "none"; then
5564
5565cat >>confdefs.h <<_ACEOF
5566#define TLS $ac_cv_tls
5567_ACEOF
5568
5569 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005571$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005572
5573fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005574
Theodore Ts'o5610f992007-12-31 11:16:56 -05005575# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005576if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005577 enableval=$enable_uuidd; if test "$enableval" = "no"
5578then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005580$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005581 UUIDD_CMT="#"
5582else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005583 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005584
5585 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005587$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005588fi
5589
5590else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005591 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005592
5593UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005595$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005596
5597fi
5598
5599
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005600MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5601
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005602GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005603PACKAGE=e2fsprogs
5604VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005605VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005606
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005607cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005608#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005609_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005610
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005611
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005612cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005613#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005614_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005615
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005616
5617
5618
5619
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005621$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5622set x ${MAKE-make}
5623ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005624if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005625 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005626else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005627 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005628SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005629all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005630 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005631_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005632# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005633case `${MAKE-make} -f conftest.make 2>/dev/null` in
5634 *@@@%%%=?*=@@@%%%*)
5635 eval ac_cv_prog_make_${ac_make}_set=yes;;
5636 *)
5637 eval ac_cv_prog_make_${ac_make}_set=no;;
5638esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005639rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005640fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005641if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005643$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005644 SET_MAKE=
5645else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005647$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005648 SET_MAKE="MAKE=${MAKE-make}"
5649fi
5650
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005651# Find a good install program. We prefer a C program (faster),
5652# so one script is as good as another. But avoid the broken or
5653# incompatible versions:
5654# SysV /etc/install, /usr/sbin/install
5655# SunOS /usr/etc/install
5656# IRIX /sbin/install
5657# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005658# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005659# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5660# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5661# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005662# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005663# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005664# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005666$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005667if test -z "$INSTALL"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005668if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005669 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005670else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005676 # Account for people who put trailing slashes in PATH elements.
5677case $as_dir/ in #((
5678 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005680 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005681 /usr/ucb/* ) ;;
5682 *)
5683 # OSF1 and SCO ODT 3.0 have their own names for install.
5684 # Don't use installbsd from OSF since it installs stuff as root
5685 # by default.
5686 for ac_prog in ginstall scoinst install; do
5687 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005688 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005689 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005691 # AIX install. It has an incompatible calling convention.
5692 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005693 elif test $ac_prog = install &&
5694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5695 # program-specific install script used by HP pwplus--don't use.
5696 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005697 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005698 rm -rf conftest.one conftest.two conftest.dir
5699 echo one > conftest.one
5700 echo two > conftest.two
5701 mkdir conftest.dir
5702 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5703 test -s conftest.one && test -s conftest.two &&
5704 test -s conftest.dir/conftest.one &&
5705 test -s conftest.dir/conftest.two
5706 then
5707 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5708 break 3
5709 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005710 fi
5711 fi
5712 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005713 done
5714 ;;
5715esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005716
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005717 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005718IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005719
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005720rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005721
5722fi
5723 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005724 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005725 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005726 # As a last resort, use the slow shell script. Don't cache a
5727 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005728 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005729 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005730 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005731 fi
5732fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005734$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005735
5736# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5737# It thinks the first close brace ends the variable substitution.
5738test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5739
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005740test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005741
5742test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5743
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005744
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005745 MKINSTALLDIRS=
5746 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005747 case "$ac_aux_dir" in
5748 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5749 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5750 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005751 fi
5752 if test -z "$MKINSTALLDIRS"; then
5753 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5754 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005755
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005756
5757
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005759$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005760 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005761if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005762 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005763else
5764 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005765fi
5766
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005768$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005769
5770
5771
5772
5773
5774
5775# Prepare PATH_SEPARATOR.
5776# The user is always right.
5777if test "${PATH_SEPARATOR+set}" != set; then
5778 echo "#! /bin/sh" >conf$$.sh
5779 echo "exit 0" >>conf$$.sh
5780 chmod +x conf$$.sh
5781 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5782 PATH_SEPARATOR=';'
5783 else
5784 PATH_SEPARATOR=:
5785 fi
5786 rm -f conf$$.sh
5787fi
5788
5789# Find out how to test for executable files. Don't use a zero-byte file,
5790# as systems may use methods other than mode bits to determine executability.
5791cat >conf$$.file <<_ASEOF
5792#! /bin/sh
5793exit 0
5794_ASEOF
5795chmod +x conf$$.file
5796if test -x conf$$.file >/dev/null 2>&1; then
5797 ac_executable_p="test -x"
5798else
5799 ac_executable_p="test -f"
5800fi
5801rm -f conf$$.file
5802
5803# Extract the first word of "msgfmt", so it can be a program name with args.
5804set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005806$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005807if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005808 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005809else
5810 case "$MSGFMT" in
5811 [\\/]* | ?:[\\/]*)
5812 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5813 ;;
5814 *)
5815 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5816 for ac_dir in $PATH; do
5817 IFS="$ac_save_IFS"
5818 test -z "$ac_dir" && ac_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5821 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5822 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5823 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5824 break 2
5825 fi
5826 fi
5827 done
5828 done
5829 IFS="$ac_save_IFS"
5830 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5831 ;;
5832esac
5833fi
5834MSGFMT="$ac_cv_path_MSGFMT"
5835if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005837$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005838else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005840$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005841fi
5842
5843 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5844set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005846$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005847if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005848 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005849else
5850 case $GMSGFMT in
5851 [\\/]* | ?:[\\/]*)
5852 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5853 ;;
5854 *)
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856for as_dir in $PATH
5857do
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005860 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005862 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005864 break 2
5865 fi
5866done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005867 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005868IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005869
5870 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5871 ;;
5872esac
5873fi
5874GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005875if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005877$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005878else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005880$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005881fi
5882
5883
5884
Theodore Ts'oe1052142006-10-21 21:46:47 -04005885
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005886# Prepare PATH_SEPARATOR.
5887# The user is always right.
5888if test "${PATH_SEPARATOR+set}" != set; then
5889 echo "#! /bin/sh" >conf$$.sh
5890 echo "exit 0" >>conf$$.sh
5891 chmod +x conf$$.sh
5892 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5893 PATH_SEPARATOR=';'
5894 else
5895 PATH_SEPARATOR=:
5896 fi
5897 rm -f conf$$.sh
5898fi
5899
5900# Find out how to test for executable files. Don't use a zero-byte file,
5901# as systems may use methods other than mode bits to determine executability.
5902cat >conf$$.file <<_ASEOF
5903#! /bin/sh
5904exit 0
5905_ASEOF
5906chmod +x conf$$.file
5907if test -x conf$$.file >/dev/null 2>&1; then
5908 ac_executable_p="test -x"
5909else
5910 ac_executable_p="test -f"
5911fi
5912rm -f conf$$.file
5913
5914# Extract the first word of "xgettext", so it can be a program name with args.
5915set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005917$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005918if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005919 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005920else
5921 case "$XGETTEXT" in
5922 [\\/]* | ?:[\\/]*)
5923 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5924 ;;
5925 *)
5926 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5927 for ac_dir in $PATH; do
5928 IFS="$ac_save_IFS"
5929 test -z "$ac_dir" && ac_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5932 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5933 (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
5934 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5935 break 2
5936 fi
5937 fi
5938 done
5939 done
5940 IFS="$ac_save_IFS"
5941 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5942 ;;
5943esac
5944fi
5945XGETTEXT="$ac_cv_path_XGETTEXT"
5946if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005948$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005949else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005951$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005952fi
5953
5954 rm -f messages.po
5955
5956
5957# Prepare PATH_SEPARATOR.
5958# The user is always right.
5959if test "${PATH_SEPARATOR+set}" != set; then
5960 echo "#! /bin/sh" >conf$$.sh
5961 echo "exit 0" >>conf$$.sh
5962 chmod +x conf$$.sh
5963 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5964 PATH_SEPARATOR=';'
5965 else
5966 PATH_SEPARATOR=:
5967 fi
5968 rm -f conf$$.sh
5969fi
5970
5971# Find out how to test for executable files. Don't use a zero-byte file,
5972# as systems may use methods other than mode bits to determine executability.
5973cat >conf$$.file <<_ASEOF
5974#! /bin/sh
5975exit 0
5976_ASEOF
5977chmod +x conf$$.file
5978if test -x conf$$.file >/dev/null 2>&1; then
5979 ac_executable_p="test -x"
5980else
5981 ac_executable_p="test -f"
5982fi
5983rm -f conf$$.file
5984
5985# Extract the first word of "msgmerge", so it can be a program name with args.
5986set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005988$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005989if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005990 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005991else
5992 case "$MSGMERGE" in
5993 [\\/]* | ?:[\\/]*)
5994 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5995 ;;
5996 *)
5997 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5998 for ac_dir in $PATH; do
5999 IFS="$ac_save_IFS"
6000 test -z "$ac_dir" && ac_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6003 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6004 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6005 break 2
6006 fi
6007 fi
6008 done
6009 done
6010 IFS="$ac_save_IFS"
6011 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6012 ;;
6013esac
6014fi
6015MSGMERGE="$ac_cv_path_MSGMERGE"
6016if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006018$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006019else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006021$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006022fi
6023
6024
6025 if test "$GMSGFMT" != ":"; then
6026 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6027 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6028 : ;
6029 else
6030 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006031 { $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 +01006032$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006033 GMSGFMT=":"
6034 fi
6035 fi
6036
6037 if test "$XGETTEXT" != ":"; then
6038 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6039 (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
6040 : ;
6041 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006042 { $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 +01006043$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006044 XGETTEXT=":"
6045 fi
6046 rm -f messages.po
6047 fi
6048
Theodore Ts'oe1052142006-10-21 21:46:47 -04006049 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006050
6051
6052if test -n "$ac_tool_prefix"; then
6053 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6054set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006056$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006057if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006058 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006059else
6060 if test -n "$RANLIB"; then
6061 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6062else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064for as_dir in $PATH
6065do
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006068 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006070 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006072 break 2
6073 fi
6074done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006075 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006076IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006077
6078fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006079fi
6080RANLIB=$ac_cv_prog_RANLIB
6081if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006083$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006084else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006086$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006087fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006088
Theodore Ts'oe1052142006-10-21 21:46:47 -04006089
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006090fi
6091if test -z "$ac_cv_prog_RANLIB"; then
6092 ac_ct_RANLIB=$RANLIB
6093 # Extract the first word of "ranlib", so it can be a program name with args.
6094set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006096$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006097if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006098 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006099else
6100 if test -n "$ac_ct_RANLIB"; then
6101 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6102else
6103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104for as_dir in $PATH
6105do
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006108 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006110 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006112 break 2
6113 fi
6114done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006115 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006116IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006117
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006118fi
6119fi
6120ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6121if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006123$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006124else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006126$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006127fi
6128
Theodore Ts'oe1052142006-10-21 21:46:47 -04006129 if test "x$ac_ct_RANLIB" = x; then
6130 RANLIB=":"
6131 else
6132 case $cross_compiling:$ac_tool_warned in
6133yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006134{ $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 +01006135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006136ac_tool_warned=yes ;;
6137esac
6138 RANLIB=$ac_ct_RANLIB
6139 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006140else
6141 RANLIB="$ac_cv_prog_RANLIB"
6142fi
6143
6144
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006146$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006147if ${ac_cv_lib_cposix_strerror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006148 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006149else
6150 ac_check_lib_save_LIBS=$LIBS
6151LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006153/* end confdefs.h. */
6154
Theodore Ts'oe1052142006-10-21 21:46:47 -04006155/* Override any GCC internal prototype to avoid an error.
6156 Use char because int might match the return type of a GCC
6157 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006158#ifdef __cplusplus
6159extern "C"
6160#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006161char strerror ();
6162int
6163main ()
6164{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006165return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006166 ;
6167 return 0;
6168}
6169_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006170if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006171 ac_cv_lib_cposix_strerror=yes
6172else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006173 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006174fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006175rm -f core conftest.err conftest.$ac_objext \
6176 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006177LIBS=$ac_check_lib_save_LIBS
6178fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006180$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006181if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006182 LIBS="$LIBS -lcposix"
6183fi
6184
6185
6186
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006187
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6189$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006190if ${ac_cv_path_GREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006191 $as_echo_n "(cached) " >&6
6192else
6193 if test -z "$GREP"; then
6194 ac_path_GREP_found=false
6195 # Loop through the user's path and test for each of PROGNAME-LIST
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6198do
6199 IFS=$as_save_IFS
6200 test -z "$as_dir" && as_dir=.
6201 for ac_prog in grep ggrep; do
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006204 as_fn_executable_p "$ac_path_GREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006205# Check for GNU ac_path_GREP and select it if it is found.
6206 # Check for GNU $ac_path_GREP
6207case `"$ac_path_GREP" --version 2>&1` in
6208*GNU*)
6209 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6210*)
6211 ac_count=0
6212 $as_echo_n 0123456789 >"conftest.in"
6213 while :
6214 do
6215 cat "conftest.in" "conftest.in" >"conftest.tmp"
6216 mv "conftest.tmp" "conftest.in"
6217 cp "conftest.in" "conftest.nl"
6218 $as_echo 'GREP' >> "conftest.nl"
6219 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6221 as_fn_arith $ac_count + 1 && ac_count=$as_val
6222 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6223 # Best one so far, save it but keep looking for a better one
6224 ac_cv_path_GREP="$ac_path_GREP"
6225 ac_path_GREP_max=$ac_count
6226 fi
6227 # 10*(2^10) chars as input seems more than enough
6228 test $ac_count -gt 10 && break
6229 done
6230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6231esac
6232
6233 $ac_path_GREP_found && break 3
6234 done
6235 done
6236 done
6237IFS=$as_save_IFS
6238 if test -z "$ac_cv_path_GREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006239 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 -04006240 fi
6241else
6242 ac_cv_path_GREP=$GREP
6243fi
6244
6245fi
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6247$as_echo "$ac_cv_path_GREP" >&6; }
6248 GREP="$ac_cv_path_GREP"
6249
6250
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6252$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006253if ${ac_cv_path_EGREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006254 $as_echo_n "(cached) " >&6
6255else
6256 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6257 then ac_cv_path_EGREP="$GREP -E"
6258 else
6259 if test -z "$EGREP"; then
6260 ac_path_EGREP_found=false
6261 # Loop through the user's path and test for each of PROGNAME-LIST
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6264do
6265 IFS=$as_save_IFS
6266 test -z "$as_dir" && as_dir=.
6267 for ac_prog in egrep; do
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006270 as_fn_executable_p "$ac_path_EGREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006271# Check for GNU ac_path_EGREP and select it if it is found.
6272 # Check for GNU $ac_path_EGREP
6273case `"$ac_path_EGREP" --version 2>&1` in
6274*GNU*)
6275 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6276*)
6277 ac_count=0
6278 $as_echo_n 0123456789 >"conftest.in"
6279 while :
6280 do
6281 cat "conftest.in" "conftest.in" >"conftest.tmp"
6282 mv "conftest.tmp" "conftest.in"
6283 cp "conftest.in" "conftest.nl"
6284 $as_echo 'EGREP' >> "conftest.nl"
6285 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6287 as_fn_arith $ac_count + 1 && ac_count=$as_val
6288 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6289 # Best one so far, save it but keep looking for a better one
6290 ac_cv_path_EGREP="$ac_path_EGREP"
6291 ac_path_EGREP_max=$ac_count
6292 fi
6293 # 10*(2^10) chars as input seems more than enough
6294 test $ac_count -gt 10 && break
6295 done
6296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6297esac
6298
6299 $ac_path_EGREP_found && break 3
6300 done
6301 done
6302 done
6303IFS=$as_save_IFS
6304 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006305 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 -04006306 fi
6307else
6308 ac_cv_path_EGREP=$EGREP
6309fi
6310
6311 fi
6312fi
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6314$as_echo "$ac_cv_path_EGREP" >&6; }
6315 EGREP="$ac_cv_path_EGREP"
6316
6317
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6319$as_echo_n "checking for ANSI C header files... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006320if ${ac_cv_header_stdc+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006321 $as_echo_n "(cached) " >&6
6322else
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324/* end confdefs.h. */
6325#include <stdlib.h>
6326#include <stdarg.h>
6327#include <string.h>
6328#include <float.h>
6329
6330int
6331main ()
6332{
6333
6334 ;
6335 return 0;
6336}
6337_ACEOF
6338if ac_fn_c_try_compile "$LINENO"; then :
6339 ac_cv_header_stdc=yes
6340else
6341 ac_cv_header_stdc=no
6342fi
6343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6344
6345if test $ac_cv_header_stdc = yes; then
6346 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348/* end confdefs.h. */
6349#include <string.h>
6350
6351_ACEOF
6352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6353 $EGREP "memchr" >/dev/null 2>&1; then :
6354
6355else
6356 ac_cv_header_stdc=no
6357fi
6358rm -f conftest*
6359
6360fi
6361
6362if test $ac_cv_header_stdc = yes; then
6363 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365/* end confdefs.h. */
6366#include <stdlib.h>
6367
6368_ACEOF
6369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6370 $EGREP "free" >/dev/null 2>&1; then :
6371
6372else
6373 ac_cv_header_stdc=no
6374fi
6375rm -f conftest*
6376
6377fi
6378
6379if test $ac_cv_header_stdc = yes; then
6380 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6381 if test "$cross_compiling" = yes; then :
6382 :
6383else
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385/* end confdefs.h. */
6386#include <ctype.h>
6387#include <stdlib.h>
6388#if ((' ' & 0x0FF) == 0x020)
6389# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6390# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6391#else
6392# define ISLOWER(c) \
6393 (('a' <= (c) && (c) <= 'i') \
6394 || ('j' <= (c) && (c) <= 'r') \
6395 || ('s' <= (c) && (c) <= 'z'))
6396# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6397#endif
6398
6399#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6400int
6401main ()
6402{
6403 int i;
6404 for (i = 0; i < 256; i++)
6405 if (XOR (islower (i), ISLOWER (i))
6406 || toupper (i) != TOUPPER (i))
6407 return 2;
6408 return 0;
6409}
6410_ACEOF
6411if ac_fn_c_try_run "$LINENO"; then :
6412
6413else
6414 ac_cv_header_stdc=no
6415fi
6416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6417 conftest.$ac_objext conftest.beam conftest.$ac_ext
6418fi
6419
6420fi
6421fi
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6423$as_echo "$ac_cv_header_stdc" >&6; }
6424if test $ac_cv_header_stdc = yes; then
6425
6426$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6427
6428fi
6429
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006431$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006432if ${ac_cv_c_const+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006433 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006434else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006436/* end confdefs.h. */
6437
6438int
6439main ()
6440{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006441
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006442#ifndef __cplusplus
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006443 /* Ultrix mips cc rejects this sort of thing. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006444 typedef int charset[2];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006445 const charset cs = { 0, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006446 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006447 char const *const *pcpcc;
6448 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006449 /* NEC SVR4.0.2 mips cc rejects this. */
6450 struct point {int x, y;};
6451 static struct point const zero = {0,0};
6452 /* AIX XL C 1.02.0.0 rejects this.
6453 It does not let you subtract one const X* pointer from another in
6454 an arm of an if-expression whose if-part is not a constant
6455 expression */
6456 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006457 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006458 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006459 ++pcpcc;
6460 ppc = (char**) pcpcc;
6461 pcpcc = (char const *const *) ppc;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006462 { /* SCO 3.2v4 cc rejects this sort of thing. */
6463 char tx;
6464 char *t = &tx;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006465 char const *s = 0 ? (char *) 0 : (char const *) 0;
6466
6467 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006468 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006469 }
6470 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6471 int x[] = {25, 17};
6472 const int *foo = &x[0];
6473 ++foo;
6474 }
6475 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6476 typedef const int *iptr;
6477 iptr p = 0;
6478 ++p;
6479 }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006480 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006481 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006482 struct s { int j; const int *ap[3]; } bx;
6483 struct s *b = &bx; b->j = 5;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006484 }
6485 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6486 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006487 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006488 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006489 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006490#endif
6491
6492 ;
6493 return 0;
6494}
6495_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006496if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006497 ac_cv_c_const=yes
6498else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006499 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006500fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006502fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006504$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006505if test $ac_cv_c_const = no; then
6506
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006507$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006508
6509fi
6510
6511
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006513$as_echo_n "checking for signed... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006514if ${bh_cv_c_signed+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006515 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006516else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006518/* end confdefs.h. */
6519
6520int
6521main ()
6522{
6523signed char x;
6524 ;
6525 return 0;
6526}
6527_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006528if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006529 bh_cv_c_signed=yes
6530else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006531 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006532fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006534fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006536$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006537 if test $bh_cv_c_signed = no; then
6538
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006539$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006540
6541 fi
6542
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006544$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006545if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006546 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006547else
6548 ac_cv_c_inline=no
6549for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006551/* end confdefs.h. */
6552#ifndef __cplusplus
6553typedef int foo_t;
6554static $ac_kw foo_t static_foo () {return 0; }
6555$ac_kw foo_t foo () {return 0; }
6556#endif
6557
6558_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006559if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006560 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006561fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006564done
6565
6566fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006568$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006569
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006570case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006571 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006572 *)
6573 case $ac_cv_c_inline in
6574 no) ac_val=;;
6575 *) ac_val=$ac_cv_c_inline;;
6576 esac
6577 cat >>confdefs.h <<_ACEOF
6578#ifndef __cplusplus
6579#define inline $ac_val
6580#endif
6581_ACEOF
6582 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006583esac
6584
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006585# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6586for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6587 inttypes.h stdint.h unistd.h
6588do :
6589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6590ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6591"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006592if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006593 cat >>confdefs.h <<_ACEOF
6594#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6595_ACEOF
6596
6597fi
6598
6599done
6600
6601
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006602ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006603if test "x$ac_cv_type_off_t" = xyes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006604
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006605else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006606
6607cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006608#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006609_ACEOF
6610
6611fi
6612
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006613ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006614if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006615
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006616else
6617
6618cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006619#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006620_ACEOF
6621
6622fi
6623
6624
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006626$as_echo_n "checking for long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006627if ${ac_cv_type_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006628 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006629else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006631/* end confdefs.h. */
6632long long ll = 1LL; int i = 63;
6633int
6634main ()
6635{
6636long long llmax = (long long) -1;
6637 return ll << i | ll >> i | llmax / ll | llmax % ll;
6638 ;
6639 return 0;
6640}
6641_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006642if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006643 ac_cv_type_long_long=yes
6644else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006645 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006646fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006647rm -f core conftest.err conftest.$ac_objext \
6648 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006649fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006651$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006652 if test $ac_cv_type_long_long = yes; then
6653
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006654$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006655
6656 fi
6657
6658
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006660$as_echo_n "checking for long double... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006661if ${gt_cv_c_long_double+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006662 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006663else
6664 if test "$GCC" = yes; then
6665 gt_cv_c_long_double=yes
6666 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006668/* end confdefs.h. */
6669
6670 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6671 long double foo = 0.0;
6672 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6673 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6674
6675int
6676main ()
6677{
6678
6679 ;
6680 return 0;
6681}
6682_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006683if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006684 gt_cv_c_long_double=yes
6685else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006686 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006687fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006689 fi
6690fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006692$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006693 if test $gt_cv_c_long_double = yes; then
6694
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006695$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006696
6697 fi
6698
6699
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006701$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006702if ${gt_cv_c_wchar_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006703 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006704else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006706/* end confdefs.h. */
6707#include <stddef.h>
6708 wchar_t foo = (wchar_t)'\0';
6709int
6710main ()
6711{
6712
6713 ;
6714 return 0;
6715}
6716_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006717if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006718 gt_cv_c_wchar_t=yes
6719else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006720 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006721fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006723fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006725$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006726 if test $gt_cv_c_wchar_t = yes; then
6727
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006728$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006729
6730 fi
6731
6732
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006734$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006735if ${gt_cv_c_wint_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006736 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006737else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006739/* end confdefs.h. */
6740#include <wchar.h>
6741 wint_t foo = (wchar_t)'\0';
6742int
6743main ()
6744{
6745
6746 ;
6747 return 0;
6748}
6749_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006750if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006751 gt_cv_c_wint_t=yes
6752else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006753 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006754fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006756fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006758$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006759 if test $gt_cv_c_wint_t = yes; then
6760
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006761$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006762
6763 fi
6764
6765
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006767$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006768if ${jm_ac_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006769 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006770else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006772/* end confdefs.h. */
6773#include <sys/types.h>
6774#include <inttypes.h>
6775int
6776main ()
6777{
6778uintmax_t i = (uintmax_t) -1;
6779 ;
6780 return 0;
6781}
6782_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006783if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006784 jm_ac_cv_header_inttypes_h=yes
6785else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006786 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006787fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006789fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006791$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006792 if test $jm_ac_cv_header_inttypes_h = yes; then
6793
6794cat >>confdefs.h <<_ACEOF
6795#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6796_ACEOF
6797
6798 fi
6799
6800
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006802$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006803if ${jm_ac_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006804 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006805else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006807/* end confdefs.h. */
6808#include <sys/types.h>
6809#include <stdint.h>
6810int
6811main ()
6812{
6813uintmax_t i = (uintmax_t) -1;
6814 ;
6815 return 0;
6816}
6817_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006818if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006819 jm_ac_cv_header_stdint_h=yes
6820else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006821 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006822fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006824fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006826$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006827 if test $jm_ac_cv_header_stdint_h = yes; then
6828
6829cat >>confdefs.h <<_ACEOF
6830#define HAVE_STDINT_H_WITH_UINTMAX 1
6831_ACEOF
6832
6833 fi
6834
6835
6836
6837
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006839$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006840if ${gt_cv_c_intmax_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006841 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006842else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006844/* end confdefs.h. */
6845
6846#include <stddef.h>
6847#include <stdlib.h>
6848#if HAVE_STDINT_H_WITH_UINTMAX
6849#include <stdint.h>
6850#endif
6851#if HAVE_INTTYPES_H_WITH_UINTMAX
6852#include <inttypes.h>
6853#endif
6854
6855int
6856main ()
6857{
6858intmax_t x = -1;
6859 ;
6860 return 0;
6861}
6862_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006863if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006864 gt_cv_c_intmax_t=yes
6865else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006866 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006867fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006869fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006871$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006872 if test $gt_cv_c_intmax_t = yes; then
6873
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006874$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006875
6876 fi
6877
6878
6879
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006881$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006882if ${gt_cv_func_printf_posix+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006883 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006884else
6885
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006886 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006887
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006889/* end confdefs.h. */
6890
6891#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6892 notposix
6893#endif
6894
6895_ACEOF
6896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006897 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006898 gt_cv_func_printf_posix="guessing no"
6899else
6900 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006901fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006902rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006903
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006904
6905else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006907/* end confdefs.h. */
6908
6909#include <stdio.h>
6910#include <string.h>
6911/* The string "%2$d %1$d", with dollar characters protected from the shell's
6912 dollar expansion (possibly an autoconf bug). */
6913static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6914static char buf[100];
6915int main ()
6916{
6917 sprintf (buf, format, 33, 55);
6918 return (strcmp (buf, "55 33") != 0);
6919}
6920_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006921if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006922 gt_cv_func_printf_posix=yes
6923else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006924 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006925fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6927 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006928fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006929
Theodore Ts'oe1052142006-10-21 21:46:47 -04006930
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006931fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006933$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006934 case $gt_cv_func_printf_posix in
6935 *yes)
6936
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006937$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006938
6939 ;;
6940 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006941
6942# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6943# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006945$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006946if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006947 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006948else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006950/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006951#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006952int
6953main ()
6954{
6955char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006956 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006957 ;
6958 return 0;
6959}
6960_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006961if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006962 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006963else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006964 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006965fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006966rm -f core conftest.err conftest.$ac_objext \
6967 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006968fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006970$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006971if test $ac_cv_working_alloca_h = yes; then
6972
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006973$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006974
6975fi
6976
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006978$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006979if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006980 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006981else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006983/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006984#ifdef __GNUC__
6985# define alloca __builtin_alloca
6986#else
6987# ifdef _MSC_VER
6988# include <malloc.h>
6989# define alloca _alloca
6990# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006991# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006992# include <alloca.h>
6993# else
6994# ifdef _AIX
6995 #pragma alloca
6996# else
6997# ifndef alloca /* predefined by HP cc +Olibcalls */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006998void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006999# endif
7000# endif
7001# endif
7002# endif
7003#endif
7004
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007005int
7006main ()
7007{
7008char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007009 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007010 ;
7011 return 0;
7012}
7013_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007014if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007015 ac_cv_func_alloca_works=yes
7016else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007017 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007018fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007019rm -f core conftest.err conftest.$ac_objext \
7020 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007021fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007023$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007024
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007025if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007026
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007027$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007028
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007029else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007030 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7031# that cause trouble. Some versions do not even contain alloca or
7032# contain a buggy version. If you still want to use their alloca,
7033# use ar to extract alloca.o from them instead of compiling alloca.c.
7034
Theodore Ts'oe1052142006-10-21 21:46:47 -04007035ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007036
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007037$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007038
7039
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007041$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007042if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007043 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007044else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007046/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007047#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007048webecray
7049#else
7050wenotbecray
7051#endif
7052
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007053_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007055 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007056 ac_cv_os_cray=yes
7057else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007058 ac_cv_os_cray=no
7059fi
7060rm -f conftest*
7061
7062fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007064$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007065if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007066 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007068ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007069if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007070
7071cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007072#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007073_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007074
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007075 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007076fi
7077
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007078 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007079fi
7080
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007082$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007083if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007084 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007085else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007086 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007087 ac_cv_c_stack_direction=0
7088else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007090/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007091$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007092int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007093find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007094{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007095 int dir, dummy = 0;
7096 if (! addr)
7097 addr = &dummy;
7098 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7099 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7100 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007101}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007102
7103int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007104main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007105{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007106 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007107}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007108_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007109if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007110 ac_cv_c_stack_direction=1
7111else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007112 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007113fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7115 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007116fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007117
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007118fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007120$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007121cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007122#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007123_ACEOF
7124
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007125
7126fi
7127
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007128
7129
7130
7131 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007132do :
7133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007134ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7135"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007136if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007137 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007138#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007139_ACEOF
7140
7141fi
7142
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007143done
7144
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007145
7146
7147
7148
7149
7150
7151
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007152for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007153do :
7154 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007155if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007156 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007157#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007158_ACEOF
7159
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007160fi
7161done
7162
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007164$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007165if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007166 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007167else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007168 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007169 ac_cv_func_mmap_fixed_mapped=no
7170else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007172/* end confdefs.h. */
7173$ac_includes_default
7174/* malloc might have been renamed as rpl_malloc. */
7175#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007176
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007177/* Thanks to Mike Haertel and Jim Avera for this test.
7178 Here is a matrix of mmap possibilities:
7179 mmap private not fixed
7180 mmap private fixed at somewhere currently unmapped
7181 mmap private fixed at somewhere already mapped
7182 mmap shared not fixed
7183 mmap shared fixed at somewhere currently unmapped
7184 mmap shared fixed at somewhere already mapped
7185 For private mappings, we should verify that changes cannot be read()
7186 back from the file, nor mmap's back from the file at a different
7187 address. (There have been systems where private was not correctly
7188 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007189 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007190 like early versions of FreeBSD and possibly contemporary NetBSD.)
7191 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007192 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007193
7194 Grep wants private fixed already mapped.
7195 The main things grep needs to know about mmap are:
7196 * does it exist and is it safe to write into the mmap'd area
7197 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007198
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007199#include <fcntl.h>
7200#include <sys/mman.h>
7201
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007202#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007203char *malloc ();
7204#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007205
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007206/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007207#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007208# ifdef _SC_PAGESIZE
7209# define getpagesize() sysconf(_SC_PAGESIZE)
7210# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007211# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007212# include <sys/param.h>
7213# ifdef EXEC_PAGESIZE
7214# define getpagesize() EXEC_PAGESIZE
7215# else /* no EXEC_PAGESIZE */
7216# ifdef NBPG
7217# define getpagesize() NBPG * CLSIZE
7218# ifndef CLSIZE
7219# define CLSIZE 1
7220# endif /* no CLSIZE */
7221# else /* no NBPG */
7222# ifdef NBPC
7223# define getpagesize() NBPC
7224# else /* no NBPC */
7225# ifdef PAGESIZE
7226# define getpagesize() PAGESIZE
7227# endif /* PAGESIZE */
7228# endif /* no NBPC */
7229# endif /* no NBPG */
7230# endif /* no EXEC_PAGESIZE */
7231# else /* no HAVE_SYS_PARAM_H */
7232# define getpagesize() 8192 /* punt totally */
7233# endif /* no HAVE_SYS_PARAM_H */
7234# endif /* no _SC_PAGESIZE */
7235
7236#endif /* no HAVE_GETPAGESIZE */
7237
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007238int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007239main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007240{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007241 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007242 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007243 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007244 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007245
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007246 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007247
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007248 /* First, make a file with some known garbage in it. */
7249 data = (char *) malloc (pagesize);
7250 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007251 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007252 for (i = 0; i < pagesize; ++i)
7253 *(data + i) = rand ();
7254 umask (0);
7255 fd = creat ("conftest.mmap", 0600);
7256 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007257 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007258 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007259 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007260 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007261
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007262 /* Next, check that the tail of a page is zero-filled. File must have
7263 non-zero length, otherwise we risk SIGBUS for entire page. */
7264 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7265 if (fd2 < 0)
7266 return 4;
7267 cdata2 = "";
7268 if (write (fd2, cdata2, 1) != 1)
7269 return 5;
7270 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7271 if (data2 == MAP_FAILED)
7272 return 6;
7273 for (i = 0; i < pagesize; ++i)
7274 if (*(data2 + i))
7275 return 7;
7276 close (fd2);
7277 if (munmap (data2, pagesize))
7278 return 8;
7279
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007280 /* Next, try to mmap the file at a fixed address which already has
7281 something else allocated at it. If we can, also make sure that
7282 we see the same garbage. */
7283 fd = open ("conftest.mmap", O_RDWR);
7284 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007285 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007286 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7287 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007288 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007289 for (i = 0; i < pagesize; ++i)
7290 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007291 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007292
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007293 /* Finally, make sure that changes to the mapped area do not
7294 percolate back to the file as seen by read(). (This is a bug on
7295 some variants of i386 svr4.0.) */
7296 for (i = 0; i < pagesize; ++i)
7297 *(data2 + i) = *(data2 + i) + 1;
7298 data3 = (char *) malloc (pagesize);
7299 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007300 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007301 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007302 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007303 for (i = 0; i < pagesize; ++i)
7304 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007305 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007306 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007307 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007308}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007309_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007310if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007311 ac_cv_func_mmap_fixed_mapped=yes
7312else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007313 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007314fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007315rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7316 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007317fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007318
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007319fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007321$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007322if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007323
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007324$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007325
7326fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007327rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007328
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007329
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007330 { $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 +01007331$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 -04007332if ${ac_cv_gnu_library_2_1+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007333 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007334else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007336/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007337
7338#include <features.h>
7339#ifdef __GNU_LIBRARY__
7340 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7341 Lucky GNU user
7342 #endif
7343#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007344
7345_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007347 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007348 ac_cv_gnu_library_2_1=yes
7349else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007350 ac_cv_gnu_library_2_1=no
7351fi
7352rm -f conftest*
7353
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007354
7355
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007356fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007358$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007359
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007360 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007361
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007362
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007363
7364
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007366$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007367if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007368 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007369else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007370
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007371 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007372
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007373 # Guess based on the CPU.
7374 case "$host_cpu" in
7375 alpha* | i3456786 | m68k | s390*)
7376 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7377 *)
7378 gt_cv_int_divbyzero_sigfpe="guessing no";;
7379 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007380
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007381else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007383/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007384
7385#include <stdlib.h>
7386#include <signal.h>
7387
7388static void
7389#ifdef __cplusplus
7390sigfpe_handler (int sig)
7391#else
7392sigfpe_handler (sig) int sig;
7393#endif
7394{
7395 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7396 exit (sig != SIGFPE);
7397}
7398
7399int x = 1;
7400int y = 0;
7401int z;
7402int nan;
7403
7404int main ()
7405{
7406 signal (SIGFPE, sigfpe_handler);
7407/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7408#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7409 signal (SIGTRAP, sigfpe_handler);
7410#endif
7411/* Linux/SPARC yields signal SIGILL. */
7412#if defined (__sparc__) && defined (__linux__)
7413 signal (SIGILL, sigfpe_handler);
7414#endif
7415
7416 z = x / y;
7417 nan = y / y;
7418 exit (1);
7419}
7420
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007421_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007422if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007423 gt_cv_int_divbyzero_sigfpe=yes
7424else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007425 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007426fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7428 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007429fi
7430
Theodore Ts'oe1052142006-10-21 21:46:47 -04007431
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007432fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007434$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007435 case "$gt_cv_int_divbyzero_sigfpe" in
7436 *yes) value=1;;
7437 *) value=0;;
7438 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007439
7440cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007441#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007442_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007443
7444
7445
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007447$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007448if ${ac_cv_type_unsigned_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007449 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007450else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007452/* end confdefs.h. */
7453unsigned long long ull = 1ULL; int i = 63;
7454int
7455main ()
7456{
7457unsigned long long ullmax = (unsigned long long) -1;
7458 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7459 ;
7460 return 0;
7461}
7462_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007463if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007464 ac_cv_type_unsigned_long_long=yes
7465else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007466 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007467fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007468rm -f core conftest.err conftest.$ac_objext \
7469 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007470fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007472$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007473 if test $ac_cv_type_unsigned_long_long = yes; then
7474
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007475$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007476
7477 fi
7478
7479
7480
7481
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007482 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 -05007483
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007484 test $ac_cv_type_unsigned_long_long = yes \
7485 && ac_type='unsigned long long' \
7486 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007487
7488cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007489#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007490_ACEOF
7491
7492 else
7493
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007494$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007495
7496 fi
7497
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007498
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007500$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007501if ${gt_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007502 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007503else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007504
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007506/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007507#include <sys/types.h>
7508#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007509int
7510main ()
7511{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007512
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007513 ;
7514 return 0;
7515}
7516_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007517if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007518 gt_cv_header_inttypes_h=yes
7519else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007520 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007521fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007523
7524fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007526$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007527 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007528
7529cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007530#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007531_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007532
7533 fi
7534
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007535
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007536
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007537 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007538 { $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 +01007539$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007540if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007541 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007542else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007543
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007545/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007546#include <inttypes.h>
7547#ifdef PRId32
7548char *p = PRId32;
7549#endif
7550
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007551int
7552main ()
7553{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007554
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007555 ;
7556 return 0;
7557}
7558_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007559if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007560 gt_cv_inttypes_pri_broken=no
7561else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007562 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007563fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007565
7566fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007568$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007569 fi
7570 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007571
7572cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007573#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007574_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007575
7576 fi
7577
7578
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007579 for ac_header in stdint.h
7580do :
7581 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 -04007582if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007583 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007584#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007585_ACEOF
7586
7587fi
7588
7589done
7590
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007592$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007593 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007595/* end confdefs.h. */
7596
7597#include <limits.h>
7598#if HAVE_STDINT_H
7599#include <stdint.h>
7600#endif
7601#ifdef SIZE_MAX
7602Found it
7603#endif
7604
7605_ACEOF
7606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007607 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007608 result=yes
7609fi
7610rm -f conftest*
7611
7612 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007613 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 -05007614
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007615else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007616 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007617fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007618
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007619
7620 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7621
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007622else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007623 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007624fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007625
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007626
7627 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7628
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007629else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007630 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007631fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007632
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007633
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007634 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007636/* end confdefs.h. */
7637#include <stddef.h>
7638 extern size_t foo;
7639 extern unsigned long foo;
7640
7641int
7642main ()
7643{
7644
7645 ;
7646 return 0;
7647}
7648_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007649if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007650 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007651fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007653 fi
7654 if test -z "$result"; then
7655 if test "$fits_in_uint" = 1; then
7656 result="$res_hi$res_lo"U
7657 else
7658 result="$res_hi$res_lo"UL
7659 fi
7660 else
7661 result='~(size_t)0'
7662 fi
7663 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007665$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007666 if test "$result" != yes; then
7667
7668cat >>confdefs.h <<_ACEOF
7669#define SIZE_MAX $result
7670_ACEOF
7671
7672 fi
7673
7674
7675
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007676 for ac_header in stdint.h
7677do :
7678 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 -04007679if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007680 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007681#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007682_ACEOF
7683
7684fi
7685
7686done
7687
7688
7689
7690 if test "X$prefix" = "XNONE"; then
7691 acl_final_prefix="$ac_default_prefix"
7692 else
7693 acl_final_prefix="$prefix"
7694 fi
7695 if test "X$exec_prefix" = "XNONE"; then
7696 acl_final_exec_prefix='${prefix}'
7697 else
7698 acl_final_exec_prefix="$exec_prefix"
7699 fi
7700 acl_save_prefix="$prefix"
7701 prefix="$acl_final_prefix"
7702 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7703 prefix="$acl_save_prefix"
7704
7705
Theodore Ts'oe1052142006-10-21 21:46:47 -04007706# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007707if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007708 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007709else
7710 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007711fi
7712
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007713# Prepare PATH_SEPARATOR.
7714# The user is always right.
7715if test "${PATH_SEPARATOR+set}" != set; then
7716 echo "#! /bin/sh" >conf$$.sh
7717 echo "exit 0" >>conf$$.sh
7718 chmod +x conf$$.sh
7719 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7720 PATH_SEPARATOR=';'
7721 else
7722 PATH_SEPARATOR=:
7723 fi
7724 rm -f conf$$.sh
7725fi
7726ac_prog=ld
7727if test "$GCC" = yes; then
7728 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007730$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007731 case $host in
7732 *-*-mingw*)
7733 # gcc leaves a trailing carriage return which upsets mingw
7734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7735 *)
7736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7737 esac
7738 case $ac_prog in
7739 # Accept absolute paths.
7740 [\\/]* | [A-Za-z]:[\\/]*)
7741 re_direlt='/[^/][^/]*/\.\./'
7742 # Canonicalize the path of ld
7743 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7744 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7745 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7746 done
7747 test -z "$LD" && LD="$ac_prog"
7748 ;;
7749 "")
7750 # If it fails, then pretend we aren't using GCC.
7751 ac_prog=ld
7752 ;;
7753 *)
7754 # If it is relative, then search for the first ld in PATH.
7755 with_gnu_ld=unknown
7756 ;;
7757 esac
7758elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007760$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007761else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007763$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007764fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007765if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007766 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007767else
7768 if test -z "$LD"; then
7769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7770 for ac_dir in $PATH; do
7771 test -z "$ac_dir" && ac_dir=.
7772 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7773 acl_cv_path_LD="$ac_dir/$ac_prog"
7774 # Check to see if the program is GNU ld. I'd rather use --version,
7775 # but apparently some GNU ld's only accept -v.
7776 # Break only if it was the GNU/non-GNU ld that we prefer.
7777 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7778 *GNU* | *'with BFD'*)
7779 test "$with_gnu_ld" != no && break ;;
7780 *)
7781 test "$with_gnu_ld" != yes && break ;;
7782 esac
7783 fi
7784 done
7785 IFS="$ac_save_ifs"
7786else
7787 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7788fi
7789fi
7790
7791LD="$acl_cv_path_LD"
7792if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007794$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007795else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007797$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007798fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007799test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007801$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007802if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007803 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007804else
7805 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7806case `$LD -v 2>&1 </dev/null` in
7807*GNU* | *'with BFD'*)
7808 acl_cv_prog_gnu_ld=yes ;;
7809*)
7810 acl_cv_prog_gnu_ld=no ;;
7811esac
7812fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007814$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007815with_gnu_ld=$acl_cv_prog_gnu_ld
7816
7817
7818
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007820$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007821if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007822 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007823else
7824
7825 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7826 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7827 . ./conftest.sh
7828 rm -f ./conftest.sh
7829 acl_cv_rpath=done
7830
7831fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007833$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007834 wl="$acl_cv_wl"
7835 libext="$acl_cv_libext"
7836 shlibext="$acl_cv_shlibext"
7837 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7838 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7839 hardcode_direct="$acl_cv_hardcode_direct"
7840 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007841 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007842if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007843 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007844else
7845 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007846fi
7847
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007848
7849
7850
7851
7852
7853
7854
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007855 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007856
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007857 acl_save_prefix="$prefix"
7858 prefix="$acl_final_prefix"
7859 acl_save_exec_prefix="$exec_prefix"
7860 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007861
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007862 eval additional_includedir=\"$includedir\"
7863 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007864
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007865 exec_prefix="$acl_save_exec_prefix"
7866 prefix="$acl_save_prefix"
7867
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007868
Theodore Ts'oe1052142006-10-21 21:46:47 -04007869# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007870if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007871 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007872 if test "X$withval" = "Xno"; then
7873 use_additional=no
7874 else
7875 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007876
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007877 acl_save_prefix="$prefix"
7878 prefix="$acl_final_prefix"
7879 acl_save_exec_prefix="$exec_prefix"
7880 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007881
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007882 eval additional_includedir=\"$includedir\"
7883 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007884
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007885 exec_prefix="$acl_save_exec_prefix"
7886 prefix="$acl_save_prefix"
7887
7888 else
7889 additional_includedir="$withval/include"
7890 additional_libdir="$withval/lib"
7891 fi
7892 fi
7893
Theodore Ts'oe1052142006-10-21 21:46:47 -04007894fi
7895
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007896 LIBICONV=
7897 LTLIBICONV=
7898 INCICONV=
7899 rpathdirs=
7900 ltrpathdirs=
7901 names_already_handled=
7902 names_next_round='iconv '
7903 while test -n "$names_next_round"; do
7904 names_this_round="$names_next_round"
7905 names_next_round=
7906 for name in $names_this_round; do
7907 already_handled=
7908 for n in $names_already_handled; do
7909 if test "$n" = "$name"; then
7910 already_handled=yes
7911 break
7912 fi
7913 done
7914 if test -z "$already_handled"; then
7915 names_already_handled="$names_already_handled $name"
7916 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7917 eval value=\"\$HAVE_LIB$uppername\"
7918 if test -n "$value"; then
7919 if test "$value" = yes; then
7920 eval value=\"\$LIB$uppername\"
7921 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7922 eval value=\"\$LTLIB$uppername\"
7923 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7924 else
7925 :
7926 fi
7927 else
7928 found_dir=
7929 found_la=
7930 found_so=
7931 found_a=
7932 if test $use_additional = yes; then
7933 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7934 found_dir="$additional_libdir"
7935 found_so="$additional_libdir/lib$name.$shlibext"
7936 if test -f "$additional_libdir/lib$name.la"; then
7937 found_la="$additional_libdir/lib$name.la"
7938 fi
7939 else
7940 if test -f "$additional_libdir/lib$name.$libext"; then
7941 found_dir="$additional_libdir"
7942 found_a="$additional_libdir/lib$name.$libext"
7943 if test -f "$additional_libdir/lib$name.la"; then
7944 found_la="$additional_libdir/lib$name.la"
7945 fi
7946 fi
7947 fi
7948 fi
7949 if test "X$found_dir" = "X"; then
7950 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007951
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007952 acl_save_prefix="$prefix"
7953 prefix="$acl_final_prefix"
7954 acl_save_exec_prefix="$exec_prefix"
7955 exec_prefix="$acl_final_exec_prefix"
7956 eval x=\"$x\"
7957 exec_prefix="$acl_save_exec_prefix"
7958 prefix="$acl_save_prefix"
7959
7960 case "$x" in
7961 -L*)
7962 dir=`echo "X$x" | sed -e 's/^X-L//'`
7963 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7964 found_dir="$dir"
7965 found_so="$dir/lib$name.$shlibext"
7966 if test -f "$dir/lib$name.la"; then
7967 found_la="$dir/lib$name.la"
7968 fi
7969 else
7970 if test -f "$dir/lib$name.$libext"; then
7971 found_dir="$dir"
7972 found_a="$dir/lib$name.$libext"
7973 if test -f "$dir/lib$name.la"; then
7974 found_la="$dir/lib$name.la"
7975 fi
7976 fi
7977 fi
7978 ;;
7979 esac
7980 if test "X$found_dir" != "X"; then
7981 break
7982 fi
7983 done
7984 fi
7985 if test "X$found_dir" != "X"; then
7986 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7987 if test "X$found_so" != "X"; then
7988 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7989 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7990 else
7991 haveit=
7992 for x in $ltrpathdirs; do
7993 if test "X$x" = "X$found_dir"; then
7994 haveit=yes
7995 break
7996 fi
7997 done
7998 if test -z "$haveit"; then
7999 ltrpathdirs="$ltrpathdirs $found_dir"
8000 fi
8001 if test "$hardcode_direct" = yes; then
8002 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8003 else
8004 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8005 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8006 haveit=
8007 for x in $rpathdirs; do
8008 if test "X$x" = "X$found_dir"; then
8009 haveit=yes
8010 break
8011 fi
8012 done
8013 if test -z "$haveit"; then
8014 rpathdirs="$rpathdirs $found_dir"
8015 fi
8016 else
8017 haveit=
8018 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008019
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008020 acl_save_prefix="$prefix"
8021 prefix="$acl_final_prefix"
8022 acl_save_exec_prefix="$exec_prefix"
8023 exec_prefix="$acl_final_exec_prefix"
8024 eval x=\"$x\"
8025 exec_prefix="$acl_save_exec_prefix"
8026 prefix="$acl_save_prefix"
8027
8028 if test "X$x" = "X-L$found_dir"; then
8029 haveit=yes
8030 break
8031 fi
8032 done
8033 if test -z "$haveit"; then
8034 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8035 fi
8036 if test "$hardcode_minus_L" != no; then
8037 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8038 else
8039 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8040 fi
8041 fi
8042 fi
8043 fi
8044 else
8045 if test "X$found_a" != "X"; then
8046 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8047 else
8048 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8049 fi
8050 fi
8051 additional_includedir=
8052 case "$found_dir" in
8053 */lib | */lib/)
8054 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8055 additional_includedir="$basedir/include"
8056 ;;
8057 esac
8058 if test "X$additional_includedir" != "X"; then
8059 if test "X$additional_includedir" != "X/usr/include"; then
8060 haveit=
8061 if test "X$additional_includedir" = "X/usr/local/include"; then
8062 if test -n "$GCC"; then
8063 case $host_os in
8064 linux*) haveit=yes;;
8065 esac
8066 fi
8067 fi
8068 if test -z "$haveit"; then
8069 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008070
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008071 acl_save_prefix="$prefix"
8072 prefix="$acl_final_prefix"
8073 acl_save_exec_prefix="$exec_prefix"
8074 exec_prefix="$acl_final_exec_prefix"
8075 eval x=\"$x\"
8076 exec_prefix="$acl_save_exec_prefix"
8077 prefix="$acl_save_prefix"
8078
8079 if test "X$x" = "X-I$additional_includedir"; then
8080 haveit=yes
8081 break
8082 fi
8083 done
8084 if test -z "$haveit"; then
8085 if test -d "$additional_includedir"; then
8086 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8087 fi
8088 fi
8089 fi
8090 fi
8091 fi
8092 if test -n "$found_la"; then
8093 save_libdir="$libdir"
8094 case "$found_la" in
8095 */* | *\\*) . "$found_la" ;;
8096 *) . "./$found_la" ;;
8097 esac
8098 libdir="$save_libdir"
8099 for dep in $dependency_libs; do
8100 case "$dep" in
8101 -L*)
8102 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8103 if test "X$additional_libdir" != "X/usr/lib"; then
8104 haveit=
8105 if test "X$additional_libdir" = "X/usr/local/lib"; then
8106 if test -n "$GCC"; then
8107 case $host_os in
8108 linux*) haveit=yes;;
8109 esac
8110 fi
8111 fi
8112 if test -z "$haveit"; then
8113 haveit=
8114 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008115
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008116 acl_save_prefix="$prefix"
8117 prefix="$acl_final_prefix"
8118 acl_save_exec_prefix="$exec_prefix"
8119 exec_prefix="$acl_final_exec_prefix"
8120 eval x=\"$x\"
8121 exec_prefix="$acl_save_exec_prefix"
8122 prefix="$acl_save_prefix"
8123
8124 if test "X$x" = "X-L$additional_libdir"; then
8125 haveit=yes
8126 break
8127 fi
8128 done
8129 if test -z "$haveit"; then
8130 if test -d "$additional_libdir"; then
8131 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8132 fi
8133 fi
8134 haveit=
8135 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008136
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008137 acl_save_prefix="$prefix"
8138 prefix="$acl_final_prefix"
8139 acl_save_exec_prefix="$exec_prefix"
8140 exec_prefix="$acl_final_exec_prefix"
8141 eval x=\"$x\"
8142 exec_prefix="$acl_save_exec_prefix"
8143 prefix="$acl_save_prefix"
8144
8145 if test "X$x" = "X-L$additional_libdir"; then
8146 haveit=yes
8147 break
8148 fi
8149 done
8150 if test -z "$haveit"; then
8151 if test -d "$additional_libdir"; then
8152 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8153 fi
8154 fi
8155 fi
8156 fi
8157 ;;
8158 -R*)
8159 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8160 if test "$enable_rpath" != no; then
8161 haveit=
8162 for x in $rpathdirs; do
8163 if test "X$x" = "X$dir"; then
8164 haveit=yes
8165 break
8166 fi
8167 done
8168 if test -z "$haveit"; then
8169 rpathdirs="$rpathdirs $dir"
8170 fi
8171 haveit=
8172 for x in $ltrpathdirs; do
8173 if test "X$x" = "X$dir"; then
8174 haveit=yes
8175 break
8176 fi
8177 done
8178 if test -z "$haveit"; then
8179 ltrpathdirs="$ltrpathdirs $dir"
8180 fi
8181 fi
8182 ;;
8183 -l*)
8184 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8185 ;;
8186 *.la)
8187 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8188 ;;
8189 *)
8190 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8191 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8192 ;;
8193 esac
8194 done
8195 fi
8196 else
8197 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8198 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8199 fi
8200 fi
8201 fi
8202 done
8203 done
8204 if test "X$rpathdirs" != "X"; then
8205 if test -n "$hardcode_libdir_separator"; then
8206 alldirs=
8207 for found_dir in $rpathdirs; do
8208 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8209 done
8210 acl_save_libdir="$libdir"
8211 libdir="$alldirs"
8212 eval flag=\"$hardcode_libdir_flag_spec\"
8213 libdir="$acl_save_libdir"
8214 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8215 else
8216 for found_dir in $rpathdirs; do
8217 acl_save_libdir="$libdir"
8218 libdir="$found_dir"
8219 eval flag=\"$hardcode_libdir_flag_spec\"
8220 libdir="$acl_save_libdir"
8221 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8222 done
8223 fi
8224 fi
8225 if test "X$ltrpathdirs" != "X"; then
8226 for found_dir in $ltrpathdirs; do
8227 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8228 done
8229 fi
8230
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008231
8232
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008233
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008234
8235
8236
8237
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008238 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008239if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008240
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008241else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008242
8243$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008244
8245
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008246fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008247
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008248 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 -04008249stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008250do :
8251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8252ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008253if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008254 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008255#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008256_ACEOF
8257
8258fi
8259
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008260done
8261
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008262 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008263mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8264strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8265__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008266do :
8267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8268ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008269if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008270 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008271#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008272_ACEOF
8273
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008274fi
8275done
8276
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008277
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008278
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008280$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008281if ${ac_cv_have_decl__snprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008282 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008283else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008285/* end confdefs.h. */
8286#include <stdio.h>
8287int
8288main ()
8289{
8290
8291#ifndef _snprintf
8292 char *p = (char *) _snprintf;
8293#endif
8294
8295 ;
8296 return 0;
8297}
8298_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008299if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008300 ac_cv_have_decl__snprintf=yes
8301else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008302 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008303fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008305fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008307$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008308 if test $ac_cv_have_decl__snprintf = yes; then
8309 gt_value=1
8310 else
8311 gt_value=0
8312 fi
8313
8314cat >>confdefs.h <<_ACEOF
8315#define HAVE_DECL__SNPRINTF $gt_value
8316_ACEOF
8317
8318
8319
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008321$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008322if ${ac_cv_have_decl__snwprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008323 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008324else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008326/* end confdefs.h. */
8327#include <stdio.h>
8328int
8329main ()
8330{
8331
8332#ifndef _snwprintf
8333 char *p = (char *) _snwprintf;
8334#endif
8335
8336 ;
8337 return 0;
8338}
8339_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008340if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008341 ac_cv_have_decl__snwprintf=yes
8342else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008343 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008344fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008346fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008348$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008349 if test $ac_cv_have_decl__snwprintf = yes; then
8350 gt_value=1
8351 else
8352 gt_value=0
8353 fi
8354
8355cat >>confdefs.h <<_ACEOF
8356#define HAVE_DECL__SNWPRINTF $gt_value
8357_ACEOF
8358
8359
8360
8361
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008363$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008364if ${ac_cv_have_decl_feof_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008365 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008366else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008368/* end confdefs.h. */
8369#include <stdio.h>
8370int
8371main ()
8372{
8373
8374#ifndef feof_unlocked
8375 char *p = (char *) feof_unlocked;
8376#endif
8377
8378 ;
8379 return 0;
8380}
8381_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008382if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008383 ac_cv_have_decl_feof_unlocked=yes
8384else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008385 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008386fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008388fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008390$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008391 if test $ac_cv_have_decl_feof_unlocked = yes; then
8392 gt_value=1
8393 else
8394 gt_value=0
8395 fi
8396
8397cat >>confdefs.h <<_ACEOF
8398#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8399_ACEOF
8400
8401
8402
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008404$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008405if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008406 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008407else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008409/* end confdefs.h. */
8410#include <stdio.h>
8411int
8412main ()
8413{
8414
8415#ifndef fgets_unlocked
8416 char *p = (char *) fgets_unlocked;
8417#endif
8418
8419 ;
8420 return 0;
8421}
8422_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008423if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008424 ac_cv_have_decl_fgets_unlocked=yes
8425else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008426 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008427fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008429fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008431$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008432 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8433 gt_value=1
8434 else
8435 gt_value=0
8436 fi
8437
8438cat >>confdefs.h <<_ACEOF
8439#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8440_ACEOF
8441
8442
8443
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008445$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008446if ${ac_cv_have_decl_getc_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008447 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008448else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008450/* end confdefs.h. */
8451#include <stdio.h>
8452int
8453main ()
8454{
8455
8456#ifndef getc_unlocked
8457 char *p = (char *) getc_unlocked;
8458#endif
8459
8460 ;
8461 return 0;
8462}
8463_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008464if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008465 ac_cv_have_decl_getc_unlocked=yes
8466else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008467 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008468fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008470fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008472$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008473 if test $ac_cv_have_decl_getc_unlocked = yes; then
8474 gt_value=1
8475 else
8476 gt_value=0
8477 fi
8478
8479cat >>confdefs.h <<_ACEOF
8480#define HAVE_DECL_GETC_UNLOCKED $gt_value
8481_ACEOF
8482
8483
8484
8485 case $gt_cv_func_printf_posix in
8486 *yes) HAVE_POSIX_PRINTF=1 ;;
8487 *) HAVE_POSIX_PRINTF=0 ;;
8488 esac
8489
8490 if test "$ac_cv_func_asprintf" = yes; then
8491 HAVE_ASPRINTF=1
8492 else
8493 HAVE_ASPRINTF=0
8494 fi
8495
8496 if test "$ac_cv_func_snprintf" = yes; then
8497 HAVE_SNPRINTF=1
8498 else
8499 HAVE_SNPRINTF=0
8500 fi
8501
8502 if test "$ac_cv_func_wprintf" = yes; then
8503 HAVE_WPRINTF=1
8504 else
8505 HAVE_WPRINTF=0
8506 fi
8507
8508
8509
8510
8511
8512
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008513
8514 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008515
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008516 for element in $INCICONV; do
8517 haveit=
8518 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008519
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008520 acl_save_prefix="$prefix"
8521 prefix="$acl_final_prefix"
8522 acl_save_exec_prefix="$exec_prefix"
8523 exec_prefix="$acl_final_exec_prefix"
8524 eval x=\"$x\"
8525 exec_prefix="$acl_save_exec_prefix"
8526 prefix="$acl_save_prefix"
8527
8528 if test "X$x" = "X$element"; then
8529 haveit=yes
8530 break
8531 fi
8532 done
8533 if test -z "$haveit"; then
8534 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8535 fi
8536 done
8537
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008538
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008540$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008541if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008542 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008543else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008544
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008545 am_cv_func_iconv="no, consider installing GNU libiconv"
8546 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008548/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008549#include <stdlib.h>
8550#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008551int
8552main ()
8553{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008554iconv_t cd = iconv_open("","");
8555 iconv(cd,NULL,NULL,NULL,NULL);
8556 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008557 ;
8558 return 0;
8559}
8560_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008561if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008562 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008563fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008564rm -f core conftest.err conftest.$ac_objext \
8565 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008566 if test "$am_cv_func_iconv" != yes; then
8567 am_save_LIBS="$LIBS"
8568 LIBS="$LIBS $LIBICONV"
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_lib_iconv=yes
8585 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008586fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008587rm -f core conftest.err conftest.$ac_objext \
8588 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008589 LIBS="$am_save_LIBS"
8590 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008591
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008592fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008594$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008595 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008596
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008597$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008598
8599 fi
8600 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008602$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008604$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008605 else
8606 CPPFLAGS="$am_save_CPPFLAGS"
8607 LIBICONV=
8608 LTLIBICONV=
8609 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008610
8611
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008612
8613 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008615$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008616 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008617 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008618else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008619
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008621/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008622
8623#include <stdlib.h>
8624#include <iconv.h>
8625extern
8626#ifdef __cplusplus
8627"C"
8628#endif
8629#if defined(__STDC__) || defined(__cplusplus)
8630size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8631#else
8632size_t iconv();
8633#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008634
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008635int
8636main ()
8637{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008638
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008639 ;
8640 return 0;
8641}
8642_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008643if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008644 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008645else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008646 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008647fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008649 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 +00008650fi
8651
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008652 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008654 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008655$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008656 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008657
8658cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008659#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008660_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008661
8662 fi
8663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008664
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008666$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008667if ${am_cv_langinfo_codeset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008668 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008669else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008671/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008672#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008673int
8674main ()
8675{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008676char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008677 ;
8678 return 0;
8679}
8680_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008681if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008682 am_cv_langinfo_codeset=yes
8683else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008684 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008685fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008686rm -f core conftest.err conftest.$ac_objext \
8687 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008688
8689fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008691$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008692 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008693
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008694$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008695
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008696 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008697
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008698 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008699
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008701$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008702if ${am_cv_val_LC_MESSAGES+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008703 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008704else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008706/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008707#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008708int
8709main ()
8710{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008711return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008712 ;
8713 return 0;
8714}
8715_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008716if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008717 am_cv_val_LC_MESSAGES=yes
8718else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008719 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008720fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008721rm -f core conftest.err conftest.$ac_objext \
8722 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008723fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008725$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008726 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008727
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008728$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008729
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008730 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008731
8732 fi
8733
8734 for ac_prog in bison
8735do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008736 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008737set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008739$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008740if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008741 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008742else
8743 if test -n "$INTLBISON"; then
8744 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8745else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747for as_dir in $PATH
8748do
8749 IFS=$as_save_IFS
8750 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008751 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008753 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008755 break 2
8756 fi
8757done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008758 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008759IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008760
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008761fi
8762fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008763INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008764if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008766$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008767else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008769$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008770fi
8771
Theodore Ts'oe1052142006-10-21 21:46:47 -04008772
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008773 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008774done
8775
8776 if test -z "$INTLBISON"; then
8777 ac_verc_fail=yes
8778 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008780$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008781 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8782 case $ac_prog_version in
8783 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8784 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8785 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8786 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8787 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008789$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008790 fi
8791 if test $ac_verc_fail = yes; then
8792 INTLBISON=:
8793 fi
8794
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008795
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008796
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008797
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008798
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008799
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008800
8801
8802
8803
8804
8805
8806
8807
8808
8809
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008811$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008812 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008813if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008814 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008815else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008816 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008817fi
8818
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008820$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008821
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008822
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008823
8824
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008825 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008826 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008827
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008828 LIBINTL=
8829 LTLIBINTL=
8830 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008831
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008832 if test "$USE_NLS" = "yes"; then
8833 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008834
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008836$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008837
Theodore Ts'oe1052142006-10-21 21:46:47 -04008838# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008839if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008840 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008841else
8842 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008843fi
8844
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008846$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008847
8848 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8849 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008850
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008851
8852
8853
8854
8855
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008857$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008858if ${gt_cv_func_gnugettext1_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008859 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008860else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008862/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008863#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008864extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008865extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008866int
8867main ()
8868{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008869bindtextdomain ("", "");
8870return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008871 ;
8872 return 0;
8873}
8874_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008875if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008876 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008877else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008878 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008879fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008880rm -f core conftest.err conftest.$ac_objext \
8881 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008882fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008884$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008885
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008886 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008887
8888
8889
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008890 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008891
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008892 acl_save_prefix="$prefix"
8893 prefix="$acl_final_prefix"
8894 acl_save_exec_prefix="$exec_prefix"
8895 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008896
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008897 eval additional_includedir=\"$includedir\"
8898 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008899
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008900 exec_prefix="$acl_save_exec_prefix"
8901 prefix="$acl_save_prefix"
8902
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008903
Theodore Ts'oe1052142006-10-21 21:46:47 -04008904# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008905if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008906 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008907 if test "X$withval" = "Xno"; then
8908 use_additional=no
8909 else
8910 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008911
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008912 acl_save_prefix="$prefix"
8913 prefix="$acl_final_prefix"
8914 acl_save_exec_prefix="$exec_prefix"
8915 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008916
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008917 eval additional_includedir=\"$includedir\"
8918 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008919
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008920 exec_prefix="$acl_save_exec_prefix"
8921 prefix="$acl_save_prefix"
8922
8923 else
8924 additional_includedir="$withval/include"
8925 additional_libdir="$withval/lib"
8926 fi
8927 fi
8928
Theodore Ts'oe1052142006-10-21 21:46:47 -04008929fi
8930
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008931 LIBINTL=
8932 LTLIBINTL=
8933 INCINTL=
8934 rpathdirs=
8935 ltrpathdirs=
8936 names_already_handled=
8937 names_next_round='intl '
8938 while test -n "$names_next_round"; do
8939 names_this_round="$names_next_round"
8940 names_next_round=
8941 for name in $names_this_round; do
8942 already_handled=
8943 for n in $names_already_handled; do
8944 if test "$n" = "$name"; then
8945 already_handled=yes
8946 break
8947 fi
8948 done
8949 if test -z "$already_handled"; then
8950 names_already_handled="$names_already_handled $name"
8951 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8952 eval value=\"\$HAVE_LIB$uppername\"
8953 if test -n "$value"; then
8954 if test "$value" = yes; then
8955 eval value=\"\$LIB$uppername\"
8956 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8957 eval value=\"\$LTLIB$uppername\"
8958 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8959 else
8960 :
8961 fi
8962 else
8963 found_dir=
8964 found_la=
8965 found_so=
8966 found_a=
8967 if test $use_additional = yes; then
8968 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8969 found_dir="$additional_libdir"
8970 found_so="$additional_libdir/lib$name.$shlibext"
8971 if test -f "$additional_libdir/lib$name.la"; then
8972 found_la="$additional_libdir/lib$name.la"
8973 fi
8974 else
8975 if test -f "$additional_libdir/lib$name.$libext"; then
8976 found_dir="$additional_libdir"
8977 found_a="$additional_libdir/lib$name.$libext"
8978 if test -f "$additional_libdir/lib$name.la"; then
8979 found_la="$additional_libdir/lib$name.la"
8980 fi
8981 fi
8982 fi
8983 fi
8984 if test "X$found_dir" = "X"; then
8985 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008986
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008987 acl_save_prefix="$prefix"
8988 prefix="$acl_final_prefix"
8989 acl_save_exec_prefix="$exec_prefix"
8990 exec_prefix="$acl_final_exec_prefix"
8991 eval x=\"$x\"
8992 exec_prefix="$acl_save_exec_prefix"
8993 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008994
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008995 case "$x" in
8996 -L*)
8997 dir=`echo "X$x" | sed -e 's/^X-L//'`
8998 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8999 found_dir="$dir"
9000 found_so="$dir/lib$name.$shlibext"
9001 if test -f "$dir/lib$name.la"; then
9002 found_la="$dir/lib$name.la"
9003 fi
9004 else
9005 if test -f "$dir/lib$name.$libext"; then
9006 found_dir="$dir"
9007 found_a="$dir/lib$name.$libext"
9008 if test -f "$dir/lib$name.la"; then
9009 found_la="$dir/lib$name.la"
9010 fi
9011 fi
9012 fi
9013 ;;
9014 esac
9015 if test "X$found_dir" != "X"; then
9016 break
9017 fi
9018 done
9019 fi
9020 if test "X$found_dir" != "X"; then
9021 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9022 if test "X$found_so" != "X"; then
9023 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9024 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9025 else
9026 haveit=
9027 for x in $ltrpathdirs; do
9028 if test "X$x" = "X$found_dir"; then
9029 haveit=yes
9030 break
9031 fi
9032 done
9033 if test -z "$haveit"; then
9034 ltrpathdirs="$ltrpathdirs $found_dir"
9035 fi
9036 if test "$hardcode_direct" = yes; then
9037 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9038 else
9039 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9040 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9041 haveit=
9042 for x in $rpathdirs; do
9043 if test "X$x" = "X$found_dir"; then
9044 haveit=yes
9045 break
9046 fi
9047 done
9048 if test -z "$haveit"; then
9049 rpathdirs="$rpathdirs $found_dir"
9050 fi
9051 else
9052 haveit=
9053 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009054
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009055 acl_save_prefix="$prefix"
9056 prefix="$acl_final_prefix"
9057 acl_save_exec_prefix="$exec_prefix"
9058 exec_prefix="$acl_final_exec_prefix"
9059 eval x=\"$x\"
9060 exec_prefix="$acl_save_exec_prefix"
9061 prefix="$acl_save_prefix"
9062
9063 if test "X$x" = "X-L$found_dir"; then
9064 haveit=yes
9065 break
9066 fi
9067 done
9068 if test -z "$haveit"; then
9069 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9070 fi
9071 if test "$hardcode_minus_L" != no; then
9072 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9073 else
9074 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9075 fi
9076 fi
9077 fi
9078 fi
9079 else
9080 if test "X$found_a" != "X"; then
9081 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9082 else
9083 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9084 fi
9085 fi
9086 additional_includedir=
9087 case "$found_dir" in
9088 */lib | */lib/)
9089 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9090 additional_includedir="$basedir/include"
9091 ;;
9092 esac
9093 if test "X$additional_includedir" != "X"; then
9094 if test "X$additional_includedir" != "X/usr/include"; then
9095 haveit=
9096 if test "X$additional_includedir" = "X/usr/local/include"; then
9097 if test -n "$GCC"; then
9098 case $host_os in
9099 linux*) haveit=yes;;
9100 esac
9101 fi
9102 fi
9103 if test -z "$haveit"; then
9104 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009105
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009106 acl_save_prefix="$prefix"
9107 prefix="$acl_final_prefix"
9108 acl_save_exec_prefix="$exec_prefix"
9109 exec_prefix="$acl_final_exec_prefix"
9110 eval x=\"$x\"
9111 exec_prefix="$acl_save_exec_prefix"
9112 prefix="$acl_save_prefix"
9113
9114 if test "X$x" = "X-I$additional_includedir"; then
9115 haveit=yes
9116 break
9117 fi
9118 done
9119 if test -z "$haveit"; then
9120 if test -d "$additional_includedir"; then
9121 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9122 fi
9123 fi
9124 fi
9125 fi
9126 fi
9127 if test -n "$found_la"; then
9128 save_libdir="$libdir"
9129 case "$found_la" in
9130 */* | *\\*) . "$found_la" ;;
9131 *) . "./$found_la" ;;
9132 esac
9133 libdir="$save_libdir"
9134 for dep in $dependency_libs; do
9135 case "$dep" in
9136 -L*)
9137 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9138 if test "X$additional_libdir" != "X/usr/lib"; then
9139 haveit=
9140 if test "X$additional_libdir" = "X/usr/local/lib"; then
9141 if test -n "$GCC"; then
9142 case $host_os in
9143 linux*) haveit=yes;;
9144 esac
9145 fi
9146 fi
9147 if test -z "$haveit"; then
9148 haveit=
9149 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009150
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009151 acl_save_prefix="$prefix"
9152 prefix="$acl_final_prefix"
9153 acl_save_exec_prefix="$exec_prefix"
9154 exec_prefix="$acl_final_exec_prefix"
9155 eval x=\"$x\"
9156 exec_prefix="$acl_save_exec_prefix"
9157 prefix="$acl_save_prefix"
9158
9159 if test "X$x" = "X-L$additional_libdir"; then
9160 haveit=yes
9161 break
9162 fi
9163 done
9164 if test -z "$haveit"; then
9165 if test -d "$additional_libdir"; then
9166 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9167 fi
9168 fi
9169 haveit=
9170 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009171
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009172 acl_save_prefix="$prefix"
9173 prefix="$acl_final_prefix"
9174 acl_save_exec_prefix="$exec_prefix"
9175 exec_prefix="$acl_final_exec_prefix"
9176 eval x=\"$x\"
9177 exec_prefix="$acl_save_exec_prefix"
9178 prefix="$acl_save_prefix"
9179
9180 if test "X$x" = "X-L$additional_libdir"; then
9181 haveit=yes
9182 break
9183 fi
9184 done
9185 if test -z "$haveit"; then
9186 if test -d "$additional_libdir"; then
9187 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9188 fi
9189 fi
9190 fi
9191 fi
9192 ;;
9193 -R*)
9194 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9195 if test "$enable_rpath" != no; then
9196 haveit=
9197 for x in $rpathdirs; do
9198 if test "X$x" = "X$dir"; then
9199 haveit=yes
9200 break
9201 fi
9202 done
9203 if test -z "$haveit"; then
9204 rpathdirs="$rpathdirs $dir"
9205 fi
9206 haveit=
9207 for x in $ltrpathdirs; do
9208 if test "X$x" = "X$dir"; then
9209 haveit=yes
9210 break
9211 fi
9212 done
9213 if test -z "$haveit"; then
9214 ltrpathdirs="$ltrpathdirs $dir"
9215 fi
9216 fi
9217 ;;
9218 -l*)
9219 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9220 ;;
9221 *.la)
9222 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9223 ;;
9224 *)
9225 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9226 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9227 ;;
9228 esac
9229 done
9230 fi
9231 else
9232 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9233 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9234 fi
9235 fi
9236 fi
9237 done
9238 done
9239 if test "X$rpathdirs" != "X"; then
9240 if test -n "$hardcode_libdir_separator"; then
9241 alldirs=
9242 for found_dir in $rpathdirs; do
9243 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9244 done
9245 acl_save_libdir="$libdir"
9246 libdir="$alldirs"
9247 eval flag=\"$hardcode_libdir_flag_spec\"
9248 libdir="$acl_save_libdir"
9249 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9250 else
9251 for found_dir in $rpathdirs; do
9252 acl_save_libdir="$libdir"
9253 libdir="$found_dir"
9254 eval flag=\"$hardcode_libdir_flag_spec\"
9255 libdir="$acl_save_libdir"
9256 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9257 done
9258 fi
9259 fi
9260 if test "X$ltrpathdirs" != "X"; then
9261 for found_dir in $ltrpathdirs; do
9262 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9263 done
9264 fi
9265
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009267$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009268if ${gt_cv_func_gnugettext1_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009269 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009270else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009271 gt_save_CPPFLAGS="$CPPFLAGS"
9272 CPPFLAGS="$CPPFLAGS $INCINTL"
9273 gt_save_LIBS="$LIBS"
9274 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009276/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009277#include <libintl.h>
9278extern int _nl_msg_cat_cntr;
9279extern
9280#ifdef __cplusplus
9281"C"
9282#endif
9283const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009284int
9285main ()
9286{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009287bindtextdomain ("", "");
9288return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009289 ;
9290 return 0;
9291}
9292_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009293if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009294 gt_cv_func_gnugettext1_libintl=yes
9295else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009296 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009297fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009298rm -f core conftest.err conftest.$ac_objext \
9299 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009300 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9301 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009303/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009304#include <libintl.h>
9305extern int _nl_msg_cat_cntr;
9306extern
9307#ifdef __cplusplus
9308"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009309#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009310const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009311int
9312main ()
9313{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009314bindtextdomain ("", "");
9315return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009316 ;
9317 return 0;
9318}
9319_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009320if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009321 LIBINTL="$LIBINTL $LIBICONV"
9322 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9323 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009324
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009325fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009326rm -f core conftest.err conftest.$ac_objext \
9327 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009328 fi
9329 CPPFLAGS="$gt_save_CPPFLAGS"
9330 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009331fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009333$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009334 fi
9335
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009336 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9337 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009338 && test "$PACKAGE" != gettext-runtime \
9339 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009340 gt_use_preinstalled_gnugettext=yes
9341 else
9342 LIBINTL=
9343 LTLIBINTL=
9344 INCINTL=
9345 fi
9346
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009347
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009348 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9349 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009350 fi
9351 fi
9352
9353 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009354 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009355 USE_INCLUDED_LIBINTL=yes
9356 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9357 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9358 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009359 fi
9360
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009361 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9362 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9363 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009364 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009365
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009366
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009367 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9368 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009369
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009370$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009371
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009372 else
9373 USE_NLS=no
9374 fi
9375 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009376
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009378$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009380$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009381 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009383$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009384 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9385 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9386 gt_source="external libintl"
9387 else
9388 gt_source="libc"
9389 fi
9390 else
9391 gt_source="included intl directory"
9392 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009394$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009395 fi
9396
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009397 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009398
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009399 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9400 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009402$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009404$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009405
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009406 for element in $INCINTL; do
9407 haveit=
9408 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009409
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009410 acl_save_prefix="$prefix"
9411 prefix="$acl_final_prefix"
9412 acl_save_exec_prefix="$exec_prefix"
9413 exec_prefix="$acl_final_exec_prefix"
9414 eval x=\"$x\"
9415 exec_prefix="$acl_save_exec_prefix"
9416 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009417
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009418 if test "X$x" = "X$element"; then
9419 haveit=yes
9420 break
9421 fi
9422 done
9423 if test -z "$haveit"; then
9424 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9425 fi
9426 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009427
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009428 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009429
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009430
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009431$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009432
9433
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009434$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009435
9436 fi
9437
9438 POSUB=po
9439 fi
9440
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009441
9442 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009443 BUILD_INCLUDED_LIBINTL=yes
9444 fi
9445
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009446
9447
9448
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009449
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009450 nls_cv_header_intl=
9451 nls_cv_header_libgt=
9452
9453 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009454
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009455
9456 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009457
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009458
9459 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009460
9461
9462 if test "$USE_INCLUDED_LIBINTL" = yes; then
9463 INTLOBJS="\$(GETTOBJS)"
9464 fi
9465
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009466
9467 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009468
9469
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009470
9471 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009472
9473
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009474
9475
9476
9477
9478
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009480$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9481set x ${MAKE-make}
9482ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009483if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009484 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009485else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009486 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009487SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009488all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009489 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009490_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009491# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009492case `${MAKE-make} -f conftest.make 2>/dev/null` in
9493 *@@@%%%=?*=@@@%%%*)
9494 eval ac_cv_prog_make_${ac_make}_set=yes;;
9495 *)
9496 eval ac_cv_prog_make_${ac_make}_set=no;;
9497esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009498rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009499fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009500if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009502$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009503 SET_MAKE=
9504else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009506$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009507 SET_MAKE="MAKE=${MAKE-make}"
9508fi
9509
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009511$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009512if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009513 $as_echo_n "(cached) " >&6
9514else
9515 _cv_gnu_make_command='' ;
9516 for a in "$MAKE" make gmake gnumake ; do
9517 if test -z "$a" ; then continue ; fi ;
9518 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9519 _cv_gnu_make_command=$a ;
9520 break;
9521 fi
9522 done ;
9523
9524fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009526$as_echo "$_cv_gnu_make_command" >&6; } ;
9527 if test "x$_cv_gnu_make_command" != "x" ; then
9528 ifGNUmake='' ;
9529 ifNotGNUmake='#' ;
9530 else
9531 ifGNUmake='#' ;
9532 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009534$as_echo "\"Not found\"" >&6; };
9535 fi
9536
9537
9538
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009539# Extract the first word of "ln", so it can be a program name with args.
9540set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009542$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009543if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009544 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009545else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009546 case $LN in
9547 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009548 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9549 ;;
9550 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9552for as_dir in $PATH
9553do
9554 IFS=$as_save_IFS
9555 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009556 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009558 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009560 break 2
9561 fi
9562done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009563 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009564IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009565
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009566 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9567 ;;
9568esac
9569fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009570LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009571if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009573$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009574else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009576$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009577fi
9578
Theodore Ts'oe1052142006-10-21 21:46:47 -04009579
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009581$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009582LN_S=$as_ln_s
9583if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009585$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009586else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009588$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009589fi
9590
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009591# Extract the first word of "mv", so it can be a program name with args.
9592set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009594$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009595if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009596 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009597else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009598 case $MV in
9599 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009600 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9601 ;;
9602 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9604for as_dir in $PATH
9605do
9606 IFS=$as_save_IFS
9607 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009608 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009610 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009612 break 2
9613 fi
9614done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009615 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009616IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009617
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009618 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9619 ;;
9620esac
9621fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009622MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009623if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009625$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009626else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009628$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009629fi
9630
Theodore Ts'oe1052142006-10-21 21:46:47 -04009631
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009632# Extract the first word of "cp", so it can be a program name with args.
9633set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009635$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009636if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009637 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009638else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009639 case $CP in
9640 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009641 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9642 ;;
9643 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645for as_dir in $PATH
9646do
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009649 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009651 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009653 break 2
9654 fi
9655done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009656 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009657IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009658
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009659 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9660 ;;
9661esac
9662fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009663CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009664if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009666$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009667else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009669$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009670fi
9671
Theodore Ts'oe1052142006-10-21 21:46:47 -04009672
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009673# Extract the first word of "rm", so it can be a program name with args.
9674set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009676$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009677if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009678 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009679else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009680 case $RM in
9681 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009682 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9683 ;;
9684 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686for as_dir in $PATH
9687do
9688 IFS=$as_save_IFS
9689 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009690 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009692 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009694 break 2
9695 fi
9696done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009697 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009698IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009699
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009700 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9701 ;;
9702esac
9703fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009704RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009705if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009707$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009708else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009710$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009711fi
9712
Theodore Ts'oe1052142006-10-21 21:46:47 -04009713
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009714# Extract the first word of "chmod", so it can be a program name with args.
9715set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009717$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009718if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009719 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009720else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009721 case $CHMOD in
9722 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009723 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9724 ;;
9725 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727for as_dir in $PATH
9728do
9729 IFS=$as_save_IFS
9730 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009731 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009733 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009735 break 2
9736 fi
9737done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009738 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009739IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009740
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009741 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9742 ;;
9743esac
9744fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009745CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009746if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009748$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009749else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009751$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009752fi
9753
Theodore Ts'oe1052142006-10-21 21:46:47 -04009754
Theodore Ts'o32237012005-01-17 19:13:39 -05009755for ac_prog in gawk mawk nawk awk
9756do
9757 # Extract the first word of "$ac_prog", so it can be a program name with args.
9758set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009760$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009761if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009762 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009763else
Theodore Ts'o32237012005-01-17 19:13:39 -05009764 if test -n "$AWK"; then
9765 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9766else
9767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009768for as_dir in $PATH
9769do
9770 IFS=$as_save_IFS
9771 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009772 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -05009774 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009776 break 2
9777 fi
9778done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009779 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009780IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009781
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009782fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009783fi
9784AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009785if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009787$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009788else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009790$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009791fi
9792
Theodore Ts'oe1052142006-10-21 21:46:47 -04009793
Theodore Ts'o32237012005-01-17 19:13:39 -05009794 test -n "$AWK" && break
9795done
9796
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009798$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009799if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009800 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009801else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009802 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9803 then ac_cv_path_EGREP="$GREP -E"
9804 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009805 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009806 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009807 # Loop through the user's path and test for each of PROGNAME-LIST
9808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009809for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9810do
9811 IFS=$as_save_IFS
9812 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009813 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009814 for ac_exec_ext in '' $ac_executable_extensions; do
9815 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009816 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009817# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009818 # Check for GNU $ac_path_EGREP
9819case `"$ac_path_EGREP" --version 2>&1` in
9820*GNU*)
9821 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9822*)
9823 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009824 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009825 while :
9826 do
9827 cat "conftest.in" "conftest.in" >"conftest.tmp"
9828 mv "conftest.tmp" "conftest.in"
9829 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009830 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009831 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009833 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009834 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9835 # Best one so far, save it but keep looking for a better one
9836 ac_cv_path_EGREP="$ac_path_EGREP"
9837 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009838 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009839 # 10*(2^10) chars as input seems more than enough
9840 test $ac_count -gt 10 && break
9841 done
9842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9843esac
9844
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009845 $ac_path_EGREP_found && break 3
9846 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009847 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009848 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009849IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009850 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009851 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 +01009852 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009853else
9854 ac_cv_path_EGREP=$EGREP
9855fi
9856
Theodore Ts'oe1052142006-10-21 21:46:47 -04009857 fi
9858fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009860$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009861 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009862
9863
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009864# Extract the first word of "sed", so it can be a program name with args.
9865set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009867$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009868if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009869 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009870else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009871 case $SED in
9872 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009873 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9874 ;;
9875 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877for as_dir in $PATH
9878do
9879 IFS=$as_save_IFS
9880 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009881 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009883 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009885 break 2
9886 fi
9887done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009888 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009889IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009890
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009891 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9892 ;;
9893esac
9894fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009895SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009896if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009898$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009899else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009901$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009902fi
9903
Theodore Ts'oe1052142006-10-21 21:46:47 -04009904
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009905# Extract the first word of "perl", so it can be a program name with args.
9906set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009908$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009909if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009910 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009911else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009912 case $PERL in
9913 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009914 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9915 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009916 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918for as_dir in $PATH
9919do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009922 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009924 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009926 break 2
9927 fi
9928done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009929 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009930IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009931
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009932 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9933 ;;
9934esac
9935fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009936PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009937if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009939$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009940else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009942$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009943fi
9944
Theodore Ts'oe1052142006-10-21 21:46:47 -04009945
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009946# Extract the first word of "ldconfig", so it can be a program name with args.
9947set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009949$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009950if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009951 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009952else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009953 case $LDCONFIG in
9954 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009955 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9956 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009957 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959for as_dir in $PATH
9960do
9961 IFS=$as_save_IFS
9962 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009963 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009965 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009967 break 2
9968 fi
9969done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009970 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009971IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009972
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009973 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9974 ;;
9975esac
9976fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009977LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009978if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009980$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009981else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009983$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009984fi
9985
Theodore Ts'oe1052142006-10-21 21:46:47 -04009986
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009987if test -n "$ac_tool_prefix"; then
9988 # 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 +00009989set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009991$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009992if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009993 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009994else
9995 if test -n "$AR"; then
9996 ac_cv_prog_AR="$AR" # Let the user override the test.
9997else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999for as_dir in $PATH
10000do
10001 IFS=$as_save_IFS
10002 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010003 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010005 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010007 break 2
10008 fi
10009done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010010 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010011IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010012
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010013fi
10014fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010015AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010016if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010018$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010019else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010021$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010022fi
10023
Theodore Ts'oe1052142006-10-21 21:46:47 -040010024
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010025fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010026if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010027 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010028 # Extract the first word of "ar", so it can be a program name with args.
10029set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010031$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010032if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010033 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010034else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010035 if test -n "$ac_ct_AR"; then
10036 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010037else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039for as_dir in $PATH
10040do
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010043 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010045 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010047 break 2
10048 fi
10049done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010050 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010051IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010052
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010053fi
10054fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010055ac_ct_AR=$ac_cv_prog_ac_ct_AR
10056if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010058$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010059else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010061$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010062fi
10063
Theodore Ts'oe1052142006-10-21 21:46:47 -040010064 if test "x$ac_ct_AR" = x; then
10065 AR="ar"
10066 else
10067 case $cross_compiling:$ac_tool_warned in
10068yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010069{ $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 +010010070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010071ac_tool_warned=yes ;;
10072esac
10073 AR=$ac_ct_AR
10074 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010075else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010076 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010077fi
10078
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010079if test -n "$ac_tool_prefix"; then
10080 # 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 +000010081set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010083$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010084if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010085 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010086else
10087 if test -n "$RANLIB"; then
10088 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10089else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091for as_dir in $PATH
10092do
10093 IFS=$as_save_IFS
10094 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010095 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010097 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010099 break 2
10100 fi
10101done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010102 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010103IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010104
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010105fi
10106fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010107RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010108if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010110$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010111else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010113$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010114fi
10115
Theodore Ts'oe1052142006-10-21 21:46:47 -040010116
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010117fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010118if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010119 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010120 # Extract the first word of "ranlib", so it can be a program name with args.
10121set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010123$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010124if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010125 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010126else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010127 if test -n "$ac_ct_RANLIB"; then
10128 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010129else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131for as_dir in $PATH
10132do
10133 IFS=$as_save_IFS
10134 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010135 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010137 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010139 break 2
10140 fi
10141done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010142 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010143IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010144
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010145fi
10146fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010147ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10148if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010150$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010151else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010153$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010154fi
10155
Theodore Ts'oe1052142006-10-21 21:46:47 -040010156 if test "x$ac_ct_RANLIB" = x; then
10157 RANLIB=":"
10158 else
10159 case $cross_compiling:$ac_tool_warned in
10160yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010161{ $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 +010010162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010163ac_tool_warned=yes ;;
10164esac
10165 RANLIB=$ac_ct_RANLIB
10166 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010167else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010168 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010169fi
10170
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010171if test -n "$ac_tool_prefix"; then
10172 # 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 +000010173set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010175$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010176if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010177 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010178else
10179 if test -n "$STRIP"; then
10180 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10181else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183for as_dir in $PATH
10184do
10185 IFS=$as_save_IFS
10186 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010187 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010189 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010191 break 2
10192 fi
10193done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010194 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010195IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010196
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010197fi
10198fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010199STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010200if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010202$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010203else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010205$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010206fi
10207
Theodore Ts'oe1052142006-10-21 21:46:47 -040010208
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010209fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010210if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010211 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010212 # Extract the first word of "strip", so it can be a program name with args.
10213set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010215$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010216if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010217 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010218else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010219 if test -n "$ac_ct_STRIP"; then
10220 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010221else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223for as_dir in $PATH
10224do
10225 IFS=$as_save_IFS
10226 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010227 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010229 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010231 break 2
10232 fi
10233done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010234 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010235IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010236
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010237fi
10238fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010239ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10240if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010242$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010243else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010245$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010246fi
10247
Theodore Ts'oe1052142006-10-21 21:46:47 -040010248 if test "x$ac_ct_STRIP" = x; then
10249 STRIP=":"
10250 else
10251 case $cross_compiling:$ac_tool_warned in
10252yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010253{ $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 +010010254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010255ac_tool_warned=yes ;;
10256esac
10257 STRIP=$ac_ct_STRIP
10258 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010259else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010260 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010261fi
10262
Manish Katiyar7321d942008-04-14 17:20:03 +053010263# Extract the first word of "makeinfo", so it can be a program name with args.
10264set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010266$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010267if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010268 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053010269else
10270 if test -n "$MAKEINFO"; then
10271 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10272else
10273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274for as_dir in $PATH
10275do
10276 IFS=$as_save_IFS
10277 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010278 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053010280 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053010282 break 2
10283 fi
10284done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010285 done
Manish Katiyar7321d942008-04-14 17:20:03 +053010286IFS=$as_save_IFS
10287
10288fi
10289fi
10290MAKEINFO=$ac_cv_prog_MAKEINFO
10291if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010293$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010294else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010296$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010297fi
10298
10299
10300if test "_$MAKEINFO" = "_"; then
10301 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10302else
10303 case "$MAKEINFO" in
10304 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010306*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010307$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010308*** Makeinfo is missing. Info documentation will not be built." >&2;}
10309 ;;
10310 *)
10311 ;;
10312 esac
10313fi
10314
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010315
Theodore Ts'o6c133521999-07-03 20:37:03 +000010316# See if we need a separate native compiler.
10317if test $cross_compiling = no; then
10318 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010319
Theodore Ts'o6c133521999-07-03 20:37:03 +000010320else
10321 for ac_prog in gcc cc
10322do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010323 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010324set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010326$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010327if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010328 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010329else
10330 if test -n "$BUILD_CC"; then
10331 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10332else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010335do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010336 IFS=$as_save_IFS
10337 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010338 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010340 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010342 break 2
10343 fi
10344done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010345 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010346IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010347
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010348fi
10349fi
10350BUILD_CC=$ac_cv_prog_BUILD_CC
10351if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010353$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010354else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010356$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010357fi
10358
Theodore Ts'oe1052142006-10-21 21:46:47 -040010359
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010360 test -n "$BUILD_CC" && break
10361done
10362
10363fi
Mike Frysinger677fc912012-03-06 20:13:54 -050010364for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010365do :
10366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10367ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010368if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010369 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010370#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010371_ACEOF
10372
10373fi
10374
10375done
10376
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010377for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010378do :
10379 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10380ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010381#if HAVE_SYS_QUEUE_H
10382#include <sys/queue.h>
10383#endif
10384
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010385"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010386if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010387 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010388#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010389_ACEOF
10390
10391fi
10392
10393done
10394
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010395for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010396do :
10397 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010398#if HAVE_SYS_TYPES_H
10399#include <sys/types.h>
10400#endif
10401#if HAVE_SYS_SOCKET
10402#include <sys/socket.h>
10403#endif
10404
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010405"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010406if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010407 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010408#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010409_ACEOF
10410
10411fi
10412
10413done
10414
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010415for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010416do :
10417 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010418if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010419 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010420#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010421_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010422
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010423ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010424if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010425
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010426$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010427
10428fi
10429
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010430fi
10431done
10432
10433
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010434ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10435"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010436if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010437
10438$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010439
10440fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010441
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010442ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10443"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010444if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010445
10446$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010447
Theodore Ts'offf45482003-04-13 00:44:19 -040010448fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010449
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010450ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10451"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010452if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010453
10454$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010455
10456fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010457
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010458ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010459 #define _LARGEFILE64_SOURCE
10460 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010461"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010462if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010463
10464$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010465
10466fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010467
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010468# The cast to long int works around a bug in the HP C Compiler
10469# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10470# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10471# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010473$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010474if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010475 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010476else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010477 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 -050010478
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010479else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010480 if test "$ac_cv_type_short" = yes; then
10481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010483as_fn_error 77 "cannot compute sizeof (short)
10484See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010485 else
10486 ac_cv_sizeof_short=0
10487 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010488fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010489
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010490fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010492$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010493
10494
10495
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010496cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010497#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010498_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010499
10500
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010501# The cast to long int works around a bug in the HP C Compiler
10502# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10503# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10504# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010506$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010507if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010508 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010509else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010510 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 -050010511
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010512else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010513 if test "$ac_cv_type_int" = yes; then
10514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010516as_fn_error 77 "cannot compute sizeof (int)
10517See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010518 else
10519 ac_cv_sizeof_int=0
10520 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010521fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010522
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010523fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010525$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010526
10527
10528
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010529cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010530#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010531_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010532
10533
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010534# The cast to long int works around a bug in the HP C Compiler
10535# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10536# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10537# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010539$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010540if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010541 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010542else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010543 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 -050010544
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010545else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010546 if test "$ac_cv_type_long" = yes; then
10547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010549as_fn_error 77 "cannot compute sizeof (long)
10550See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010551 else
10552 ac_cv_sizeof_long=0
10553 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010554fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010555
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010556fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010558$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010559
10560
10561
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010562cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010563#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010564_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010565
10566
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010567# The cast to long int works around a bug in the HP C Compiler
10568# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10569# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10570# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010572$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010573if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010574 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010575else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010576 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 -050010577
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010578else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010579 if test "$ac_cv_type_long_long" = yes; then
10580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010582as_fn_error 77 "cannot compute sizeof (long long)
10583See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010584 else
10585 ac_cv_sizeof_long_long=0
10586 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010587fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010588
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010589fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010591$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010592
10593
10594
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010595cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010596#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010597_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010598
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010599
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040010600# The cast to long int works around a bug in the HP C Compiler
10601# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10602# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10603# This bug is HP SR number 8606223364.
10604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10605$as_echo_n "checking size of off_t... " >&6; }
10606if ${ac_cv_sizeof_off_t+:} false; then :
10607 $as_echo_n "(cached) " >&6
10608else
10609 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10610
10611else
10612 if test "$ac_cv_type_off_t" = yes; then
10613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10615as_fn_error 77 "cannot compute sizeof (off_t)
10616See \`config.log' for more details" "$LINENO" 5; }
10617 else
10618 ac_cv_sizeof_off_t=0
10619 fi
10620fi
10621
10622fi
10623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10624$as_echo "$ac_cv_sizeof_off_t" >&6; }
10625
10626
10627
10628cat >>confdefs.h <<_ACEOF
10629#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10630_ACEOF
10631
10632
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010633SIZEOF_SHORT=$ac_cv_sizeof_short
10634SIZEOF_INT=$ac_cv_sizeof_int
10635SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010636SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040010637SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10638
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010639
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010640
10641
10642
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010644$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010645if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010646 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010647else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010648 ac_cv_c_bigendian=unknown
10649 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010651/* end confdefs.h. */
10652#ifndef __APPLE_CC__
10653 not a universal capable compiler
10654 #endif
10655 typedef int dummy;
10656
10657_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010658if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010659
10660 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010661 # there are at least two -arch flags with different values.
10662 ac_arch=
10663 ac_prev=
10664 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10665 if test -n "$ac_prev"; then
10666 case $ac_word in
10667 i?86 | x86_64 | ppc | ppc64)
10668 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10669 ac_arch=$ac_word
10670 else
10671 ac_cv_c_bigendian=universal
10672 break
10673 fi
10674 ;;
10675 esac
10676 ac_prev=
10677 elif test "x$ac_word" = "x-arch"; then
10678 ac_prev=arch
10679 fi
10680 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010681fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683 if test $ac_cv_c_bigendian = unknown; then
10684 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010686/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010687#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010688 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010689
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010690int
10691main ()
10692{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010693#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10694 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10695 && LITTLE_ENDIAN)
10696 bogus endian macros
10697 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010698
10699 ;
10700 return 0;
10701}
10702_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010703if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010704 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010706/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010707#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010708 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010709
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010710int
10711main ()
10712{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010713#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010714 not big endian
10715 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010716
10717 ;
10718 return 0;
10719}
10720_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010721if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010722 ac_cv_c_bigendian=yes
10723else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010724 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010725fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010727fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10729 fi
10730 if test $ac_cv_c_bigendian = unknown; then
10731 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010733/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010734#include <limits.h>
10735
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010736int
10737main ()
10738{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010739#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10740 bogus endian macros
10741 #endif
10742
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010743 ;
10744 return 0;
10745}
10746_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010747if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010748 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010750/* end confdefs.h. */
10751#include <limits.h>
10752
10753int
10754main ()
10755{
10756#ifndef _BIG_ENDIAN
10757 not big endian
10758 #endif
10759
10760 ;
10761 return 0;
10762}
10763_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010764if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010765 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010766else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010767 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010768fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010770fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10772 fi
10773 if test $ac_cv_c_bigendian = unknown; then
10774 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010775 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010776 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010778/* end confdefs.h. */
10779short int ascii_mm[] =
10780 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10781 short int ascii_ii[] =
10782 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10783 int use_ascii (int i) {
10784 return ascii_mm[i] + ascii_ii[i];
10785 }
10786 short int ebcdic_ii[] =
10787 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10788 short int ebcdic_mm[] =
10789 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10790 int use_ebcdic (int i) {
10791 return ebcdic_mm[i] + ebcdic_ii[i];
10792 }
10793 extern int foo;
10794
10795int
10796main ()
10797{
10798return use_ascii (foo) == use_ebcdic (foo);
10799 ;
10800 return 0;
10801}
10802_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010803if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010804 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10805 ac_cv_c_bigendian=yes
10806 fi
10807 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10808 if test "$ac_cv_c_bigendian" = unknown; then
10809 ac_cv_c_bigendian=no
10810 else
10811 # finding both strings is unlikely to happen, but who knows?
10812 ac_cv_c_bigendian=unknown
10813 fi
10814 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010815fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010817else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010819/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010820$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010821int
10822main ()
10823{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010824
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010825 /* Are we little or big endian? From Harbison&Steele. */
10826 union
10827 {
10828 long int l;
10829 char c[sizeof (long int)];
10830 } u;
10831 u.l = 1;
10832 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010833
10834 ;
10835 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010836}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010837_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010838if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010839 ac_cv_c_bigendian=no
10840else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010841 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010842fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10844 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010845fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010846
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010847 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010848fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010850$as_echo "$ac_cv_c_bigendian" >&6; }
10851 case $ac_cv_c_bigendian in #(
10852 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010853 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010854;; #(
10855 no)
10856 ;; #(
10857 universal)
10858
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010859$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010860
10861 ;; #(
10862 *)
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010863 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010864 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010865 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010866
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010867BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010868ASM_TYPES_HEADER=./asm_types.h
10869
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010870echo "/* These defines are needed for the public ext2fs.h header file */" \
10871 > public_config.h
10872if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10873 uniq tmp_config.$$ >> public_config.h
10874else
10875 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10876fi
10877if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10878 uniq tmp_config.$$ >> public_config.h
10879else
10880 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10881fi
10882rm -f tmp_config.$$
10883PUBLIC_CONFIG_HEADER=./public_config.h
10884
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010885for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010886do :
10887 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 -040010888if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010889 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010890#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010891_ACEOF
10892
10893fi
10894
Theodore Ts'o0c193f82003-08-01 14:26:23 -040010895done
10896
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010897ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010898if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010899
10900cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010901#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010902_ACEOF
10903
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010904
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010905fi
10906
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010907{ $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 +010010908$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010909if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010910 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010911else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010913/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010914#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010915int
10916main ()
10917{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010918struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010919 ;
10920 return 0;
10921}
10922_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010923if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010924 e2fsprogs_cv_struct_st_flags=yes
10925else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010926 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010927fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10929fi
10930
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010932$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010933if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010935$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010936 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010937 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010938else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010940/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010941#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010942int
10943main ()
10944{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010945struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010946 ;
10947 return 0;
10948}
10949_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010950if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010951 e2fsprogs_cv_struct_st_flags_immut=yes
10952else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010953 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010954fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10956fi
10957
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010959$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010960 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010961
10962$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010963
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010964 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010965fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010966ac_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 -050010967 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010968"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010969if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010970
10971cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010972#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010973_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010974
10975fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010976
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010977if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010979$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010980if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010981 $as_echo_n "(cached) " >&6
10982else
10983 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010985/* end confdefs.h. */
10986
10987/* Override any GCC internal prototype to avoid an error.
10988 Use char because int might match the return type of a GCC
10989 builtin and then its argument prototype would still apply. */
10990#ifdef __cplusplus
10991extern "C"
10992#endif
10993char blkid_probe_all ();
10994int
10995main ()
10996{
10997return blkid_probe_all ();
10998 ;
10999 return 0;
11000}
11001_ACEOF
11002for ac_lib in '' blkid; do
11003 if test -z "$ac_lib"; then
11004 ac_res="none required"
11005 else
11006 ac_res=-l$ac_lib
11007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11008 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011009 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011010 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011011fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011012rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011014 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011015 break
11016fi
11017done
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011018if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011019
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011020else
11021 ac_cv_search_blkid_probe_all=no
11022fi
11023rm conftest.$ac_ext
11024LIBS=$ac_func_search_save_LIBS
11025fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011027$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11028ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011029if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11031
11032fi
11033
11034fi
Theodore Ts'o1ad31742013-06-16 14:34:59 -040011035for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mmap msync nanosleep open64 pathconf posix_fadvise posix_memalign prctl secure_getenv setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011036do :
11037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11038ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011039if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011040 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011041#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011042_ACEOF
11043
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011044fi
11045done
11046
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011047SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011049$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011050if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011051 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011052else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011053 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011054LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011056/* end confdefs.h. */
11057
Theodore Ts'oe1052142006-10-21 21:46:47 -040011058/* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011061#ifdef __cplusplus
11062extern "C"
11063#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011064char socket ();
11065int
11066main ()
11067{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011068return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011069 ;
11070 return 0;
11071}
11072_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011073if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011074 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011075else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011076 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011077fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011078rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011080LIBS=$ac_check_lib_save_LIBS
11081fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011083$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011084if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011085 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011086fi
11087
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011088
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011090$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011091if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011092 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011093else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011095/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011096#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011097
11098_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011100 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011101 ac_cv_have_optreset=yes
11102else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011103 ac_cv_have_optreset=no
11104fi
11105rm -f conftest*
11106
11107fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011109$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011110if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011111
11112$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011113
11114fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011115
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011116SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011117ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011118if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011119
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011120else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011122$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011123if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011124 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011125else
11126 ac_check_lib_save_LIBS=$LIBS
11127LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011129/* end confdefs.h. */
11130
11131/* Override any GCC internal prototype to avoid an error.
11132 Use char because int might match the return type of a GCC
11133 builtin and then its argument prototype would still apply. */
11134#ifdef __cplusplus
11135extern "C"
11136#endif
11137char sem_init ();
11138int
11139main ()
11140{
11141return sem_init ();
11142 ;
11143 return 0;
11144}
11145_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011146if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011147 ac_cv_lib_pthread_sem_init=yes
11148else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011149 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011150fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011151rm -f core conftest.err conftest.$ac_objext \
11152 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011153LIBS=$ac_check_lib_save_LIBS
11154fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011156$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011157if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011158 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011159
11160 SEM_INIT_LIB=-lpthread
11161else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011163$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011164if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011165 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011166else
11167 ac_check_lib_save_LIBS=$LIBS
11168LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011170/* end confdefs.h. */
11171
11172/* Override any GCC internal prototype to avoid an error.
11173 Use char because int might match the return type of a GCC
11174 builtin and then its argument prototype would still apply. */
11175#ifdef __cplusplus
11176extern "C"
11177#endif
11178char sem_init ();
11179int
11180main ()
11181{
11182return sem_init ();
11183 ;
11184 return 0;
11185}
11186_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011187if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011188 ac_cv_lib_rt_sem_init=yes
11189else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011190 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011191fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011192rm -f core conftest.err conftest.$ac_objext \
11193 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011194LIBS=$ac_check_lib_save_LIBS
11195fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011197$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011198if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011199 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011200
11201 SEM_INIT_LIB=-lrt
11202else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011204$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011205if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011206 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011207else
11208 ac_check_lib_save_LIBS=$LIBS
11209LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011211/* end confdefs.h. */
11212
11213/* Override any GCC internal prototype to avoid an error.
11214 Use char because int might match the return type of a GCC
11215 builtin and then its argument prototype would still apply. */
11216#ifdef __cplusplus
11217extern "C"
11218#endif
11219char sem_init ();
11220int
11221main ()
11222{
11223return sem_init ();
11224 ;
11225 return 0;
11226}
11227_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011228if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011229 ac_cv_lib_posix4_sem_init=yes
11230else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011231 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011232fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011233rm -f core conftest.err conftest.$ac_objext \
11234 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011235LIBS=$ac_check_lib_save_LIBS
11236fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011238$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011239if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011240 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011241
11242 SEM_INIT_LIB=-lposix4
11243fi
11244
11245fi
11246
11247fi
11248
11249fi
11250
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011252$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040011253if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011254 UNI_DIFF_OPTS=-u
11255else
11256 UNI_DIFF_OPTS=-c
11257fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011259$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011260
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011261case "$host_os" in
11262linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011263
11264$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011265
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011266 ;;
11267esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011268LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011269CYGWIN_CMT="#"
11270UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011271case "$host_os" in
11272linux*)
11273 LINUX_CMT=
11274 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040011275cygwin)
11276 CYGWIN_CMT=
11277 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011278 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011279esac
11280
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011281
11282
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011283case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011284linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011285 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11286 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011287 { $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 +010011288$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011289 fi
11290 ;;
11291esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011292case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011293linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011294 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011295 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011296 { $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 +010011297$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011298 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011300$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011301 mandir=/usr/share/man
11302 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011303 fi
11304;;
11305esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011306if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000011307 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011308 root_prefix="$ac_default_prefix"
11309 else
11310 root_prefix="$prefix"
11311 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040011312 root_bindir=$bindir
11313 root_sbindir=$sbindir
11314 root_libdir=$libdir
11315 root_sysconfdir=$sysconfdir
11316else
11317 root_bindir='${root_prefix}/bin'
11318 root_sbindir='${root_prefix}/sbin'
11319 root_libdir='${root_prefix}/lib'
11320 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011321fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011322if test "$bindir" != '${exec_prefix}/bin'; then
11323 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011325$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011326fi
11327if test "$sbindir" != '${exec_prefix}/sbin'; then
11328 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011330$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011331fi
11332if test "$libdir" != '${exec_prefix}/lib'; then
11333 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011335$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011336fi
11337if test "$sysconfdir" != '${prefix}/etc'; then
11338 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011340$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011341fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011342
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011343
11344
11345
11346
Theodore Ts'o55e00a22011-09-18 23:53:23 -040011347
11348# Check whether --with-multiarch was given.
11349if test "${with_multiarch+set}" = set; then :
11350 withval=$with_multiarch; libdir=$libdir/$withval
11351root_libdir=$root_libdir/$withval
11352
11353fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050011354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11355$as_echo_n "checking whether we can link with -static... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011356if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011357 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000011358else
11359 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011361/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000011362#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011363int
11364main ()
11365{
Theodore Ts'oae851481997-04-29 18:13:24 +000011366fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011367 ;
11368 return 0;
11369}
11370_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011371if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000011372 ac_cv_e2fsprogs_use_static=yes
11373else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011374 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000011375fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011376rm -f core conftest.err conftest.$ac_objext \
11377 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000011378LDFLAGS=$SAVE_LDFLAGS
11379fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011380
Theodore Ts'odefde781999-01-04 07:39:19 +000011381case "$host_os" in
11382solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011383 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000011384;;
11385esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011387$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000011388LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000011389if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011390 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000011391fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011392
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011393case "$host_os" in
11394darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011396$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011397
11398$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011399
11400 ;;
11401esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011402SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11403ET_DIR=`cd ${srcdir}/lib/et; pwd`
11404
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011405
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011406if test "$cross_compiling" = yes ; then
11407 DO_TEST_SUITE=
11408else
11409 DO_TEST_SUITE=check
11410fi
11411
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011412INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11413if test -n "$CPPFLAGS" ; then
11414 INCLUDES="$INCLUDES $CPPFLAGS"
11415fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011416if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011417 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011418fi
11419
Theodore Ts'odd947da2005-11-09 18:37:07 -040011420if test $cross_compiling = no; then
Theodore Ts'oc1986ec2012-06-13 15:29:13 -040011421 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040011422 BUILD_LDFLAGS="$LDFLAGS"
11423else
11424 BUILD_CFLAGS=
11425 BUILD_LDFLAGS=
11426fi
11427
11428
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011429test -d lib || mkdir lib
11430test -d include || mkdir include
11431test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000011432test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050011433for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040011434 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040011435 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11436 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011437 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070011438 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050011439 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11440 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050011441 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011442 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020011443 resize/Makefile doc/Makefile intl/Makefile \
11444 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011445 if test -d `dirname ${srcdir}/$i` ; then
11446 outlist="$outlist $i"
11447 fi
11448done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011449ac_config_files="$ac_config_files $outlist"
11450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011451cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011452# This file is a shell script that caches the results of configure
11453# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011454# scripts and configure runs, see configure's option --config-cache.
11455# It is not useful on other systems. If it contains results you don't
11456# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011457#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011458# config.status only pays attention to the cache file if you give it
11459# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011460#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011461# `ac_cv_env_foo' variables (set or unset) will be overridden when
11462# loading this file, other *unset* `ac_cv_foo' will be assigned the
11463# following values.
11464
11465_ACEOF
11466
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011467# The following way of writing the cache mishandles newlines in values,
11468# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011469# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011470# Ultrix sh set writes to stderr and can't be redirected directly,
11471# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011472(
11473 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11474 eval ac_val=\$$ac_var
11475 case $ac_val in #(
11476 *${as_nl}*)
11477 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011478 *_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 +010011479$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011480 esac
11481 case $ac_var in #(
11482 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011483 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011484 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011485 esac ;;
11486 esac
11487 done
11488
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011489 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011490 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11491 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011492 # `set' does not quote correctly, so add quotes: double-quote
11493 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011494 sed -n \
11495 "s/'/'\\\\''/g;
11496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011497 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011498 *)
11499 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011500 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011501 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011502 esac |
11503 sort
11504) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011505 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011506 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011507 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011508 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011509 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11510 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011511 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11512 :end' >>confcache
11513if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11514 if test -w "$cache_file"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011515 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011516 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011517$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011518 if test ! -f "$cache_file" || test -h "$cache_file"; then
11519 cat confcache >"$cache_file"
11520 else
11521 case $cache_file in #(
11522 */* | ?:*)
11523 mv -f confcache "$cache_file"$$ &&
11524 mv -f "$cache_file"$$ "$cache_file" ;; #(
11525 *)
11526 mv -f confcache "$cache_file" ;;
11527 esac
11528 fi
11529 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011530 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011531 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011532$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011533 fi
11534fi
11535rm -f confcache
11536
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011537test "x$prefix" = xNONE && prefix=$ac_default_prefix
11538# Let make expand exec_prefix.
11539test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11540
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011541DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011542
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011543ac_libobjs=
11544ac_ltlibobjs=
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011545U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011546for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11547 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011548 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011549 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011550 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11551 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011552 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11553 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011554done
11555LIBOBJS=$ac_libobjs
11556
11557LTLIBOBJS=$ac_ltlibobjs
11558
11559
11560
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011561
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011562: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011563ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011564ac_clean_files_save=$ac_clean_files
11565ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011566{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011567$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011568as_write_fail=0
11569cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011570#! $SHELL
11571# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011572# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011573# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011574# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011575
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011576debug=false
11577ac_cs_recheck=false
11578ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011579
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011580SHELL=\${CONFIG_SHELL-$SHELL}
11581export SHELL
11582_ASEOF
11583cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11584## -------------------- ##
11585## M4sh Initialization. ##
11586## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011587
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011588# Be more Bourne compatible
11589DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011590if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011591 emulate sh
11592 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011593 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011594 # is contrary to our usage. Disable this feature.
11595 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011596 setopt NO_GLOB_SUBST
11597else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011598 case `(set -o) 2>/dev/null` in #(
11599 *posix*) :
11600 set -o posix ;; #(
11601 *) :
11602 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011603esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011604fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011605
11606
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011607as_nl='
11608'
11609export as_nl
11610# Printing a long string crashes Solaris 7 /usr/bin/printf.
11611as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11612as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11613as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011614# Prefer a ksh shell builtin over an external printf program on Solaris,
11615# but without wasting forks for bash or zsh.
11616if test -z "$BASH_VERSION$ZSH_VERSION" \
11617 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11618 as_echo='print -r --'
11619 as_echo_n='print -rn --'
11620elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011621 as_echo='printf %s\n'
11622 as_echo_n='printf %s'
11623else
11624 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11625 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11626 as_echo_n='/usr/ucb/echo -n'
11627 else
11628 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11629 as_echo_n_body='eval
11630 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011631 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011632 *"$as_nl"*)
11633 expr "X$arg" : "X\\(.*\\)$as_nl";
11634 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11635 esac;
11636 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11637 '
11638 export as_echo_n_body
11639 as_echo_n='sh -c $as_echo_n_body as_echo'
11640 fi
11641 export as_echo_body
11642 as_echo='sh -c $as_echo_body as_echo'
11643fi
11644
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011645# The user is always right.
11646if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011647 PATH_SEPARATOR=:
11648 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11649 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11650 PATH_SEPARATOR=';'
11651 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011652fi
11653
Theodore Ts'oe1052142006-10-21 21:46:47 -040011654
11655# IFS
11656# We need space, tab and new line, in precisely that order. Quoting is
11657# there to prevent editors from complaining about space-tab.
11658# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11659# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011660IFS=" "" $as_nl"
11661
11662# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011663as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011664case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011665 *[\\/]* ) as_myself=$0 ;;
11666 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011667for as_dir in $PATH
11668do
11669 IFS=$as_save_IFS
11670 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011671 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11672 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011673IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011674
Theodore Ts'oe1052142006-10-21 21:46:47 -040011675 ;;
11676esac
11677# We did not find ourselves, most probably we were run as `sh COMMAND'
11678# in which case we are not to be found in the path.
11679if test "x$as_myself" = x; then
11680 as_myself=$0
11681fi
11682if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011683 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011684 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011685fi
11686
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011687# Unset variables that we do not need and which cause bugs (e.g. in
11688# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11689# suppresses any "Segmentation fault" message there. '((' could
11690# trigger a bug in pdksh 5.2.14.
11691for as_var in BASH_ENV ENV MAIL MAILPATH
11692do eval test x\${$as_var+set} = xset \
11693 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011694done
11695PS1='$ '
11696PS2='> '
11697PS4='+ '
11698
11699# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011700LC_ALL=C
11701export LC_ALL
11702LANGUAGE=C
11703export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011704
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011705# CDPATH.
11706(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11707
11708
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011709# as_fn_error STATUS ERROR [LINENO LOG_FD]
11710# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011711# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11712# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011713# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011714as_fn_error ()
11715{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011716 as_status=$1; test $as_status -eq 0 && as_status=1
11717 if test "$4"; then
11718 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11719 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011720 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011721 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011722 as_fn_exit $as_status
11723} # as_fn_error
11724
11725
11726# as_fn_set_status STATUS
11727# -----------------------
11728# Set $? to STATUS, without forking.
11729as_fn_set_status ()
11730{
11731 return $1
11732} # as_fn_set_status
11733
11734# as_fn_exit STATUS
11735# -----------------
11736# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11737as_fn_exit ()
11738{
11739 set +e
11740 as_fn_set_status $1
11741 exit $1
11742} # as_fn_exit
11743
11744# as_fn_unset VAR
11745# ---------------
11746# Portably unset VAR.
11747as_fn_unset ()
11748{
11749 { eval $1=; unset $1;}
11750}
11751as_unset=as_fn_unset
11752# as_fn_append VAR VALUE
11753# ----------------------
11754# Append the text in VALUE to the end of the definition contained in VAR. Take
11755# advantage of any shell optimizations that allow amortized linear growth over
11756# repeated appends, instead of the typical quadratic growth present in naive
11757# implementations.
11758if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11759 eval 'as_fn_append ()
11760 {
11761 eval $1+=\$2
11762 }'
11763else
11764 as_fn_append ()
11765 {
11766 eval $1=\$$1\$2
11767 }
11768fi # as_fn_append
11769
11770# as_fn_arith ARG...
11771# ------------------
11772# Perform arithmetic evaluation on the ARGs, and store the result in the
11773# global $as_val. Take advantage of shells that can avoid forks. The arguments
11774# must be portable across $(()) and expr.
11775if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11776 eval 'as_fn_arith ()
11777 {
11778 as_val=$(( $* ))
11779 }'
11780else
11781 as_fn_arith ()
11782 {
11783 as_val=`expr "$@" || test $? -eq 1`
11784 }
11785fi # as_fn_arith
11786
11787
Theodore Ts'oe1052142006-10-21 21:46:47 -040011788if expr a : '\(a\)' >/dev/null 2>&1 &&
11789 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11790 as_expr=expr
11791else
11792 as_expr=false
11793fi
11794
11795if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11796 as_basename=basename
11797else
11798 as_basename=false
11799fi
11800
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011801if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11802 as_dirname=dirname
11803else
11804 as_dirname=false
11805fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011806
Theodore Ts'oe1052142006-10-21 21:46:47 -040011807as_me=`$as_basename -- "$0" ||
11808$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11809 X"$0" : 'X\(//\)$' \| \
11810 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011811$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011812 sed '/^.*\/\([^/][^/]*\)\/*$/{
11813 s//\1/
11814 q
11815 }
11816 /^X\/\(\/\/\)$/{
11817 s//\1/
11818 q
11819 }
11820 /^X\/\(\/\).*/{
11821 s//\1/
11822 q
11823 }
11824 s/.*/./; q'`
11825
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011826# Avoid depending upon Character Ranges.
11827as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11828as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11829as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11830as_cr_digits='0123456789'
11831as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011832
11833ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011834case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011835-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011836 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011837 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011838 xy) ECHO_C='\c';;
11839 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11840 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011841 esac;;
11842*)
11843 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011844esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011845
11846rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011847if test -d conf$$.dir; then
11848 rm -f conf$$.dir/conf$$.file
11849else
11850 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011851 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011852fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011853if (echo >conf$$.file) 2>/dev/null; then
11854 if ln -s conf$$.file conf$$ 2>/dev/null; then
11855 as_ln_s='ln -s'
11856 # ... but there are two gotchas:
11857 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11858 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011859 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011860 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011861 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011862 elif ln conf$$.file conf$$ 2>/dev/null; then
11863 as_ln_s=ln
11864 else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011865 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011866 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011867else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011868 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011869fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011870rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11871rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011872
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011873
11874# as_fn_mkdir_p
11875# -------------
11876# Create "$as_dir" as a directory, including parents if necessary.
11877as_fn_mkdir_p ()
11878{
11879
11880 case $as_dir in #(
11881 -*) as_dir=./$as_dir;;
11882 esac
11883 test -d "$as_dir" || eval $as_mkdir_p || {
11884 as_dirs=
11885 while :; do
11886 case $as_dir in #(
11887 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11888 *) as_qdir=$as_dir;;
11889 esac
11890 as_dirs="'$as_qdir' $as_dirs"
11891 as_dir=`$as_dirname -- "$as_dir" ||
11892$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11893 X"$as_dir" : 'X\(//\)[^/]' \| \
11894 X"$as_dir" : 'X\(//\)$' \| \
11895 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11896$as_echo X"$as_dir" |
11897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11898 s//\1/
11899 q
11900 }
11901 /^X\(\/\/\)[^/].*/{
11902 s//\1/
11903 q
11904 }
11905 /^X\(\/\/\)$/{
11906 s//\1/
11907 q
11908 }
11909 /^X\(\/\).*/{
11910 s//\1/
11911 q
11912 }
11913 s/.*/./; q'`
11914 test -d "$as_dir" && break
11915 done
11916 test -z "$as_dirs" || eval "mkdir $as_dirs"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011917 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011918
11919
11920} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011921if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011922 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011923else
11924 test -d ./-p && rmdir ./-p
11925 as_mkdir_p=false
11926fi
11927
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011928
11929# as_fn_executable_p FILE
11930# -----------------------
11931# Test if FILE is an executable regular file.
11932as_fn_executable_p ()
11933{
11934 test -f "$1" && test -x "$1"
11935} # as_fn_executable_p
11936as_test_x='test -x'
11937as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011938
11939# Sed expression to map a string onto a valid CPP name.
11940as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11941
11942# Sed expression to map a string onto a valid variable name.
11943as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11944
11945
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011946exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011947## ----------------------------------- ##
11948## Main body of $CONFIG_STATUS script. ##
11949## ----------------------------------- ##
11950_ASEOF
11951test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011952
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11954# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011955# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040011956# values after options handling.
11957ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011958This file was extended by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011959generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011960
11961 CONFIG_FILES = $CONFIG_FILES
11962 CONFIG_HEADERS = $CONFIG_HEADERS
11963 CONFIG_LINKS = $CONFIG_LINKS
11964 CONFIG_COMMANDS = $CONFIG_COMMANDS
11965 $ $0 $@
11966
Theodore Ts'oe1052142006-10-21 21:46:47 -040011967on `(hostname || uname -n) 2>/dev/null | sed 1q`
11968"
11969
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011970_ACEOF
11971
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011972case $ac_config_files in *"
11973"*) set x $ac_config_files; shift; ac_config_files=$*;;
11974esac
11975
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011976case $ac_config_headers in *"
11977"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11978esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011979
11980
11981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011982# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011983config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011984config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011985config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011986
Theodore Ts'oe1052142006-10-21 21:46:47 -040011987_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011988
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011990ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011991\`$as_me' instantiates files and other configuration actions
11992from templates according to the current configuration. Unless the files
11993and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011994
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011995Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011996
11997 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011998 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011999 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012000 -q, --quiet, --silent
12001 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012002 -d, --debug don't remove temporary files
12003 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012004 --file=FILE[:TEMPLATE]
12005 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012006 --header=FILE[:TEMPLATE]
12007 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012008
12009Configuration files:
12010$config_files
12011
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012012Configuration headers:
12013$config_headers
12014
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012015Configuration commands:
12016$config_commands
12017
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012018Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012019
Theodore Ts'oe1052142006-10-21 21:46:47 -040012020_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012022ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012023ac_cs_version="\\
12024config.status
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012025configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012026 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012027
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012028Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012029This config.status script is free software; the Free Software Foundation
12030gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040012031
12032ac_pwd='$ac_pwd'
12033srcdir='$srcdir'
12034INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012035AWK='$AWK'
12036test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012037_ACEOF
12038
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12040# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012041ac_need_defaults=:
12042while test $# != 0
12043do
12044 case $1 in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012045 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012046 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12047 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012048 ac_shift=:
12049 ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012050 --*=)
12051 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12052 ac_optarg=
12053 ac_shift=:
12054 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012055 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012056 ac_option=$1
12057 ac_optarg=$2
12058 ac_shift=shift
12059 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012060 esac
12061
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012062 case $ac_option in
12063 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012064 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12065 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012066 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012067 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012068 --config | --confi | --conf | --con | --co | --c )
12069 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012070 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012071 debug=: ;;
12072 --file | --fil | --fi | --f )
12073 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012074 case $ac_optarg in
12075 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012076 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012077 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012078 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012079 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012080 --header | --heade | --head | --hea )
12081 $ac_shift
12082 case $ac_optarg in
12083 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12084 esac
12085 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12086 ac_need_defaults=false;;
12087 --he | --h)
12088 # Conflict between --help and --header
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012089 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012090Try \`$0 --help' for more information.";;
12091 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012092 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12094 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12095 ac_cs_silent=: ;;
12096
12097 # This is an error.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012098 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012099Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012100
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012101 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012102 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012103
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012104 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012105 shift
12106done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012107
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012108ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012109
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012110if $ac_cs_silent; then
12111 exec 6>/dev/null
12112 ac_configure_extra_args="$ac_configure_extra_args --silent"
12113fi
12114
12115_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012117if \$ac_cs_recheck; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012118 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012119 shift
12120 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12121 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012122 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012123 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012124fi
12125
12126_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012128exec 5>>config.log
12129{
12130 echo
12131 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12132## Running $as_me. ##
12133_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012134 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012135} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012136
Theodore Ts'oe1052142006-10-21 21:46:47 -040012137_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012139#
Theodore Ts'oe1052142006-10-21 21:46:47 -040012140# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012141#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012142# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012143 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012144 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012145 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012146 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12147 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012148
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012149
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012150_ACEOF
12151
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012153
12154# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012155for ac_config_target in $ac_config_targets
12156do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012157 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012158 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012159 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12160 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12161
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012162 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012163 esac
12164done
12165
Theodore Ts'oe1052142006-10-21 21:46:47 -040012166
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012167# If the user did not use the arguments to specify the items to instantiate,
12168# then the envvar interface is used. Set only those that are not.
12169# We use the long form for the default assignment because of an extremely
12170# bizarre bug on SunOS 4.1.3.
12171if $ac_need_defaults; then
12172 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012173 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012174 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12175fi
12176
12177# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040012178# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012179# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012180# Hook for its removal unless debugging.
12181# Note that there is a small window in which the directory will not be cleaned:
12182# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012183$debug ||
12184{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012185 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040012186 trap 'exit_status=$?
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012187 : "${ac_tmp:=$tmp}"
12188 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040012189' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012190 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012191}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012192# Create a (secure) tmp directory for tmp files.
12193
12194{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012195 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012196 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012197} ||
12198{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012199 tmp=./conf$$-$RANDOM
12200 (umask 077 && mkdir "$tmp")
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012201} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12202ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012203
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012204# Set up the scripts for CONFIG_FILES section.
12205# No need to generate them if there are no CONFIG_FILES.
12206# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012207if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012208
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012209if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12210 ac_cs_awk_getline=:
12211 ac_cs_awk_pipe_init=
12212 ac_cs_awk_read_file='
12213 while ((getline aline < (F[key])) > 0)
12214 print(aline)
12215 close(F[key])'
12216 ac_cs_awk_pipe_fini=
12217else
12218 ac_cs_awk_getline=false
12219 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12220 ac_cs_awk_read_file='
12221 print "|#_!!_#|"
12222 print "cat " F[key] " &&"
12223 '$ac_cs_awk_pipe_init
12224 # The final `:' finishes the AND list.
12225 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12226fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012227ac_cr=`echo X | tr X '\015'`
12228# On cygwin, bash can eat \r inside `` if the user requested igncr.
12229# But we know of no other shell where ac_cr would be empty at this
12230# point, so we can use a bashism as a fallback.
12231if test "x$ac_cr" = x; then
12232 eval ac_cr=\$\'\\r\'
12233fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012234ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12235if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012236 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012237else
12238 ac_cs_awk_cr=$ac_cr
12239fi
12240
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012241echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012242_ACEOF
12243
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012244# Create commands to substitute file output variables.
12245{
12246 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012247 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012248 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12249 echo "_ACAWK" &&
12250 echo "_ACEOF"
12251} >conf$$files.sh &&
12252. ./conf$$files.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012253 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012254rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012255
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012256{
12257 echo "cat >conf$$subs.awk <<_ACEOF" &&
12258 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12259 echo "_ACEOF"
12260} >conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012261 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12262ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012263ac_delim='%!_!# '
12264for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012265 . ./conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012266 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012267
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012268 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12269 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012270 break
12271 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012272 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012273 else
12274 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012275 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012276done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012277rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012278
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012280cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012281_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012282sed -n '
12283h
12284s/^/S["/; s/!.*/"]=/
12285p
12286g
12287s/^[^!]*!//
12288:repl
12289t repl
12290s/'"$ac_delim"'$//
12291t delim
12292:nl
12293h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012294s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012295t more1
12296s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12297p
12298n
12299b repl
12300:more1
12301s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12302p
12303g
12304s/.\{148\}//
12305t nl
12306:delim
12307h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012308s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012309t more2
12310s/["\\]/\\&/g; s/^/"/; s/$/"/
12311p
12312b
12313:more2
12314s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12315p
12316g
12317s/.\{148\}//
12318t delim
12319' <conf$$subs.awk | sed '
12320/^[^""]/{
12321 N
12322 s/\n//
12323}
12324' >>$CONFIG_STATUS || ac_write_fail=1
12325rm -f conf$$subs.awk
12326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12327_ACAWK
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012328cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012329 for (key in S) S_is_set[key] = 1
12330 FS = ""
12331 \$ac_cs_awk_pipe_init
12332}
12333{
12334 line = $ 0
12335 nfields = split(line, field, "@")
12336 substed = 0
12337 len = length(field[1])
12338 for (i = 2; i < nfields; i++) {
12339 key = field[i]
12340 keylen = length(key)
12341 if (S_is_set[key]) {
12342 value = S[key]
12343 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12344 len += length(value) + length(field[++i])
12345 substed = 1
12346 } else
12347 len += 1 + keylen
12348 }
12349 if (nfields == 3 && !substed) {
12350 key = field[2]
12351 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12352 \$ac_cs_awk_read_file
12353 next
12354 }
12355 }
12356 print line
12357}
12358\$ac_cs_awk_pipe_fini
12359_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040012360_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012361cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12362if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12363 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12364else
12365 cat
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012366fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12367 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012368_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012369
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012370# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12371# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040012372# trailing colons and then remove the whole line if VPATH becomes empty
12373# (actually we leave an empty line to preserve line numbers).
12374if test "x$srcdir" = x.; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012375 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12376h
12377s///
12378s/^/:/
12379s/[ ]*$/:/
12380s/:\$(srcdir):/:/g
12381s/:\${srcdir}:/:/g
12382s/:@srcdir@:/:/g
12383s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012384s/:*$//
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012385x
12386s/\(=[ ]*\).*/\1/
12387G
12388s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012389s/^[^=]*=[ ]*$//
12390}'
12391fi
12392
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012394fi # test -n "$CONFIG_FILES"
12395
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012396# Set up the scripts for CONFIG_HEADERS section.
12397# No need to generate them if there are no CONFIG_HEADERS.
12398# This happens for instance with `./config.status Makefile'.
12399if test -n "$CONFIG_HEADERS"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012400cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012401BEGIN {
12402_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012403
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012404# Transform confdefs.h into an awk script `defines.awk', embedded as
12405# here-document in config.status, that substitutes the proper values into
12406# config.h.in to produce config.h.
12407
12408# Create a delimiter string that does not exist in confdefs.h, to ease
12409# handling of long lines.
12410ac_delim='%!_!# '
12411for ac_last_try in false false :; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012412 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12413 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012414 break
12415 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012416 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012417 else
12418 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12419 fi
12420done
12421
12422# For the awk script, D is an array of macro values keyed by name,
12423# likewise P contains macro parameters if any. Preserve backslash
12424# newline sequences.
12425
12426ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12427sed -n '
12428s/.\{148\}/&'"$ac_delim"'/g
12429t rset
12430:rset
12431s/^[ ]*#[ ]*define[ ][ ]*/ /
12432t def
12433d
12434:def
12435s/\\$//
12436t bsnl
12437s/["\\]/\\&/g
12438s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12439D["\1"]=" \3"/p
12440s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12441d
12442:bsnl
12443s/["\\]/\\&/g
12444s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12445D["\1"]=" \3\\\\\\n"\\/p
12446t cont
12447s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12448t cont
12449d
12450:cont
12451n
12452s/.\{148\}/&'"$ac_delim"'/g
12453t clear
12454:clear
12455s/\\$//
12456t bsnlc
12457s/["\\]/\\&/g; s/^/"/; s/$/"/p
12458d
12459:bsnlc
12460s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12461b cont
12462' <confdefs.h | sed '
12463s/'"$ac_delim"'/"\\\
12464"/g' >>$CONFIG_STATUS || ac_write_fail=1
12465
12466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12467 for (key in D) D_is_set[key] = 1
12468 FS = ""
12469}
12470/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12471 line = \$ 0
12472 split(line, arg, " ")
12473 if (arg[1] == "#") {
12474 defundef = arg[2]
12475 mac1 = arg[3]
12476 } else {
12477 defundef = substr(arg[1], 2)
12478 mac1 = arg[2]
12479 }
12480 split(mac1, mac2, "(") #)
12481 macro = mac2[1]
12482 prefix = substr(line, 1, index(line, defundef) - 1)
12483 if (D_is_set[macro]) {
12484 # Preserve the white space surrounding the "#".
12485 print prefix "define", macro P[macro] D[macro]
12486 next
12487 } else {
12488 # Replace #undef with comments. This is necessary, for example,
12489 # in the case of _POSIX_SOURCE, which is predefined and required
12490 # on some systems where configure will not decide to define it.
12491 if (defundef == "undef") {
12492 print "/*", prefix defundef, macro, "*/"
12493 next
12494 }
12495 }
12496}
12497{ print }
12498_ACAWK
12499_ACEOF
12500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012501 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012502fi # test -n "$CONFIG_HEADERS"
12503
12504
12505eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012506shift
12507for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040012508do
12509 case $ac_tag in
12510 :[FHLC]) ac_mode=$ac_tag; continue;;
12511 esac
12512 case $ac_mode$ac_tag in
12513 :[FHL]*:*);;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012514 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012515 :[FH]-) ac_tag=-:-;;
12516 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12517 esac
12518 ac_save_IFS=$IFS
12519 IFS=:
12520 set x $ac_tag
12521 IFS=$ac_save_IFS
12522 shift
12523 ac_file=$1
12524 shift
12525
12526 case $ac_mode in
12527 :L) ac_source=$1;;
12528 :[FH])
12529 ac_file_inputs=
12530 for ac_f
12531 do
12532 case $ac_f in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012533 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012534 *) # Look for the file first in the build tree, then in the source tree
12535 # (if the path is not absolute). The absolute path cannot be DOS-style,
12536 # because $ac_f cannot contain `:'.
12537 test -f "$ac_f" ||
12538 case $ac_f in
12539 [\\/$]*) false;;
12540 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12541 esac ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012542 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012543 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012544 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012545 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012546 done
12547
12548 # Let's still pretend it is `configure' which instantiates (i.e., don't
12549 # use $as_me), people would be surprised to read:
12550 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012551 configure_input='Generated from '`
12552 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12553 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012554 if test x"$ac_file" != x-; then
12555 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012556 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012557$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012558 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012559 # Neutralize special characters interpreted by sed in replacement strings.
12560 case $configure_input in #(
12561 *\&* | *\|* | *\\* )
12562 ac_sed_conf_input=`$as_echo "$configure_input" |
12563 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12564 *) ac_sed_conf_input=$configure_input;;
12565 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012566
12567 case $ac_tag in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012568 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012570 esac
12571 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012572 esac
12573
Theodore Ts'oe1052142006-10-21 21:46:47 -040012574 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012575$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12576 X"$ac_file" : 'X\(//\)[^/]' \| \
12577 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012578 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012579$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12581 s//\1/
12582 q
12583 }
12584 /^X\(\/\/\)[^/].*/{
12585 s//\1/
12586 q
12587 }
12588 /^X\(\/\/\)$/{
12589 s//\1/
12590 q
12591 }
12592 /^X\(\/\).*/{
12593 s//\1/
12594 q
12595 }
12596 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012597 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012598 ac_builddir=.
12599
Theodore Ts'oe1052142006-10-21 21:46:47 -040012600case "$ac_dir" in
12601.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12602*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012604 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012606 case $ac_top_builddir_sub in
12607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12609 esac ;;
12610esac
12611ac_abs_top_builddir=$ac_pwd
12612ac_abs_builddir=$ac_pwd$ac_dir_suffix
12613# for backward compatibility:
12614ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012615
12616case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012617 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012618 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012619 ac_top_srcdir=$ac_top_builddir_sub
12620 ac_abs_top_srcdir=$ac_pwd ;;
12621 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012622 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012623 ac_top_srcdir=$srcdir
12624 ac_abs_top_srcdir=$srcdir ;;
12625 *) # Relative name.
12626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12627 ac_top_srcdir=$ac_top_build_prefix$srcdir
12628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012629esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012630ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012631
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012632
Theodore Ts'oe1052142006-10-21 21:46:47 -040012633 case $ac_mode in
12634 :F)
12635 #
12636 # CONFIG_FILE
12637 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012638
12639 case $INSTALL in
12640 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012641 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012642 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012643_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012644
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012646# If the template does not know about datarootdir, expand it.
12647# FIXME: This hack should be removed a few years after 2.60.
12648ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012649ac_sed_dataroot='
12650/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012651 p
12652 q
12653}
12654/@datadir@/p
12655/@docdir@/p
12656/@infodir@/p
12657/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012658/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012659case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012660*datarootdir*) ac_datarootdir_seen=yes;;
12661*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012662 { $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 +010012663$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012664_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012666 ac_datarootdir_hack='
12667 s&@datadir@&$datadir&g
12668 s&@docdir@&$docdir&g
12669 s&@infodir@&$infodir&g
12670 s&@localedir@&$localedir&g
12671 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012672 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012673esac
12674_ACEOF
12675
12676# Neutralize VPATH when `$srcdir' = `.'.
12677# Shell code in configure.ac might set extrasub.
12678# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12680ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012681$extrasub
12682_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012684:t
12685/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012686s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012687s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012688s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012689s&@srcdir@&$ac_srcdir&;t t
12690s&@abs_srcdir@&$ac_abs_srcdir&;t t
12691s&@top_srcdir@&$ac_top_srcdir&;t t
12692s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12693s&@builddir@&$ac_builddir&;t t
12694s&@abs_builddir@&$ac_abs_builddir&;t t
12695s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12696s&@INSTALL@&$ac_INSTALL&;t t
12697$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012698"
12699eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12700if $ac_cs_awk_getline; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012701 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012702else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012703 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12704fi \
12705 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012706
Theodore Ts'oe1052142006-10-21 21:46:47 -040012707test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012708 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12709 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12710 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012711 { $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 -040012712which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012713$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012714which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012715
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012716 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012717 case $ac_file in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012718 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12719 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012720 esac \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012722 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012723 :H)
12724 #
12725 # CONFIG_HEADER
12726 #
12727 if test x"$ac_file" != x-; then
12728 {
12729 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012730 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12731 } >"$ac_tmp/config.h" \
12732 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12733 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012734 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12735$as_echo "$as_me: $ac_file is unchanged" >&6;}
12736 else
12737 rm -f "$ac_file"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012738 mv "$ac_tmp/config.h" "$ac_file" \
12739 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012740 fi
12741 else
12742 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012743 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12744 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012745 fi
12746 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012747
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012748 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012749$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012750 ;;
12751 esac
12752
12753
12754 case $ac_file$ac_mode in
12755 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012756 for ac_file in $CONFIG_FILES; do
12757 # Support "outfile[:infile[:infile...]]"
12758 case "$ac_file" in
12759 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012760 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012761 # PO directories have a Makefile.in generated from Makefile.in.in.
12762 case "$ac_file" in */Makefile.in)
12763 # Adjust a relative srcdir.
12764 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12765 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12766 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12767 # In autoconf-2.13 it is called $ac_given_srcdir.
12768 # In autoconf-2.50 it is called $srcdir.
12769 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12770 case "$ac_given_srcdir" in
12771 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12772 /*) top_srcdir="$ac_given_srcdir" ;;
12773 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12774 esac
12775 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12776 rm -f "$ac_dir/POTFILES"
12777 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12778 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 -050012779 POMAKEFILEDEPS="POTFILES.in"
12780 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012781 # on $ac_dir but don't depend on user-specified configuration
12782 # parameters.
12783 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12784 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012785 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012786 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12787 fi
12788 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12789 # Hide the ALL_LINGUAS assigment from automake.
12790 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012791 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12792 else
12793 # The set of available languages was given in configure.in.
12794 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012795 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012796 # Compute POFILES
12797 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12798 # Compute UPDATEPOFILES
12799 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12800 # Compute DUMMYPOFILES
12801 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12802 # Compute GMOFILES
12803 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012804 case "$ac_given_srcdir" in
12805 .) srcdirpre= ;;
12806 *) srcdirpre='$(srcdir)/' ;;
12807 esac
12808 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012809 UPDATEPOFILES=
12810 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012811 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012812 for lang in $ALL_LINGUAS; do
12813 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012814 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12815 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012816 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012817 done
12818 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12819 # environment variable.
12820 INST_LINGUAS=
12821 if test -n "$ALL_LINGUAS"; then
12822 for presentlang in $ALL_LINGUAS; do
12823 useit=no
12824 if test "%UNSET%" != "$LINGUAS"; then
12825 desiredlanguages="$LINGUAS"
12826 else
12827 desiredlanguages="$ALL_LINGUAS"
12828 fi
12829 for desiredlang in $desiredlanguages; do
12830 # Use the presentlang catalog if desiredlang is
12831 # a. equal to presentlang, or
12832 # b. a variant of presentlang (because in this case,
12833 # presentlang can be used as a fallback for messages
12834 # which are not translated in the desiredlang catalog).
12835 case "$desiredlang" in
12836 "$presentlang"*) useit=yes;;
12837 esac
12838 done
12839 if test $useit = yes; then
12840 INST_LINGUAS="$INST_LINGUAS $presentlang"
12841 fi
12842 done
12843 fi
12844 CATALOGS=
12845 if test -n "$INST_LINGUAS"; then
12846 for lang in $INST_LINGUAS; do
12847 CATALOGS="$CATALOGS $lang.gmo"
12848 done
12849 fi
12850 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012851 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 -040012852 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12853 if test -f "$f"; then
12854 case "$f" in
12855 *.orig | *.bak | *~) ;;
12856 *) cat "$f" >> "$ac_dir/Makefile" ;;
12857 esac
12858 fi
12859 done
12860 fi
12861 ;;
12862 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012863 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012864
Theodore Ts'oe1052142006-10-21 21:46:47 -040012865 esac
12866done # for ac_tag
12867
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012868
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012869as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012870_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012871ac_clean_files=$ac_clean_files_save
12872
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012873test $ac_write_fail = 0 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012874 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012875
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012876
12877# configure is writing to config.log, and then calls config.status.
12878# config.status does its own redirection, appending to config.log.
12879# Unfortunately, on DOS this fails, as config.log is still kept open
12880# by configure, so config.status won't be able to write to it; its
12881# output is simply discarded. So we exec the FD to /dev/null,
12882# effectively closing config.log, so it can be properly (re)opened and
12883# appended to by config.status. When coming back to configure, we
12884# need to make the FD available again.
12885if test "$no_create" != yes; then
12886 ac_cs_success=:
12887 ac_config_status_args=
12888 test "$silent" = yes &&
12889 ac_config_status_args="$ac_config_status_args --quiet"
12890 exec 5>/dev/null
12891 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12892 exec 5>>config.log
12893 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12894 # would make configure fail if this is the last instruction.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012895 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012896fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012897if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012899$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12900fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012901
Theodore Ts'oee683a12005-02-05 15:53:56 -050012902if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi