blob: e571948f24f43e14dddbc981156537ac77eb298e [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.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003# Generated by GNU Autoconf 2.69.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005#
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006# 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.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100090as_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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000135# 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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000193test 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 :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000239 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"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000355 } || 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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000359
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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000403# 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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000407# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500408as_fn_error ()
409{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000410 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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000415 $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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000488 # 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.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000526 # 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 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000528 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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000532 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100533 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500534else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000535 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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000547as_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.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000561# 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'o93613952014-07-03 23:44:13 -0400622gt_needs=
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400623ac_header_list=
Theodore Ts'o93613952014-07-03 23:44:13 -0400624gl_use_threads_default=
625ac_func_list=
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100626ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400627LIBOBJS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100628BUILD_LDFLAGS
629BUILD_CFLAGS
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -0400630MKINSTALLDIRS
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400631INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100632DO_TEST_SUITE
633ET_DIR
634SS_DIR
635LDFLAG_STATIC
636root_sysconfdir
637root_libdir
638root_sbindir
639root_bindir
640root_prefix
641UNIX_CMT
642CYGWIN_CMT
643LINUX_CMT
644UNI_DIFF_OPTS
645SEM_INIT_LIB
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700646FUSE_CMT
647FUSE_LIB
Darrick J. Wongb291c112014-09-13 15:12:46 -0700648MAGIC_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100649SOCKET_LIB
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400650SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100651SIZEOF_LONG_LONG
652SIZEOF_LONG
653SIZEOF_INT
654SIZEOF_SHORT
655BUILD_CC
656MAKEINFO
657STRIP
658AR
659LDCONFIG
660PERL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100661AWK
662CHMOD
663RM
664CP
665MV
666LN_S
667LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400668ifNotGNUmake
669ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100670BINARY_TYPE
671POSUB
672LTLIBINTL
673LIBINTL
674INTLLIBS
675INTL_LIBTOOL_SUFFIX_PREFIX
676INTLOBJS
677GENCAT
678INSTOBJEXT
679DATADIRNAME
680CATOBJEXT
681USE_INCLUDED_LIBINTL
682BUILD_INCLUDED_LIBINTL
Theodore Ts'o93613952014-07-03 23:44:13 -0400683LTLIBC
684WINDRES
685WOE32
686WOE32DLL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100687HAVE_WPRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400688HAVE_NEWLOCALE
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100689HAVE_SNPRINTF
690HAVE_ASPRINTF
691HAVE_POSIX_PRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400692INTL_DEFAULT_VERBOSITY
693INTL_MACOSX_LIBS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100694GLIBC21
Theodore Ts'o93613952014-07-03 23:44:13 -0400695INTLBISON
696LTLIBICONV
697LIBICONV
698LTLIBMULTITHREAD
699LIBMULTITHREAD
700LTLIBTHREAD
701LIBTHREAD
702LIBPTH_PREFIX
703LTLIBPTH
704LIBPTH
705PRI_MACROS_BROKEN
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100706ALLOCA
Theodore Ts'o93613952014-07-03 23:44:13 -0400707HAVE_VISIBILITY
708CFLAG_VISIBILITY
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100709RANLIB
Theodore Ts'o93613952014-07-03 23:44:13 -0400710GLIBC2
711XGETTEXT_EXTRA_OPTIONS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100712MSGMERGE
Theodore Ts'o93613952014-07-03 23:44:13 -0400713XGETTEXT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100714XGETTEXT
Theodore Ts'o93613952014-07-03 23:44:13 -0400715GMSGFMT_015
716MSGFMT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100717GMSGFMT
718MSGFMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400719GETTEXT_MACRO_VERSION
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100720USE_NLS
Theodore Ts'o93613952014-07-03 23:44:13 -0400721SED
722MKDIR_P
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100723INSTALL_DATA
724INSTALL_SCRIPT
725INSTALL_PROGRAM
726SET_MAKE
727VERSION
728PACKAGE
729GETTEXT_PACKAGE
730UUIDD_CMT
731E2INITRD_MAN
732E2INITRD_PROG
733FSCK_MAN
734FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500735DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100736RESIZER_CMT
737IMAGER_CMT
738DEBUGFS_CMT
Aditya Kalif239fef2011-07-20 11:40:02 -0700739QUOTA_CMT
740DEPPROFILED_LIBQUOTA
741PROFILED_LIBQUOTA
742DEPSTATIC_LIBQUOTA
743STATIC_LIBQUOTA
744DEPLIBQUOTA
745LIBQUOTA
Eric Sandeenf5589f42013-10-14 08:54:15 -0400746QUOTA_MAN_COMMENT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100747BLKID_CMT
748DEPPROFILED_LIBBLKID
749PROFILED_LIBBLKID
750DEPSTATIC_LIBBLKID
751STATIC_LIBBLKID
752DEPLIBBLKID
753LIBBLKID
754UUID_CMT
755DEPPROFILED_LIBUUID
756PROFILED_LIBUUID
757DEPSTATIC_LIBUUID
758STATIC_LIBUUID
759DEPLIBUUID
760LIBUUID
Theodore Ts'o93613952014-07-03 23:44:13 -0400761PKG_CONFIG_LIBDIR
762PKG_CONFIG_PATH
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100763PKG_CONFIG
764TEST_IO_CMT
765PRIVATE_LIBS_CMT
766LDFLAG_DYNAMIC
767PROFILED_LIB_EXT
768STATIC_LIB_EXT
769LIB_EXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100770PROFILE_CMT
771BSDLIB_CMT
772ELF_CMT
773HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400774Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400775ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400776E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400777LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400778SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400779LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100780MAINTAINER_CMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400781EGREP
782GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100783CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400784RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500785DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100786OBJEXT
787EXEEXT
788ac_ct_CC
789CPPFLAGS
790LDFLAGS
791CFLAGS
792CC
793host_os
794host_vendor
795host_cpu
796host
797build_os
798build_vendor
799build_cpu
800build
801E2FSPROGS_PKGVER
802E2FSPROGS_VERSION
803E2FSPROGS_DAY
804E2FSPROGS_MONTH
805E2FSPROGS_YEAR
806target_alias
807host_alias
808build_alias
809LIBS
810ECHO_T
811ECHO_N
812ECHO_C
813DEFS
814mandir
815localedir
816libdir
817psdir
818pdfdir
819dvidir
820htmldir
821infodir
822docdir
823oldincludedir
824includedir
825localstatedir
826sharedstatedir
827sysconfdir
828datadir
829datarootdir
830libexecdir
831sbindir
832bindir
833program_transform_name
834prefix
835exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500836PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100837PACKAGE_BUGREPORT
838PACKAGE_STRING
839PACKAGE_VERSION
840PACKAGE_TARNAME
841PACKAGE_NAME
842PATH_SEPARATOR
843SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400844ac_subst_files='MCONFIG
845MAKEFILE_ELF
846MAKEFILE_BSDLIB
847MAKEFILE_PROFILE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400848MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400849ASM_TYPES_HEADER
850PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100851ac_user_opts='
852enable_option_checking
853with_diet_libc
854with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100855with_ccopts
856with_ldopts
857with_root_prefix
858enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400859enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400860enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400861enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400862enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400863enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100864enable_htree
865enable_elf_shlibs
866enable_bsd_shlibs
867enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500868enable_gcov
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100869enable_jbd_debug
870enable_blkid_debug
871enable_testio_debug
872enable_libuuid
873enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500874enable_quota
Theodore Ts'o3df60142013-06-16 16:14:40 -0400875enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100876enable_debugfs
877enable_imager
878enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500879enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100880enable_fsck
881enable_e2initrd_helper
882enable_tls
883enable_uuidd
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000884enable_mmp
Tony Breeds1625bf42012-07-30 14:44:12 -0400885enable_bmap_stats
886enable_bmap_stats_ops
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100887enable_nls
Theodore Ts'o93613952014-07-03 23:44:13 -0400888enable_threads
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100889with_gnu_ld
890enable_rpath
Theodore Ts'o93613952014-07-03 23:44:13 -0400891with_libpth_prefix
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100892with_libiconv_prefix
893with_included_gettext
894with_libintl_prefix
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700895enable_fuse2fs
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400896with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100897'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400898 ac_precious_vars='build_alias
899host_alias
900target_alias
901CC
902CFLAGS
903LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400904LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400905CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400906CPP
Theodore Ts'o93613952014-07-03 23:44:13 -0400907PKG_CONFIG
908PKG_CONFIG_PATH
909PKG_CONFIG_LIBDIR'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400910
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000911
912# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500913ac_init_help=
914ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100915ac_unrecognized_opts=
916ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000917# The variables have the same names as the options, with
918# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500919cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000920exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000921no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000922no_recursion=
923prefix=NONE
924program_prefix=NONE
925program_suffix=NONE
926program_transform_name=s,x,x,
927silent=
928site=
929srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000930verbose=
931x_includes=NONE
932x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500933
934# Installation directory options.
935# These are left unexpanded so users can "make install exec_prefix=/foo"
936# and all the variables that are supposed to be based on exec_prefix
937# by default will actually change.
938# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400939# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000940bindir='${exec_prefix}/bin'
941sbindir='${exec_prefix}/sbin'
942libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400943datarootdir='${prefix}/share'
944datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000945sysconfdir='${prefix}/etc'
946sharedstatedir='${prefix}/com'
947localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000948includedir='${prefix}/include'
949oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400950docdir='${datarootdir}/doc/${PACKAGE}'
951infodir='${datarootdir}/info'
952htmldir='${docdir}'
953dvidir='${docdir}'
954pdfdir='${docdir}'
955psdir='${docdir}'
956libdir='${exec_prefix}/lib'
957localedir='${datarootdir}/locale'
958mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000959
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000960ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400961ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000962for ac_option
963do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400966 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000967 ac_prev=
968 continue
969 fi
970
Theodore Ts'oe1052142006-10-21 21:46:47 -0400971 case $ac_option in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 *=) ac_optarg= ;;
974 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400975 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000976
977 # Accept the important Cygnus configure options, so we can diagnose typos.
978
Theodore Ts'oe1052142006-10-21 21:46:47 -0400979 case $ac_dashdash$ac_option in
980 --)
981 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000982
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 ac_prev=bindir ;;
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500986 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000987
988 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500989 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500991 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000992
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500998 cache_file=$ac_optarg ;;
999
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001002
Theodore Ts'oe1052142006-10-21 21:46:47 -04001003 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001004 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001006 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001007
Theodore Ts'oe1052142006-10-21 21:46:47 -04001008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1014
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001015 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001017 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001019 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024"enable_$ac_useropt"
1025"*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001030
1031 -docdir | --docdir | --docdi | --doc | --do)
1032 ac_prev=docdir ;;
1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034 docdir=$ac_optarg ;;
1035
1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037 ac_prev=dvidir ;;
1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001040
1041 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001042 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001043 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001045 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1049 *"
1050"enable_$ac_useropt"
1051"*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001056
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001064 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001065
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1068 with_gas=yes ;;
1069
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001076
1077 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001078 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001079 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001080 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001081
Theodore Ts'oe1052142006-10-21 21:46:47 -04001082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083 ac_prev=htmldir ;;
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085 | --ht=*)
1086 htmldir=$ac_optarg ;;
1087
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001093 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001094
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1096 ac_prev=infodir ;;
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001098 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001099
1100 -libdir | --libdir | --libdi | --libd)
1101 ac_prev=libdir ;;
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001103 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001104
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001110 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001111
Theodore Ts'oe1052142006-10-21 21:46:47 -04001112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1116
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001117 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001118 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001122 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001123
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125 ac_prev=mandir ;;
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001127 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001128
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1131 with_fp=no ;;
1132
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001134 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001135 no_create=yes ;;
1136
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 no_recursion=yes ;;
1140
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001148 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001149
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151 ac_prev=prefix ;;
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001153 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001154
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001160 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001161
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001167 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001168
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001184 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001185
Theodore Ts'oe1052142006-10-21 21:46:47 -04001186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187 ac_prev=pdfdir ;;
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1190
1191 -psdir | --psdir | --psdi | --psd | --ps)
1192 ac_prev=psdir ;;
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 psdir=$ac_optarg ;;
1195
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1198 silent=yes ;;
1199
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201 ac_prev=sbindir ;;
1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001204 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001205
1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208 | --sharedst | --shareds | --shared | --share | --shar \
1209 | --sha | --sh)
1210 ac_prev=sharedstatedir ;;
1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001215 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001216
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001217 -site | --site | --sit)
1218 ac_prev=site ;;
1219 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001220 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001221
1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223 ac_prev=srcdir ;;
1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001225 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001226
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228 | --syscon | --sysco | --sysc | --sys | --sy)
1229 ac_prev=sysconfdir ;;
1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001232 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001233
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001234 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001235 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001237 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001238
1239 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240 verbose=yes ;;
1241
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001242 -version | --version | --versio | --versi | --vers | -V)
1243 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001244
1245 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001246 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001247 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001249 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001250 ac_useropt_orig=$ac_useropt
1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1253 *"
1254"with_$ac_useropt"
1255"*) ;;
1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1257 ac_unrecognized_sep=', ';;
1258 esac
1259 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001260
1261 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001262 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001263 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001265 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1269 *"
1270"with_$ac_useropt"
1271"*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001276
1277 --x)
1278 # Obsolete; use --with-x.
1279 with_x=yes ;;
1280
1281 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282 | --x-incl | --x-inc | --x-in | --x-i)
1283 ac_prev=x_includes ;;
1284 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001286 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001287
1288 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290 ac_prev=x_libraries ;;
1291 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001293 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001294
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001295 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1296Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001297 ;;
1298
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001299 *=*)
1300 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1301 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001302 case $ac_envvar in #(
1303 '' | [0-9]* | *[!_$as_cr_alnum]* )
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001304 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001305 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001306 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001307 export $ac_envvar ;;
1308
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001309 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001310 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001314 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001315 ;;
1316
1317 esac
1318done
1319
1320if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001321 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001322 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001323fi
1324
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001325if test -n "$ac_unrecognized_opts"; then
1326 case $enable_option_checking in
1327 no) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001328 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001329 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1330 esac
1331fi
1332
1333# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001334for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001338do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001339 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001340 # Remove trailing slashes.
1341 case $ac_val in
1342 */ )
1343 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344 eval $ac_var=\$ac_val;;
1345 esac
1346 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001347 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001348 [\\/$]* | ?:[\\/]* ) continue;;
1349 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001350 esac
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001351 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001352done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001353
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001354# There might be people who depend on the old broken behavior: `$host'
1355# used to hold the argument of --host etc.
1356# FIXME: To remove some day.
1357build=$build_alias
1358host=$host_alias
1359target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001360
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001361# FIXME: To remove some day.
1362if test "x$host_alias" != x; then
1363 if test "x$build_alias" = x; then
1364 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001365 elif test "x$build_alias" != "x$host_alias"; then
1366 cross_compiling=yes
1367 fi
1368fi
1369
1370ac_tool_prefix=
1371test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372
1373test "$silent" = yes && exec 6>/dev/null
1374
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001375
Theodore Ts'oe1052142006-10-21 21:46:47 -04001376ac_pwd=`pwd` && test -n "$ac_pwd" &&
1377ac_ls_di=`ls -di .` &&
1378ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001379 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001380test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001381 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001382
1383
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001384# Find the source files, if location was not specified.
1385if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001387 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001388 ac_confdir=`$as_dirname -- "$as_myself" ||
1389$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390 X"$as_myself" : 'X\(//\)[^/]' \| \
1391 X"$as_myself" : 'X\(//\)$' \| \
1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1393$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)[^/].*/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\).*/{
1407 s//\1/
1408 q
1409 }
1410 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001411 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001412 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001413 srcdir=..
1414 fi
1415else
1416 ac_srcdir_defaulted=no
1417fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001418if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001420 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001421fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001422ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423ac_abs_confdir=`(
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001424 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001425 pwd)`
1426# When building in place, set srcdir=.
1427if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 srcdir=.
1429fi
1430# Remove unnecessary trailing slashes from srcdir.
1431# Double slashes in file names in object file debugging info
1432# mess up M-x gdb in Emacs.
1433case $srcdir in
1434*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435esac
1436for ac_var in $ac_precious_vars; do
1437 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_${ac_var}_value=\$${ac_var}
1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001442
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001443#
1444# Report the --help message.
1445#
1446if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1449 cat <<_ACEOF
1450\`configure' configures this package to adapt to many kinds of systems.
1451
1452Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455VAR=VALUE. See below for descriptions of some of the useful variables.
1456
1457Defaults for the options are specified in brackets.
1458
1459Configuration:
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001464 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001470Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001472 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001474 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001475
1476By default, \`make install' will install all the files in
1477\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479for instance \`--prefix=\$HOME'.
1480
1481For better control, use the options below.
1482
1483Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001503_ACEOF
1504
1505 cat <<\_ACEOF
1506
1507System types:
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510_ACEOF
1511fi
1512
1513if test -n "$ac_init_help"; then
1514
1515 cat <<\_ACEOF
1516
1517Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001518 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001521 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001522 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001523 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001524
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001525 --enable-symlink-build use symlinks while building instead of hard links
1526 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001527 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001528 --enable-elf-shlibs select ELF shared libraries
1529 --enable-bsd-shlibs select BSD shared libraries
1530 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001531 --enable-gcov build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001532 --enable-jbd-debug enable journal debugging
1533 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001534 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001535 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001536 --disable-libblkid do not build private blkid library
Eric Sandeen7b8912e2012-11-27 12:21:56 -06001537 --enable-quota enable quota support
Theodore Ts'o3df60142013-06-16 16:14:40 -04001538 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001539 --disable-debugfs disable support of debugfs program
1540 --disable-imager disable support of e2image program
1541 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001542 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001543 --enable-fsck build fsck wrapper program
1544 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001545 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001546 --disable-uuidd disable building the uuid daemon
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001547 --disable-mmp disable support mmp, Multi Mount Protection
Tony Breeds1625bf42012-07-30 14:44:12 -04001548 --disable-bmap-stats disable collection of bitmap stats.
1549 --enable-bmap-stats-ops enable collection of additional bitmap stats
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001550 --disable-nls do not use Native Language Support
Theodore Ts'o93613952014-07-03 23:44:13 -04001551 --enable-threads={posix|solaris|pth|windows}
1552 specify multithreading API
1553 --disable-threads build without multithread safety
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001554 --disable-rpath do not hardcode runtime library paths
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -07001555 --disable-fuse2fs do not build fuse2fs
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001556
1557Optional Packages:
1558 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1559 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001560 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001561 --with-cc no longer supported, use CC= instead
1562 --with-ccopts no longer supported, use CFLAGS= instead
1563 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001564 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
Theodore Ts'o93613952014-07-03 23:44:13 -04001565 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1566 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1567 --without-libpth-prefix don't search for libpth in includedir and libdir
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001568 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1569 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1570 --with-included-gettext use the GNU gettext library included here
1571 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1572 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001573 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001574
1575Some influential environment variables:
1576 CC C compiler command
1577 CFLAGS C compiler flags
1578 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1579 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001580 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001581 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001582 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001583 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001584 PKG_CONFIG path to pkg-config utility
Theodore Ts'o93613952014-07-03 23:44:13 -04001585 PKG_CONFIG_PATH
1586 directories to add to pkg-config's search path
1587 PKG_CONFIG_LIBDIR
1588 path overriding pkg-config's built-in search path
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001589
1590Use these variables to override the choices made by `configure' or to help
1591it to find libraries and programs with nonstandard names/locations.
1592
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001593Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001594_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001595ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001596fi
1597
1598if test "$ac_init_help" = "recursive"; then
1599 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001600 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001601 test -d "$ac_dir" ||
1602 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1603 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001604 ac_builddir=.
1605
Theodore Ts'oe1052142006-10-21 21:46:47 -04001606case "$ac_dir" in
1607.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001609 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001610 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001611 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001612 case $ac_top_builddir_sub in
1613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1615 esac ;;
1616esac
1617ac_abs_top_builddir=$ac_pwd
1618ac_abs_builddir=$ac_pwd$ac_dir_suffix
1619# for backward compatibility:
1620ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001621
1622case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001623 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001624 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001625 ac_top_srcdir=$ac_top_builddir_sub
1626 ac_abs_top_srcdir=$ac_pwd ;;
1627 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001628 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001629 ac_top_srcdir=$srcdir
1630 ac_abs_top_srcdir=$srcdir ;;
1631 *) # Relative name.
1632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1633 ac_top_srcdir=$ac_top_build_prefix$srcdir
1634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001635esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001636ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001637
Theodore Ts'oe1052142006-10-21 21:46:47 -04001638 cd "$ac_dir" || { ac_status=$?; continue; }
1639 # Check for guested configure.
1640 if test -f "$ac_srcdir/configure.gnu"; then
1641 echo &&
1642 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1643 elif test -f "$ac_srcdir/configure"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001646 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001647 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001648 fi || ac_status=$?
1649 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001650 done
1651fi
1652
Theodore Ts'oe1052142006-10-21 21:46:47 -04001653test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001654if $ac_init_version; then
1655 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001656configure
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001657generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001658
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001659Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001660This configure script is free software; the Free Software Foundation
1661gives unlimited permission to copy, distribute and modify it.
1662_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001663 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001664fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001665
1666## ------------------------ ##
1667## Autoconf initialization. ##
1668## ------------------------ ##
1669
1670# ac_fn_c_try_compile LINENO
1671# --------------------------
1672# Try to compile conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_c_try_compile ()
1674{
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext
1677 if { { ac_try="$ac_compile"
1678case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_compile") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest.$ac_objext; then :
1696 ac_retval=0
1697else
1698 $as_echo "$as_me: failed program was:" >&5
1699sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=1
1702fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001704 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001705
1706} # ac_fn_c_try_compile
1707
1708# ac_fn_c_try_link LINENO
1709# -----------------------
1710# Try to link conftest.$ac_ext, and return whether this succeeded.
1711ac_fn_c_try_link ()
1712{
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext conftest$ac_exeext
1715 if { { ac_try="$ac_link"
1716case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719esac
1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721$as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1728 fi
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest$ac_exeext && {
1734 test "$cross_compiling" = yes ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001735 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001736 }; then :
1737 ac_retval=0
1738else
1739 $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=1
1743fi
1744 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1745 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1746 # interfere with the next link command; also delete a directory that is
1747 # left behind by Apple's compiler. We do this before executing the actions.
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001750 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001751
1752} # ac_fn_c_try_link
1753
1754# ac_fn_c_try_cpp LINENO
1755# ----------------------
1756# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1757ac_fn_c_try_cpp ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { { ac_try="$ac_cpp conftest.$ac_ext"
1761case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766$as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1773 fi
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001775 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 }; then :
1779 ac_retval=0
1780else
1781 $as_echo "$as_me: failed program was:" >&5
1782sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001787 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001788
1789} # ac_fn_c_try_cpp
1790
1791# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1792# -------------------------------------------------------
1793# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1794# the include files in INCLUDES and setting the cache variable VAR
1795# accordingly.
1796ac_fn_c_check_header_mongrel ()
1797{
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001799 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001802if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001803 $as_echo_n "(cached) " >&6
1804fi
1805eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807$as_echo "$ac_res" >&6; }
1808else
1809 # Is the header compilable?
1810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1811$as_echo_n "checking $2 usability... " >&6; }
1812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813/* end confdefs.h. */
1814$4
1815#include <$2>
1816_ACEOF
1817if ac_fn_c_try_compile "$LINENO"; then :
1818 ac_header_compiler=yes
1819else
1820 ac_header_compiler=no
1821fi
1822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1824$as_echo "$ac_header_compiler" >&6; }
1825
1826# Is the header present?
1827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1828$as_echo_n "checking $2 presence... " >&6; }
1829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h. */
1831#include <$2>
1832_ACEOF
1833if ac_fn_c_try_cpp "$LINENO"; then :
1834 ac_header_preproc=yes
1835else
1836 ac_header_preproc=no
1837fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001838rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1840$as_echo "$ac_header_preproc" >&6; }
1841
1842# So? What about this header?
1843case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1844 yes:no: )
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1846$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 ;;
1850 no:yes:* )
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1852$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1854$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1856$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1858$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1860$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1861 ;;
1862esac
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001865if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001866 $as_echo_n "(cached) " >&6
1867else
1868 eval "$3=\$ac_header_compiler"
1869fi
1870eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872$as_echo "$ac_res" >&6; }
1873fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001875
1876} # ac_fn_c_check_header_mongrel
1877
Theodore Ts'o93613952014-07-03 23:44:13 -04001878# ac_fn_c_try_run LINENO
1879# ----------------------
1880# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1881# that executables *can* be run.
1882ac_fn_c_try_run ()
1883{
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 if { { ac_try="$ac_link"
1886case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889esac
1890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891$as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_link") 2>&5
1893 ac_status=$?
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1896 { { case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899esac
1900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901$as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_try") 2>&5
1903 ac_status=$?
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; }; }; then :
1906 ac_retval=0
1907else
1908 $as_echo "$as_me: program exited with status $ac_status" >&5
1909 $as_echo "$as_me: failed program was:" >&5
1910sed 's/^/| /' conftest.$ac_ext >&5
1911
1912 ac_retval=$ac_status
1913fi
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1917
1918} # ac_fn_c_try_run
1919
1920# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1921# -------------------------------------------------------
1922# Tests whether HEADER exists and can be compiled using the include files in
1923# INCLUDES, setting the cache variable VAR accordingly.
1924ac_fn_c_check_header_compile ()
1925{
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928$as_echo_n "checking for $2... " >&6; }
1929if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1931else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h. */
1934$4
1935#include <$2>
1936_ACEOF
1937if ac_fn_c_try_compile "$LINENO"; then :
1938 eval "$3=yes"
1939else
1940 eval "$3=no"
1941fi
1942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943fi
1944eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946$as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948
1949} # ac_fn_c_check_header_compile
1950
1951# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1952# -------------------------------------------
1953# Tests whether TYPE exists after having included INCLUDES, setting cache
1954# variable VAR accordingly.
1955ac_fn_c_check_type ()
1956{
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959$as_echo_n "checking for $2... " >&6; }
1960if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1962else
1963 eval "$3=no"
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h. */
1966$4
1967int
1968main ()
1969{
1970if (sizeof ($2))
1971 return 0;
1972 ;
1973 return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h. */
1979$4
1980int
1981main ()
1982{
1983if (sizeof (($2)))
1984 return 0;
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_compile "$LINENO"; then :
1990
1991else
1992 eval "$3=yes"
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995fi
1996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997fi
1998eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000$as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002
2003} # ac_fn_c_check_type
2004
2005# ac_fn_c_check_func LINENO FUNC VAR
2006# ----------------------------------
2007# Tests whether FUNC exists, setting the cache variable VAR accordingly
2008ac_fn_c_check_func ()
2009{
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012$as_echo_n "checking for $2... " >&6; }
2013if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2015else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h. */
2018/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2020#define $2 innocuous_$2
2021
2022/* System header to define __stub macros and hopefully few prototypes,
2023 which can conflict with char $2 (); below.
2024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2025 <limits.h> exists even on freestanding compilers. */
2026
2027#ifdef __STDC__
2028# include <limits.h>
2029#else
2030# include <assert.h>
2031#endif
2032
2033#undef $2
2034
2035/* Override any GCC internal prototype to avoid an error.
2036 Use char because int might match the return type of a GCC
2037 builtin and then its argument prototype would still apply. */
2038#ifdef __cplusplus
2039extern "C"
2040#endif
2041char $2 ();
2042/* The GNU C library defines this for functions which it implements
2043 to always fail with ENOSYS. Some functions are actually named
2044 something starting with __ and the normal name is an alias. */
2045#if defined __stub_$2 || defined __stub___$2
2046choke me
2047#endif
2048
2049int
2050main ()
2051{
2052return $2 ();
2053 ;
2054 return 0;
2055}
2056_ACEOF
2057if ac_fn_c_try_link "$LINENO"; then :
2058 eval "$3=yes"
2059else
2060 eval "$3=no"
2061fi
2062rm -f core conftest.err conftest.$ac_objext \
2063 conftest$ac_exeext conftest.$ac_ext
2064fi
2065eval ac_res=\$$3
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067$as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069
2070} # ac_fn_c_check_func
2071
2072# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2073# ---------------------------------------------
2074# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2075# accordingly.
2076ac_fn_c_check_decl ()
2077{
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 as_decl_name=`echo $2|sed 's/ *(.*//'`
2080 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2082$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2083if eval \${$3+:} false; then :
2084 $as_echo_n "(cached) " >&6
2085else
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h. */
2088$4
2089int
2090main ()
2091{
2092#ifndef $as_decl_name
2093#ifdef __cplusplus
2094 (void) $as_decl_use;
2095#else
2096 (void) $as_decl_name;
2097#endif
2098#endif
2099
2100 ;
2101 return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_compile "$LINENO"; then :
2105 eval "$3=yes"
2106else
2107 eval "$3=no"
2108fi
2109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110fi
2111eval ac_res=\$$3
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113$as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115
2116} # ac_fn_c_check_decl
2117
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002118# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2119# --------------------------------------------
2120# Tries to find the compile-time value of EXPR in a program that includes
2121# INCLUDES, setting VAR accordingly. Returns whether the value could be
2122# computed
2123ac_fn_c_compute_int ()
2124{
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 if test "$cross_compiling" = yes; then
2127 # Depending upon the size, compute the lo and hi bounds.
2128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h. */
2130$4
2131int
2132main ()
2133{
2134static int test_array [1 - 2 * !(($2) >= 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002135test_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_lo=0 ac_mid=0
2144 while :; do
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146/* end confdefs.h. */
2147$4
2148int
2149main ()
2150{
2151static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002152test_array [0] = 0;
2153return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002154
2155 ;
2156 return 0;
2157}
2158_ACEOF
2159if ac_fn_c_try_compile "$LINENO"; then :
2160 ac_hi=$ac_mid; break
2161else
2162 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2163 if test $ac_lo -le $ac_mid; then
2164 ac_lo= ac_hi=
2165 break
2166 fi
2167 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2168fi
2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 done
2171else
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173/* end confdefs.h. */
2174$4
2175int
2176main ()
2177{
2178static int test_array [1 - 2 * !(($2) < 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002179test_array [0] = 0;
2180return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002181
2182 ;
2183 return 0;
2184}
2185_ACEOF
2186if ac_fn_c_try_compile "$LINENO"; then :
2187 ac_hi=-1 ac_mid=-1
2188 while :; do
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190/* end confdefs.h. */
2191$4
2192int
2193main ()
2194{
2195static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002196test_array [0] = 0;
2197return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002198
2199 ;
2200 return 0;
2201}
2202_ACEOF
2203if ac_fn_c_try_compile "$LINENO"; then :
2204 ac_lo=$ac_mid; break
2205else
2206 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2207 if test $ac_mid -le $ac_hi; then
2208 ac_lo= ac_hi=
2209 break
2210 fi
2211 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2212fi
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 done
2215else
2216 ac_lo= ac_hi=
2217fi
2218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219fi
2220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221# Binary search between lo and hi bounds.
2222while test "x$ac_lo" != "x$ac_hi"; do
2223 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225/* end confdefs.h. */
2226$4
2227int
2228main ()
2229{
2230static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002231test_array [0] = 0;
2232return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002233
2234 ;
2235 return 0;
2236}
2237_ACEOF
2238if ac_fn_c_try_compile "$LINENO"; then :
2239 ac_hi=$ac_mid
2240else
2241 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2242fi
2243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244done
2245case $ac_lo in #((
2246?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2247'') ac_retval=1 ;;
2248esac
2249 else
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251/* end confdefs.h. */
2252$4
2253static long int longval () { return $2; }
2254static unsigned long int ulongval () { return $2; }
2255#include <stdio.h>
2256#include <stdlib.h>
2257int
2258main ()
2259{
2260
2261 FILE *f = fopen ("conftest.val", "w");
2262 if (! f)
2263 return 1;
2264 if (($2) < 0)
2265 {
2266 long int i = longval ();
2267 if (i != ($2))
2268 return 1;
2269 fprintf (f, "%ld", i);
2270 }
2271 else
2272 {
2273 unsigned long int i = ulongval ();
2274 if (i != ($2))
2275 return 1;
2276 fprintf (f, "%lu", i);
2277 }
2278 /* Do not output a trailing newline, as this causes \r\n confusion
2279 on some platforms. */
2280 return ferror (f) || fclose (f) != 0;
2281
2282 ;
2283 return 0;
2284}
2285_ACEOF
2286if ac_fn_c_try_run "$LINENO"; then :
2287 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2288else
2289 ac_retval=1
2290fi
2291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2292 conftest.$ac_objext conftest.beam conftest.$ac_ext
2293rm -f conftest.val
2294
2295 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002297 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002298
2299} # ac_fn_c_compute_int
2300
2301# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2302# ----------------------------------------------------
2303# Tries to find if the field MEMBER exists in type AGGR, after including
2304# INCLUDES, setting cache variable VAR accordingly.
2305ac_fn_c_check_member ()
2306{
2307 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2309$as_echo_n "checking for $2.$3... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002310if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002311 $as_echo_n "(cached) " >&6
2312else
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314/* end confdefs.h. */
2315$5
2316int
2317main ()
2318{
2319static $2 ac_aggr;
2320if (ac_aggr.$3)
2321return 0;
2322 ;
2323 return 0;
2324}
2325_ACEOF
2326if ac_fn_c_try_compile "$LINENO"; then :
2327 eval "$4=yes"
2328else
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330/* end confdefs.h. */
2331$5
2332int
2333main ()
2334{
2335static $2 ac_aggr;
2336if (sizeof ac_aggr.$3)
2337return 0;
2338 ;
2339 return 0;
2340}
2341_ACEOF
2342if ac_fn_c_try_compile "$LINENO"; then :
2343 eval "$4=yes"
2344else
2345 eval "$4=no"
2346fi
2347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348fi
2349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350fi
2351eval ac_res=\$$4
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002354 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002355
2356} # ac_fn_c_check_member
Theodore Ts'oe1052142006-10-21 21:46:47 -04002357cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002358This file contains any messages produced by compilers while
2359running configure, to aid debugging if configure makes a mistake.
2360
2361It was created by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002362generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002363
2364 $ $0 $@
2365
2366_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002367exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002368{
2369cat <<_ASUNAME
2370## --------- ##
2371## Platform. ##
2372## --------- ##
2373
2374hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2375uname -m = `(uname -m) 2>/dev/null || echo unknown`
2376uname -r = `(uname -r) 2>/dev/null || echo unknown`
2377uname -s = `(uname -s) 2>/dev/null || echo unknown`
2378uname -v = `(uname -v) 2>/dev/null || echo unknown`
2379
2380/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2381/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2382
2383/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2384/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2385/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002386/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002387/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2388/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2389/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2390
2391_ASUNAME
2392
2393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394for as_dir in $PATH
2395do
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002398 $as_echo "PATH: $as_dir"
2399 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002400IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002401
2402} >&5
2403
2404cat >&5 <<_ACEOF
2405
2406
2407## ----------- ##
2408## Core tests. ##
2409## ----------- ##
2410
2411_ACEOF
2412
2413
2414# Keep a trace of the command line.
2415# Strip out --no-create and --no-recursion so they do not pile up.
2416# Strip out --silent because we don't want to record it for future runs.
2417# Also quote any args containing shell meta-characters.
2418# Make two passes to allow for proper duplicate-argument suppression.
2419ac_configure_args=
2420ac_configure_args0=
2421ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002422ac_must_keep_next=false
2423for ac_pass in 1 2
2424do
2425 for ac_arg
2426 do
2427 case $ac_arg in
2428 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2430 | -silent | --silent | --silen | --sile | --sil)
2431 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002432 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002433 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002434 esac
2435 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002436 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002437 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002438 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002439 if test $ac_must_keep_next = true; then
2440 ac_must_keep_next=false # Got value, back to normal.
2441 else
2442 case $ac_arg in
2443 *=* | --config-cache | -C | -disable-* | --disable-* \
2444 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2445 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2446 | -with-* | --with-* | -without-* | --without-* | --x)
2447 case "$ac_configure_args0 " in
2448 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2449 esac
2450 ;;
2451 -* ) ac_must_keep_next=true ;;
2452 esac
2453 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002454 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002455 ;;
2456 esac
2457 done
2458done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002459{ ac_configure_args0=; unset ac_configure_args0;}
2460{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002461
2462# When interrupted or exit'd, cleanup temporary files, and complete
2463# config.log. We remove comments because anyway the quotes in there
2464# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002465# WARNING: Use '\'' to represent an apostrophe within the trap.
2466# 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 -05002467trap 'exit_status=$?
2468 # Save into config.log some information that might help in debugging.
2469 {
2470 echo
2471
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002472 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002473## Cache variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002474## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002475 echo
2476 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002477(
2478 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2479 eval ac_val=\$$ac_var
2480 case $ac_val in #(
2481 *${as_nl}*)
2482 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002483 *_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 +01002484$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002485 esac
2486 case $ac_var in #(
2487 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002488 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002489 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002490 esac ;;
2491 esac
2492 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002493 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002494 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2495 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002496 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002497 "s/'\''/'\''\\\\'\'''\''/g;
2498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2499 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002500 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002502 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002503 esac |
2504 sort
2505)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002506 echo
2507
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002508 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002509## Output variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002510## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002511 echo
2512 for ac_var in $ac_subst_vars
2513 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002514 eval ac_val=\$$ac_var
2515 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002516 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002517 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002518 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002519 done | sort
2520 echo
2521
2522 if test -n "$ac_subst_files"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002523 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002524## File substitutions. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002525## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002526 echo
2527 for ac_var in $ac_subst_files
2528 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002529 eval ac_val=\$$ac_var
2530 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002531 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002532 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002533 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002534 done | sort
2535 echo
2536 fi
2537
2538 if test -s confdefs.h; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002539 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002540## confdefs.h. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002541## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002542 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002543 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002544 echo
2545 fi
2546 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002547 $as_echo "$as_me: caught signal $ac_signal"
2548 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002549 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002550 rm -f core *.core core.conftest.* &&
2551 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002552 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002553' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002554for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002555 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002556done
2557ac_signal=0
2558
2559# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002560rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002561
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002562$as_echo "/* confdefs.h */" > confdefs.h
2563
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002564# Predefined preprocessor variables.
2565
2566cat >>confdefs.h <<_ACEOF
2567#define PACKAGE_NAME "$PACKAGE_NAME"
2568_ACEOF
2569
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002570cat >>confdefs.h <<_ACEOF
2571#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2572_ACEOF
2573
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002574cat >>confdefs.h <<_ACEOF
2575#define PACKAGE_VERSION "$PACKAGE_VERSION"
2576_ACEOF
2577
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002578cat >>confdefs.h <<_ACEOF
2579#define PACKAGE_STRING "$PACKAGE_STRING"
2580_ACEOF
2581
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002582cat >>confdefs.h <<_ACEOF
2583#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2584_ACEOF
2585
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002586cat >>confdefs.h <<_ACEOF
2587#define PACKAGE_URL "$PACKAGE_URL"
2588_ACEOF
2589
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002590
2591# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002592# Prefer an explicitly selected file to automatically selected ones.
2593ac_site_file1=NONE
2594ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002595if test -n "$CONFIG_SITE"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002596 # We do not want a PATH search for config.site.
2597 case $CONFIG_SITE in #((
2598 -*) ac_site_file1=./$CONFIG_SITE;;
2599 */*) ac_site_file1=$CONFIG_SITE;;
2600 *) ac_site_file1=./$CONFIG_SITE;;
2601 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002602elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002603 ac_site_file1=$prefix/share/config.site
2604 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002605else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002606 ac_site_file1=$ac_default_prefix/share/config.site
2607 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002608fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002609for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002610do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002611 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002612 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002613 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002614$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002615 sed 's/^/| /' "$ac_site_file" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002616 . "$ac_site_file" \
2617 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619as_fn_error $? "failed to load site script $ac_site_file
2620See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002621 fi
2622done
2623
2624if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002625 # Some versions of bash will fail to source /dev/null (special files
2626 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2627 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002628 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002629$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002630 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002631 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2632 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002633 esac
2634 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002635else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002636 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002637$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002638 >$cache_file
2639fi
2640
Theodore Ts'o93613952014-07-03 23:44:13 -04002641gt_needs="$gt_needs "
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002642as_fn_append ac_header_list " stdlib.h"
2643as_fn_append ac_header_list " unistd.h"
2644as_fn_append ac_header_list " sys/param.h"
Theodore Ts'o93613952014-07-03 23:44:13 -04002645as_fn_append ac_func_list " symlink"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002646# Check that the precious variables saved in the cache have kept the same
2647# value.
2648ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002649for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002650 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2651 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002652 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2653 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002654 case $ac_old_set,$ac_new_set in
2655 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002656 { $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 +01002657$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 -05002658 ac_cache_corrupted=: ;;
2659 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002660 { $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 +01002661$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002662 ac_cache_corrupted=: ;;
2663 ,);;
2664 *)
2665 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002666 # differences in whitespace do not lead to failure.
2667 ac_old_val_w=`echo x $ac_old_val`
2668 ac_new_val_w=`echo x $ac_new_val`
2669 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002670 { $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 +01002671$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2672 ac_cache_corrupted=:
2673 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002674 { $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 +01002675$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2676 eval $ac_var=\$ac_old_val
2677 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002678 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002679$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002680 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002681$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002682 fi;;
2683 esac
2684 # Pass precious variables to config.status.
2685 if test "$ac_new_set" = set; then
2686 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002687 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002688 *) ac_arg=$ac_var=$ac_new_val ;;
2689 esac
2690 case " $ac_configure_args " in
2691 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002692 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002693 esac
2694 fi
2695done
2696if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002699 { $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 +01002700$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002701 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002702fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002703## -------------------- ##
2704## Main body of script. ##
2705## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002706
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002707ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002708ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002712
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002713
2714
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002715ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002716for ac_dir in config "$srcdir"/config; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002717 if test -f "$ac_dir/install-sh"; then
2718 ac_aux_dir=$ac_dir
2719 ac_install_sh="$ac_aux_dir/install-sh -c"
2720 break
2721 elif test -f "$ac_dir/install.sh"; then
2722 ac_aux_dir=$ac_dir
2723 ac_install_sh="$ac_aux_dir/install.sh -c"
2724 break
2725 elif test -f "$ac_dir/shtool"; then
2726 ac_aux_dir=$ac_dir
2727 ac_install_sh="$ac_aux_dir/shtool install -c"
2728 break
2729 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002730done
2731if test -z "$ac_aux_dir"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002732 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 +00002733fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002734
2735# These three variables are undocumented and unsupported,
2736# and are intended to be withdrawn in a future Autoconf release.
2737# They can cause serious problems if a builder's source tree is in a directory
2738# whose full name contains unusual characters.
2739ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2740ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2741ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2742
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002743
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002744ac_config_headers="$ac_config_headers lib/config.h"
2745
2746
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002747MCONFIG=./MCONFIG
2748
Theodore Ts'o74becf31997-04-26 14:37:06 +00002749BINARY_TYPE=bin
2750E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2751 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2752DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2753 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002754E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002755MONTH=`echo $DATE | awk -F- '{print $2}'`
2756YEAR=`echo $DATE | awk -F- '{print $3}'`
2757
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002758if expr $YEAR ">" 1900 > /dev/null ; then
2759 E2FSPROGS_YEAR=$YEAR
2760elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002761 E2FSPROGS_YEAR=19$YEAR
2762else
2763 E2FSPROGS_YEAR=20$YEAR
2764fi
2765
2766case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002767Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2768Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2769Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2770Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2771May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2772Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2773Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2774Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2775Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2776Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2777Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2778Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002779*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002780$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002781esac
2782
Andreas Dilger927566a2006-11-12 19:41:25 -05002783base_ver=`echo $E2FSPROGS_VERSION | \
2784 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002785
2786date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2787
2788case $E2FSPROGS_VERSION in
2789*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002790 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002791 ;;
2792*)
2793 E2FSPROGS_PKGVER="$base_ver"
2794 ;;
2795esac
2796
2797unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002798{ $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 +01002799$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002801$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002802
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002803
2804
2805
Andreas Dilger927566a2006-11-12 19:41:25 -05002806
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002807WITH_DIET_LIBC=
2808
2809# Check whether --with-diet-libc was given.
2810if test "${with_diet_libc+set}" = set; then :
2811 withval=$with_diet_libc; CC="diet cc -nostdinc"
2812WITH_DIET_LIBC=yes
2813if test -z "$LIBS"
2814then
2815 LIBS="-lcompat"
2816else
2817 LIBS="$LIBS -lcompat"
2818fi
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2820$as_echo "CC=$CC" >&6; }
2821fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002822# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002823$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002824 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002825
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002827$as_echo_n "checking build system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002828if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002829 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002830else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002831 ac_build_alias=$build_alias
2832test "x$ac_build_alias" = x &&
2833 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2834test "x$ac_build_alias" = x &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002835 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002836ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002837 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002838
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002839fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002841$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002842case $ac_cv_build in
2843*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002844*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002845esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002846build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002847ac_save_IFS=$IFS; IFS='-'
2848set x $ac_cv_build
2849shift
2850build_cpu=$1
2851build_vendor=$2
2852shift; shift
2853# Remember, the first character of IFS is used to create $*,
2854# except with old shells:
2855build_os=$*
2856IFS=$ac_save_IFS
2857case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002858
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002859
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002861$as_echo_n "checking host system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002862if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002863 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002864else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002865 if test "x$host_alias" = x; then
2866 ac_cv_host=$ac_cv_build
2867else
2868 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002869 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002870fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002871
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002872fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002874$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002875case $ac_cv_host in
2876*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002877*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002878esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002879host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002880ac_save_IFS=$IFS; IFS='-'
2881set x $ac_cv_host
2882shift
2883host_cpu=$1
2884host_vendor=$2
2885shift; shift
2886# Remember, the first character of IFS is used to create $*,
2887# except with old shells:
2888host_os=$*
2889IFS=$ac_save_IFS
2890case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002891
2892
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002893DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002894ac_ext=c
2895ac_cpp='$CPP $CPPFLAGS'
2896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899if test -n "$ac_tool_prefix"; then
2900 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2901set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002903$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002904if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002905 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002906else
2907 if test -n "$CC"; then
2908 ac_cv_prog_CC="$CC" # Let the user override the test.
2909else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH
2912do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002915 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002917 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002919 break 2
2920 fi
2921done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002922 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002923IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002924
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002925fi
2926fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002927CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002928if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002930$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002931else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002933$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002934fi
2935
Theodore Ts'oe1052142006-10-21 21:46:47 -04002936
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002937fi
2938if test -z "$ac_cv_prog_CC"; then
2939 ac_ct_CC=$CC
2940 # Extract the first word of "gcc", so it can be a program name with args.
2941set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002943$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002944if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002945 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002946else
2947 if test -n "$ac_ct_CC"; then
2948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2949else
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002955 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002957 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002959 break 2
2960 fi
2961done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002962 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002963IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002964
2965fi
2966fi
2967ac_ct_CC=$ac_cv_prog_ac_ct_CC
2968if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002970$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002971else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002973$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002974fi
2975
Theodore Ts'oe1052142006-10-21 21:46:47 -04002976 if test "x$ac_ct_CC" = x; then
2977 CC=""
2978 else
2979 case $cross_compiling:$ac_tool_warned in
2980yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002981{ $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 +01002982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002983ac_tool_warned=yes ;;
2984esac
2985 CC=$ac_ct_CC
2986 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002987else
2988 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002989fi
2990
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002991if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002992 if test -n "$ac_tool_prefix"; then
2993 # 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 -05002994set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002996$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002997if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002998 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002999else
3000 if test -n "$CC"; then
3001 ac_cv_prog_CC="$CC" # Let the user override the test.
3002else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004for as_dir in $PATH
3005do
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003008 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003010 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003012 break 2
3013 fi
3014done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003015 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003016IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003017
3018fi
3019fi
3020CC=$ac_cv_prog_CC
3021if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003023$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003024else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003026$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003027fi
3028
Theodore Ts'oe1052142006-10-21 21:46:47 -04003029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003030 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003031fi
3032if test -z "$CC"; then
3033 # Extract the first word of "cc", so it can be a program name with args.
3034set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003036$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003037if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003038 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003039else
3040 if test -n "$CC"; then
3041 ac_cv_prog_CC="$CC" # Let the user override the test.
3042else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003043 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH
3046do
3047 IFS=$as_save_IFS
3048 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003049 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003051 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3052 ac_prog_rejected=yes
3053 continue
3054 fi
3055 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003057 break 2
3058 fi
3059done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003060 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003061IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003062
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003063if test $ac_prog_rejected = yes; then
3064 # We found a bogon in the path, so make sure we never use it.
3065 set dummy $ac_cv_prog_CC
3066 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003067 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003068 # We chose a different compiler from the bogus one.
3069 # However, it has the same basename, so the bogon will be chosen
3070 # first if we set CC to just the basename; use the full file name.
3071 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003072 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003073 fi
3074fi
3075fi
3076fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003077CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003078if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003080$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003081else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003083$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003084fi
3085
Theodore Ts'oe1052142006-10-21 21:46:47 -04003086
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003087fi
3088if test -z "$CC"; then
3089 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003090 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003091 do
3092 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3093set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003095$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003096if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003097 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003098else
3099 if test -n "$CC"; then
3100 ac_cv_prog_CC="$CC" # Let the user override the test.
3101else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103for as_dir in $PATH
3104do
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003107 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003109 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003111 break 2
3112 fi
3113done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003114 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003115IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003116
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003117fi
3118fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003119CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003120if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003122$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003123else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003125$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003126fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003127
Theodore Ts'oe1052142006-10-21 21:46:47 -04003128
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003129 test -n "$CC" && break
3130 done
3131fi
3132if test -z "$CC"; then
3133 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003134 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003135do
3136 # Extract the first word of "$ac_prog", so it can be a program name with args.
3137set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003139$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003140if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003141 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003142else
3143 if test -n "$ac_ct_CC"; then
3144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3145else
3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147for as_dir in $PATH
3148do
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003151 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003153 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003155 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003156 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003157done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003158 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003159IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003160
3161fi
3162fi
3163ac_ct_CC=$ac_cv_prog_ac_ct_CC
3164if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003166$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003167else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003169$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003170fi
3171
Theodore Ts'oe1052142006-10-21 21:46:47 -04003172
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003173 test -n "$ac_ct_CC" && break
3174done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003175
Theodore Ts'oe1052142006-10-21 21:46:47 -04003176 if test "x$ac_ct_CC" = x; then
3177 CC=""
3178 else
3179 case $cross_compiling:$ac_tool_warned in
3180yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003181{ $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 +01003182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003183ac_tool_warned=yes ;;
3184esac
3185 CC=$ac_ct_CC
3186 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003187fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003188
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003189fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003190
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003191
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003192test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003194as_fn_error $? "no acceptable C compiler found in \$PATH
3195See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003196
3197# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003198$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003199set X $ac_compile
3200ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003201for ac_option in --version -v -V -qversion; do
3202 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003203case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208$as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003210 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003211 if test -s conftest.err; then
3212 sed '10a\
3213... rest of stderr output deleted ...
3214 10q' conftest.err >conftest.er1
3215 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003216 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003217 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }
3220done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003221
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003223/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003224
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003225int
3226main ()
3227{
3228
3229 ;
3230 return 0;
3231}
3232_ACEOF
3233ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003234ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003235# Try to create an executable without -o first, disregard a.out.
3236# It will help us diagnose broken compilers, and finding out an intuition
3237# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3239$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003240ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3241
3242# The possible output files:
3243ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3244
Theodore Ts'oe1052142006-10-21 21:46:47 -04003245ac_rmfiles=
3246for ac_file in $ac_files
3247do
3248 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003250 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3251 esac
3252done
3253rm -f $ac_rmfiles
3254
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003255if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003256case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003262 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003263 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003266 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3267# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3268# in a Makefile. We should not override ac_cv_exeext if it was cached,
3269# so that the user can short-circuit this test for compilers unknown to
3270# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003271for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003272do
3273 test -f "$ac_file" || continue
3274 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003276 ;;
3277 [ab].out )
3278 # We found the default executable, but exeext='' is most
3279 # certainly right.
3280 break;;
3281 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003282 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003283 then :; else
3284 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3285 fi
3286 # We set ac_cv_exeext here because the later test for it is not
3287 # safe: cross compilers may not add the suffix if given an `-o'
3288 # argument, so we may need to know it at that point already.
3289 # Even if this section looks crufty: it has the advantage of
3290 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003291 break;;
3292 * )
3293 break;;
3294 esac
3295done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003296test "$ac_cv_exeext" = no && ac_cv_exeext=
3297
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003298else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003299 ac_file=''
3300fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003301if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303$as_echo "no" >&6; }
3304$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003305sed 's/^/| /' conftest.$ac_ext >&5
3306
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003307{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003309as_fn_error 77 "C compiler cannot create executables
3310See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003311else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003314fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3316$as_echo_n "checking for C compiler default output file name... " >&6; }
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3318$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003319ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003320
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003321rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003322ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003324$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003325if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003326case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003332 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003333 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003336 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3337# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3338# work properly (i.e., refer to `conftest.exe'), while it won't with
3339# `rm'.
3340for ac_file in conftest.exe conftest conftest.*; do
3341 test -f "$ac_file" || continue
3342 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003344 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003345 break;;
3346 * ) break;;
3347 esac
3348done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003349else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003352as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3353See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003354fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003355rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003357$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003358
3359rm -f conftest.$ac_ext
3360EXEEXT=$ac_cv_exeext
3361ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363/* end confdefs.h. */
3364#include <stdio.h>
3365int
3366main ()
3367{
3368FILE *f = fopen ("conftest.out", "w");
3369 return ferror (f) || fclose (f) != 0;
3370
3371 ;
3372 return 0;
3373}
3374_ACEOF
3375ac_clean_files="$ac_clean_files conftest.out"
3376# Check that the compiler produces executables we can run. If not, either
3377# the compiler is broken, or we cross compile.
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3379$as_echo_n "checking whether we are cross compiling... " >&6; }
3380if test "$cross_compiling" != yes; then
3381 { { ac_try="$ac_link"
3382case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385esac
3386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387$as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_link") 2>&5
3389 ac_status=$?
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }
3392 if { ac_try='./conftest$ac_cv_exeext'
3393 { { case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396esac
3397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398$as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_try") 2>&5
3400 ac_status=$?
3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }; }; then
3403 cross_compiling=no
3404 else
3405 if test "$cross_compiling" = maybe; then
3406 cross_compiling=yes
3407 else
3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003410as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003411If you meant to cross compile, use \`--host'.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003412See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003413 fi
3414 fi
3415fi
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3417$as_echo "$cross_compiling" >&6; }
3418
3419rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3420ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003422$as_echo_n "checking for suffix of object files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003423if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003424 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003425else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003427/* end confdefs.h. */
3428
3429int
3430main ()
3431{
3432
3433 ;
3434 return 0;
3435}
3436_ACEOF
3437rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003438if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003439case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003445 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003446 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003449 for ac_file in conftest.o conftest.obj conftest.*; do
3450 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003451 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003453 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3454 break;;
3455 esac
3456done
3457else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003458 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003459sed 's/^/| /' conftest.$ac_ext >&5
3460
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003461{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003463as_fn_error $? "cannot compute suffix of object files: cannot compile
3464See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003465fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003466rm -f conftest.$ac_cv_objext conftest.$ac_ext
3467fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003469$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003470OBJEXT=$ac_cv_objext
3471ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003472{ $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 +01003473$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003474if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003475 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003476else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003478/* end confdefs.h. */
3479
3480int
3481main ()
3482{
3483#ifndef __GNUC__
3484 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003485#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003486
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003487 ;
3488 return 0;
3489}
3490_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003491if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003492 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003493else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003494 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003495fi
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 -05003497ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003498
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003499fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003501$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3502if test $ac_compiler_gnu = yes; then
3503 GCC=yes
3504else
3505 GCC=
3506fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003507ac_test_CFLAGS=${CFLAGS+set}
3508ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003510$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003511if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003512 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003513else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003514 ac_save_c_werror_flag=$ac_c_werror_flag
3515 ac_c_werror_flag=yes
3516 ac_cv_prog_cc_g=no
3517 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003519/* end confdefs.h. */
3520
3521int
3522main ()
3523{
3524
3525 ;
3526 return 0;
3527}
3528_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003529if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003530 ac_cv_prog_cc_g=yes
3531else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003532 CFLAGS=""
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003534/* end confdefs.h. */
3535
3536int
3537main ()
3538{
3539
3540 ;
3541 return 0;
3542}
3543_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003544if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003545
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003546else
3547 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003548 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003550/* end confdefs.h. */
3551
3552int
3553main ()
3554{
3555
3556 ;
3557 return 0;
3558}
3559_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003560if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003561 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003562fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003564fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_c_werror_flag=$ac_save_c_werror_flag
3569fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003571$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003572if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003573 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003574elif test $ac_cv_prog_cc_g = yes; then
3575 if test "$GCC" = yes; then
3576 CFLAGS="-g -O2"
3577 else
3578 CFLAGS="-g"
3579 fi
3580else
3581 if test "$GCC" = yes; then
3582 CFLAGS="-O2"
3583 else
3584 CFLAGS=
3585 fi
3586fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003588$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003589if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003590 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003591else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003592 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003593ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003595/* end confdefs.h. */
3596#include <stdarg.h>
3597#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003598struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003599/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3600struct buf { int x; };
3601FILE * (*rcsopen) (struct buf *, struct stat *, int);
3602static char *e (p, i)
3603 char **p;
3604 int i;
3605{
3606 return p[i];
3607}
3608static char *f (char * (*g) (char **, int), char **p, ...)
3609{
3610 char *s;
3611 va_list v;
3612 va_start (v,p);
3613 s = g (p, va_arg (v,int));
3614 va_end (v);
3615 return s;
3616}
3617
3618/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3619 function prototypes and stuff, but not '\xHH' hex character constants.
3620 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003621 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003622 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3623 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003624 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003625int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3626
Theodore Ts'oe1052142006-10-21 21:46:47 -04003627/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3628 inside strings and character constants. */
3629#define FOO(x) 'x'
3630int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3631
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003632int test (int i, double x);
3633struct s1 {int (*f) (int a);};
3634struct s2 {int (*f) (double a);};
3635int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3636int argc;
3637char **argv;
3638int
3639main ()
3640{
3641return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3642 ;
3643 return 0;
3644}
3645_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003646for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3647 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003648do
3649 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003650 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003651 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003652fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003653rm -f core conftest.err conftest.$ac_objext
3654 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003655done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003656rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003657CC=$ac_save_CC
3658
3659fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003660# AC_CACHE_VAL
3661case "x$ac_cv_prog_cc_c89" in
3662 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003664$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003665 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003667$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003668 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003669 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003671$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003672esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003673if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003674
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003675fi
3676
3677ac_ext=c
3678ac_cpp='$CPP $CPPFLAGS'
3679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681ac_compiler_gnu=$ac_cv_c_compiler_gnu
3682
3683
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3685$as_echo_n "checking for dlopen in -ldl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003686if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003687 $as_echo_n "(cached) " >&6
3688else
3689 ac_check_lib_save_LIBS=$LIBS
3690LIBS="-ldl $LIBS"
3691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692/* end confdefs.h. */
3693
3694/* Override any GCC internal prototype to avoid an error.
3695 Use char because int might match the return type of a GCC
3696 builtin and then its argument prototype would still apply. */
3697#ifdef __cplusplus
3698extern "C"
3699#endif
3700char dlopen ();
3701int
3702main ()
3703{
3704return dlopen ();
3705 ;
3706 return 0;
3707}
3708_ACEOF
3709if ac_fn_c_try_link "$LINENO"; then :
3710 ac_cv_lib_dl_dlopen=yes
3711else
3712 ac_cv_lib_dl_dlopen=no
3713fi
3714rm -f core conftest.err conftest.$ac_objext \
3715 conftest$ac_exeext conftest.$ac_ext
3716LIBS=$ac_check_lib_save_LIBS
3717fi
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3719$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003720if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003721 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003722
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003723$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3724
3725fi
3726
3727
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003728
3729# Check whether --with-cc was given.
3730if test "${with_cc+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003731 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003732fi
3733
3734
3735# Check whether --with-ccopts was given.
3736if test "${with_ccopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003737 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003738fi
3739
3740
3741# Check whether --with-ldopts was given.
3742if test "${with_ldopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003743 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003744fi
3745
3746ac_ext=c
3747ac_cpp='$CPP $CPPFLAGS'
3748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751if test -n "$ac_tool_prefix"; then
3752 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3753set dummy ${ac_tool_prefix}gcc; ac_word=$2
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003756if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003757 $as_echo_n "(cached) " >&6
3758else
3759 if test -n "$CC"; then
3760 ac_cv_prog_CC="$CC" # Let the user override the test.
3761else
3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH
3764do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003769 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 break 2
3772 fi
3773done
3774 done
3775IFS=$as_save_IFS
3776
3777fi
3778fi
3779CC=$ac_cv_prog_CC
3780if test -n "$CC"; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3782$as_echo "$CC" >&6; }
3783else
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785$as_echo "no" >&6; }
3786fi
3787
3788
3789fi
3790if test -z "$ac_cv_prog_CC"; then
3791 ac_ct_CC=$CC
3792 # Extract the first word of "gcc", so it can be a program name with args.
3793set dummy gcc; ac_word=$2
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003796if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003797 $as_echo_n "(cached) " >&6
3798else
3799 if test -n "$ac_ct_CC"; then
3800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3801else
3802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803for as_dir in $PATH
3804do
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003809 ac_cv_prog_ac_ct_CC="gcc"
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 break 2
3812 fi
3813done
3814 done
3815IFS=$as_save_IFS
3816
3817fi
3818fi
3819ac_ct_CC=$ac_cv_prog_ac_ct_CC
3820if test -n "$ac_ct_CC"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3822$as_echo "$ac_ct_CC" >&6; }
3823else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825$as_echo "no" >&6; }
3826fi
3827
3828 if test "x$ac_ct_CC" = x; then
3829 CC=""
3830 else
3831 case $cross_compiling:$ac_tool_warned in
3832yes:)
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3835ac_tool_warned=yes ;;
3836esac
3837 CC=$ac_ct_CC
3838 fi
3839else
3840 CC="$ac_cv_prog_CC"
3841fi
3842
3843if test -z "$CC"; then
3844 if test -n "$ac_tool_prefix"; then
3845 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3846set dummy ${ac_tool_prefix}cc; ac_word=$2
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3848$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003849if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003850 $as_echo_n "(cached) " >&6
3851else
3852 if test -n "$CC"; then
3853 ac_cv_prog_CC="$CC" # Let the user override the test.
3854else
3855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856for as_dir in $PATH
3857do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003862 ac_cv_prog_CC="${ac_tool_prefix}cc"
3863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3865 fi
3866done
3867 done
3868IFS=$as_save_IFS
3869
3870fi
3871fi
3872CC=$ac_cv_prog_CC
3873if test -n "$CC"; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3875$as_echo "$CC" >&6; }
3876else
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878$as_echo "no" >&6; }
3879fi
3880
3881
3882 fi
3883fi
3884if test -z "$CC"; then
3885 # Extract the first word of "cc", so it can be a program name with args.
3886set dummy cc; ac_word=$2
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003889if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003890 $as_echo_n "(cached) " >&6
3891else
3892 if test -n "$CC"; then
3893 ac_cv_prog_CC="$CC" # Let the user override the test.
3894else
3895 ac_prog_rejected=no
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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003903 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3904 ac_prog_rejected=yes
3905 continue
3906 fi
3907 ac_cv_prog_CC="cc"
3908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 break 2
3910 fi
3911done
3912 done
3913IFS=$as_save_IFS
3914
3915if test $ac_prog_rejected = yes; then
3916 # We found a bogon in the path, so make sure we never use it.
3917 set dummy $ac_cv_prog_CC
3918 shift
3919 if test $# != 0; then
3920 # We chose a different compiler from the bogus one.
3921 # However, it has the same basename, so the bogon will be chosen
3922 # first if we set CC to just the basename; use the full file name.
3923 shift
3924 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3925 fi
3926fi
3927fi
3928fi
3929CC=$ac_cv_prog_CC
3930if test -n "$CC"; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3932$as_echo "$CC" >&6; }
3933else
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935$as_echo "no" >&6; }
3936fi
3937
3938
3939fi
3940if test -z "$CC"; then
3941 if test -n "$ac_tool_prefix"; then
3942 for ac_prog in cl.exe
3943 do
3944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3945set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003948if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003949 $as_echo_n "(cached) " >&6
3950else
3951 if test -n "$CC"; then
3952 ac_cv_prog_CC="$CC" # Let the user override the test.
3953else
3954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH
3956do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003961 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 break 2
3964 fi
3965done
3966 done
3967IFS=$as_save_IFS
3968
3969fi
3970fi
3971CC=$ac_cv_prog_CC
3972if test -n "$CC"; then
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3974$as_echo "$CC" >&6; }
3975else
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977$as_echo "no" >&6; }
3978fi
3979
3980
3981 test -n "$CC" && break
3982 done
3983fi
3984if test -z "$CC"; then
3985 ac_ct_CC=$CC
3986 for ac_prog in cl.exe
3987do
3988 # Extract the first word of "$ac_prog", so it can be a program name with args.
3989set dummy $ac_prog; ac_word=$2
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003992if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003993 $as_echo_n "(cached) " >&6
3994else
3995 if test -n "$ac_ct_CC"; then
3996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3997else
3998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH
4000do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004005 ac_cv_prog_ac_ct_CC="$ac_prog"
4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 break 2
4008 fi
4009done
4010 done
4011IFS=$as_save_IFS
4012
4013fi
4014fi
4015ac_ct_CC=$ac_cv_prog_ac_ct_CC
4016if test -n "$ac_ct_CC"; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4018$as_echo "$ac_ct_CC" >&6; }
4019else
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021$as_echo "no" >&6; }
4022fi
4023
4024
4025 test -n "$ac_ct_CC" && break
4026done
4027
4028 if test "x$ac_ct_CC" = x; then
4029 CC=""
4030 else
4031 case $cross_compiling:$ac_tool_warned in
4032yes:)
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4035ac_tool_warned=yes ;;
4036esac
4037 CC=$ac_ct_CC
4038 fi
4039fi
4040
4041fi
4042
4043
4044test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004046as_fn_error $? "no acceptable C compiler found in \$PATH
4047See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004048
4049# Provide some information about the compiler.
4050$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4051set X $ac_compile
4052ac_compiler=$2
4053for ac_option in --version -v -V -qversion; do
4054 { { ac_try="$ac_compiler $ac_option >&5"
4055case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058esac
4059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4060$as_echo "$ac_try_echo"; } >&5
4061 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4062 ac_status=$?
4063 if test -s conftest.err; then
4064 sed '10a\
4065... rest of stderr output deleted ...
4066 10q' conftest.err >conftest.er1
4067 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004068 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004069 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4071 test $ac_status = 0; }
4072done
4073
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4075$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004076if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004077 $as_echo_n "(cached) " >&6
4078else
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080/* end confdefs.h. */
4081
4082int
4083main ()
4084{
4085#ifndef __GNUC__
4086 choke me
4087#endif
4088
4089 ;
4090 return 0;
4091}
4092_ACEOF
4093if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_compiler_gnu=yes
4095else
4096 ac_compiler_gnu=no
4097fi
4098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099ac_cv_c_compiler_gnu=$ac_compiler_gnu
4100
4101fi
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4103$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4104if test $ac_compiler_gnu = yes; then
4105 GCC=yes
4106else
4107 GCC=
4108fi
4109ac_test_CFLAGS=${CFLAGS+set}
4110ac_save_CFLAGS=$CFLAGS
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4112$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004113if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004114 $as_echo_n "(cached) " >&6
4115else
4116 ac_save_c_werror_flag=$ac_c_werror_flag
4117 ac_c_werror_flag=yes
4118 ac_cv_prog_cc_g=no
4119 CFLAGS="-g"
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121/* end confdefs.h. */
4122
4123int
4124main ()
4125{
4126
4127 ;
4128 return 0;
4129}
4130_ACEOF
4131if ac_fn_c_try_compile "$LINENO"; then :
4132 ac_cv_prog_cc_g=yes
4133else
4134 CFLAGS=""
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136/* end confdefs.h. */
4137
4138int
4139main ()
4140{
4141
4142 ;
4143 return 0;
4144}
4145_ACEOF
4146if ac_fn_c_try_compile "$LINENO"; then :
4147
4148else
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4150 CFLAGS="-g"
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152/* end confdefs.h. */
4153
4154int
4155main ()
4156{
4157
4158 ;
4159 return 0;
4160}
4161_ACEOF
4162if ac_fn_c_try_compile "$LINENO"; then :
4163 ac_cv_prog_cc_g=yes
4164fi
4165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166fi
4167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168fi
4169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 ac_c_werror_flag=$ac_save_c_werror_flag
4171fi
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4173$as_echo "$ac_cv_prog_cc_g" >&6; }
4174if test "$ac_test_CFLAGS" = set; then
4175 CFLAGS=$ac_save_CFLAGS
4176elif test $ac_cv_prog_cc_g = yes; then
4177 if test "$GCC" = yes; then
4178 CFLAGS="-g -O2"
4179 else
4180 CFLAGS="-g"
4181 fi
4182else
4183 if test "$GCC" = yes; then
4184 CFLAGS="-O2"
4185 else
4186 CFLAGS=
4187 fi
4188fi
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4190$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004191if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004192 $as_echo_n "(cached) " >&6
4193else
4194 ac_cv_prog_cc_c89=no
4195ac_save_CC=$CC
4196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197/* end confdefs.h. */
4198#include <stdarg.h>
4199#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004200struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004201/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4202struct buf { int x; };
4203FILE * (*rcsopen) (struct buf *, struct stat *, int);
4204static char *e (p, i)
4205 char **p;
4206 int i;
4207{
4208 return p[i];
4209}
4210static char *f (char * (*g) (char **, int), char **p, ...)
4211{
4212 char *s;
4213 va_list v;
4214 va_start (v,p);
4215 s = g (p, va_arg (v,int));
4216 va_end (v);
4217 return s;
4218}
4219
4220/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4221 function prototypes and stuff, but not '\xHH' hex character constants.
4222 These don't provoke an error unfortunately, instead are silently treated
4223 as 'x'. The following induces an error, until -std is added to get
4224 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4225 array size at least. It's necessary to write '\x00'==0 to get something
4226 that's true only with -std. */
4227int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4228
4229/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4230 inside strings and character constants. */
4231#define FOO(x) 'x'
4232int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4233
4234int test (int i, double x);
4235struct s1 {int (*f) (int a);};
4236struct s2 {int (*f) (double a);};
4237int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4238int argc;
4239char **argv;
4240int
4241main ()
4242{
4243return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4244 ;
4245 return 0;
4246}
4247_ACEOF
4248for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4249 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4250do
4251 CC="$ac_save_CC $ac_arg"
4252 if ac_fn_c_try_compile "$LINENO"; then :
4253 ac_cv_prog_cc_c89=$ac_arg
4254fi
4255rm -f core conftest.err conftest.$ac_objext
4256 test "x$ac_cv_prog_cc_c89" != "xno" && break
4257done
4258rm -f conftest.$ac_ext
4259CC=$ac_save_CC
4260
4261fi
4262# AC_CACHE_VAL
4263case "x$ac_cv_prog_cc_c89" in
4264 x)
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4266$as_echo "none needed" >&6; } ;;
4267 xno)
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4269$as_echo "unsupported" >&6; } ;;
4270 *)
4271 CC="$CC $ac_cv_prog_cc_c89"
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4273$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4274esac
4275if test "x$ac_cv_prog_cc_c89" != xno; then :
4276
4277fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004278
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004279ac_ext=c
4280ac_cpp='$CPP $CPPFLAGS'
4281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4283ac_compiler_gnu=$ac_cv_c_compiler_gnu
4284
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004285if test "$GCC" = yes; then
4286 RDYNAMIC="-rdynamic"
4287
4288fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004289ac_ext=c
4290ac_cpp='$CPP $CPPFLAGS'
4291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4293ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004295$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004296# On Suns, sometimes $CPP names a directory.
4297if test -n "$CPP" && test -d "$CPP"; then
4298 CPP=
4299fi
4300if test -z "$CPP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004301 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004302 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004303else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004304 # Double quotes because CPP needs to be expanded
4305 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4306 do
4307 ac_preproc_ok=false
4308for ac_c_preproc_warn_flag in '' yes
4309do
4310 # Use a header file that comes with gcc, so configuring glibc
4311 # with a fresh cross-compiler works.
4312 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4313 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004314 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004315 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004317/* end confdefs.h. */
4318#ifdef __STDC__
4319# include <limits.h>
4320#else
4321# include <assert.h>
4322#endif
4323 Syntax error
4324_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004325if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004326
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004327else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004328 # Broken: fails on valid input.
4329continue
4330fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004331rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004332
Theodore Ts'oe1052142006-10-21 21:46:47 -04004333 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004334 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004336/* end confdefs.h. */
4337#include <ac_nonexistent.h>
4338_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004339if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004340 # Broken: success on invalid input.
4341continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004342else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004343 # Passes both tests.
4344ac_preproc_ok=:
4345break
4346fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004347rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004348
4349done
4350# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004351rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004352if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004353 break
4354fi
4355
4356 done
4357 ac_cv_prog_CPP=$CPP
4358
4359fi
4360 CPP=$ac_cv_prog_CPP
4361else
4362 ac_cv_prog_CPP=$CPP
4363fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004365$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004366ac_preproc_ok=false
4367for ac_c_preproc_warn_flag in '' yes
4368do
4369 # Use a header file that comes with gcc, so configuring glibc
4370 # with a fresh cross-compiler works.
4371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4372 # <limits.h> exists even on freestanding compilers.
4373 # On the NeXT, cc -E runs the code through the compiler's parser,
4374 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004376/* end confdefs.h. */
4377#ifdef __STDC__
4378# include <limits.h>
4379#else
4380# include <assert.h>
4381#endif
4382 Syntax error
4383_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004384if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004385
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004386else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004387 # Broken: fails on valid input.
4388continue
4389fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004390rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004391
Theodore Ts'oe1052142006-10-21 21:46:47 -04004392 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004393 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004395/* end confdefs.h. */
4396#include <ac_nonexistent.h>
4397_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004398if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004399 # Broken: success on invalid input.
4400continue
4401else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004402 # Passes both tests.
4403ac_preproc_ok=:
4404break
4405fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004406rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004407
4408done
4409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004410rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004411if $ac_preproc_ok; then :
4412
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004413else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004416as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4417See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004418fi
4419
4420ac_ext=c
4421ac_cpp='$CPP $CPPFLAGS'
4422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4424ac_compiler_gnu=$ac_cv_c_compiler_gnu
4425
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004427$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004428if test "$GCC" = yes
4429then
4430 case "$host_cpu" in
4431 alpha) addcflags="-mieee" ;;
4432 esac
4433fi
4434if test "x$addcflags" != x
4435then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004437$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004438 CFLAGS="$addcflags $CFLAGS"
4439else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004441$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004442fi
Theodore Ts'o93613952014-07-03 23:44:13 -04004443
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4445$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4446if ${ac_cv_path_GREP+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448else
4449 if test -z "$GREP"; then
4450 ac_path_GREP_found=false
4451 # Loop through the user's path and test for each of PROGNAME-LIST
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4454do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_prog in grep ggrep; do
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4460 as_fn_executable_p "$ac_path_GREP" || continue
4461# Check for GNU ac_path_GREP and select it if it is found.
4462 # Check for GNU $ac_path_GREP
4463case `"$ac_path_GREP" --version 2>&1` in
4464*GNU*)
4465 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4466*)
4467 ac_count=0
4468 $as_echo_n 0123456789 >"conftest.in"
4469 while :
4470 do
4471 cat "conftest.in" "conftest.in" >"conftest.tmp"
4472 mv "conftest.tmp" "conftest.in"
4473 cp "conftest.in" "conftest.nl"
4474 $as_echo 'GREP' >> "conftest.nl"
4475 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4476 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4477 as_fn_arith $ac_count + 1 && ac_count=$as_val
4478 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4479 # Best one so far, save it but keep looking for a better one
4480 ac_cv_path_GREP="$ac_path_GREP"
4481 ac_path_GREP_max=$ac_count
4482 fi
4483 # 10*(2^10) chars as input seems more than enough
4484 test $ac_count -gt 10 && break
4485 done
4486 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4487esac
4488
4489 $ac_path_GREP_found && break 3
4490 done
4491 done
4492 done
4493IFS=$as_save_IFS
4494 if test -z "$ac_cv_path_GREP"; then
4495 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4496 fi
4497else
4498 ac_cv_path_GREP=$GREP
4499fi
4500
4501fi
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4503$as_echo "$ac_cv_path_GREP" >&6; }
4504 GREP="$ac_cv_path_GREP"
4505
4506
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4508$as_echo_n "checking for egrep... " >&6; }
4509if ${ac_cv_path_EGREP+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511else
4512 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4513 then ac_cv_path_EGREP="$GREP -E"
4514 else
4515 if test -z "$EGREP"; then
4516 ac_path_EGREP_found=false
4517 # Loop through the user's path and test for each of PROGNAME-LIST
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4520do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_prog in egrep; do
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4526 as_fn_executable_p "$ac_path_EGREP" || continue
4527# Check for GNU ac_path_EGREP and select it if it is found.
4528 # Check for GNU $ac_path_EGREP
4529case `"$ac_path_EGREP" --version 2>&1` in
4530*GNU*)
4531 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4532*)
4533 ac_count=0
4534 $as_echo_n 0123456789 >"conftest.in"
4535 while :
4536 do
4537 cat "conftest.in" "conftest.in" >"conftest.tmp"
4538 mv "conftest.tmp" "conftest.in"
4539 cp "conftest.in" "conftest.nl"
4540 $as_echo 'EGREP' >> "conftest.nl"
4541 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4543 as_fn_arith $ac_count + 1 && ac_count=$as_val
4544 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4545 # Best one so far, save it but keep looking for a better one
4546 ac_cv_path_EGREP="$ac_path_EGREP"
4547 ac_path_EGREP_max=$ac_count
4548 fi
4549 # 10*(2^10) chars as input seems more than enough
4550 test $ac_count -gt 10 && break
4551 done
4552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4553esac
4554
4555 $ac_path_EGREP_found && break 3
4556 done
4557 done
4558 done
4559IFS=$as_save_IFS
4560 if test -z "$ac_cv_path_EGREP"; then
4561 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4562 fi
4563else
4564 ac_cv_path_EGREP=$EGREP
4565fi
4566
4567 fi
4568fi
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4570$as_echo "$ac_cv_path_EGREP" >&6; }
4571 EGREP="$ac_cv_path_EGREP"
4572
4573
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4575$as_echo_n "checking for ANSI C header files... " >&6; }
4576if ${ac_cv_header_stdc+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578else
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580/* end confdefs.h. */
4581#include <stdlib.h>
4582#include <stdarg.h>
4583#include <string.h>
4584#include <float.h>
4585
4586int
4587main ()
4588{
4589
4590 ;
4591 return 0;
4592}
4593_ACEOF
4594if ac_fn_c_try_compile "$LINENO"; then :
4595 ac_cv_header_stdc=yes
4596else
4597 ac_cv_header_stdc=no
4598fi
4599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600
4601if test $ac_cv_header_stdc = yes; then
4602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604/* end confdefs.h. */
4605#include <string.h>
4606
4607_ACEOF
4608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4609 $EGREP "memchr" >/dev/null 2>&1; then :
4610
4611else
4612 ac_cv_header_stdc=no
4613fi
4614rm -f conftest*
4615
4616fi
4617
4618if test $ac_cv_header_stdc = yes; then
4619 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621/* end confdefs.h. */
4622#include <stdlib.h>
4623
4624_ACEOF
4625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626 $EGREP "free" >/dev/null 2>&1; then :
4627
4628else
4629 ac_cv_header_stdc=no
4630fi
4631rm -f conftest*
4632
4633fi
4634
4635if test $ac_cv_header_stdc = yes; then
4636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4637 if test "$cross_compiling" = yes; then :
4638 :
4639else
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641/* end confdefs.h. */
4642#include <ctype.h>
4643#include <stdlib.h>
4644#if ((' ' & 0x0FF) == 0x020)
4645# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4646# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4647#else
4648# define ISLOWER(c) \
4649 (('a' <= (c) && (c) <= 'i') \
4650 || ('j' <= (c) && (c) <= 'r') \
4651 || ('s' <= (c) && (c) <= 'z'))
4652# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4653#endif
4654
4655#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4656int
4657main ()
4658{
4659 int i;
4660 for (i = 0; i < 256; i++)
4661 if (XOR (islower (i), ISLOWER (i))
4662 || toupper (i) != TOUPPER (i))
4663 return 2;
4664 return 0;
4665}
4666_ACEOF
4667if ac_fn_c_try_run "$LINENO"; then :
4668
4669else
4670 ac_cv_header_stdc=no
4671fi
4672rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4673 conftest.$ac_objext conftest.beam conftest.$ac_ext
4674fi
4675
4676fi
4677fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4679$as_echo "$ac_cv_header_stdc" >&6; }
4680if test $ac_cv_header_stdc = yes; then
4681
4682$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4683
4684fi
4685
4686# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4687for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4688 inttypes.h stdint.h unistd.h
4689do :
4690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4691ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4692"
4693if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4694 cat >>confdefs.h <<_ACEOF
4695#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4696_ACEOF
4697
4698fi
4699
4700done
4701
4702
4703
4704 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4705if test "x$ac_cv_header_minix_config_h" = xyes; then :
4706 MINIX=yes
4707else
4708 MINIX=
4709fi
4710
4711
4712 if test "$MINIX" = yes; then
4713
4714$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4715
4716
4717$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4718
4719
4720$as_echo "#define _MINIX 1" >>confdefs.h
4721
4722 fi
4723
4724
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4726$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4727if ${ac_cv_safe_to_define___extensions__+:} false; then :
4728 $as_echo_n "(cached) " >&6
4729else
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731/* end confdefs.h. */
4732
4733# define __EXTENSIONS__ 1
4734 $ac_includes_default
4735int
4736main ()
4737{
4738
4739 ;
4740 return 0;
4741}
4742_ACEOF
4743if ac_fn_c_try_compile "$LINENO"; then :
4744 ac_cv_safe_to_define___extensions__=yes
4745else
4746 ac_cv_safe_to_define___extensions__=no
4747fi
4748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749fi
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4751$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4752 test $ac_cv_safe_to_define___extensions__ = yes &&
4753 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4754
4755 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4756
4757 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4758
4759 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4760
4761 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4762
4763
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004764LIB_EXT=.a
4765STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004766PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004767
Theodore Ts'oe1052142006-10-21 21:46:47 -04004768# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004769if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004770 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004771else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004772 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004773fi
4774# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004775if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004776 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004777then
4778 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004780$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004781else
4782 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004784$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004785fi
4786
4787else
4788 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004790$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004791
Theodore Ts'oe1052142006-10-21 21:46:47 -04004792fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004793
Theodore Ts'oe1052142006-10-21 21:46:47 -04004794
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004795# Check whether --enable-symlink-install was given.
4796if test "${enable_symlink_install+set}" = set; then :
4797 enableval=$enable_symlink_install; if test "$enableval" = "no"
4798then
4799 LINK_INSTALL_FLAGS=-f
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4801$as_echo "Disabling symlinks for install" >&6; }
4802else
4803 LINK_INSTALL_FLAGS=-sf
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4805$as_echo "Enabling symlinks for install" >&6; }
4806fi
4807
4808else
4809 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4811$as_echo "Disabling symlinks for install by default" >&6; }
4812
4813fi
4814
4815
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004816relative_symlink_defined=
4817# Check whether --enable-relative-symlinks was given.
4818if test "${enable_relative_symlinks+set}" = set; then :
4819 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004820then
4821 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004822 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4824$as_echo "Disabling relative symlinks for install" >&6; }
4825else
4826 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004827 relative_symlink_defined=yes
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4829$as_echo "Enabling relative symlinks for install" >&6; }
4830fi
4831fi
4832
4833# Check whether --enable-symlink-relative-symlinks was given.
4834if test "${enable_symlink_relative_symlinks+set}" = set; then :
4835 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4836then
4837 SYMLINK_RELATIVE=yes
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4839$as_echo "Disabling relative symlinks for install" >&6; }
4840else
4841 SYMLINK_RELATIVE=--relative
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4843$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004844fi
4845
4846else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004847 if test -z "$relative_symlink_defined"
4848then
4849 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4851$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004852fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004853
4854fi
4855
4856
4857# Check whether --enable-symlink-build was given.
4858if test "${enable_symlink_build+set}" = set; then :
4859 enableval=$enable_symlink_build; if test "$enableval" = "no"
4860then
4861 LINK_BUILD_FLAGS=
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4863$as_echo "Disabling symlinks for build" >&6; }
4864else
4865 LINK_BUILD_FLAGS=-s
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4867$as_echo "Enabling symlinks for build" >&6; }
4868fi
4869
4870else
4871 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4873$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004874
4875fi
4876
4877
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004878# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004879if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004880 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4881then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004883$as_echo "Disabling verbose make commands" >&6; }
4884 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004885 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004886 Q=@
4887else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004889$as_echo "Enabling verbose make commands" >&6; }
4890 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004891 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004892 Q=
4893fi
4894
4895else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004897$as_echo "Disabling verbose make commands" >&6; }
4898E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004899ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004900Q=@
4901
4902fi
4903
4904
4905
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004906
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004907
Theodore Ts'oe1052142006-10-21 21:46:47 -04004908# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004909if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004910 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004911then
4912 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004914$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004915else
4916 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004917 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004918
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004920$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004921fi
4922
4923else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004924 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004925$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004926
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004928$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004929
Theodore Ts'oe1052142006-10-21 21:46:47 -04004930fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004931
Theodore Ts'oe1052142006-10-21 21:46:47 -04004932
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004933E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004934LDFLAG_DYNAMIC=
4935PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004936# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004937if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004938 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004939then
4940 ELF_CMT=#
4941 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004943$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004944else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004945 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004946 ELF_CMT=
4947 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004948 case "$host_os" in
4949 solaris2.*)
4950 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4951 ;;
4952 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004953 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004954 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004955 PRIVATE_LIBS_CMT=#
4956 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004958$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004959fi
4960
4961else
4962 MAKEFILE_ELF=/dev/null
4963ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004965$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004966
Theodore Ts'oe1052142006-10-21 21:46:47 -04004967fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004968
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004969
Theodore Ts'oe1052142006-10-21 21:46:47 -04004970
4971# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004972if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004973 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004974then
4975 BSDLIB_CMT=#
4976 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004978$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004979else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004980 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004981 BSDLIB_CMT=
4982 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004983 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004984 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004985 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004986 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4987 LIB_EXT=.dylib
4988 ;;
4989 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004991$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004992fi
4993
4994else
4995 MAKEFILE_BSDLIB=/dev/null
4996BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004998$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004999
Theodore Ts'oe1052142006-10-21 21:46:47 -04005000fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005001
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005002
Theodore Ts'oe1052142006-10-21 21:46:47 -04005003
5004# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005005if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005006 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005007then
5008 PROFILE_CMT=#
5009 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005011$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005012else
5013 PROFILE_CMT=
5014 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5015 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005017$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005018fi
5019
5020else
5021 PROFILE_CMT=#
5022MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005024$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005025
Theodore Ts'oe1052142006-10-21 21:46:47 -04005026fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005027
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005028
Theodore Ts'oe1052142006-10-21 21:46:47 -04005029
Theodore Ts'ofedfb272014-02-23 00:17:09 -05005030# Check whether --enable-gcov was given.
5031if test "${enable_gcov+set}" = set; then :
5032 enableval=$enable_gcov; if test "$enableval" = "yes"
5033then
5034 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5035 LDFLAGS="-fprofile-arcs -ftest-coverage"
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5037$as_echo "Enabling gcov support" >&6; }
5038fi
5039
5040fi
5041
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005042
5043
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005044
Theodore Ts'oe1052142006-10-21 21:46:47 -04005045
Theodore Ts'o55da9872008-09-02 23:12:38 -04005046
5047
Theodore Ts'oe1052142006-10-21 21:46:47 -04005048# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005049if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005050 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005051then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005053$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005054else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005055
5056$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005057
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005059$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005060fi
5061
5062else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005064$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005065
Theodore Ts'oe1052142006-10-21 21:46:47 -04005066fi
5067
5068# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005069if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005070 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005071then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005073$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005074else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005075
5076$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005077
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005079$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005080fi
5081
5082else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005084$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005085
Theodore Ts'oe1052142006-10-21 21:46:47 -04005086fi
5087
5088# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005089if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005090 enableval=$enable_testio_debug;
5091if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005092then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005094$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04005095 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005096else
Theodore Ts'oaf773652008-09-01 11:27:27 -04005097 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005098 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005099
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005101$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005102fi
5103
5104else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005106$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005107$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04005108
5109TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005110
Theodore Ts'oe1052142006-10-21 21:46:47 -04005111fi
5112
Theodore Ts'oaf773652008-09-01 11:27:27 -04005113
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005114
5115
Theodore Ts'o93613952014-07-03 23:44:13 -04005116
5117
5118
5119
5120
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005121if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005122 if test -n "$ac_tool_prefix"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005123 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5124set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005126$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005127if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005128 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005129else
5130 case $PKG_CONFIG in
5131 [\\/]* | ?:[\\/]*)
5132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5133 ;;
5134 *)
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136for as_dir in $PATH
5137do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005140 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005144 break 2
5145 fi
5146done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005147 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005148IFS=$as_save_IFS
5149
5150 ;;
5151esac
5152fi
5153PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5154if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005156$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005157else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005159$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005160fi
5161
5162
5163fi
5164if test -z "$ac_cv_path_PKG_CONFIG"; then
5165 ac_pt_PKG_CONFIG=$PKG_CONFIG
5166 # Extract the first word of "pkg-config", so it can be a program name with args.
5167set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005169$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005170if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005171 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005172else
5173 case $ac_pt_PKG_CONFIG in
5174 [\\/]* | ?:[\\/]*)
5175 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5176 ;;
5177 *)
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005183 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005185 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005187 break 2
5188 fi
5189done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005190 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005191IFS=$as_save_IFS
5192
5193 ;;
5194esac
5195fi
5196ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5197if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005199$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005200else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005202$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005203fi
5204
5205 if test "x$ac_pt_PKG_CONFIG" = x; then
5206 PKG_CONFIG=""
5207 else
5208 case $cross_compiling:$ac_tool_warned in
5209yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005210{ $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 +01005211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005212ac_tool_warned=yes ;;
5213esac
5214 PKG_CONFIG=$ac_pt_PKG_CONFIG
5215 fi
5216else
5217 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5218fi
5219
5220fi
5221if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005222 _pkg_min_version=0.9.0
5223 { $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 +01005224$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005225 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005227$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005228 else
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005230$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005231 PKG_CONFIG=""
5232 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005233fi
5234LIBUUID=
5235DEPLIBUUID=
5236STATIC_LIBUUID=
5237DEPSTATIC_LIBUUID=
5238PROFILED_LIBUUID=
5239DEPPROFILED_LIBUUID=
5240UUID_CMT=
5241# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005242if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005243 enableval=$enable_libuuid; if test "$enableval" = "no"
5244then
5245 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005246 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005247 fi
5248
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005250$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005251if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005252 $as_echo_n "(cached) " >&6
5253else
5254 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005255LIBS="-luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005257/* end confdefs.h. */
5258
5259/* Override any GCC internal prototype to avoid an error.
5260 Use char because int might match the return type of a GCC
5261 builtin and then its argument prototype would still apply. */
5262#ifdef __cplusplus
5263extern "C"
5264#endif
5265char uuid_generate ();
5266int
5267main ()
5268{
5269return uuid_generate ();
5270 ;
5271 return 0;
5272}
5273_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005274if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005275 ac_cv_lib_uuid_uuid_generate=yes
5276else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005277 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005278fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005279rm -f core conftest.err conftest.$ac_objext \
5280 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005281LIBS=$ac_check_lib_save_LIBS
5282fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005284$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005285if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005286 LIBUUID=`$PKG_CONFIG --libs uuid`;
5287 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5288else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005289 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005290fi
5291
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005292 PROFILED_LIBUUID=$LIBUUID
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005293 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005295$as_echo "Disabling private uuid library" >&6; }
5296else
5297 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5298 DEPLIBUUID=$LIBUUID
5299 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5300 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5301 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5302 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005304$as_echo "Enabling private uuid library" >&6; }
5305fi
5306
5307else
5308 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5309DEPLIBUUID=$LIBUUID
5310STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5311DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5312PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5313DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005315$as_echo "Enabling private uuid library by default" >&6; }
5316
5317fi
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
Theodore Ts'o93613952014-07-03 23:44:13 -04005328
5329
5330
5331
5332
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005333if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005334 if test -n "$ac_tool_prefix"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005335 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5336set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005338$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005339if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005340 $as_echo_n "(cached) " >&6
5341else
5342 case $PKG_CONFIG in
5343 [\\/]* | ?:[\\/]*)
5344 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5345 ;;
5346 *)
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005352 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005354 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005356 break 2
5357 fi
5358done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005359 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005360IFS=$as_save_IFS
5361
5362 ;;
5363esac
5364fi
5365PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5366if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005368$as_echo "$PKG_CONFIG" >&6; }
5369else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005371$as_echo "no" >&6; }
5372fi
5373
5374
5375fi
5376if test -z "$ac_cv_path_PKG_CONFIG"; then
5377 ac_pt_PKG_CONFIG=$PKG_CONFIG
5378 # Extract the first word of "pkg-config", so it can be a program name with args.
5379set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005381$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005382if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005383 $as_echo_n "(cached) " >&6
5384else
5385 case $ac_pt_PKG_CONFIG in
5386 [\\/]* | ?:[\\/]*)
5387 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5388 ;;
5389 *)
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005395 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005397 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005399 break 2
5400 fi
5401done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005402 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005403IFS=$as_save_IFS
5404
5405 ;;
5406esac
5407fi
5408ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5409if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005411$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5412else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005414$as_echo "no" >&6; }
5415fi
5416
5417 if test "x$ac_pt_PKG_CONFIG" = x; then
5418 PKG_CONFIG=""
5419 else
5420 case $cross_compiling:$ac_tool_warned in
5421yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005422{ $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 +01005423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424ac_tool_warned=yes ;;
5425esac
5426 PKG_CONFIG=$ac_pt_PKG_CONFIG
5427 fi
5428else
5429 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5430fi
5431
5432fi
5433if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005434 _pkg_min_version=0.9.0
5435 { $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 +01005436$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005437 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005439$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005442$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005443 PKG_CONFIG=""
5444 fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005445fi
5446LIBBLKID=
5447DEPLIBBLKID=
5448STATIC_LIBBLKID=
5449DEPSTATIC_LIBBLKID=
5450PROFILED_LIBBLKID=
5451DEPPROFILED_LIBBLKID=
5452BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005453
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005454# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005455if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005456 enableval=$enable_libblkid; if test "$enableval" = "no"
5457then
5458 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005459 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005460 fi
5461
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005463$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005464if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005465 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005466else
5467 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005468LIBS="-lblkid -luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005470/* end confdefs.h. */
5471
5472/* Override any GCC internal prototype to avoid an error.
5473 Use char because int might match the return type of a GCC
5474 builtin and then its argument prototype would still apply. */
5475#ifdef __cplusplus
5476extern "C"
5477#endif
5478char blkid_get_cache ();
5479int
5480main ()
5481{
5482return blkid_get_cache ();
5483 ;
5484 return 0;
5485}
5486_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005487if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005488 ac_cv_lib_blkid_blkid_get_cache=yes
5489else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005490 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005491fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005492rm -f core conftest.err conftest.$ac_objext \
5493 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005494LIBS=$ac_check_lib_save_LIBS
5495fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005497$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005498if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005499 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5500 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5501else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005502 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005503fi
5504
5505 BLKID_CMT=#
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005506 PROFILED_LIBBLKID=$LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005508$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005509else
5510 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5511 DEPLIBBLKID=$LIBBLKID
5512 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5513 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5514 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5515 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005516 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005517
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005519$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005520fi
5521
5522else
5523 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5524DEPLIBBLKID=$LIBBLKID
5525STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5526DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5527PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5528DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005529$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005530
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005532$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005533
5534fi
5535
5536
5537
5538
5539
5540
5541
5542
Eric Sandeenf5589f42013-10-14 08:54:15 -04005543QUOTA_MAN_COMMENT='.\"'
Niu Yawei43075b42013-10-14 09:49:27 -04005544QUOTA_CMT=
Eric Sandeenf5589f42013-10-14 08:54:15 -04005545
Aditya Kalif239fef2011-07-20 11:40:02 -07005546
5547
Theodore Ts'o93613952014-07-03 23:44:13 -04005548
5549
5550
5551
5552
Aditya Kalif239fef2011-07-20 11:40:02 -07005553if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005554 if test -n "$ac_tool_prefix"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005555 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5556set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005559if ${ac_cv_path_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005560 $as_echo_n "(cached) " >&6
5561else
5562 case $PKG_CONFIG in
5563 [\\/]* | ?:[\\/]*)
5564 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5565 ;;
5566 *)
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568for as_dir in $PATH
5569do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005574 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 break 2
5577 fi
5578done
5579 done
5580IFS=$as_save_IFS
5581
5582 ;;
5583esac
5584fi
5585PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5586if test -n "$PKG_CONFIG"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5588$as_echo "$PKG_CONFIG" >&6; }
5589else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591$as_echo "no" >&6; }
5592fi
5593
5594
5595fi
5596if test -z "$ac_cv_path_PKG_CONFIG"; then
5597 ac_pt_PKG_CONFIG=$PKG_CONFIG
5598 # Extract the first word of "pkg-config", so it can be a program name with args.
5599set dummy pkg-config; ac_word=$2
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005602if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005603 $as_echo_n "(cached) " >&6
5604else
5605 case $ac_pt_PKG_CONFIG in
5606 [\\/]* | ?:[\\/]*)
5607 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5608 ;;
5609 *)
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611for as_dir in $PATH
5612do
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005617 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 break 2
5620 fi
5621done
5622 done
5623IFS=$as_save_IFS
5624
5625 ;;
5626esac
5627fi
5628ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5629if test -n "$ac_pt_PKG_CONFIG"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5631$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5632else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634$as_echo "no" >&6; }
5635fi
5636
5637 if test "x$ac_pt_PKG_CONFIG" = x; then
5638 PKG_CONFIG=""
5639 else
5640 case $cross_compiling:$ac_tool_warned in
5641yes:)
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644ac_tool_warned=yes ;;
5645esac
5646 PKG_CONFIG=$ac_pt_PKG_CONFIG
5647 fi
5648else
5649 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5650fi
5651
5652fi
5653if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005654 _pkg_min_version=0.9.0
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005656$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005657 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005659$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005660 else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005662$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005663 PKG_CONFIG=""
5664 fi
Aditya Kalif239fef2011-07-20 11:40:02 -07005665fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005666
5667# Check whether --enable-quota was given.
5668if test "${enable_quota+set}" = set; then :
5669 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005670then
Niu Yawei43075b42013-10-14 09:49:27 -04005671 QUOTA_CMT=#
Theodore Ts'o7becb202011-11-14 10:40:43 -05005672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5673$as_echo "Disabling quota support" >&6; }
5674else
Niu Yawei43075b42013-10-14 09:49:27 -04005675 QUOTA_CMT=
Theodore Ts'o7becb202011-11-14 10:40:43 -05005676 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005677
Theodore Ts'o7becb202011-11-14 10:40:43 -05005678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5679$as_echo "Enabling quota support" >&6; }
Eric Sandeenf5589f42013-10-14 08:54:15 -04005680 QUOTA_MAN_COMMENT=""
5681
Aditya Kalif239fef2011-07-20 11:40:02 -07005682fi
5683
5684else
Niu Yawei43075b42013-10-14 09:49:27 -04005685 QUOTA_CMT=#
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
Theodore Ts'o7becb202011-11-14 10:40:43 -05005687$as_echo "Disabling quota support by default" >&6; }
5688
5689fi
5690
5691LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005692DEPLIBQUOTA=$LIBQUOTA
5693STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5694DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5695PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5696DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005697
5698
5699
5700
5701
5702
5703
Theodore Ts'o3df60142013-06-16 16:14:40 -04005704
5705# Check whether --enable-backtrace was given.
5706if test "${enable_backtrace+set}" = set; then :
5707 enableval=$enable_backtrace; if test "$enableval" = "no"
5708then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5710$as_echo "Disabling use of backtrace" >&6; }
5711 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5712
5713else
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5715$as_echo "Enabling use of backtrace" >&6; }
5716fi
5717
5718else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5720$as_echo "Enabling use of backtrace by default" >&6; }
5721
5722fi
5723
Theodore Ts'oe1052142006-10-21 21:46:47 -04005724# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005725if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005726 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005727then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005729$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005730 DEBUGFS_CMT="#"
5731else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005732 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005734$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005735fi
5736
5737else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005739$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005740DEBUGFS_CMT=
5741
Theodore Ts'oe1052142006-10-21 21:46:47 -04005742fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005743
Theodore Ts'oe1052142006-10-21 21:46:47 -04005744
5745# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005746if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005747 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005748then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005750$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005751 IMAGER_CMT="#"
5752else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005753 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005755$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005756fi
5757
5758else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005760$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005761IMAGER_CMT=
5762
Theodore Ts'oe1052142006-10-21 21:46:47 -04005763fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005764
Theodore Ts'oe1052142006-10-21 21:46:47 -04005765
5766# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005767if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005768 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005769then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005771$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005772 RESIZER_CMT="#"
5773else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005774 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005776$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005777fi
5778
5779else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005781$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005782RESIZER_CMT=
5783
Theodore Ts'oe1052142006-10-21 21:46:47 -04005784fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005785
Theodore Ts'oe1052142006-10-21 21:46:47 -04005786
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005787# Check whether --enable-defrag was given.
5788if test "${enable_defrag+set}" = set; then :
5789 enableval=$enable_defrag; if test "$enableval" = "no"
5790then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5792$as_echo "Disabling e4defrag support" >&6; }
5793 DEFRAG_CMT="#"
5794else
5795 DEFRAG_CMT=
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5797$as_echo "Enabling e4defrag support" >&6; }
5798fi
5799
5800else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005801 if test -z "$WITH_DIET_LIBC"
5802then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005804$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005805 DEFRAG_CMT=
5806else
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5808$as_echo "Disabling e4defrag support by default" >&6; }
5809 DEFRAG_CMT="#"
5810fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005811
5812fi
5813
5814
Theodore Ts'oe1052142006-10-21 21:46:47 -04005815# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005816if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005817 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005818then
5819 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005821$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005822else
5823 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005825$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005826fi
5827
5828else
5829 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005830 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005831 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005833$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005834 ;;
5835 *)
5836 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005838$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005839esac
5840
Theodore Ts'oe1052142006-10-21 21:46:47 -04005841fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005842
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005843
Theodore Ts'oe1052142006-10-21 21:46:47 -04005844
5845# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005846if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005847 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005848then
5849 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005851$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005852else
5853 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005855$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005856fi
5857
5858else
5859 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005861$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005862
Theodore Ts'oe1052142006-10-21 21:46:47 -04005863fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005864
5865
Theodore Ts'oe1052142006-10-21 21:46:47 -04005866
Theodore Ts'o32493942007-12-31 10:45:01 -05005867# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005868if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005869 enableval=$enable_tls; if test "$enableval" = "no"
5870then
5871 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005873$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005874else
5875 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005877$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005878fi
5879
5880else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005881 if test -n "$WITH_DIET_LIBC"
5882then
5883 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005884 { $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 +01005885$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005886else
5887 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005889$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005890fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005891
5892fi
5893
5894if test "$try_tls" = "yes"
5895then
5896
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005898$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005899 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005900 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005901else
5902
5903 ax_tls_keywords="__thread __declspec(thread) none"
5904 for ax_tls_keyword in $ax_tls_keywords; do
5905 case $ax_tls_keyword in
5906 none) ac_cv_tls=none ; break ;;
5907 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005909/* end confdefs.h. */
5910#include <stdlib.h>
5911 static void
5912 foo(void) {
5913 static $ax_tls_keyword int bar;
5914 exit(1);
5915 }
5916int
5917main ()
5918{
5919
5920 ;
5921 return 0;
5922}
5923_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005924if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005925 ac_cv_tls=$ax_tls_keyword ; break
5926else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005927 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005928
5929fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 esac
5932 done
5933
5934fi
5935
5936
5937 if test "$ac_cv_tls" != "none"; then
5938
5939cat >>confdefs.h <<_ACEOF
5940#define TLS $ac_cv_tls
5941_ACEOF
5942
5943 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005945$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005946
5947fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005948
Theodore Ts'o5610f992007-12-31 11:16:56 -05005949# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005950if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005951 enableval=$enable_uuidd; if test "$enableval" = "no"
5952then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005954$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005955 UUIDD_CMT="#"
5956else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005957 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005958
5959 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005961$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005962fi
5963
5964else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005965 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005966
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005967if test -z "$UUID_CMT"
5968then
5969 UUIDD_CMT=""
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005971$as_echo "Building uuidd by default" >&6; }
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005972else
5973 UUIDD_CMT="#"
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5975$as_echo "Disabling uuidd by default" >&6; }
5976fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005977
5978fi
5979
5980
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005981
5982# Check whether --enable-mmp was given.
5983if test "${enable_mmp+set}" = set; then :
5984 enableval=$enable_mmp; if test "$enableval" = "no"
5985then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5987$as_echo "Disabling mmp support" >&6; }
5988else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5990$as_echo "Enabling mmp support" >&6; }
5991 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5992
5993fi
5994
5995else
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5997$as_echo "Enabling mmp support by default" >&6; }
5998$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5999
6000
6001fi
6002
Tony Breeds1625bf42012-07-30 14:44:12 -04006003
6004# Check whether --enable-bmap-stats was given.
6005if test "${enable_bmap_stats+set}" = set; then :
6006 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6007then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6009$as_echo "Disabling bitmap statistics support" >&6; }
6010else
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6012$as_echo "Enabling bitmap statistics support" >&6; }
6013 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6014
6015fi
6016
6017else
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6019$as_echo "Enabling bitmap statistics support by default" >&6; }
6020$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6021
6022
6023fi
6024
6025
6026# Check whether --enable-bmap-stats-ops was given.
6027if test "${enable_bmap_stats_ops+set}" = set; then :
6028 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6029then
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6031$as_echo "Disabling additional bitmap statistics" >&6; }
6032else
6033 if test "x${enable_bmap_stats}" = "xno"; then :
6034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6036as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6037See \`config.log' for more details" "$LINENO" 5; }
6038fi
6039
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6041$as_echo "Enabling additional bitmap statistics" >&6; }
6042 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6043
6044fi
6045
6046else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6048$as_echo "Disabling additional bitmap statistics by default" >&6; }
6049
6050fi
6051
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00006052MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6053
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006054GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006055PACKAGE=e2fsprogs
6056VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006057VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006058
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006059cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006060#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006061_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006062
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006063
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006064cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006065#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006066_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006067
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006068
6069
6070
6071
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006073$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6074set x ${MAKE-make}
6075ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006076if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006077 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006078else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006079 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006080SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006081all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04006082 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006083_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006084# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04006085case `${MAKE-make} -f conftest.make 2>/dev/null` in
6086 *@@@%%%=?*=@@@%%%*)
6087 eval ac_cv_prog_make_${ac_make}_set=yes;;
6088 *)
6089 eval ac_cv_prog_make_${ac_make}_set=no;;
6090esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006091rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006092fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006093if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006095$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006096 SET_MAKE=
6097else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006099$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006100 SET_MAKE="MAKE=${MAKE-make}"
6101fi
6102
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006103# Find a good install program. We prefer a C program (faster),
6104# so one script is as good as another. But avoid the broken or
6105# incompatible versions:
6106# SysV /etc/install, /usr/sbin/install
6107# SunOS /usr/etc/install
6108# IRIX /sbin/install
6109# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006110# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006111# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6112# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6113# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006114# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006115# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006116# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006118$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006119if test -z "$INSTALL"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006120if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006121 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006122else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124for as_dir in $PATH
6125do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006128 # Account for people who put trailing slashes in PATH elements.
6129case $as_dir/ in #((
6130 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006131 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006132 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006133 /usr/ucb/* ) ;;
6134 *)
6135 # OSF1 and SCO ODT 3.0 have their own names for install.
6136 # Don't use installbsd from OSF since it installs stuff as root
6137 # by default.
6138 for ac_prog in ginstall scoinst install; do
6139 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006140 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006141 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006142 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006143 # AIX install. It has an incompatible calling convention.
6144 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006145 elif test $ac_prog = install &&
6146 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6147 # program-specific install script used by HP pwplus--don't use.
6148 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006149 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006150 rm -rf conftest.one conftest.two conftest.dir
6151 echo one > conftest.one
6152 echo two > conftest.two
6153 mkdir conftest.dir
6154 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6155 test -s conftest.one && test -s conftest.two &&
6156 test -s conftest.dir/conftest.one &&
6157 test -s conftest.dir/conftest.two
6158 then
6159 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6160 break 3
6161 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006162 fi
6163 fi
6164 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006165 done
6166 ;;
6167esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006168
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006169 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006170IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006171
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006172rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006173
6174fi
6175 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006176 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006177 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04006178 # As a last resort, use the slow shell script. Don't cache a
6179 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006180 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04006181 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006182 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006183 fi
6184fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006186$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006187
6188# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6189# It thinks the first close brace ends the variable substitution.
6190test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6191
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006192test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006193
6194test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6195
Theodore Ts'o93613952014-07-03 23:44:13 -04006196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6197$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6198if test -z "$MKDIR_P"; then
6199 if ${ac_cv_path_mkdir+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6204do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_prog in mkdir gmkdir; do
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6210 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6211 'mkdir (GNU coreutils) '* | \
6212 'mkdir (coreutils) '* | \
6213 'mkdir (fileutils) '4.1*)
6214 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6215 break 3;;
6216 esac
6217 done
6218 done
6219 done
6220IFS=$as_save_IFS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006221
Theodore Ts'o93613952014-07-03 23:44:13 -04006222fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006223
Theodore Ts'o93613952014-07-03 23:44:13 -04006224 test -d ./--version && rmdir ./--version
6225 if test "${ac_cv_path_mkdir+set}" = set; then
6226 MKDIR_P="$ac_cv_path_mkdir -p"
6227 else
6228 # As a last resort, use the slow shell script. Don't cache a
6229 # value for MKDIR_P within a source directory, because that will
6230 # break other packages using the cache if that directory is
6231 # removed, or if the value is a relative name.
6232 MKDIR_P="$ac_install_sh -d"
6233 fi
6234fi
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6236$as_echo "$MKDIR_P" >&6; }
6237
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6239$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6240if ${ac_cv_path_SED+:} false; then :
6241 $as_echo_n "(cached) " >&6
6242else
6243 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6244 for ac_i in 1 2 3 4 5 6 7; do
6245 ac_script="$ac_script$as_nl$ac_script"
6246 done
6247 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6248 { ac_script=; unset ac_script;}
6249 if test -z "$SED"; then
6250 ac_path_SED_found=false
6251 # Loop through the user's path and test for each of PROGNAME-LIST
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253for as_dir in $PATH
6254do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_prog in sed gsed; do
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6260 as_fn_executable_p "$ac_path_SED" || continue
6261# Check for GNU ac_path_SED and select it if it is found.
6262 # Check for GNU $ac_path_SED
6263case `"$ac_path_SED" --version 2>&1` in
6264*GNU*)
6265 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6266*)
6267 ac_count=0
6268 $as_echo_n 0123456789 >"conftest.in"
6269 while :
6270 do
6271 cat "conftest.in" "conftest.in" >"conftest.tmp"
6272 mv "conftest.tmp" "conftest.in"
6273 cp "conftest.in" "conftest.nl"
6274 $as_echo '' >> "conftest.nl"
6275 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6277 as_fn_arith $ac_count + 1 && ac_count=$as_val
6278 if test $ac_count -gt ${ac_path_SED_max-0}; then
6279 # Best one so far, save it but keep looking for a better one
6280 ac_cv_path_SED="$ac_path_SED"
6281 ac_path_SED_max=$ac_count
6282 fi
6283 # 10*(2^10) chars as input seems more than enough
6284 test $ac_count -gt 10 && break
6285 done
6286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6287esac
6288
6289 $ac_path_SED_found && break 3
6290 done
6291 done
6292 done
6293IFS=$as_save_IFS
6294 if test -z "$ac_cv_path_SED"; then
6295 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6296 fi
6297else
6298 ac_cv_path_SED=$SED
6299fi
6300
6301fi
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6303$as_echo "$ac_cv_path_SED" >&6; }
6304 SED="$ac_cv_path_SED"
6305 rm -f conftest.sed
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006306
6307
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006309$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006310 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006311if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006312 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006313else
6314 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04006315fi
6316
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006318$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006319
6320
6321
6322
Theodore Ts'o93613952014-07-03 23:44:13 -04006323 GETTEXT_MACRO_VERSION=0.18
6324
6325
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006326
6327
6328# Prepare PATH_SEPARATOR.
6329# The user is always right.
6330if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006331 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6332 # contains only /bin. Note that ksh looks also at the FPATH variable,
6333 # so we have to set that as well for the test.
6334 PATH_SEPARATOR=:
6335 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6336 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6337 || PATH_SEPARATOR=';'
6338 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006339fi
6340
6341# Find out how to test for executable files. Don't use a zero-byte file,
6342# as systems may use methods other than mode bits to determine executability.
6343cat >conf$$.file <<_ASEOF
6344#! /bin/sh
6345exit 0
6346_ASEOF
6347chmod +x conf$$.file
6348if test -x conf$$.file >/dev/null 2>&1; then
6349 ac_executable_p="test -x"
6350else
6351 ac_executable_p="test -f"
6352fi
6353rm -f conf$$.file
6354
6355# Extract the first word of "msgfmt", so it can be a program name with args.
6356set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006358$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006359if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006360 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006361else
6362 case "$MSGFMT" in
6363 [\\/]* | ?:[\\/]*)
6364 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6365 ;;
6366 *)
6367 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6368 for ac_dir in $PATH; do
6369 IFS="$ac_save_IFS"
6370 test -z "$ac_dir" && ac_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006373 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6374 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006375 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6376 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6377 break 2
6378 fi
6379 fi
6380 done
6381 done
6382 IFS="$ac_save_IFS"
6383 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6384 ;;
6385esac
6386fi
6387MSGFMT="$ac_cv_path_MSGFMT"
6388if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006390$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006391else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006393$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006394fi
6395
6396 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6397set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006399$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006400if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006401 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006402else
6403 case $GMSGFMT in
6404 [\\/]* | ?:[\\/]*)
6405 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6406 ;;
6407 *)
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409for as_dir in $PATH
6410do
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006413 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006415 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006417 break 2
6418 fi
6419done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006420 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006421IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006422
6423 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6424 ;;
6425esac
6426fi
6427GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006428if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006430$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006431else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006433$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006434fi
6435
6436
6437
Theodore Ts'o93613952014-07-03 23:44:13 -04006438 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6439 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6440 *) MSGFMT_015=$MSGFMT ;;
6441 esac
6442
6443 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6444 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6445 *) GMSGFMT_015=$GMSGFMT ;;
6446 esac
6447
6448
Theodore Ts'oe1052142006-10-21 21:46:47 -04006449
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006450# Prepare PATH_SEPARATOR.
6451# The user is always right.
6452if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006453 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6454 # contains only /bin. Note that ksh looks also at the FPATH variable,
6455 # so we have to set that as well for the test.
6456 PATH_SEPARATOR=:
6457 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6458 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6459 || PATH_SEPARATOR=';'
6460 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006461fi
6462
6463# Find out how to test for executable files. Don't use a zero-byte file,
6464# as systems may use methods other than mode bits to determine executability.
6465cat >conf$$.file <<_ASEOF
6466#! /bin/sh
6467exit 0
6468_ASEOF
6469chmod +x conf$$.file
6470if test -x conf$$.file >/dev/null 2>&1; then
6471 ac_executable_p="test -x"
6472else
6473 ac_executable_p="test -f"
6474fi
6475rm -f conf$$.file
6476
6477# Extract the first word of "xgettext", so it can be a program name with args.
6478set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006480$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006481if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006482 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006483else
6484 case "$XGETTEXT" in
6485 [\\/]* | ?:[\\/]*)
6486 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6487 ;;
6488 *)
6489 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6490 for ac_dir in $PATH; do
6491 IFS="$ac_save_IFS"
6492 test -z "$ac_dir" && ac_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006495 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6496 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006497 (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
6498 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6499 break 2
6500 fi
6501 fi
6502 done
6503 done
6504 IFS="$ac_save_IFS"
6505 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6506 ;;
6507esac
6508fi
6509XGETTEXT="$ac_cv_path_XGETTEXT"
6510if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006512$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006513else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006515$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006516fi
6517
6518 rm -f messages.po
6519
Theodore Ts'o93613952014-07-03 23:44:13 -04006520 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6521 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6522 *) XGETTEXT_015=$XGETTEXT ;;
6523 esac
6524
6525
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006526
6527# Prepare PATH_SEPARATOR.
6528# The user is always right.
6529if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006530 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6531 # contains only /bin. Note that ksh looks also at the FPATH variable,
6532 # so we have to set that as well for the test.
6533 PATH_SEPARATOR=:
6534 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6535 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6536 || PATH_SEPARATOR=';'
6537 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006538fi
6539
6540# Find out how to test for executable files. Don't use a zero-byte file,
6541# as systems may use methods other than mode bits to determine executability.
6542cat >conf$$.file <<_ASEOF
6543#! /bin/sh
6544exit 0
6545_ASEOF
6546chmod +x conf$$.file
6547if test -x conf$$.file >/dev/null 2>&1; then
6548 ac_executable_p="test -x"
6549else
6550 ac_executable_p="test -f"
6551fi
6552rm -f conf$$.file
6553
6554# Extract the first word of "msgmerge", so it can be a program name with args.
6555set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006557$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006558if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006559 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006560else
6561 case "$MSGMERGE" in
6562 [\\/]* | ?:[\\/]*)
6563 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6564 ;;
6565 *)
6566 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6567 for ac_dir in $PATH; do
6568 IFS="$ac_save_IFS"
6569 test -z "$ac_dir" && ac_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006572 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6573 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006574 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6575 break 2
6576 fi
6577 fi
6578 done
6579 done
6580 IFS="$ac_save_IFS"
6581 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6582 ;;
6583esac
6584fi
6585MSGMERGE="$ac_cv_path_MSGMERGE"
6586if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006588$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006589else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006591$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006592fi
6593
6594
Theodore Ts'o93613952014-07-03 23:44:13 -04006595 test -n "$localedir" || localedir='${datadir}/locale'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006596
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006597
Theodore Ts'o93613952014-07-03 23:44:13 -04006598 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6599
6600
6601 ac_config_commands="$ac_config_commands po-directories"
6602
6603
6604
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6606$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6607if ${ac_cv_gnu_library_2+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609else
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611/* end confdefs.h. */
6612
6613#include <features.h>
6614#ifdef __GNU_LIBRARY__
6615 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6616 Lucky GNU user
6617 #endif
6618#endif
6619
6620_ACEOF
6621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6622 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6623 ac_cv_gnu_library_2=yes
6624else
6625 ac_cv_gnu_library_2=no
6626fi
6627rm -f conftest*
6628
6629
6630
6631fi
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6633$as_echo "$ac_cv_gnu_library_2" >&6; }
6634
6635 GLIBC2="$ac_cv_gnu_library_2"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006636
6637
6638if test -n "$ac_tool_prefix"; then
6639 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6640set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006642$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006643if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006644 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006645else
6646 if test -n "$RANLIB"; then
6647 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6648else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006654 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006656 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006658 break 2
6659 fi
6660done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006661 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006662IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006663
6664fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006665fi
6666RANLIB=$ac_cv_prog_RANLIB
6667if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006669$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006670else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006672$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006673fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006674
Theodore Ts'oe1052142006-10-21 21:46:47 -04006675
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006676fi
6677if test -z "$ac_cv_prog_RANLIB"; then
6678 ac_ct_RANLIB=$RANLIB
6679 # Extract the first word of "ranlib", so it can be a program name with args.
6680set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006682$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006683if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006684 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685else
6686 if test -n "$ac_ct_RANLIB"; then
6687 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6688else
6689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690for as_dir in $PATH
6691do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006694 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006696 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006698 break 2
6699 fi
6700done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006701 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006702IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006703
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006704fi
6705fi
6706ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6707if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006709$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006710else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006712$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006713fi
6714
Theodore Ts'oe1052142006-10-21 21:46:47 -04006715 if test "x$ac_ct_RANLIB" = x; then
6716 RANLIB=":"
6717 else
6718 case $cross_compiling:$ac_tool_warned in
6719yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006720{ $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 +01006721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006722ac_tool_warned=yes ;;
6723esac
6724 RANLIB=$ac_ct_RANLIB
6725 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006726else
6727 RANLIB="$ac_cv_prog_RANLIB"
6728fi
6729
6730
Theodore Ts'o93613952014-07-03 23:44:13 -04006731
6732 CFLAG_VISIBILITY=
6733 HAVE_VISIBILITY=0
6734 if test -n "$GCC"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6736$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6737 if ${gl_cv_cc_vis_werror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006738 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006739else
Theodore Ts'o93613952014-07-03 23:44:13 -04006740
6741 gl_save_CFLAGS="$CFLAGS"
6742 CFLAGS="$CFLAGS -Werror"
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006744/* end confdefs.h. */
6745
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006746int
6747main ()
6748{
Theodore Ts'o93613952014-07-03 23:44:13 -04006749
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006750 ;
6751 return 0;
6752}
6753_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04006754if ac_fn_c_try_compile "$LINENO"; then :
6755 gl_cv_cc_vis_werror=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006756else
Theodore Ts'o93613952014-07-03 23:44:13 -04006757 gl_cv_cc_vis_werror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006758fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 CFLAGS="$gl_save_CFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006761fi
6762
Theodore Ts'o93613952014-07-03 23:44:13 -04006763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6764$as_echo "$gl_cv_cc_vis_werror" >&6; }
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6766$as_echo_n "checking for simple visibility declarations... " >&6; }
6767 if ${gl_cv_cc_visibility+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006768 $as_echo_n "(cached) " >&6
6769else
Theodore Ts'o93613952014-07-03 23:44:13 -04006770
6771 gl_save_CFLAGS="$CFLAGS"
6772 CFLAGS="$CFLAGS -fvisibility=hidden"
6773 if test $gl_cv_cc_vis_werror = yes; then
6774 CFLAGS="$CFLAGS -Werror"
6775 fi
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777/* end confdefs.h. */
6778extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6779 extern __attribute__((__visibility__("default"))) int exportedvar;
6780 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6781 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6782 void dummyfunc (void) {}
6783
6784int
6785main ()
6786{
6787
6788 ;
6789 return 0;
6790}
6791_ACEOF
6792if ac_fn_c_try_compile "$LINENO"; then :
6793 gl_cv_cc_visibility=yes
6794else
6795 gl_cv_cc_visibility=no
6796fi
6797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798 CFLAGS="$gl_save_CFLAGS"
6799fi
6800
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6802$as_echo "$gl_cv_cc_visibility" >&6; }
6803 if test $gl_cv_cc_visibility = yes; then
6804 CFLAG_VISIBILITY="-fvisibility=hidden"
6805 HAVE_VISIBILITY=1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006806 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006807 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006808
6809
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006810
Theodore Ts'o93613952014-07-03 23:44:13 -04006811cat >>confdefs.h <<_ACEOF
6812#define HAVE_VISIBILITY $HAVE_VISIBILITY
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006813_ACEOF
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006814
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006815
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006817$as_echo_n "checking for inline... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006818if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006819 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006820else
6821 ac_cv_c_inline=no
6822for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006824/* end confdefs.h. */
6825#ifndef __cplusplus
6826typedef int foo_t;
6827static $ac_kw foo_t static_foo () {return 0; }
6828$ac_kw foo_t foo () {return 0; }
6829#endif
6830
6831_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006832if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006833 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006834fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006837done
6838
6839fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006841$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006842
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006843case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006844 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006845 *)
6846 case $ac_cv_c_inline in
6847 no) ac_val=;;
6848 *) ac_val=$ac_cv_c_inline;;
6849 esac
6850 cat >>confdefs.h <<_ACEOF
6851#ifndef __cplusplus
6852#define inline $ac_val
6853#endif
6854_ACEOF
6855 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006856esac
6857
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006858ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006859if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006860
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006861else
6862
6863cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006864#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006865_ACEOF
6866
6867fi
6868
6869
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006871$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04006872if ${gl_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006873 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006874else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006876/* end confdefs.h. */
6877#include <sys/types.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04006878 #include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006879int
6880main ()
6881{
Theodore Ts'o93613952014-07-03 23:44:13 -04006882uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006883 ;
6884 return 0;
6885}
6886_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006887if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04006888 gl_cv_header_stdint_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006889else
Theodore Ts'o93613952014-07-03 23:44:13 -04006890 gl_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006891fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006893fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6895$as_echo "$gl_cv_header_stdint_h" >&6; }
6896 if test $gl_cv_header_stdint_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006897
6898cat >>confdefs.h <<_ACEOF
6899#define HAVE_STDINT_H_WITH_UINTMAX 1
6900_ACEOF
6901
6902 fi
6903
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006904# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6905# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006907$as_echo_n "checking for working alloca.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006908if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006909 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006910else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006912/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006913#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006914int
6915main ()
6916{
6917char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006918 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006919 ;
6920 return 0;
6921}
6922_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006923if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006924 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006925else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006926 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006927fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006928rm -f core conftest.err conftest.$ac_objext \
6929 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006930fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006932$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006933if test $ac_cv_working_alloca_h = yes; then
6934
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006935$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006936
6937fi
6938
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006940$as_echo_n "checking for alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006941if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006942 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006943else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006945/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006946#ifdef __GNUC__
6947# define alloca __builtin_alloca
6948#else
6949# ifdef _MSC_VER
6950# include <malloc.h>
6951# define alloca _alloca
6952# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006953# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006954# include <alloca.h>
6955# else
6956# ifdef _AIX
6957 #pragma alloca
6958# else
6959# ifndef alloca /* predefined by HP cc +Olibcalls */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006960void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006961# endif
6962# endif
6963# endif
6964# endif
6965#endif
6966
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006967int
6968main ()
6969{
6970char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006971 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006972 ;
6973 return 0;
6974}
6975_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006976if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006977 ac_cv_func_alloca_works=yes
6978else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006979 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006980fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006981rm -f core conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006983fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006985$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006986
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006987if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006988
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006989$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006990
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006991else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006992 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6993# that cause trouble. Some versions do not even contain alloca or
6994# contain a buggy version. If you still want to use their alloca,
6995# use ar to extract alloca.o from them instead of compiling alloca.c.
6996
Theodore Ts'oe1052142006-10-21 21:46:47 -04006997ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006998
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006999$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007000
7001
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007003$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007004if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007005 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007006else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007008/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007009#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007010webecray
7011#else
7012wenotbecray
7013#endif
7014
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007015_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007017 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007018 ac_cv_os_cray=yes
7019else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007020 ac_cv_os_cray=no
7021fi
7022rm -f conftest*
7023
7024fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007026$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007027if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007028 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007030ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007031if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007032
7033cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007034#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007035_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007036
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007037 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007038fi
7039
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007040 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007041fi
7042
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007044$as_echo_n "checking stack direction for C alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007045if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007046 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007047else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007048 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007049 ac_cv_c_stack_direction=0
7050else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007052/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007053$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007054int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007055find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007056{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007057 int dir, dummy = 0;
7058 if (! addr)
7059 addr = &dummy;
7060 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7061 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7062 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007063}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007064
7065int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007066main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007067{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007068 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007069}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007070_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007071if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007072 ac_cv_c_stack_direction=1
7073else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007074 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007075fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7077 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007078fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007079
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007080fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007082$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007083cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007084#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007085_ACEOF
7086
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007087
7088fi
7089
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007090
7091
7092
7093 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007094do :
7095 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007096ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7097"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007098if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007099 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007100#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007101_ACEOF
7102
7103fi
7104
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007105done
7106
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007107
7108
7109
7110
7111
7112
7113
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007114for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007115do :
7116 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007117if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007118 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007119#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007120_ACEOF
7121
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007122fi
7123done
7124
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007126$as_echo_n "checking for working mmap... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007127if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007128 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007129else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007130 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007131 ac_cv_func_mmap_fixed_mapped=no
7132else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007134/* end confdefs.h. */
7135$ac_includes_default
7136/* malloc might have been renamed as rpl_malloc. */
7137#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007138
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007139/* Thanks to Mike Haertel and Jim Avera for this test.
7140 Here is a matrix of mmap possibilities:
7141 mmap private not fixed
7142 mmap private fixed at somewhere currently unmapped
7143 mmap private fixed at somewhere already mapped
7144 mmap shared not fixed
7145 mmap shared fixed at somewhere currently unmapped
7146 mmap shared fixed at somewhere already mapped
7147 For private mappings, we should verify that changes cannot be read()
7148 back from the file, nor mmap's back from the file at a different
7149 address. (There have been systems where private was not correctly
7150 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007151 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007152 like early versions of FreeBSD and possibly contemporary NetBSD.)
7153 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007154 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007155
7156 Grep wants private fixed already mapped.
7157 The main things grep needs to know about mmap are:
7158 * does it exist and is it safe to write into the mmap'd area
7159 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007160
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007161#include <fcntl.h>
7162#include <sys/mman.h>
7163
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007164#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007165char *malloc ();
7166#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007167
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007168/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007169#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007170# ifdef _SC_PAGESIZE
7171# define getpagesize() sysconf(_SC_PAGESIZE)
7172# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007173# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007174# include <sys/param.h>
7175# ifdef EXEC_PAGESIZE
7176# define getpagesize() EXEC_PAGESIZE
7177# else /* no EXEC_PAGESIZE */
7178# ifdef NBPG
7179# define getpagesize() NBPG * CLSIZE
7180# ifndef CLSIZE
7181# define CLSIZE 1
7182# endif /* no CLSIZE */
7183# else /* no NBPG */
7184# ifdef NBPC
7185# define getpagesize() NBPC
7186# else /* no NBPC */
7187# ifdef PAGESIZE
7188# define getpagesize() PAGESIZE
7189# endif /* PAGESIZE */
7190# endif /* no NBPC */
7191# endif /* no NBPG */
7192# endif /* no EXEC_PAGESIZE */
7193# else /* no HAVE_SYS_PARAM_H */
7194# define getpagesize() 8192 /* punt totally */
7195# endif /* no HAVE_SYS_PARAM_H */
7196# endif /* no _SC_PAGESIZE */
7197
7198#endif /* no HAVE_GETPAGESIZE */
7199
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007200int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007201main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007202{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007203 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007204 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007205 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007206 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007207
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007208 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007209
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007210 /* First, make a file with some known garbage in it. */
7211 data = (char *) malloc (pagesize);
7212 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007213 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007214 for (i = 0; i < pagesize; ++i)
7215 *(data + i) = rand ();
7216 umask (0);
7217 fd = creat ("conftest.mmap", 0600);
7218 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007219 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007220 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007221 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007222 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007223
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007224 /* Next, check that the tail of a page is zero-filled. File must have
7225 non-zero length, otherwise we risk SIGBUS for entire page. */
7226 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7227 if (fd2 < 0)
7228 return 4;
7229 cdata2 = "";
7230 if (write (fd2, cdata2, 1) != 1)
7231 return 5;
7232 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7233 if (data2 == MAP_FAILED)
7234 return 6;
7235 for (i = 0; i < pagesize; ++i)
7236 if (*(data2 + i))
7237 return 7;
7238 close (fd2);
7239 if (munmap (data2, pagesize))
7240 return 8;
7241
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007242 /* Next, try to mmap the file at a fixed address which already has
7243 something else allocated at it. If we can, also make sure that
7244 we see the same garbage. */
7245 fd = open ("conftest.mmap", O_RDWR);
7246 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007247 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007248 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7249 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007250 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007251 for (i = 0; i < pagesize; ++i)
7252 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007253 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007254
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007255 /* Finally, make sure that changes to the mapped area do not
7256 percolate back to the file as seen by read(). (This is a bug on
7257 some variants of i386 svr4.0.) */
7258 for (i = 0; i < pagesize; ++i)
7259 *(data2 + i) = *(data2 + i) + 1;
7260 data3 = (char *) malloc (pagesize);
7261 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007262 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007263 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007264 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007265 for (i = 0; i < pagesize; ++i)
7266 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007267 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007268 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007269 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007270}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007271_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007272if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007273 ac_cv_func_mmap_fixed_mapped=yes
7274else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007275 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007276fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7278 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007279fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007280
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007281fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007283$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007284if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007285
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007286$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007287
7288fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007289rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007290
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007291
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007292
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007294$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007295if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007296 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007297else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007298
Theodore Ts'o93613952014-07-03 23:44:13 -04007299 gt_cv_int_divbyzero_sigfpe=
7300 case "$host_os" in
7301 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7302 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7303 # compiling. If we were to perform the real test, 1 Crash Report
7304 # dialog window would pop up.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007305 case "$host_cpu" in
Theodore Ts'o93613952014-07-03 23:44:13 -04007306 i[34567]86 | x86_64)
7307 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007308 esac
Theodore Ts'o93613952014-07-03 23:44:13 -04007309 ;;
7310 esac
7311 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7312 if test "$cross_compiling" = yes; then :
7313
7314 # Guess based on the CPU.
7315 case "$host_cpu" in
7316 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7317 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7318 *)
7319 gt_cv_int_divbyzero_sigfpe="guessing no";;
7320 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007321
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007322else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007324/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007325
7326#include <stdlib.h>
7327#include <signal.h>
7328
7329static void
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007330sigfpe_handler (int sig)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007331{
7332 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7333 exit (sig != SIGFPE);
7334}
7335
7336int x = 1;
7337int y = 0;
7338int z;
7339int nan;
7340
7341int main ()
7342{
7343 signal (SIGFPE, sigfpe_handler);
7344/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7345#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7346 signal (SIGTRAP, sigfpe_handler);
7347#endif
7348/* Linux/SPARC yields signal SIGILL. */
7349#if defined (__sparc__) && defined (__linux__)
7350 signal (SIGILL, sigfpe_handler);
7351#endif
7352
7353 z = x / y;
7354 nan = y / y;
Theodore Ts'o93613952014-07-03 23:44:13 -04007355 exit (2);
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007356}
7357
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007358_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007359if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007360 gt_cv_int_divbyzero_sigfpe=yes
7361else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007362 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007363fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7365 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007366fi
7367
Theodore Ts'o93613952014-07-03 23:44:13 -04007368 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007369
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007370fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007372$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007373 case "$gt_cv_int_divbyzero_sigfpe" in
7374 *yes) value=1;;
7375 *) value=0;;
7376 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007377
7378cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007379#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007380_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007381
7382
7383
Theodore Ts'o93613952014-07-03 23:44:13 -04007384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7385$as_echo_n "checking for inttypes.h... " >&6; }
7386if ${gl_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007387 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007388else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007390/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007391
7392#include <sys/types.h>
7393#include <inttypes.h>
7394
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007395int
7396main ()
7397{
Theodore Ts'o93613952014-07-03 23:44:13 -04007398uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007399 ;
7400 return 0;
7401}
7402_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04007403if ac_fn_c_try_compile "$LINENO"; then :
7404 gl_cv_header_inttypes_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007405else
Theodore Ts'o93613952014-07-03 23:44:13 -04007406 gl_cv_header_inttypes_h=no
7407fi
7408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409fi
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7411$as_echo "$gl_cv_header_inttypes_h" >&6; }
7412 if test $gl_cv_header_inttypes_h = yes; then
7413
7414cat >>confdefs.h <<_ACEOF
7415#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7416_ACEOF
7417
7418 fi
7419
7420
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7422$as_echo_n "checking for unsigned long long int... " >&6; }
7423if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425else
7426 ac_cv_type_unsigned_long_long_int=yes
7427 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429/* end confdefs.h. */
7430
7431 /* For now, do not test the preprocessor; as of 2007 there are too many
7432 implementations with broken preprocessors. Perhaps this can
7433 be revisited in 2012. In the meantime, code should not expect
7434 #if to work with literals wider than 32 bits. */
7435 /* Test literals. */
7436 long long int ll = 9223372036854775807ll;
7437 long long int nll = -9223372036854775807LL;
7438 unsigned long long int ull = 18446744073709551615ULL;
7439 /* Test constant expressions. */
7440 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7441 ? 1 : -1)];
7442 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7443 ? 1 : -1)];
7444 int i = 63;
7445int
7446main ()
7447{
7448/* Test availability of runtime routines for shift and division. */
7449 long long int llmax = 9223372036854775807ll;
7450 unsigned long long int ullmax = 18446744073709551615ull;
7451 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7452 | (llmax / ll) | (llmax % ll)
7453 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7454 | (ullmax / ull) | (ullmax % ull));
7455 ;
7456 return 0;
7457}
7458
7459_ACEOF
7460if ac_fn_c_try_link "$LINENO"; then :
7461
7462else
7463 ac_cv_type_unsigned_long_long_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007464fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007465rm -f core conftest.err conftest.$ac_objext \
7466 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -04007467 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007468fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7470$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7471 if test $ac_cv_type_unsigned_long_long_int = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007472
Theodore Ts'o93613952014-07-03 23:44:13 -04007473$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007474
7475 fi
7476
7477
7478
7479
Theodore Ts'o93613952014-07-03 23:44:13 -04007480 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007481
Theodore Ts'o93613952014-07-03 23:44:13 -04007482 test $ac_cv_type_unsigned_long_long_int = yes \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007483 && ac_type='unsigned long long' \
7484 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007485
7486cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007487#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007488_ACEOF
7489
7490 else
7491
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007492$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007493
7494 fi
7495
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007496
Theodore Ts'o93613952014-07-03 23:44:13 -04007497 for ac_header in inttypes.h
7498do :
7499 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7500if test "x$ac_cv_header_inttypes_h" = xyes; then :
7501 cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007502#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007503_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007504
Theodore Ts'o93613952014-07-03 23:44:13 -04007505fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007506
Theodore Ts'o93613952014-07-03 23:44:13 -04007507done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007508
Theodore Ts'o93613952014-07-03 23:44:13 -04007509 if test $ac_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007510 { $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 +01007511$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007512if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007513 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007514else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007515
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007517/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007518
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007519#include <inttypes.h>
7520#ifdef PRId32
7521char *p = PRId32;
7522#endif
7523
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007524int
7525main ()
7526{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007527
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007528 ;
7529 return 0;
7530}
7531_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007532if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007533 gt_cv_inttypes_pri_broken=no
7534else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007535 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007538
7539fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007541$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007542 fi
7543 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007544
7545cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007546#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007547_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007548
Theodore Ts'o93613952014-07-03 23:44:13 -04007549 PRI_MACROS_BROKEN=1
7550 else
7551 PRI_MACROS_BROKEN=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007552 fi
7553
7554
7555
Theodore Ts'o93613952014-07-03 23:44:13 -04007556
7557
7558
7559
7560 # Check whether --enable-threads was given.
7561if test "${enable_threads+set}" = set; then :
7562 enableval=$enable_threads; gl_use_threads=$enableval
7563else
7564 if test -n "$gl_use_threads_default"; then
7565 gl_use_threads="$gl_use_threads_default"
7566 else
7567 case "$host_os" in
7568 osf*) gl_use_threads=no ;;
7569 cygwin*)
7570 case `uname -r` in
7571 1.[0-5].*) gl_use_threads=no ;;
7572 *) gl_use_threads=yes ;;
7573 esac
7574 ;;
7575 *) gl_use_threads=yes ;;
7576 esac
7577 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007578
7579fi
7580
Theodore Ts'o93613952014-07-03 23:44:13 -04007581 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7582 # For using <pthread.h>:
7583 case "$host_os" in
7584 osf*)
7585 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7586 # groks <pthread.h>. cc also understands the flag -pthread, but
7587 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7588 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7589 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7590 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7591 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7592 ;;
7593 esac
7594 # Some systems optimize for single-threaded programs by default, and
7595 # need special flags to disable these optimizations. For example, the
7596 # definition of 'errno' in <errno.h>.
7597 case "$host_os" in
7598 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7599 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7600 esac
7601 fi
7602
7603
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007604
7605
7606
7607 if test "X$prefix" = "XNONE"; then
7608 acl_final_prefix="$ac_default_prefix"
7609 else
7610 acl_final_prefix="$prefix"
7611 fi
7612 if test "X$exec_prefix" = "XNONE"; then
7613 acl_final_exec_prefix='${prefix}'
7614 else
7615 acl_final_exec_prefix="$exec_prefix"
7616 fi
7617 acl_save_prefix="$prefix"
7618 prefix="$acl_final_prefix"
7619 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7620 prefix="$acl_save_prefix"
7621
7622
Theodore Ts'o93613952014-07-03 23:44:13 -04007623
Theodore Ts'oe1052142006-10-21 21:46:47 -04007624# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007625if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007626 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007627else
7628 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007629fi
7630
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007631# Prepare PATH_SEPARATOR.
7632# The user is always right.
7633if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007634 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7635 # contains only /bin. Note that ksh looks also at the FPATH variable,
7636 # so we have to set that as well for the test.
7637 PATH_SEPARATOR=:
7638 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7639 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7640 || PATH_SEPARATOR=';'
7641 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007642fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007643
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007644ac_prog=ld
7645if test "$GCC" = yes; then
7646 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o93613952014-07-03 23:44:13 -04007647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7648$as_echo_n "checking for ld used by $CC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007649 case $host in
7650 *-*-mingw*)
7651 # gcc leaves a trailing carriage return which upsets mingw
7652 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7653 *)
7654 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7655 esac
7656 case $ac_prog in
7657 # Accept absolute paths.
Theodore Ts'o93613952014-07-03 23:44:13 -04007658 [\\/]* | ?:[\\/]*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007659 re_direlt='/[^/][^/]*/\.\./'
Theodore Ts'o93613952014-07-03 23:44:13 -04007660 # Canonicalize the pathname of ld
7661 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7662 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7663 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007664 done
7665 test -z "$LD" && LD="$ac_prog"
7666 ;;
7667 "")
7668 # If it fails, then pretend we aren't using GCC.
7669 ac_prog=ld
7670 ;;
7671 *)
7672 # If it is relative, then search for the first ld in PATH.
7673 with_gnu_ld=unknown
7674 ;;
7675 esac
7676elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007678$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007679else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007681$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007682fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007683if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007684 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007685else
7686 if test -z "$LD"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007687 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007688 for ac_dir in $PATH; do
Theodore Ts'o93613952014-07-03 23:44:13 -04007689 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007690 test -z "$ac_dir" && ac_dir=.
7691 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7692 acl_cv_path_LD="$ac_dir/$ac_prog"
7693 # Check to see if the program is GNU ld. I'd rather use --version,
Theodore Ts'o93613952014-07-03 23:44:13 -04007694 # but apparently some variants of GNU ld only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007695 # Break only if it was the GNU/non-GNU ld that we prefer.
Theodore Ts'o93613952014-07-03 23:44:13 -04007696 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007697 *GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007698 test "$with_gnu_ld" != no && break
7699 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007700 *)
Theodore Ts'o93613952014-07-03 23:44:13 -04007701 test "$with_gnu_ld" != yes && break
7702 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007703 esac
7704 fi
7705 done
Theodore Ts'o93613952014-07-03 23:44:13 -04007706 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007707else
7708 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7709fi
7710fi
7711
7712LD="$acl_cv_path_LD"
7713if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007715$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007716else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007718$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007719fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007720test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007722$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007723if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007724 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007725else
Theodore Ts'o93613952014-07-03 23:44:13 -04007726 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007727case `$LD -v 2>&1 </dev/null` in
7728*GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007729 acl_cv_prog_gnu_ld=yes
7730 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007731*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007732 acl_cv_prog_gnu_ld=no
7733 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007734esac
7735fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007737$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007738with_gnu_ld=$acl_cv_prog_gnu_ld
7739
7740
7741
Theodore Ts'o93613952014-07-03 23:44:13 -04007742
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007744$as_echo_n "checking for shared library run path origin... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007745if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007746 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007747else
7748
7749 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7750 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7751 . ./conftest.sh
7752 rm -f ./conftest.sh
7753 acl_cv_rpath=done
7754
7755fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007757$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007758 wl="$acl_cv_wl"
Theodore Ts'o93613952014-07-03 23:44:13 -04007759 acl_libext="$acl_cv_libext"
7760 acl_shlibext="$acl_cv_shlibext"
7761 acl_libname_spec="$acl_cv_libname_spec"
7762 acl_library_names_spec="$acl_cv_library_names_spec"
7763 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7764 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7765 acl_hardcode_direct="$acl_cv_hardcode_direct"
7766 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007767 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007768if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007769 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007770else
7771 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007772fi
7773
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007774
7775
7776
Theodore Ts'o93613952014-07-03 23:44:13 -04007777 acl_libdirstem=lib
7778 acl_libdirstem2=
7779 case "$host_os" in
7780 solaris*)
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7782$as_echo_n "checking for 64-bit host... " >&6; }
7783if ${gl_cv_solaris_64bit+:} false; then :
7784 $as_echo_n "(cached) " >&6
7785else
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787/* end confdefs.h. */
7788
7789#ifdef _LP64
7790sixtyfour bits
7791#endif
7792
7793_ACEOF
7794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7795 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7796 gl_cv_solaris_64bit=yes
7797else
7798 gl_cv_solaris_64bit=no
7799fi
7800rm -f conftest*
7801
7802
7803fi
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7805$as_echo "$gl_cv_solaris_64bit" >&6; }
7806 if test $gl_cv_solaris_64bit = yes; then
7807 acl_libdirstem=lib/64
7808 case "$host_cpu" in
7809 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7810 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7811 esac
7812 fi
7813 ;;
7814 *)
7815 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7816 if test -n "$searchpath"; then
7817 acl_save_IFS="${IFS= }"; IFS=":"
7818 for searchdir in $searchpath; do
7819 if test -d "$searchdir"; then
7820 case "$searchdir" in
7821 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7822 */../ | */.. )
7823 # Better ignore directories of this form. They are misleading.
7824 ;;
7825 *) searchdir=`cd "$searchdir" && pwd`
7826 case "$searchdir" in
7827 */lib64 ) acl_libdirstem=lib64 ;;
7828 esac ;;
7829 esac
7830 fi
7831 done
7832 IFS="$acl_save_IFS"
7833 fi
7834 ;;
7835 esac
7836 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7837
7838
7839
7840 gl_threads_api=none
7841 LIBTHREAD=
7842 LTLIBTHREAD=
7843 LIBMULTITHREAD=
7844 LTLIBMULTITHREAD=
7845 if test "$gl_use_threads" != no; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7847$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7848if ${gl_cv_have_weak+:} false; then :
7849 $as_echo_n "(cached) " >&6
7850else
7851 gl_cv_have_weak=no
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853/* end confdefs.h. */
7854extern void xyzzy ();
7855#pragma weak xyzzy
7856int
7857main ()
7858{
7859xyzzy();
7860 ;
7861 return 0;
7862}
7863_ACEOF
7864if ac_fn_c_try_link "$LINENO"; then :
7865 gl_cv_have_weak=maybe
7866fi
7867rm -f core conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869 if test $gl_cv_have_weak = maybe; then
7870 if test "$cross_compiling" = yes; then :
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872/* end confdefs.h. */
7873#ifdef __ELF__
7874 Extensible Linking Format
7875 #endif
7876
7877_ACEOF
7878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7879 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7880 gl_cv_have_weak="guessing yes"
7881else
7882 gl_cv_have_weak="guessing no"
7883fi
7884rm -f conftest*
7885
7886
7887else
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889/* end confdefs.h. */
7890
7891#include <stdio.h>
7892#pragma weak fputs
7893int main ()
7894{
7895 return (fputs == NULL);
7896}
7897_ACEOF
7898if ac_fn_c_try_run "$LINENO"; then :
7899 gl_cv_have_weak=yes
7900else
7901 gl_cv_have_weak=no
7902fi
7903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7904 conftest.$ac_objext conftest.beam conftest.$ac_ext
7905fi
7906
7907 fi
7908
7909fi
7910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7911$as_echo "$gl_cv_have_weak" >&6; }
7912 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7913 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7914 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7915 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7916if test "x$ac_cv_header_pthread_h" = xyes; then :
7917 gl_have_pthread_h=yes
7918else
7919 gl_have_pthread_h=no
7920fi
7921
7922
7923 if test "$gl_have_pthread_h" = yes; then
7924 # Other possible tests:
7925 # -lpthreads (FSU threads, PCthreads)
7926 # -lgthreads
7927 gl_have_pthread=
7928 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7929 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7930 # the second one only in libpthread, and lock.c needs it.
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932/* end confdefs.h. */
7933#include <pthread.h>
7934int
7935main ()
7936{
7937pthread_mutex_lock((pthread_mutex_t*)0);
7938 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7939 ;
7940 return 0;
7941}
7942_ACEOF
7943if ac_fn_c_try_link "$LINENO"; then :
7944 gl_have_pthread=yes
7945fi
7946rm -f core conftest.err conftest.$ac_objext \
7947 conftest$ac_exeext conftest.$ac_ext
7948 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7949 # since it is defined as a macro on OSF/1.)
7950 if test -n "$gl_have_pthread"; then
7951 # The program links fine without libpthread. But it may actually
7952 # need to link with libpthread in order to create multiple threads.
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7954$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7955if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7956 $as_echo_n "(cached) " >&6
7957else
7958 ac_check_lib_save_LIBS=$LIBS
7959LIBS="-lpthread $LIBS"
7960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961/* end confdefs.h. */
7962
7963/* Override any GCC internal prototype to avoid an error.
7964 Use char because int might match the return type of a GCC
7965 builtin and then its argument prototype would still apply. */
7966#ifdef __cplusplus
7967extern "C"
7968#endif
7969char pthread_kill ();
7970int
7971main ()
7972{
7973return pthread_kill ();
7974 ;
7975 return 0;
7976}
7977_ACEOF
7978if ac_fn_c_try_link "$LINENO"; then :
7979 ac_cv_lib_pthread_pthread_kill=yes
7980else
7981 ac_cv_lib_pthread_pthread_kill=no
7982fi
7983rm -f core conftest.err conftest.$ac_objext \
7984 conftest$ac_exeext conftest.$ac_ext
7985LIBS=$ac_check_lib_save_LIBS
7986fi
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7988$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7989if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7990 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7991 # On Solaris and HP-UX, most pthread functions exist also in libc.
7992 # Therefore pthread_in_use() needs to actually try to create a
7993 # thread: pthread_create from libc will fail, whereas
7994 # pthread_create will actually create a thread.
7995 case "$host_os" in
7996 solaris* | hpux*)
7997
7998$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7999
8000 esac
8001
8002fi
8003
8004 else
8005 # Some library is needed. Try libpthread and libc_r.
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8007$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8008if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8009 $as_echo_n "(cached) " >&6
8010else
8011 ac_check_lib_save_LIBS=$LIBS
8012LIBS="-lpthread $LIBS"
8013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014/* end confdefs.h. */
8015
8016/* Override any GCC internal prototype to avoid an error.
8017 Use char because int might match the return type of a GCC
8018 builtin and then its argument prototype would still apply. */
8019#ifdef __cplusplus
8020extern "C"
8021#endif
8022char pthread_kill ();
8023int
8024main ()
8025{
8026return pthread_kill ();
8027 ;
8028 return 0;
8029}
8030_ACEOF
8031if ac_fn_c_try_link "$LINENO"; then :
8032 ac_cv_lib_pthread_pthread_kill=yes
8033else
8034 ac_cv_lib_pthread_pthread_kill=no
8035fi
8036rm -f core conftest.err conftest.$ac_objext \
8037 conftest$ac_exeext conftest.$ac_ext
8038LIBS=$ac_check_lib_save_LIBS
8039fi
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8041$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8042if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8043 gl_have_pthread=yes
8044 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8045 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8046fi
8047
8048 if test -z "$gl_have_pthread"; then
8049 # For FreeBSD 4.
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8051$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8052if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8053 $as_echo_n "(cached) " >&6
8054else
8055 ac_check_lib_save_LIBS=$LIBS
8056LIBS="-lc_r $LIBS"
8057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058/* end confdefs.h. */
8059
8060/* Override any GCC internal prototype to avoid an error.
8061 Use char because int might match the return type of a GCC
8062 builtin and then its argument prototype would still apply. */
8063#ifdef __cplusplus
8064extern "C"
8065#endif
8066char pthread_kill ();
8067int
8068main ()
8069{
8070return pthread_kill ();
8071 ;
8072 return 0;
8073}
8074_ACEOF
8075if ac_fn_c_try_link "$LINENO"; then :
8076 ac_cv_lib_c_r_pthread_kill=yes
8077else
8078 ac_cv_lib_c_r_pthread_kill=no
8079fi
8080rm -f core conftest.err conftest.$ac_objext \
8081 conftest$ac_exeext conftest.$ac_ext
8082LIBS=$ac_check_lib_save_LIBS
8083fi
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8085$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8086if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8087 gl_have_pthread=yes
8088 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8089 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8090fi
8091
8092 fi
8093 fi
8094 if test -n "$gl_have_pthread"; then
8095 gl_threads_api=posix
8096
8097$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8098
8099 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8100 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8101
8102$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8103
8104 LIBTHREAD=
8105 LTLIBTHREAD=
8106 fi
8107 fi
8108 fi
8109 fi
8110 fi
8111 if test -z "$gl_have_pthread"; then
8112 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8113 gl_have_solaristhread=
8114 gl_save_LIBS="$LIBS"
8115 LIBS="$LIBS -lthread"
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117/* end confdefs.h. */
8118
8119#include <thread.h>
8120#include <synch.h>
8121
8122int
8123main ()
8124{
8125thr_self();
8126 ;
8127 return 0;
8128}
8129_ACEOF
8130if ac_fn_c_try_link "$LINENO"; then :
8131 gl_have_solaristhread=yes
8132fi
8133rm -f core conftest.err conftest.$ac_objext \
8134 conftest$ac_exeext conftest.$ac_ext
8135 LIBS="$gl_save_LIBS"
8136 if test -n "$gl_have_solaristhread"; then
8137 gl_threads_api=solaris
8138 LIBTHREAD=-lthread
8139 LTLIBTHREAD=-lthread
8140 LIBMULTITHREAD="$LIBTHREAD"
8141 LTLIBMULTITHREAD="$LTLIBTHREAD"
8142
8143$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8144
8145 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8146
8147$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8148
8149 LIBTHREAD=
8150 LTLIBTHREAD=
8151 fi
8152 fi
8153 fi
8154 fi
8155 if test "$gl_use_threads" = pth; then
8156 gl_save_CPPFLAGS="$CPPFLAGS"
8157
8158
8159
8160
8161
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8163$as_echo_n "checking how to link with libpth... " >&6; }
8164if ${ac_cv_libpth_libs+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166else
8167
8168
8169
8170
8171
8172
8173
8174
8175 use_additional=yes
8176
8177 acl_save_prefix="$prefix"
8178 prefix="$acl_final_prefix"
8179 acl_save_exec_prefix="$exec_prefix"
8180 exec_prefix="$acl_final_exec_prefix"
8181
8182 eval additional_includedir=\"$includedir\"
8183 eval additional_libdir=\"$libdir\"
8184
8185 exec_prefix="$acl_save_exec_prefix"
8186 prefix="$acl_save_prefix"
8187
8188
8189# Check whether --with-libpth-prefix was given.
8190if test "${with_libpth_prefix+set}" = set; then :
8191 withval=$with_libpth_prefix;
8192 if test "X$withval" = "Xno"; then
8193 use_additional=no
8194 else
8195 if test "X$withval" = "X"; then
8196
8197 acl_save_prefix="$prefix"
8198 prefix="$acl_final_prefix"
8199 acl_save_exec_prefix="$exec_prefix"
8200 exec_prefix="$acl_final_exec_prefix"
8201
8202 eval additional_includedir=\"$includedir\"
8203 eval additional_libdir=\"$libdir\"
8204
8205 exec_prefix="$acl_save_exec_prefix"
8206 prefix="$acl_save_prefix"
8207
8208 else
8209 additional_includedir="$withval/include"
8210 additional_libdir="$withval/$acl_libdirstem"
8211 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8212 && ! test -d "$withval/$acl_libdirstem"; then
8213 additional_libdir="$withval/$acl_libdirstem2"
8214 fi
8215 fi
8216 fi
8217
8218fi
8219
8220 LIBPTH=
8221 LTLIBPTH=
8222 INCPTH=
8223 LIBPTH_PREFIX=
8224 HAVE_LIBPTH=
8225 rpathdirs=
8226 ltrpathdirs=
8227 names_already_handled=
8228 names_next_round='pth '
8229 while test -n "$names_next_round"; do
8230 names_this_round="$names_next_round"
8231 names_next_round=
8232 for name in $names_this_round; do
8233 already_handled=
8234 for n in $names_already_handled; do
8235 if test "$n" = "$name"; then
8236 already_handled=yes
8237 break
8238 fi
8239 done
8240 if test -z "$already_handled"; then
8241 names_already_handled="$names_already_handled $name"
8242 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8243 eval value=\"\$HAVE_LIB$uppername\"
8244 if test -n "$value"; then
8245 if test "$value" = yes; then
8246 eval value=\"\$LIB$uppername\"
8247 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8248 eval value=\"\$LTLIB$uppername\"
8249 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8250 else
8251 :
8252 fi
8253 else
8254 found_dir=
8255 found_la=
8256 found_so=
8257 found_a=
8258 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8259 if test -n "$acl_shlibext"; then
8260 shrext=".$acl_shlibext" # typically: shrext=.so
8261 else
8262 shrext=
8263 fi
8264 if test $use_additional = yes; then
8265 dir="$additional_libdir"
8266 if test -n "$acl_shlibext"; then
8267 if test -f "$dir/$libname$shrext"; then
8268 found_dir="$dir"
8269 found_so="$dir/$libname$shrext"
8270 else
8271 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8272 ver=`(cd "$dir" && \
8273 for f in "$libname$shrext".*; do echo "$f"; done \
8274 | sed -e "s,^$libname$shrext\\\\.,," \
8275 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8276 | sed 1q ) 2>/dev/null`
8277 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8278 found_dir="$dir"
8279 found_so="$dir/$libname$shrext.$ver"
8280 fi
8281 else
8282 eval library_names=\"$acl_library_names_spec\"
8283 for f in $library_names; do
8284 if test -f "$dir/$f"; then
8285 found_dir="$dir"
8286 found_so="$dir/$f"
8287 break
8288 fi
8289 done
8290 fi
8291 fi
8292 fi
8293 if test "X$found_dir" = "X"; then
8294 if test -f "$dir/$libname.$acl_libext"; then
8295 found_dir="$dir"
8296 found_a="$dir/$libname.$acl_libext"
8297 fi
8298 fi
8299 if test "X$found_dir" != "X"; then
8300 if test -f "$dir/$libname.la"; then
8301 found_la="$dir/$libname.la"
8302 fi
8303 fi
8304 fi
8305 if test "X$found_dir" = "X"; then
8306 for x in $LDFLAGS $LTLIBPTH; do
8307
8308 acl_save_prefix="$prefix"
8309 prefix="$acl_final_prefix"
8310 acl_save_exec_prefix="$exec_prefix"
8311 exec_prefix="$acl_final_exec_prefix"
8312 eval x=\"$x\"
8313 exec_prefix="$acl_save_exec_prefix"
8314 prefix="$acl_save_prefix"
8315
8316 case "$x" in
8317 -L*)
8318 dir=`echo "X$x" | sed -e 's/^X-L//'`
8319 if test -n "$acl_shlibext"; then
8320 if test -f "$dir/$libname$shrext"; then
8321 found_dir="$dir"
8322 found_so="$dir/$libname$shrext"
8323 else
8324 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8325 ver=`(cd "$dir" && \
8326 for f in "$libname$shrext".*; do echo "$f"; done \
8327 | sed -e "s,^$libname$shrext\\\\.,," \
8328 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8329 | sed 1q ) 2>/dev/null`
8330 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8331 found_dir="$dir"
8332 found_so="$dir/$libname$shrext.$ver"
8333 fi
8334 else
8335 eval library_names=\"$acl_library_names_spec\"
8336 for f in $library_names; do
8337 if test -f "$dir/$f"; then
8338 found_dir="$dir"
8339 found_so="$dir/$f"
8340 break
8341 fi
8342 done
8343 fi
8344 fi
8345 fi
8346 if test "X$found_dir" = "X"; then
8347 if test -f "$dir/$libname.$acl_libext"; then
8348 found_dir="$dir"
8349 found_a="$dir/$libname.$acl_libext"
8350 fi
8351 fi
8352 if test "X$found_dir" != "X"; then
8353 if test -f "$dir/$libname.la"; then
8354 found_la="$dir/$libname.la"
8355 fi
8356 fi
8357 ;;
8358 esac
8359 if test "X$found_dir" != "X"; then
8360 break
8361 fi
8362 done
8363 fi
8364 if test "X$found_dir" != "X"; then
8365 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8366 if test "X$found_so" != "X"; then
8367 if test "$enable_rpath" = no \
8368 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8369 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8370 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8371 else
8372 haveit=
8373 for x in $ltrpathdirs; do
8374 if test "X$x" = "X$found_dir"; then
8375 haveit=yes
8376 break
8377 fi
8378 done
8379 if test -z "$haveit"; then
8380 ltrpathdirs="$ltrpathdirs $found_dir"
8381 fi
8382 if test "$acl_hardcode_direct" = yes; then
8383 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8384 else
8385 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8386 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8387 haveit=
8388 for x in $rpathdirs; do
8389 if test "X$x" = "X$found_dir"; then
8390 haveit=yes
8391 break
8392 fi
8393 done
8394 if test -z "$haveit"; then
8395 rpathdirs="$rpathdirs $found_dir"
8396 fi
8397 else
8398 haveit=
8399 for x in $LDFLAGS $LIBPTH; do
8400
8401 acl_save_prefix="$prefix"
8402 prefix="$acl_final_prefix"
8403 acl_save_exec_prefix="$exec_prefix"
8404 exec_prefix="$acl_final_exec_prefix"
8405 eval x=\"$x\"
8406 exec_prefix="$acl_save_exec_prefix"
8407 prefix="$acl_save_prefix"
8408
8409 if test "X$x" = "X-L$found_dir"; then
8410 haveit=yes
8411 break
8412 fi
8413 done
8414 if test -z "$haveit"; then
8415 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8416 fi
8417 if test "$acl_hardcode_minus_L" != no; then
8418 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8419 else
8420 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8421 fi
8422 fi
8423 fi
8424 fi
8425 else
8426 if test "X$found_a" != "X"; then
8427 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8428 else
8429 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8430 fi
8431 fi
8432 additional_includedir=
8433 case "$found_dir" in
8434 */$acl_libdirstem | */$acl_libdirstem/)
8435 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8436 if test "$name" = 'pth'; then
8437 LIBPTH_PREFIX="$basedir"
8438 fi
8439 additional_includedir="$basedir/include"
8440 ;;
8441 */$acl_libdirstem2 | */$acl_libdirstem2/)
8442 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8443 if test "$name" = 'pth'; then
8444 LIBPTH_PREFIX="$basedir"
8445 fi
8446 additional_includedir="$basedir/include"
8447 ;;
8448 esac
8449 if test "X$additional_includedir" != "X"; then
8450 if test "X$additional_includedir" != "X/usr/include"; then
8451 haveit=
8452 if test "X$additional_includedir" = "X/usr/local/include"; then
8453 if test -n "$GCC"; then
8454 case $host_os in
8455 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8456 esac
8457 fi
8458 fi
8459 if test -z "$haveit"; then
8460 for x in $CPPFLAGS $INCPTH; do
8461
8462 acl_save_prefix="$prefix"
8463 prefix="$acl_final_prefix"
8464 acl_save_exec_prefix="$exec_prefix"
8465 exec_prefix="$acl_final_exec_prefix"
8466 eval x=\"$x\"
8467 exec_prefix="$acl_save_exec_prefix"
8468 prefix="$acl_save_prefix"
8469
8470 if test "X$x" = "X-I$additional_includedir"; then
8471 haveit=yes
8472 break
8473 fi
8474 done
8475 if test -z "$haveit"; then
8476 if test -d "$additional_includedir"; then
8477 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8478 fi
8479 fi
8480 fi
8481 fi
8482 fi
8483 if test -n "$found_la"; then
8484 save_libdir="$libdir"
8485 case "$found_la" in
8486 */* | *\\*) . "$found_la" ;;
8487 *) . "./$found_la" ;;
8488 esac
8489 libdir="$save_libdir"
8490 for dep in $dependency_libs; do
8491 case "$dep" in
8492 -L*)
8493 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8494 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8495 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8496 haveit=
8497 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8498 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8499 if test -n "$GCC"; then
8500 case $host_os in
8501 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8502 esac
8503 fi
8504 fi
8505 if test -z "$haveit"; then
8506 haveit=
8507 for x in $LDFLAGS $LIBPTH; do
8508
8509 acl_save_prefix="$prefix"
8510 prefix="$acl_final_prefix"
8511 acl_save_exec_prefix="$exec_prefix"
8512 exec_prefix="$acl_final_exec_prefix"
8513 eval x=\"$x\"
8514 exec_prefix="$acl_save_exec_prefix"
8515 prefix="$acl_save_prefix"
8516
8517 if test "X$x" = "X-L$additional_libdir"; then
8518 haveit=yes
8519 break
8520 fi
8521 done
8522 if test -z "$haveit"; then
8523 if test -d "$additional_libdir"; then
8524 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8525 fi
8526 fi
8527 haveit=
8528 for x in $LDFLAGS $LTLIBPTH; do
8529
8530 acl_save_prefix="$prefix"
8531 prefix="$acl_final_prefix"
8532 acl_save_exec_prefix="$exec_prefix"
8533 exec_prefix="$acl_final_exec_prefix"
8534 eval x=\"$x\"
8535 exec_prefix="$acl_save_exec_prefix"
8536 prefix="$acl_save_prefix"
8537
8538 if test "X$x" = "X-L$additional_libdir"; then
8539 haveit=yes
8540 break
8541 fi
8542 done
8543 if test -z "$haveit"; then
8544 if test -d "$additional_libdir"; then
8545 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8546 fi
8547 fi
8548 fi
8549 fi
8550 ;;
8551 -R*)
8552 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8553 if test "$enable_rpath" != no; then
8554 haveit=
8555 for x in $rpathdirs; do
8556 if test "X$x" = "X$dir"; then
8557 haveit=yes
8558 break
8559 fi
8560 done
8561 if test -z "$haveit"; then
8562 rpathdirs="$rpathdirs $dir"
8563 fi
8564 haveit=
8565 for x in $ltrpathdirs; do
8566 if test "X$x" = "X$dir"; then
8567 haveit=yes
8568 break
8569 fi
8570 done
8571 if test -z "$haveit"; then
8572 ltrpathdirs="$ltrpathdirs $dir"
8573 fi
8574 fi
8575 ;;
8576 -l*)
8577 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8578 ;;
8579 *.la)
8580 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8581 ;;
8582 *)
8583 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8584 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8585 ;;
8586 esac
8587 done
8588 fi
8589 else
8590 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8591 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8592 fi
8593 fi
8594 fi
8595 done
8596 done
8597 if test "X$rpathdirs" != "X"; then
8598 if test -n "$acl_hardcode_libdir_separator"; then
8599 alldirs=
8600 for found_dir in $rpathdirs; do
8601 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8602 done
8603 acl_save_libdir="$libdir"
8604 libdir="$alldirs"
8605 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8606 libdir="$acl_save_libdir"
8607 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8608 else
8609 for found_dir in $rpathdirs; do
8610 acl_save_libdir="$libdir"
8611 libdir="$found_dir"
8612 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8613 libdir="$acl_save_libdir"
8614 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8615 done
8616 fi
8617 fi
8618 if test "X$ltrpathdirs" != "X"; then
8619 for found_dir in $ltrpathdirs; do
8620 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8621 done
8622 fi
8623
8624
8625
8626
8627
8628
8629 ac_cv_libpth_libs="$LIBPTH"
8630 ac_cv_libpth_ltlibs="$LTLIBPTH"
8631 ac_cv_libpth_cppflags="$INCPTH"
8632 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8633
8634fi
8635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8636$as_echo "$ac_cv_libpth_libs" >&6; }
8637 LIBPTH="$ac_cv_libpth_libs"
8638 LTLIBPTH="$ac_cv_libpth_ltlibs"
8639 INCPTH="$ac_cv_libpth_cppflags"
8640 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8641
8642 for element in $INCPTH; do
8643 haveit=
8644 for x in $CPPFLAGS; do
8645
8646 acl_save_prefix="$prefix"
8647 prefix="$acl_final_prefix"
8648 acl_save_exec_prefix="$exec_prefix"
8649 exec_prefix="$acl_final_exec_prefix"
8650 eval x=\"$x\"
8651 exec_prefix="$acl_save_exec_prefix"
8652 prefix="$acl_save_prefix"
8653
8654 if test "X$x" = "X$element"; then
8655 haveit=yes
8656 break
8657 fi
8658 done
8659 if test -z "$haveit"; then
8660 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8661 fi
8662 done
8663
8664
8665
8666
8667 HAVE_LIBPTH=yes
8668
8669
8670
8671 gl_have_pth=
8672 gl_save_LIBS="$LIBS"
8673 LIBS="$LIBS $LIBPTH"
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675/* end confdefs.h. */
8676#include <pth.h>
8677int
8678main ()
8679{
8680pth_self();
8681 ;
8682 return 0;
8683}
8684_ACEOF
8685if ac_fn_c_try_link "$LINENO"; then :
8686 gl_have_pth=yes
8687fi
8688rm -f core conftest.err conftest.$ac_objext \
8689 conftest$ac_exeext conftest.$ac_ext
8690 LIBS="$gl_save_LIBS"
8691 if test -n "$gl_have_pth"; then
8692 gl_threads_api=pth
8693 LIBTHREAD="$LIBPTH"
8694 LTLIBTHREAD="$LTLIBPTH"
8695 LIBMULTITHREAD="$LIBTHREAD"
8696 LTLIBMULTITHREAD="$LTLIBTHREAD"
8697
8698$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8699
8700 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8701 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8702
8703$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8704
8705 LIBTHREAD=
8706 LTLIBTHREAD=
8707 fi
8708 fi
8709 else
8710 CPPFLAGS="$gl_save_CPPFLAGS"
8711 fi
8712 fi
8713 if test -z "$gl_have_pthread"; then
8714 case "$gl_use_threads" in
8715 yes | windows | win32) # The 'win32' is for backward compatibility.
8716 if { case "$host_os" in
8717 mingw*) true;;
8718 *) false;;
8719 esac
8720 }; then
8721 gl_threads_api=windows
8722
8723$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8724
8725 fi
8726 ;;
8727 esac
8728 fi
8729 fi
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8731$as_echo_n "checking for multithread API to use... " >&6; }
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8733$as_echo "$gl_threads_api" >&6; }
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745 if test "$gl_threads_api" = posix; then
8746 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8747 # pthread_rwlock_* functions.
8748 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8749"
8750if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8751
8752$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8753
8754fi
8755
8756 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758/* end confdefs.h. */
8759
8760 #include <pthread.h>
8761int
8762main ()
8763{
8764
8765#if __FreeBSD__ == 4
8766error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8767#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8768 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8769error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8770#else
8771int x = (int)PTHREAD_MUTEX_RECURSIVE;
8772return !x;
8773#endif
8774
8775 ;
8776 return 0;
8777}
8778_ACEOF
8779if ac_fn_c_try_compile "$LINENO"; then :
8780
8781$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8782
8783fi
8784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8785 fi
8786 :
8787
8788
8789
8790
8791
8792
8793
8794
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008795
8796
8797
8798
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008799 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008800
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008801 acl_save_prefix="$prefix"
8802 prefix="$acl_final_prefix"
8803 acl_save_exec_prefix="$exec_prefix"
8804 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008805
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008806 eval additional_includedir=\"$includedir\"
8807 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008808
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008809 exec_prefix="$acl_save_exec_prefix"
8810 prefix="$acl_save_prefix"
8811
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008812
Theodore Ts'oe1052142006-10-21 21:46:47 -04008813# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008814if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008815 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008816 if test "X$withval" = "Xno"; then
8817 use_additional=no
8818 else
8819 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008820
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008821 acl_save_prefix="$prefix"
8822 prefix="$acl_final_prefix"
8823 acl_save_exec_prefix="$exec_prefix"
8824 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008825
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008826 eval additional_includedir=\"$includedir\"
8827 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008828
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008829 exec_prefix="$acl_save_exec_prefix"
8830 prefix="$acl_save_prefix"
8831
8832 else
8833 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -04008834 additional_libdir="$withval/$acl_libdirstem"
8835 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8836 && ! test -d "$withval/$acl_libdirstem"; then
8837 additional_libdir="$withval/$acl_libdirstem2"
8838 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008839 fi
8840 fi
8841
Theodore Ts'oe1052142006-10-21 21:46:47 -04008842fi
8843
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008844 LIBICONV=
8845 LTLIBICONV=
8846 INCICONV=
Theodore Ts'o93613952014-07-03 23:44:13 -04008847 LIBICONV_PREFIX=
8848 HAVE_LIBICONV=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008849 rpathdirs=
8850 ltrpathdirs=
8851 names_already_handled=
8852 names_next_round='iconv '
8853 while test -n "$names_next_round"; do
8854 names_this_round="$names_next_round"
8855 names_next_round=
8856 for name in $names_this_round; do
8857 already_handled=
8858 for n in $names_already_handled; do
8859 if test "$n" = "$name"; then
8860 already_handled=yes
8861 break
8862 fi
8863 done
8864 if test -z "$already_handled"; then
8865 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -04008866 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008867 eval value=\"\$HAVE_LIB$uppername\"
8868 if test -n "$value"; then
8869 if test "$value" = yes; then
8870 eval value=\"\$LIB$uppername\"
8871 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8872 eval value=\"\$LTLIB$uppername\"
8873 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8874 else
8875 :
8876 fi
8877 else
8878 found_dir=
8879 found_la=
8880 found_so=
8881 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -04008882 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8883 if test -n "$acl_shlibext"; then
8884 shrext=".$acl_shlibext" # typically: shrext=.so
8885 else
8886 shrext=
8887 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008888 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008889 dir="$additional_libdir"
8890 if test -n "$acl_shlibext"; then
8891 if test -f "$dir/$libname$shrext"; then
8892 found_dir="$dir"
8893 found_so="$dir/$libname$shrext"
8894 else
8895 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8896 ver=`(cd "$dir" && \
8897 for f in "$libname$shrext".*; do echo "$f"; done \
8898 | sed -e "s,^$libname$shrext\\\\.,," \
8899 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8900 | sed 1q ) 2>/dev/null`
8901 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8902 found_dir="$dir"
8903 found_so="$dir/$libname$shrext.$ver"
8904 fi
8905 else
8906 eval library_names=\"$acl_library_names_spec\"
8907 for f in $library_names; do
8908 if test -f "$dir/$f"; then
8909 found_dir="$dir"
8910 found_so="$dir/$f"
8911 break
8912 fi
8913 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008914 fi
8915 fi
8916 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008917 if test "X$found_dir" = "X"; then
8918 if test -f "$dir/$libname.$acl_libext"; then
8919 found_dir="$dir"
8920 found_a="$dir/$libname.$acl_libext"
8921 fi
8922 fi
8923 if test "X$found_dir" != "X"; then
8924 if test -f "$dir/$libname.la"; then
8925 found_la="$dir/$libname.la"
8926 fi
8927 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008928 fi
8929 if test "X$found_dir" = "X"; then
8930 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008931
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008932 acl_save_prefix="$prefix"
8933 prefix="$acl_final_prefix"
8934 acl_save_exec_prefix="$exec_prefix"
8935 exec_prefix="$acl_final_exec_prefix"
8936 eval x=\"$x\"
8937 exec_prefix="$acl_save_exec_prefix"
8938 prefix="$acl_save_prefix"
8939
8940 case "$x" in
8941 -L*)
8942 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04008943 if test -n "$acl_shlibext"; then
8944 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008945 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04008946 found_so="$dir/$libname$shrext"
8947 else
8948 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8949 ver=`(cd "$dir" && \
8950 for f in "$libname$shrext".*; do echo "$f"; done \
8951 | sed -e "s,^$libname$shrext\\\\.,," \
8952 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8953 | sed 1q ) 2>/dev/null`
8954 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8955 found_dir="$dir"
8956 found_so="$dir/$libname$shrext.$ver"
8957 fi
8958 else
8959 eval library_names=\"$acl_library_names_spec\"
8960 for f in $library_names; do
8961 if test -f "$dir/$f"; then
8962 found_dir="$dir"
8963 found_so="$dir/$f"
8964 break
8965 fi
8966 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008967 fi
8968 fi
8969 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008970 if test "X$found_dir" = "X"; then
8971 if test -f "$dir/$libname.$acl_libext"; then
8972 found_dir="$dir"
8973 found_a="$dir/$libname.$acl_libext"
8974 fi
8975 fi
8976 if test "X$found_dir" != "X"; then
8977 if test -f "$dir/$libname.la"; then
8978 found_la="$dir/$libname.la"
8979 fi
8980 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008981 ;;
8982 esac
8983 if test "X$found_dir" != "X"; then
8984 break
8985 fi
8986 done
8987 fi
8988 if test "X$found_dir" != "X"; then
8989 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8990 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008991 if test "$enable_rpath" = no \
8992 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8993 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008994 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8995 else
8996 haveit=
8997 for x in $ltrpathdirs; do
8998 if test "X$x" = "X$found_dir"; then
8999 haveit=yes
9000 break
9001 fi
9002 done
9003 if test -z "$haveit"; then
9004 ltrpathdirs="$ltrpathdirs $found_dir"
9005 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009006 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009007 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9008 else
Theodore Ts'o93613952014-07-03 23:44:13 -04009009 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009010 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9011 haveit=
9012 for x in $rpathdirs; do
9013 if test "X$x" = "X$found_dir"; then
9014 haveit=yes
9015 break
9016 fi
9017 done
9018 if test -z "$haveit"; then
9019 rpathdirs="$rpathdirs $found_dir"
9020 fi
9021 else
9022 haveit=
9023 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009024
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009025 acl_save_prefix="$prefix"
9026 prefix="$acl_final_prefix"
9027 acl_save_exec_prefix="$exec_prefix"
9028 exec_prefix="$acl_final_exec_prefix"
9029 eval x=\"$x\"
9030 exec_prefix="$acl_save_exec_prefix"
9031 prefix="$acl_save_prefix"
9032
9033 if test "X$x" = "X-L$found_dir"; then
9034 haveit=yes
9035 break
9036 fi
9037 done
9038 if test -z "$haveit"; then
9039 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9040 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009041 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009042 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9043 else
9044 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9045 fi
9046 fi
9047 fi
9048 fi
9049 else
9050 if test "X$found_a" != "X"; then
9051 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9052 else
9053 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9054 fi
9055 fi
9056 additional_includedir=
9057 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -04009058 */$acl_libdirstem | */$acl_libdirstem/)
9059 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9060 if test "$name" = 'iconv'; then
9061 LIBICONV_PREFIX="$basedir"
9062 fi
9063 additional_includedir="$basedir/include"
9064 ;;
9065 */$acl_libdirstem2 | */$acl_libdirstem2/)
9066 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9067 if test "$name" = 'iconv'; then
9068 LIBICONV_PREFIX="$basedir"
9069 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009070 additional_includedir="$basedir/include"
9071 ;;
9072 esac
9073 if test "X$additional_includedir" != "X"; then
9074 if test "X$additional_includedir" != "X/usr/include"; then
9075 haveit=
9076 if test "X$additional_includedir" = "X/usr/local/include"; then
9077 if test -n "$GCC"; then
9078 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009079 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009080 esac
9081 fi
9082 fi
9083 if test -z "$haveit"; then
9084 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009085
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009086 acl_save_prefix="$prefix"
9087 prefix="$acl_final_prefix"
9088 acl_save_exec_prefix="$exec_prefix"
9089 exec_prefix="$acl_final_exec_prefix"
9090 eval x=\"$x\"
9091 exec_prefix="$acl_save_exec_prefix"
9092 prefix="$acl_save_prefix"
9093
9094 if test "X$x" = "X-I$additional_includedir"; then
9095 haveit=yes
9096 break
9097 fi
9098 done
9099 if test -z "$haveit"; then
9100 if test -d "$additional_includedir"; then
9101 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9102 fi
9103 fi
9104 fi
9105 fi
9106 fi
9107 if test -n "$found_la"; then
9108 save_libdir="$libdir"
9109 case "$found_la" in
9110 */* | *\\*) . "$found_la" ;;
9111 *) . "./$found_la" ;;
9112 esac
9113 libdir="$save_libdir"
9114 for dep in $dependency_libs; do
9115 case "$dep" in
9116 -L*)
9117 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009118 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9119 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009120 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -04009121 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9122 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009123 if test -n "$GCC"; then
9124 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009125 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009126 esac
9127 fi
9128 fi
9129 if test -z "$haveit"; then
9130 haveit=
9131 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009132
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009133 acl_save_prefix="$prefix"
9134 prefix="$acl_final_prefix"
9135 acl_save_exec_prefix="$exec_prefix"
9136 exec_prefix="$acl_final_exec_prefix"
9137 eval x=\"$x\"
9138 exec_prefix="$acl_save_exec_prefix"
9139 prefix="$acl_save_prefix"
9140
9141 if test "X$x" = "X-L$additional_libdir"; then
9142 haveit=yes
9143 break
9144 fi
9145 done
9146 if test -z "$haveit"; then
9147 if test -d "$additional_libdir"; then
9148 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9149 fi
9150 fi
9151 haveit=
9152 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009153
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009154 acl_save_prefix="$prefix"
9155 prefix="$acl_final_prefix"
9156 acl_save_exec_prefix="$exec_prefix"
9157 exec_prefix="$acl_final_exec_prefix"
9158 eval x=\"$x\"
9159 exec_prefix="$acl_save_exec_prefix"
9160 prefix="$acl_save_prefix"
9161
9162 if test "X$x" = "X-L$additional_libdir"; then
9163 haveit=yes
9164 break
9165 fi
9166 done
9167 if test -z "$haveit"; then
9168 if test -d "$additional_libdir"; then
9169 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9170 fi
9171 fi
9172 fi
9173 fi
9174 ;;
9175 -R*)
9176 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9177 if test "$enable_rpath" != no; then
9178 haveit=
9179 for x in $rpathdirs; do
9180 if test "X$x" = "X$dir"; then
9181 haveit=yes
9182 break
9183 fi
9184 done
9185 if test -z "$haveit"; then
9186 rpathdirs="$rpathdirs $dir"
9187 fi
9188 haveit=
9189 for x in $ltrpathdirs; do
9190 if test "X$x" = "X$dir"; then
9191 haveit=yes
9192 break
9193 fi
9194 done
9195 if test -z "$haveit"; then
9196 ltrpathdirs="$ltrpathdirs $dir"
9197 fi
9198 fi
9199 ;;
9200 -l*)
9201 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9202 ;;
9203 *.la)
9204 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9205 ;;
9206 *)
9207 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9208 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9209 ;;
9210 esac
9211 done
9212 fi
9213 else
9214 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9215 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9216 fi
9217 fi
9218 fi
9219 done
9220 done
9221 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009222 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009223 alldirs=
9224 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -04009225 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009226 done
9227 acl_save_libdir="$libdir"
9228 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -04009229 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009230 libdir="$acl_save_libdir"
9231 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9232 else
9233 for found_dir in $rpathdirs; do
9234 acl_save_libdir="$libdir"
9235 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04009236 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009237 libdir="$acl_save_libdir"
9238 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9239 done
9240 fi
9241 fi
9242 if test "X$ltrpathdirs" != "X"; then
9243 for found_dir in $ltrpathdirs; do
9244 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9245 done
9246 fi
9247
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009248
9249
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009250
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009251
9252
9253
9254
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009255
9256
9257
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009258
9259 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009260
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009261 for element in $INCICONV; do
9262 haveit=
9263 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009264
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009265 acl_save_prefix="$prefix"
9266 prefix="$acl_final_prefix"
9267 acl_save_exec_prefix="$exec_prefix"
9268 exec_prefix="$acl_final_exec_prefix"
9269 eval x=\"$x\"
9270 exec_prefix="$acl_save_exec_prefix"
9271 prefix="$acl_save_prefix"
9272
9273 if test "X$x" = "X$element"; then
9274 haveit=yes
9275 break
9276 fi
9277 done
9278 if test -z "$haveit"; then
9279 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9280 fi
9281 done
9282
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009283
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009285$as_echo_n "checking for iconv... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009286if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009287 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009288else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009289
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009290 am_cv_func_iconv="no, consider installing GNU libiconv"
9291 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009293/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009294
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009295#include <stdlib.h>
9296#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009297
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009298int
9299main ()
9300{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009301iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009302 iconv(cd,NULL,NULL,NULL,NULL);
9303 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009304 ;
9305 return 0;
9306}
9307_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009308if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009309 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009310fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009311rm -f core conftest.err conftest.$ac_objext \
9312 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009313 if test "$am_cv_func_iconv" != yes; then
9314 am_save_LIBS="$LIBS"
9315 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009317/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009318
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009319#include <stdlib.h>
9320#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009321
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009322int
9323main ()
9324{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009325iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009326 iconv(cd,NULL,NULL,NULL,NULL);
9327 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009328 ;
9329 return 0;
9330}
9331_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009332if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009333 am_cv_lib_iconv=yes
9334 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009335fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009336rm -f core conftest.err conftest.$ac_objext \
9337 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009338 LIBS="$am_save_LIBS"
9339 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009340
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009341fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009343$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009344 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9346$as_echo_n "checking for working iconv... " >&6; }
9347if ${am_cv_func_iconv_works+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349else
9350
9351 am_save_LIBS="$LIBS"
9352 if test $am_cv_lib_iconv = yes; then
9353 LIBS="$LIBS $LIBICONV"
9354 fi
9355 if test "$cross_compiling" = yes; then :
9356
9357 case "$host_os" in
9358 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9359 *) am_cv_func_iconv_works="guessing yes" ;;
9360 esac
9361
9362else
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364/* end confdefs.h. */
9365
9366#include <iconv.h>
9367#include <string.h>
9368int main ()
9369{
9370 int result = 0;
9371 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9372 returns. */
9373 {
9374 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9375 if (cd_utf8_to_88591 != (iconv_t)(-1))
9376 {
9377 static const char input[] = "\342\202\254"; /* EURO SIGN */
9378 char buf[10];
9379 const char *inptr = input;
9380 size_t inbytesleft = strlen (input);
9381 char *outptr = buf;
9382 size_t outbytesleft = sizeof (buf);
9383 size_t res = iconv (cd_utf8_to_88591,
9384 (char **) &inptr, &inbytesleft,
9385 &outptr, &outbytesleft);
9386 if (res == 0)
9387 result |= 1;
9388 iconv_close (cd_utf8_to_88591);
9389 }
9390 }
9391 /* Test against Solaris 10 bug: Failures are not distinguishable from
9392 successful returns. */
9393 {
9394 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9395 if (cd_ascii_to_88591 != (iconv_t)(-1))
9396 {
9397 static const char input[] = "\263";
9398 char buf[10];
9399 const char *inptr = input;
9400 size_t inbytesleft = strlen (input);
9401 char *outptr = buf;
9402 size_t outbytesleft = sizeof (buf);
9403 size_t res = iconv (cd_ascii_to_88591,
9404 (char **) &inptr, &inbytesleft,
9405 &outptr, &outbytesleft);
9406 if (res == 0)
9407 result |= 2;
9408 iconv_close (cd_ascii_to_88591);
9409 }
9410 }
9411 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9412 {
9413 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9414 if (cd_88591_to_utf8 != (iconv_t)(-1))
9415 {
9416 static const char input[] = "\304";
9417 static char buf[2] = { (char)0xDE, (char)0xAD };
9418 const char *inptr = input;
9419 size_t inbytesleft = 1;
9420 char *outptr = buf;
9421 size_t outbytesleft = 1;
9422 size_t res = iconv (cd_88591_to_utf8,
9423 (char **) &inptr, &inbytesleft,
9424 &outptr, &outbytesleft);
9425 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9426 result |= 4;
9427 iconv_close (cd_88591_to_utf8);
9428 }
9429 }
9430#if 0 /* This bug could be worked around by the caller. */
9431 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9432 {
9433 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9434 if (cd_88591_to_utf8 != (iconv_t)(-1))
9435 {
9436 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9437 char buf[50];
9438 const char *inptr = input;
9439 size_t inbytesleft = strlen (input);
9440 char *outptr = buf;
9441 size_t outbytesleft = sizeof (buf);
9442 size_t res = iconv (cd_88591_to_utf8,
9443 (char **) &inptr, &inbytesleft,
9444 &outptr, &outbytesleft);
9445 if ((int)res > 0)
9446 result |= 8;
9447 iconv_close (cd_88591_to_utf8);
9448 }
9449 }
9450#endif
9451 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9452 provided. */
9453 if (/* Try standardized names. */
9454 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9455 /* Try IRIX, OSF/1 names. */
9456 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9457 /* Try AIX names. */
9458 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9459 /* Try HP-UX names. */
9460 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9461 result |= 16;
9462 return result;
9463}
9464_ACEOF
9465if ac_fn_c_try_run "$LINENO"; then :
9466 am_cv_func_iconv_works=yes
9467else
9468 am_cv_func_iconv_works=no
9469fi
9470rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9471 conftest.$ac_objext conftest.beam conftest.$ac_ext
9472fi
9473
9474 LIBS="$am_save_LIBS"
9475
9476fi
9477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9478$as_echo "$am_cv_func_iconv_works" >&6; }
9479 case "$am_cv_func_iconv_works" in
9480 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9481 *) am_func_iconv=yes ;;
9482 esac
9483 else
9484 am_func_iconv=no am_cv_lib_iconv=no
9485 fi
9486 if test "$am_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009487
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009488$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009489
9490 fi
9491 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009493$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009495$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009496 else
9497 CPPFLAGS="$am_save_CPPFLAGS"
9498 LIBICONV=
9499 LTLIBICONV=
9500 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009501
9502
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009503
9504 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009506$as_echo_n "checking for iconv declaration... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009507 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009508 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009509else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009510
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009512/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009513
9514#include <stdlib.h>
9515#include <iconv.h>
9516extern
9517#ifdef __cplusplus
9518"C"
9519#endif
Theodore Ts'o93613952014-07-03 23:44:13 -04009520#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009521size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9522#else
9523size_t iconv();
9524#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009525
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009526int
9527main ()
9528{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009529
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009530 ;
9531 return 0;
9532}
9533_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009534if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009535 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009536else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009537 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009538fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009540 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 +00009541fi
9542
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009543 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009544 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9545 $am_cv_proto_iconv" >&5
9546$as_echo "
9547 $am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009548
9549cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009550#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009551_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009552
Theodore Ts'o93613952014-07-03 23:44:13 -04009553
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009554 fi
9555
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009556
Theodore Ts'o93613952014-07-03 23:44:13 -04009557
9558
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009560/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009561int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009562int
9563main ()
9564{
Theodore Ts'o93613952014-07-03 23:44:13 -04009565
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009566 ;
9567 return 0;
9568}
9569_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009570if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04009571
9572$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9573
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009574fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009575rm -f core conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009577
Theodore Ts'o93613952014-07-03 23:44:13 -04009578 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9579do :
9580 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9581ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9582if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9583 cat >>confdefs.h <<_ACEOF
9584#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009585_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04009586
9587fi
9588
9589done
9590
9591 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9592 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9593 argz_stringify argz_next __fsetlocking
9594do :
9595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9596ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9597if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9598 cat >>confdefs.h <<_ACEOF
9599#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9600_ACEOF
9601
9602fi
9603done
9604
9605
9606 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9607"
9608if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9609 ac_have_decl=1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009610else
Theodore Ts'o93613952014-07-03 23:44:13 -04009611 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009612fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009613
9614cat >>confdefs.h <<_ACEOF
9615#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9616_ACEOF
9617ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9618"
9619if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9620 ac_have_decl=1
9621else
9622 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009623fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009624
Theodore Ts'o93613952014-07-03 23:44:13 -04009625cat >>confdefs.h <<_ACEOF
9626#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9627_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009628
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009629
Theodore Ts'o93613952014-07-03 23:44:13 -04009630
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009631
9632 for ac_prog in bison
9633do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009634 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009635set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009637$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009638if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009639 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009640else
9641 if test -n "$INTLBISON"; then
9642 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9643else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009644as_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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009651 ac_cv_prog_INTLBISON="$ac_prog"
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'oa04eba32003-05-03 16:35:17 -04009659fi
9660fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009661INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009662if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009664$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009665else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009667$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009668fi
9669
Theodore Ts'oe1052142006-10-21 21:46:47 -04009670
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009671 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009672done
9673
9674 if test -z "$INTLBISON"; then
9675 ac_verc_fail=yes
9676 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009678$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009679 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9680 case $ac_prog_version in
9681 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9682 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9683 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9684 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9685 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009687$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009688 fi
9689 if test $ac_verc_fail = yes; then
9690 INTLBISON=:
9691 fi
9692
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009693
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009694
Theodore Ts'o93613952014-07-03 23:44:13 -04009695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9696$as_echo_n "checking for long long int... " >&6; }
9697if ${ac_cv_type_long_long_int+:} false; then :
9698 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009699else
Theodore Ts'o93613952014-07-03 23:44:13 -04009700 ac_cv_type_long_long_int=yes
9701 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9702 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9703 if test $ac_cv_type_long_long_int = yes; then
9704 if test "$cross_compiling" = yes; then :
9705 :
9706else
9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708/* end confdefs.h. */
9709#include <limits.h>
9710 #ifndef LLONG_MAX
9711 # define HALF \
9712 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9713 # define LLONG_MAX (HALF - 1 + HALF)
9714 #endif
9715int
9716main ()
9717{
9718long long int n = 1;
9719 int i;
9720 for (i = 0; ; i++)
9721 {
9722 long long int m = n << i;
9723 if (m >> i != n)
9724 return 1;
9725 if (LLONG_MAX / 2 < m)
9726 break;
9727 }
9728 return 0;
9729 ;
9730 return 0;
9731}
9732_ACEOF
9733if ac_fn_c_try_run "$LINENO"; then :
9734
9735else
9736 ac_cv_type_long_long_int=no
9737fi
9738rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9739 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009740fi
9741
Theodore Ts'o93613952014-07-03 23:44:13 -04009742 fi
9743 fi
9744fi
9745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9746$as_echo "$ac_cv_type_long_long_int" >&6; }
9747 if test $ac_cv_type_long_long_int = yes; then
9748
9749$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9750
9751 fi
9752
9753
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9755$as_echo_n "checking for wchar_t... " >&6; }
9756if ${gt_cv_c_wchar_t+:} false; then :
9757 $as_echo_n "(cached) " >&6
9758else
9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760/* end confdefs.h. */
9761#include <stddef.h>
9762 wchar_t foo = (wchar_t)'\0';
9763int
9764main ()
9765{
9766
9767 ;
9768 return 0;
9769}
9770_ACEOF
9771if ac_fn_c_try_compile "$LINENO"; then :
9772 gt_cv_c_wchar_t=yes
9773else
9774 gt_cv_c_wchar_t=no
9775fi
9776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9777fi
9778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9779$as_echo "$gt_cv_c_wchar_t" >&6; }
9780 if test $gt_cv_c_wchar_t = yes; then
9781
9782$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9783
9784 fi
9785
9786
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9788$as_echo_n "checking for wint_t... " >&6; }
9789if ${gt_cv_c_wint_t+:} false; then :
9790 $as_echo_n "(cached) " >&6
9791else
9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793/* end confdefs.h. */
9794
9795/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9796 <wchar.h>.
9797 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9798 before <wchar.h>. */
9799#include <stddef.h>
9800#include <stdio.h>
9801#include <time.h>
9802#include <wchar.h>
9803 wint_t foo = (wchar_t)'\0';
9804int
9805main ()
9806{
9807
9808 ;
9809 return 0;
9810}
9811_ACEOF
9812if ac_fn_c_try_compile "$LINENO"; then :
9813 gt_cv_c_wint_t=yes
9814else
9815 gt_cv_c_wint_t=no
9816fi
9817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818fi
9819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9820$as_echo "$gt_cv_c_wint_t" >&6; }
9821 if test $gt_cv_c_wint_t = yes; then
9822
9823$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9824
9825 fi
9826
9827
9828
9829
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9831$as_echo_n "checking for intmax_t... " >&6; }
9832if ${gt_cv_c_intmax_t+:} false; then :
9833 $as_echo_n "(cached) " >&6
9834else
9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836/* end confdefs.h. */
9837
9838#include <stddef.h>
9839#include <stdlib.h>
9840#if HAVE_STDINT_H_WITH_UINTMAX
9841#include <stdint.h>
9842#endif
9843#if HAVE_INTTYPES_H_WITH_UINTMAX
9844#include <inttypes.h>
9845#endif
9846
9847int
9848main ()
9849{
9850intmax_t x = -1;
9851 return !x;
9852 ;
9853 return 0;
9854}
9855_ACEOF
9856if ac_fn_c_try_compile "$LINENO"; then :
9857 gt_cv_c_intmax_t=yes
9858else
9859 gt_cv_c_intmax_t=no
9860fi
9861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9862fi
9863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9864$as_echo "$gt_cv_c_intmax_t" >&6; }
9865 if test $gt_cv_c_intmax_t = yes; then
9866
9867$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9868
9869 fi
9870
9871
9872
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9874$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9875if ${gt_cv_func_printf_posix+:} false; then :
9876 $as_echo_n "(cached) " >&6
9877else
9878
9879 if test "$cross_compiling" = yes; then :
9880
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882/* end confdefs.h. */
9883
9884#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9885 notposix
9886#endif
9887
9888_ACEOF
9889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9890 $EGREP "notposix" >/dev/null 2>&1; then :
9891 gt_cv_func_printf_posix="guessing no"
9892else
9893 gt_cv_func_printf_posix="guessing yes"
9894fi
9895rm -f conftest*
9896
9897
9898else
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900/* end confdefs.h. */
9901
9902#include <stdio.h>
9903#include <string.h>
9904/* The string "%2$d %1$d", with dollar characters protected from the shell's
9905 dollar expansion (possibly an autoconf bug). */
9906static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9907static char buf[100];
9908int main ()
9909{
9910 sprintf (buf, format, 33, 55);
9911 return (strcmp (buf, "55 33") != 0);
9912}
9913_ACEOF
9914if ac_fn_c_try_run "$LINENO"; then :
9915 gt_cv_func_printf_posix=yes
9916else
9917 gt_cv_func_printf_posix=no
9918fi
9919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9920 conftest.$ac_objext conftest.beam conftest.$ac_ext
9921fi
9922
9923
9924fi
9925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9926$as_echo "$gt_cv_func_printf_posix" >&6; }
9927 case $gt_cv_func_printf_posix in
9928 *yes)
9929
9930$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9931
9932 ;;
9933 esac
9934
9935
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9937$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9938if ${ac_cv_gnu_library_2_1+:} false; then :
9939 $as_echo_n "(cached) " >&6
9940else
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942/* end confdefs.h. */
9943
9944#include <features.h>
9945#ifdef __GNU_LIBRARY__
9946 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9947 Lucky GNU user
9948 #endif
9949#endif
9950#ifdef __UCLIBC__
9951 Lucky user
9952#endif
9953
9954_ACEOF
9955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9956 $EGREP "Lucky" >/dev/null 2>&1; then :
9957 ac_cv_gnu_library_2_1=yes
9958else
9959 ac_cv_gnu_library_2_1=no
9960fi
9961rm -f conftest*
9962
9963
9964
9965fi
9966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9967$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9968
9969 GLIBC21="$ac_cv_gnu_library_2_1"
9970
9971
9972
9973 for ac_header in stdint.h
9974do :
9975 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9976if test "x$ac_cv_header_stdint_h" = xyes; then :
9977 cat >>confdefs.h <<_ACEOF
9978#define HAVE_STDINT_H 1
9979_ACEOF
9980
9981fi
9982
9983done
9984
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9986$as_echo_n "checking for SIZE_MAX... " >&6; }
9987if ${gl_cv_size_max+:} false; then :
9988 $as_echo_n "(cached) " >&6
9989else
9990
9991 gl_cv_size_max=
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993/* end confdefs.h. */
9994
9995#include <limits.h>
9996#if HAVE_STDINT_H
9997#include <stdint.h>
9998#endif
9999#ifdef SIZE_MAX
10000Found it
10001#endif
10002
10003_ACEOF
10004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10005 $EGREP "Found it" >/dev/null 2>&1; then :
10006 gl_cv_size_max=yes
10007fi
10008rm -f conftest*
10009
10010 if test -z "$gl_cv_size_max"; then
10011 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10012#include <limits.h>"; then :
10013
10014else
10015 size_t_bits_minus_1=
10016fi
10017
10018 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10019
10020else
10021 fits_in_uint=
10022fi
10023
10024 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10025 if test $fits_in_uint = 1; then
10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027/* end confdefs.h. */
10028#include <stddef.h>
10029 extern size_t foo;
10030 extern unsigned long foo;
10031
10032int
10033main ()
10034{
10035
10036 ;
10037 return 0;
10038}
10039_ACEOF
10040if ac_fn_c_try_compile "$LINENO"; then :
10041 fits_in_uint=0
10042fi
10043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10044 fi
10045 if test $fits_in_uint = 1; then
10046 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10047 else
10048 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10049 fi
10050 else
10051 gl_cv_size_max='((size_t)~(size_t)0)'
10052 fi
10053 fi
10054
10055fi
10056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10057$as_echo "$gl_cv_size_max" >&6; }
10058 if test "$gl_cv_size_max" != yes; then
10059
10060cat >>confdefs.h <<_ACEOF
10061#define SIZE_MAX $gl_cv_size_max
10062_ACEOF
10063
10064 fi
10065
10066
10067
10068
10069 for ac_header in stdint.h
10070do :
10071 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10072if test "x$ac_cv_header_stdint_h" = xyes; then :
10073 cat >>confdefs.h <<_ACEOF
10074#define HAVE_STDINT_H 1
10075_ACEOF
10076
10077fi
10078
10079done
10080
10081
10082
10083
10084
10085 for ac_func in $ac_func_list
10086do :
10087 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10088ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10089if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10090 cat >>confdefs.h <<_ACEOF
10091#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10092_ACEOF
10093
10094fi
10095done
10096
10097
10098
10099
10100
10101
10102
10103
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10105$as_echo_n "checking for working fcntl.h... " >&6; }
10106if ${gl_cv_header_working_fcntl_h+:} false; then :
10107 $as_echo_n "(cached) " >&6
10108else
10109 if test "$cross_compiling" = yes; then :
10110 gl_cv_header_working_fcntl_h=cross-compiling
10111else
10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113/* end confdefs.h. */
10114#include <sys/types.h>
10115 #include <sys/stat.h>
10116 #if HAVE_UNISTD_H
10117 # include <unistd.h>
10118 #else /* on Windows with MSVC */
10119 # include <io.h>
10120 # include <stdlib.h>
10121 # defined sleep(n) _sleep ((n) * 1000)
10122 #endif
10123 #include <fcntl.h>
10124 #ifndef O_NOATIME
10125 #define O_NOATIME 0
10126 #endif
10127 #ifndef O_NOFOLLOW
10128 #define O_NOFOLLOW 0
10129 #endif
10130 static int const constants[] =
10131 {
10132 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10133 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10134 };
10135
10136int
10137main ()
10138{
10139
10140 int result = !constants;
10141 #if HAVE_SYMLINK
10142 {
10143 static char const sym[] = "conftest.sym";
10144 if (symlink ("/dev/null", sym) != 0)
10145 result |= 2;
10146 else
10147 {
10148 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10149 if (fd >= 0)
10150 {
10151 close (fd);
10152 result |= 4;
10153 }
10154 }
10155 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10156 result |= 2;
10157 else
10158 {
10159 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10160 if (fd >= 0)
10161 {
10162 close (fd);
10163 result |= 4;
10164 }
10165 }
10166 unlink (sym);
10167 }
10168 #endif
10169 {
10170 static char const file[] = "confdefs.h";
10171 int fd = open (file, O_RDONLY | O_NOATIME);
10172 if (fd < 0)
10173 result |= 8;
10174 else
10175 {
10176 struct stat st0;
10177 if (fstat (fd, &st0) != 0)
10178 result |= 16;
10179 else
10180 {
10181 char c;
10182 sleep (1);
10183 if (read (fd, &c, 1) != 1)
10184 result |= 24;
10185 else
10186 {
10187 if (close (fd) != 0)
10188 result |= 32;
10189 else
10190 {
10191 struct stat st1;
10192 if (stat (file, &st1) != 0)
10193 result |= 40;
10194 else
10195 if (st0.st_atime != st1.st_atime)
10196 result |= 64;
10197 }
10198 }
10199 }
10200 }
10201 }
10202 return result;
10203 ;
10204 return 0;
10205}
10206_ACEOF
10207if ac_fn_c_try_run "$LINENO"; then :
10208 gl_cv_header_working_fcntl_h=yes
10209else
10210 case $? in #(
10211 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10212 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10213 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10214 *) gl_cv_header_working_fcntl_h='no';;
10215 esac
10216fi
10217rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10218 conftest.$ac_objext conftest.beam conftest.$ac_ext
10219fi
10220
10221fi
10222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10223$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10224
10225 case $gl_cv_header_working_fcntl_h in #(
10226 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10227 *) ac_val=1;;
10228 esac
10229
10230cat >>confdefs.h <<_ACEOF
10231#define HAVE_WORKING_O_NOATIME $ac_val
10232_ACEOF
10233
10234
10235 case $gl_cv_header_working_fcntl_h in #(
10236 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10237 *) ac_val=1;;
10238 esac
10239
10240cat >>confdefs.h <<_ACEOF
10241#define HAVE_WORKING_O_NOFOLLOW $ac_val
10242_ACEOF
10243
10244
10245
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10247$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10248if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10249 $as_echo_n "(cached) " >&6
10250else
10251 gt_save_LIBS="$LIBS"
10252 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254/* end confdefs.h. */
10255#include <CoreFoundation/CFPreferences.h>
10256int
10257main ()
10258{
10259CFPreferencesCopyAppValue(NULL, NULL)
10260 ;
10261 return 0;
10262}
10263_ACEOF
10264if ac_fn_c_try_link "$LINENO"; then :
10265 gt_cv_func_CFPreferencesCopyAppValue=yes
10266else
10267 gt_cv_func_CFPreferencesCopyAppValue=no
10268fi
10269rm -f core conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271 LIBS="$gt_save_LIBS"
10272fi
10273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10274$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10275 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10276
10277$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10278
10279 fi
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10281$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10282if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10283 $as_echo_n "(cached) " >&6
10284else
10285 gt_save_LIBS="$LIBS"
10286 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288/* end confdefs.h. */
10289#include <CoreFoundation/CFLocale.h>
10290int
10291main ()
10292{
10293CFLocaleCopyCurrent();
10294 ;
10295 return 0;
10296}
10297_ACEOF
10298if ac_fn_c_try_link "$LINENO"; then :
10299 gt_cv_func_CFLocaleCopyCurrent=yes
10300else
10301 gt_cv_func_CFLocaleCopyCurrent=no
10302fi
10303rm -f core conftest.err conftest.$ac_objext \
10304 conftest$ac_exeext conftest.$ac_ext
10305 LIBS="$gt_save_LIBS"
10306fi
10307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10308$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10309 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10310
10311$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10312
10313 fi
10314 INTL_MACOSX_LIBS=
10315 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10316 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10317 fi
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328 case "$enable_silent_rules" in
10329 yes) INTL_DEFAULT_VERBOSITY=0;;
10330 no) INTL_DEFAULT_VERBOSITY=1;;
10331 *) INTL_DEFAULT_VERBOSITY=1;;
10332 esac
10333
10334
10335 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10336if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10337
10338else
10339
10340$as_echo "#define ptrdiff_t long" >>confdefs.h
10341
10342
10343fi
10344
10345 for ac_header in features.h stddef.h stdlib.h string.h
10346do :
10347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10348ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10349if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10350 cat >>confdefs.h <<_ACEOF
10351#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10352_ACEOF
10353
10354fi
10355
10356done
10357
10358 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10359 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10360do :
10361 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10362ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10363if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10364 cat >>confdefs.h <<_ACEOF
10365#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10366_ACEOF
10367
10368fi
10369done
10370
10371
10372 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10373"
10374if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10375 ac_have_decl=1
10376else
10377 ac_have_decl=0
10378fi
10379
10380cat >>confdefs.h <<_ACEOF
10381#define HAVE_DECL__SNPRINTF $ac_have_decl
10382_ACEOF
10383ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10384"
10385if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10386 ac_have_decl=1
10387else
10388 ac_have_decl=0
10389fi
10390
10391cat >>confdefs.h <<_ACEOF
10392#define HAVE_DECL__SNWPRINTF $ac_have_decl
10393_ACEOF
10394
10395
10396 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10397"
10398if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10399 ac_have_decl=1
10400else
10401 ac_have_decl=0
10402fi
10403
10404cat >>confdefs.h <<_ACEOF
10405#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10406_ACEOF
10407
10408
10409 case $gt_cv_func_printf_posix in
10410 *yes) HAVE_POSIX_PRINTF=1 ;;
10411 *) HAVE_POSIX_PRINTF=0 ;;
10412 esac
10413
10414 if test "$ac_cv_func_asprintf" = yes; then
10415 HAVE_ASPRINTF=1
10416 else
10417 HAVE_ASPRINTF=0
10418 fi
10419
10420 if test "$ac_cv_func_snprintf" = yes; then
10421 HAVE_SNPRINTF=1
10422 else
10423 HAVE_SNPRINTF=0
10424 fi
10425
10426 if test "$ac_cv_func_newlocale" = yes; then
10427 HAVE_NEWLOCALE=1
10428 else
10429 HAVE_NEWLOCALE=0
10430 fi
10431
10432 if test "$ac_cv_func_wprintf" = yes; then
10433 HAVE_WPRINTF=1
10434 else
10435 HAVE_WPRINTF=0
10436 fi
10437
10438
10439
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10441$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10442if ${am_cv_langinfo_codeset+:} false; then :
10443 $as_echo_n "(cached) " >&6
10444else
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446/* end confdefs.h. */
10447#include <langinfo.h>
10448int
10449main ()
10450{
10451char* cs = nl_langinfo(CODESET); return !cs;
10452 ;
10453 return 0;
10454}
10455_ACEOF
10456if ac_fn_c_try_link "$LINENO"; then :
10457 am_cv_langinfo_codeset=yes
10458else
10459 am_cv_langinfo_codeset=no
10460fi
10461rm -f core conftest.err conftest.$ac_objext \
10462 conftest$ac_exeext conftest.$ac_ext
10463
10464fi
10465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10466$as_echo "$am_cv_langinfo_codeset" >&6; }
10467 if test $am_cv_langinfo_codeset = yes; then
10468
10469$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10470
10471 fi
10472
10473
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10475$as_echo_n "checking for LC_MESSAGES... " >&6; }
10476if ${gt_cv_val_LC_MESSAGES+:} false; then :
10477 $as_echo_n "(cached) " >&6
10478else
10479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480/* end confdefs.h. */
10481#include <locale.h>
10482int
10483main ()
10484{
10485return LC_MESSAGES
10486 ;
10487 return 0;
10488}
10489_ACEOF
10490if ac_fn_c_try_link "$LINENO"; then :
10491 gt_cv_val_LC_MESSAGES=yes
10492else
10493 gt_cv_val_LC_MESSAGES=no
10494fi
10495rm -f core conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10497fi
10498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10499$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10500 if test $gt_cv_val_LC_MESSAGES = yes; then
10501
10502$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10503
10504 fi
10505
10506
10507 if test "$enable_shared" = yes; then
10508 case "$host_os" in
10509 mingw* | cygwin*) is_woe32dll=yes ;;
10510 *) is_woe32dll=no ;;
10511 esac
10512 else
10513 is_woe32dll=no
10514 fi
10515 WOE32DLL=$is_woe32dll
10516
10517
10518 case "$host_os" in
10519 mingw* | cygwin*) is_woe32=yes ;;
10520 *) is_woe32=no ;;
10521 esac
10522 WOE32=$is_woe32
10523
10524 if test $WOE32 = yes; then
10525 if test -n "$ac_tool_prefix"; then
10526 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10527set dummy ${ac_tool_prefix}windres; ac_word=$2
10528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10529$as_echo_n "checking for $ac_word... " >&6; }
10530if ${ac_cv_prog_WINDRES+:} false; then :
10531 $as_echo_n "(cached) " >&6
10532else
10533 if test -n "$WINDRES"; then
10534 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10535else
10536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537for as_dir in $PATH
10538do
10539 IFS=$as_save_IFS
10540 test -z "$as_dir" && as_dir=.
10541 for ac_exec_ext in '' $ac_executable_extensions; do
10542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10543 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10545 break 2
10546 fi
10547done
10548 done
10549IFS=$as_save_IFS
10550
10551fi
10552fi
10553WINDRES=$ac_cv_prog_WINDRES
10554if test -n "$WINDRES"; then
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10556$as_echo "$WINDRES" >&6; }
10557else
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559$as_echo "no" >&6; }
10560fi
10561
10562
10563fi
10564if test -z "$ac_cv_prog_WINDRES"; then
10565 ac_ct_WINDRES=$WINDRES
10566 # Extract the first word of "windres", so it can be a program name with args.
10567set dummy windres; ac_word=$2
10568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10569$as_echo_n "checking for $ac_word... " >&6; }
10570if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10571 $as_echo_n "(cached) " >&6
10572else
10573 if test -n "$ac_ct_WINDRES"; then
10574 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10575else
10576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10577for as_dir in $PATH
10578do
10579 IFS=$as_save_IFS
10580 test -z "$as_dir" && as_dir=.
10581 for ac_exec_ext in '' $ac_executable_extensions; do
10582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10583 ac_cv_prog_ac_ct_WINDRES="windres"
10584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10585 break 2
10586 fi
10587done
10588 done
10589IFS=$as_save_IFS
10590
10591fi
10592fi
10593ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10594if test -n "$ac_ct_WINDRES"; then
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10596$as_echo "$ac_ct_WINDRES" >&6; }
10597else
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599$as_echo "no" >&6; }
10600fi
10601
10602 if test "x$ac_ct_WINDRES" = x; then
10603 WINDRES=""
10604 else
10605 case $cross_compiling:$ac_tool_warned in
10606yes:)
10607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10609ac_tool_warned=yes ;;
10610esac
10611 WINDRES=$ac_ct_WINDRES
10612 fi
10613else
10614 WINDRES="$ac_cv_prog_WINDRES"
10615fi
10616
10617 fi
10618
10619 case "$host_os" in
10620 hpux*) LTLIBC="" ;;
10621 *) LTLIBC="-lc" ;;
10622 esac
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10651$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10652if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10653 $as_echo_n "(cached) " >&6
10654else
10655 gt_save_LIBS="$LIBS"
10656 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658/* end confdefs.h. */
10659#include <CoreFoundation/CFPreferences.h>
10660int
10661main ()
10662{
10663CFPreferencesCopyAppValue(NULL, NULL)
10664 ;
10665 return 0;
10666}
10667_ACEOF
10668if ac_fn_c_try_link "$LINENO"; then :
10669 gt_cv_func_CFPreferencesCopyAppValue=yes
10670else
10671 gt_cv_func_CFPreferencesCopyAppValue=no
10672fi
10673rm -f core conftest.err conftest.$ac_objext \
10674 conftest$ac_exeext conftest.$ac_ext
10675 LIBS="$gt_save_LIBS"
10676fi
10677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10678$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10679 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10680
10681$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10682
10683 fi
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10685$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10686if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10687 $as_echo_n "(cached) " >&6
10688else
10689 gt_save_LIBS="$LIBS"
10690 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692/* end confdefs.h. */
10693#include <CoreFoundation/CFLocale.h>
10694int
10695main ()
10696{
10697CFLocaleCopyCurrent();
10698 ;
10699 return 0;
10700}
10701_ACEOF
10702if ac_fn_c_try_link "$LINENO"; then :
10703 gt_cv_func_CFLocaleCopyCurrent=yes
10704else
10705 gt_cv_func_CFLocaleCopyCurrent=no
10706fi
10707rm -f core conftest.err conftest.$ac_objext \
10708 conftest$ac_exeext conftest.$ac_ext
10709 LIBS="$gt_save_LIBS"
10710fi
10711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10712$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10713 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10714
10715$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10716
10717 fi
10718 INTL_MACOSX_LIBS=
10719 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10720 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10721 fi
10722
10723
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010724
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010725
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010726
10727
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010728 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010729 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010730
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010731 LIBINTL=
10732 LTLIBINTL=
10733 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010734
Theodore Ts'o93613952014-07-03 23:44:13 -040010735 case " $gt_needs " in
10736 *" need-formatstring-macros "*) gt_api_version=3 ;;
10737 *" need-ngettext "*) gt_api_version=2 ;;
10738 *) gt_api_version=1 ;;
10739 esac
10740 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10741 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10742
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010743 if test "$USE_NLS" = "yes"; then
10744 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010745
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010747$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010748
Theodore Ts'oe1052142006-10-21 21:46:47 -040010749# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010750if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010751 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010752else
10753 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010754fi
10755
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010757$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010758
10759 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10760 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010761
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010762
Theodore Ts'o93613952014-07-03 23:44:13 -040010763 if test $gt_api_version -ge 3; then
10764 gt_revision_test_code='
10765#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10766#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10767#endif
10768typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10769'
10770 else
10771 gt_revision_test_code=
10772 fi
10773 if test $gt_api_version -ge 2; then
10774 gt_expression_test_code=' + * ngettext ("", "", 0)'
10775 else
10776 gt_expression_test_code=
10777 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010778
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010780$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040010781if eval \${$gt_func_gnugettext_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010782 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010783else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010785/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040010786
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010787#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040010788$gt_revision_test_code
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010789extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010790extern int *_nl_domain_bindings;
Theodore Ts'o93613952014-07-03 23:44:13 -040010791
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010792int
10793main ()
10794{
Theodore Ts'o93613952014-07-03 23:44:13 -040010795
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010796bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040010797return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10798
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010799 ;
10800 return 0;
10801}
10802_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010803if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040010804 eval "$gt_func_gnugettext_libc=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010805else
Theodore Ts'o93613952014-07-03 23:44:13 -040010806 eval "$gt_func_gnugettext_libc=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010807fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010808rm -f core conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010810fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010811eval ac_res=\$$gt_func_gnugettext_libc
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10813$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010814
Theodore Ts'o93613952014-07-03 23:44:13 -040010815 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10816
10817
10818
10819
10820
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010821
10822
10823
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010824 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010825
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010826 acl_save_prefix="$prefix"
10827 prefix="$acl_final_prefix"
10828 acl_save_exec_prefix="$exec_prefix"
10829 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010830
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010831 eval additional_includedir=\"$includedir\"
10832 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010833
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010834 exec_prefix="$acl_save_exec_prefix"
10835 prefix="$acl_save_prefix"
10836
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010837
Theodore Ts'oe1052142006-10-21 21:46:47 -040010838# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010839if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010840 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010841 if test "X$withval" = "Xno"; then
10842 use_additional=no
10843 else
10844 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010845
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010846 acl_save_prefix="$prefix"
10847 prefix="$acl_final_prefix"
10848 acl_save_exec_prefix="$exec_prefix"
10849 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010850
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010851 eval additional_includedir=\"$includedir\"
10852 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010853
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010854 exec_prefix="$acl_save_exec_prefix"
10855 prefix="$acl_save_prefix"
10856
10857 else
10858 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -040010859 additional_libdir="$withval/$acl_libdirstem"
10860 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10861 && ! test -d "$withval/$acl_libdirstem"; then
10862 additional_libdir="$withval/$acl_libdirstem2"
10863 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010864 fi
10865 fi
10866
Theodore Ts'oe1052142006-10-21 21:46:47 -040010867fi
10868
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010869 LIBINTL=
10870 LTLIBINTL=
10871 INCINTL=
Theodore Ts'o93613952014-07-03 23:44:13 -040010872 LIBINTL_PREFIX=
10873 HAVE_LIBINTL=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010874 rpathdirs=
10875 ltrpathdirs=
10876 names_already_handled=
10877 names_next_round='intl '
10878 while test -n "$names_next_round"; do
10879 names_this_round="$names_next_round"
10880 names_next_round=
10881 for name in $names_this_round; do
10882 already_handled=
10883 for n in $names_already_handled; do
10884 if test "$n" = "$name"; then
10885 already_handled=yes
10886 break
10887 fi
10888 done
10889 if test -z "$already_handled"; then
10890 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -040010891 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010892 eval value=\"\$HAVE_LIB$uppername\"
10893 if test -n "$value"; then
10894 if test "$value" = yes; then
10895 eval value=\"\$LIB$uppername\"
10896 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10897 eval value=\"\$LTLIB$uppername\"
10898 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10899 else
10900 :
10901 fi
10902 else
10903 found_dir=
10904 found_la=
10905 found_so=
10906 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -040010907 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10908 if test -n "$acl_shlibext"; then
10909 shrext=".$acl_shlibext" # typically: shrext=.so
10910 else
10911 shrext=
10912 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010913 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010914 dir="$additional_libdir"
10915 if test -n "$acl_shlibext"; then
10916 if test -f "$dir/$libname$shrext"; then
10917 found_dir="$dir"
10918 found_so="$dir/$libname$shrext"
10919 else
10920 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10921 ver=`(cd "$dir" && \
10922 for f in "$libname$shrext".*; do echo "$f"; done \
10923 | sed -e "s,^$libname$shrext\\\\.,," \
10924 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10925 | sed 1q ) 2>/dev/null`
10926 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10927 found_dir="$dir"
10928 found_so="$dir/$libname$shrext.$ver"
10929 fi
10930 else
10931 eval library_names=\"$acl_library_names_spec\"
10932 for f in $library_names; do
10933 if test -f "$dir/$f"; then
10934 found_dir="$dir"
10935 found_so="$dir/$f"
10936 break
10937 fi
10938 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010939 fi
10940 fi
10941 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010942 if test "X$found_dir" = "X"; then
10943 if test -f "$dir/$libname.$acl_libext"; then
10944 found_dir="$dir"
10945 found_a="$dir/$libname.$acl_libext"
10946 fi
10947 fi
10948 if test "X$found_dir" != "X"; then
10949 if test -f "$dir/$libname.la"; then
10950 found_la="$dir/$libname.la"
10951 fi
10952 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010953 fi
10954 if test "X$found_dir" = "X"; then
10955 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010956
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010957 acl_save_prefix="$prefix"
10958 prefix="$acl_final_prefix"
10959 acl_save_exec_prefix="$exec_prefix"
10960 exec_prefix="$acl_final_exec_prefix"
10961 eval x=\"$x\"
10962 exec_prefix="$acl_save_exec_prefix"
10963 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010964
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010965 case "$x" in
10966 -L*)
10967 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040010968 if test -n "$acl_shlibext"; then
10969 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010970 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040010971 found_so="$dir/$libname$shrext"
10972 else
10973 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10974 ver=`(cd "$dir" && \
10975 for f in "$libname$shrext".*; do echo "$f"; done \
10976 | sed -e "s,^$libname$shrext\\\\.,," \
10977 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10978 | sed 1q ) 2>/dev/null`
10979 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10980 found_dir="$dir"
10981 found_so="$dir/$libname$shrext.$ver"
10982 fi
10983 else
10984 eval library_names=\"$acl_library_names_spec\"
10985 for f in $library_names; do
10986 if test -f "$dir/$f"; then
10987 found_dir="$dir"
10988 found_so="$dir/$f"
10989 break
10990 fi
10991 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010992 fi
10993 fi
10994 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010995 if test "X$found_dir" = "X"; then
10996 if test -f "$dir/$libname.$acl_libext"; then
10997 found_dir="$dir"
10998 found_a="$dir/$libname.$acl_libext"
10999 fi
11000 fi
11001 if test "X$found_dir" != "X"; then
11002 if test -f "$dir/$libname.la"; then
11003 found_la="$dir/$libname.la"
11004 fi
11005 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011006 ;;
11007 esac
11008 if test "X$found_dir" != "X"; then
11009 break
11010 fi
11011 done
11012 fi
11013 if test "X$found_dir" != "X"; then
11014 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11015 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011016 if test "$enable_rpath" = no \
11017 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11018 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011019 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11020 else
11021 haveit=
11022 for x in $ltrpathdirs; do
11023 if test "X$x" = "X$found_dir"; then
11024 haveit=yes
11025 break
11026 fi
11027 done
11028 if test -z "$haveit"; then
11029 ltrpathdirs="$ltrpathdirs $found_dir"
11030 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011031 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011032 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11033 else
Theodore Ts'o93613952014-07-03 23:44:13 -040011034 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011035 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11036 haveit=
11037 for x in $rpathdirs; do
11038 if test "X$x" = "X$found_dir"; then
11039 haveit=yes
11040 break
11041 fi
11042 done
11043 if test -z "$haveit"; then
11044 rpathdirs="$rpathdirs $found_dir"
11045 fi
11046 else
11047 haveit=
11048 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011049
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011050 acl_save_prefix="$prefix"
11051 prefix="$acl_final_prefix"
11052 acl_save_exec_prefix="$exec_prefix"
11053 exec_prefix="$acl_final_exec_prefix"
11054 eval x=\"$x\"
11055 exec_prefix="$acl_save_exec_prefix"
11056 prefix="$acl_save_prefix"
11057
11058 if test "X$x" = "X-L$found_dir"; then
11059 haveit=yes
11060 break
11061 fi
11062 done
11063 if test -z "$haveit"; then
11064 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11065 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011066 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011067 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11068 else
11069 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11070 fi
11071 fi
11072 fi
11073 fi
11074 else
11075 if test "X$found_a" != "X"; then
11076 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11077 else
11078 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11079 fi
11080 fi
11081 additional_includedir=
11082 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -040011083 */$acl_libdirstem | */$acl_libdirstem/)
11084 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11085 if test "$name" = 'intl'; then
11086 LIBINTL_PREFIX="$basedir"
11087 fi
11088 additional_includedir="$basedir/include"
11089 ;;
11090 */$acl_libdirstem2 | */$acl_libdirstem2/)
11091 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11092 if test "$name" = 'intl'; then
11093 LIBINTL_PREFIX="$basedir"
11094 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011095 additional_includedir="$basedir/include"
11096 ;;
11097 esac
11098 if test "X$additional_includedir" != "X"; then
11099 if test "X$additional_includedir" != "X/usr/include"; then
11100 haveit=
11101 if test "X$additional_includedir" = "X/usr/local/include"; then
11102 if test -n "$GCC"; then
11103 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011104 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011105 esac
11106 fi
11107 fi
11108 if test -z "$haveit"; then
11109 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011110
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011111 acl_save_prefix="$prefix"
11112 prefix="$acl_final_prefix"
11113 acl_save_exec_prefix="$exec_prefix"
11114 exec_prefix="$acl_final_exec_prefix"
11115 eval x=\"$x\"
11116 exec_prefix="$acl_save_exec_prefix"
11117 prefix="$acl_save_prefix"
11118
11119 if test "X$x" = "X-I$additional_includedir"; then
11120 haveit=yes
11121 break
11122 fi
11123 done
11124 if test -z "$haveit"; then
11125 if test -d "$additional_includedir"; then
11126 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11127 fi
11128 fi
11129 fi
11130 fi
11131 fi
11132 if test -n "$found_la"; then
11133 save_libdir="$libdir"
11134 case "$found_la" in
11135 */* | *\\*) . "$found_la" ;;
11136 *) . "./$found_la" ;;
11137 esac
11138 libdir="$save_libdir"
11139 for dep in $dependency_libs; do
11140 case "$dep" in
11141 -L*)
11142 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040011143 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11144 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011145 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -040011146 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11147 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011148 if test -n "$GCC"; then
11149 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011150 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011151 esac
11152 fi
11153 fi
11154 if test -z "$haveit"; then
11155 haveit=
11156 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011157
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011158 acl_save_prefix="$prefix"
11159 prefix="$acl_final_prefix"
11160 acl_save_exec_prefix="$exec_prefix"
11161 exec_prefix="$acl_final_exec_prefix"
11162 eval x=\"$x\"
11163 exec_prefix="$acl_save_exec_prefix"
11164 prefix="$acl_save_prefix"
11165
11166 if test "X$x" = "X-L$additional_libdir"; then
11167 haveit=yes
11168 break
11169 fi
11170 done
11171 if test -z "$haveit"; then
11172 if test -d "$additional_libdir"; then
11173 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11174 fi
11175 fi
11176 haveit=
11177 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011178
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011179 acl_save_prefix="$prefix"
11180 prefix="$acl_final_prefix"
11181 acl_save_exec_prefix="$exec_prefix"
11182 exec_prefix="$acl_final_exec_prefix"
11183 eval x=\"$x\"
11184 exec_prefix="$acl_save_exec_prefix"
11185 prefix="$acl_save_prefix"
11186
11187 if test "X$x" = "X-L$additional_libdir"; then
11188 haveit=yes
11189 break
11190 fi
11191 done
11192 if test -z "$haveit"; then
11193 if test -d "$additional_libdir"; then
11194 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11195 fi
11196 fi
11197 fi
11198 fi
11199 ;;
11200 -R*)
11201 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11202 if test "$enable_rpath" != no; then
11203 haveit=
11204 for x in $rpathdirs; do
11205 if test "X$x" = "X$dir"; then
11206 haveit=yes
11207 break
11208 fi
11209 done
11210 if test -z "$haveit"; then
11211 rpathdirs="$rpathdirs $dir"
11212 fi
11213 haveit=
11214 for x in $ltrpathdirs; do
11215 if test "X$x" = "X$dir"; then
11216 haveit=yes
11217 break
11218 fi
11219 done
11220 if test -z "$haveit"; then
11221 ltrpathdirs="$ltrpathdirs $dir"
11222 fi
11223 fi
11224 ;;
11225 -l*)
11226 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11227 ;;
11228 *.la)
11229 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11230 ;;
11231 *)
11232 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11233 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11234 ;;
11235 esac
11236 done
11237 fi
11238 else
11239 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11240 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11241 fi
11242 fi
11243 fi
11244 done
11245 done
11246 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011247 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011248 alldirs=
11249 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -040011250 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011251 done
11252 acl_save_libdir="$libdir"
11253 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -040011254 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011255 libdir="$acl_save_libdir"
11256 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11257 else
11258 for found_dir in $rpathdirs; do
11259 acl_save_libdir="$libdir"
11260 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040011261 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011262 libdir="$acl_save_libdir"
11263 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11264 done
11265 fi
11266 fi
11267 if test "X$ltrpathdirs" != "X"; then
11268 for found_dir in $ltrpathdirs; do
11269 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11270 done
11271 fi
11272
Theodore Ts'o93613952014-07-03 23:44:13 -040011273
11274
11275
11276
11277
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011279$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040011280if eval \${$gt_func_gnugettext_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011281 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011282else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011283 gt_save_CPPFLAGS="$CPPFLAGS"
11284 CPPFLAGS="$CPPFLAGS $INCINTL"
11285 gt_save_LIBS="$LIBS"
11286 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011288/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011289
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011290#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011291$gt_revision_test_code
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011292extern int _nl_msg_cat_cntr;
11293extern
11294#ifdef __cplusplus
11295"C"
11296#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011297const char *_nl_expand_alias (const char *);
11298
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011299int
11300main ()
11301{
Theodore Ts'o93613952014-07-03 23:44:13 -040011302
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011303bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011304return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11305
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011306 ;
11307 return 0;
11308}
11309_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011310if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040011311 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011312else
Theodore Ts'o93613952014-07-03 23:44:13 -040011313 eval "$gt_func_gnugettext_libintl=no"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011314fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011315rm -f core conftest.err conftest.$ac_objext \
11316 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -040011317 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011318 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011320/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011321
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011322#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011323$gt_revision_test_code
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011324extern int _nl_msg_cat_cntr;
11325extern
11326#ifdef __cplusplus
11327"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011328#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011329const char *_nl_expand_alias (const char *);
11330
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011331int
11332main ()
11333{
Theodore Ts'o93613952014-07-03 23:44:13 -040011334
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011335bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011336return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11337
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011338 ;
11339 return 0;
11340}
11341_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011342if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011343 LIBINTL="$LIBINTL $LIBICONV"
Theodore Ts'o93613952014-07-03 23:44:13 -040011344 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11345 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011346
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011347fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011348rm -f core conftest.err conftest.$ac_objext \
11349 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011350 fi
11351 CPPFLAGS="$gt_save_CPPFLAGS"
11352 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011353fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011354eval ac_res=\$$gt_func_gnugettext_libintl
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11356$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011357 fi
11358
Theodore Ts'o93613952014-07-03 23:44:13 -040011359 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11360 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011361 && test "$PACKAGE" != gettext-runtime \
11362 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011363 gt_use_preinstalled_gnugettext=yes
11364 else
11365 LIBINTL=
11366 LTLIBINTL=
11367 INCINTL=
11368 fi
11369
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011370
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011371 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11372 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011373 fi
11374 fi
11375
11376 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011377 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011378 USE_INCLUDED_LIBINTL=yes
Theodore Ts'o93613952014-07-03 23:44:13 -040011379 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11380 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011381 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011382 fi
11383
Theodore Ts'o93613952014-07-03 23:44:13 -040011384 CATOBJEXT=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011385 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11386 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11387 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011388 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011389
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011390
Theodore Ts'o93613952014-07-03 23:44:13 -040011391 if test -n "$INTL_MACOSX_LIBS"; then
11392 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11393 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11394 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11395 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11396 fi
11397 fi
11398
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011399 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11400 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011401
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011402$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011403
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011404 else
11405 USE_NLS=no
11406 fi
11407 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011408
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011410$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011412$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011413 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011415$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011416 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011417 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011418 gt_source="external libintl"
11419 else
11420 gt_source="libc"
11421 fi
11422 else
11423 gt_source="included intl directory"
11424 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011426$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011427 fi
11428
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011429 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011430
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011431 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011432 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011434$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011436$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011437
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011438 for element in $INCINTL; do
11439 haveit=
11440 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011441
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011442 acl_save_prefix="$prefix"
11443 prefix="$acl_final_prefix"
11444 acl_save_exec_prefix="$exec_prefix"
11445 exec_prefix="$acl_final_exec_prefix"
11446 eval x=\"$x\"
11447 exec_prefix="$acl_save_exec_prefix"
11448 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011449
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011450 if test "X$x" = "X$element"; then
11451 haveit=yes
11452 break
11453 fi
11454 done
11455 if test -z "$haveit"; then
11456 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11457 fi
11458 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011459
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011460 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011461
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011462
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011463$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011464
11465
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011466$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011467
11468 fi
11469
11470 POSUB=po
11471 fi
11472
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011473
11474 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011475 BUILD_INCLUDED_LIBINTL=yes
11476 fi
11477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011478
11479
11480
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011481
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011482 nls_cv_header_intl=
11483 nls_cv_header_libgt=
11484
11485 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011486
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011487
11488 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011489
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011490
11491 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011492
11493
Theodore Ts'o93613952014-07-03 23:44:13 -040011494 INTLOBJS=
11495 if test "$USE_INCLUDED_LIBINTL" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011496 INTLOBJS="\$(GETTOBJS)"
11497 fi
11498
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011499
11500 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011501
11502
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011503
11504 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011505
11506
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011507
11508
11509
11510
11511
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011513$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11514set x ${MAKE-make}
11515ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011516if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011517 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011518else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011519 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011520SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011521all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011522 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011523_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011524# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011525case `${MAKE-make} -f conftest.make 2>/dev/null` in
11526 *@@@%%%=?*=@@@%%%*)
11527 eval ac_cv_prog_make_${ac_make}_set=yes;;
11528 *)
11529 eval ac_cv_prog_make_${ac_make}_set=no;;
11530esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011531rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011532fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011533if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011535$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011536 SET_MAKE=
11537else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011539$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011540 SET_MAKE="MAKE=${MAKE-make}"
11541fi
11542
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011544$as_echo_n "checking for GNU make... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011545if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011546 $as_echo_n "(cached) " >&6
11547else
11548 _cv_gnu_make_command='' ;
11549 for a in "$MAKE" make gmake gnumake ; do
11550 if test -z "$a" ; then continue ; fi ;
11551 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11552 _cv_gnu_make_command=$a ;
11553 break;
11554 fi
11555 done ;
11556
11557fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011559$as_echo "$_cv_gnu_make_command" >&6; } ;
11560 if test "x$_cv_gnu_make_command" != "x" ; then
11561 ifGNUmake='' ;
11562 ifNotGNUmake='#' ;
11563 else
11564 ifGNUmake='#' ;
11565 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011567$as_echo "\"Not found\"" >&6; };
11568 fi
11569
11570
11571
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011572# Extract the first word of "ln", so it can be a program name with args.
11573set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011575$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011576if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011577 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011578else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011579 case $LN in
11580 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011581 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11582 ;;
11583 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585for as_dir in $PATH
11586do
11587 IFS=$as_save_IFS
11588 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011589 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011591 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011593 break 2
11594 fi
11595done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011596 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011597IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011598
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011599 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11600 ;;
11601esac
11602fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011603LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011604if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011606$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011607else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011609$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011610fi
11611
Theodore Ts'oe1052142006-10-21 21:46:47 -040011612
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011614$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011615LN_S=$as_ln_s
11616if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011618$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011619else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011621$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011622fi
11623
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011624# Extract the first word of "mv", so it can be a program name with args.
11625set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011627$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011628if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011629 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011630else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011631 case $MV in
11632 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011633 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11634 ;;
11635 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637for as_dir in $PATH
11638do
11639 IFS=$as_save_IFS
11640 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011641 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011643 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011645 break 2
11646 fi
11647done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011648 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011649IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011650
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011651 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11652 ;;
11653esac
11654fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011655MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011656if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011658$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011659else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011661$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011662fi
11663
Theodore Ts'oe1052142006-10-21 21:46:47 -040011664
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011665# Extract the first word of "cp", so it can be a program name with args.
11666set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011668$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011669if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011670 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011671else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011672 case $CP in
11673 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011674 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11675 ;;
11676 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11678for as_dir in $PATH
11679do
11680 IFS=$as_save_IFS
11681 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011682 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011684 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011686 break 2
11687 fi
11688done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011689 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011690IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011691
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011692 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11693 ;;
11694esac
11695fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011696CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011697if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011699$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011700else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011702$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011703fi
11704
Theodore Ts'oe1052142006-10-21 21:46:47 -040011705
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011706# Extract the first word of "rm", so it can be a program name with args.
11707set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011709$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011710if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011711 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011712else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011713 case $RM in
11714 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011715 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11716 ;;
11717 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11719for as_dir in $PATH
11720do
11721 IFS=$as_save_IFS
11722 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011723 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011725 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011727 break 2
11728 fi
11729done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011730 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011731IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011732
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011733 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11734 ;;
11735esac
11736fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011737RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011738if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011740$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011741else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011743$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011744fi
11745
Theodore Ts'oe1052142006-10-21 21:46:47 -040011746
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011747# Extract the first word of "chmod", so it can be a program name with args.
11748set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011750$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011751if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011752 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011753else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011754 case $CHMOD in
11755 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011756 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11757 ;;
11758 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760for as_dir in $PATH
11761do
11762 IFS=$as_save_IFS
11763 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011764 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011766 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011768 break 2
11769 fi
11770done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011771 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011772IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011773
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011774 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11775 ;;
11776esac
11777fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011778CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011779if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011781$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011782else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011784$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011785fi
11786
Theodore Ts'oe1052142006-10-21 21:46:47 -040011787
Theodore Ts'o32237012005-01-17 19:13:39 -050011788for ac_prog in gawk mawk nawk awk
11789do
11790 # Extract the first word of "$ac_prog", so it can be a program name with args.
11791set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011793$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011794if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011795 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011796else
Theodore Ts'o32237012005-01-17 19:13:39 -050011797 if test -n "$AWK"; then
11798 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11799else
11800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011801for as_dir in $PATH
11802do
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011805 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011807 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011809 break 2
11810 fi
11811done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011812 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011813IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011814
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011815fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011816fi
11817AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011818if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011820$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011821else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011823$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011824fi
11825
Theodore Ts'oe1052142006-10-21 21:46:47 -040011826
Theodore Ts'o32237012005-01-17 19:13:39 -050011827 test -n "$AWK" && break
11828done
11829
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011831$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011832if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011833 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011834else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011835 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11836 then ac_cv_path_EGREP="$GREP -E"
11837 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011838 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011839 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011840 # Loop through the user's path and test for each of PROGNAME-LIST
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011842for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11843do
11844 IFS=$as_save_IFS
11845 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011846 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011847 for ac_exec_ext in '' $ac_executable_extensions; do
11848 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011849 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011850# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011851 # Check for GNU $ac_path_EGREP
11852case `"$ac_path_EGREP" --version 2>&1` in
11853*GNU*)
11854 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11855*)
11856 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011857 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011858 while :
11859 do
11860 cat "conftest.in" "conftest.in" >"conftest.tmp"
11861 mv "conftest.tmp" "conftest.in"
11862 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011863 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011864 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011866 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -040011867 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11868 # Best one so far, save it but keep looking for a better one
11869 ac_cv_path_EGREP="$ac_path_EGREP"
11870 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011871 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011872 # 10*(2^10) chars as input seems more than enough
11873 test $ac_count -gt 10 && break
11874 done
11875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11876esac
11877
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011878 $ac_path_EGREP_found && break 3
11879 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011880 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011881 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011882IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011883 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011884 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 +010011885 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011886else
11887 ac_cv_path_EGREP=$EGREP
11888fi
11889
Theodore Ts'oe1052142006-10-21 21:46:47 -040011890 fi
11891fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011893$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011894 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011895
11896
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011897# Extract the first word of "sed", so it can be a program name with args.
11898set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011900$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011901if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011902 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011903else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011904 case $SED in
11905 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011906 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11907 ;;
11908 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910for as_dir in $PATH
11911do
11912 IFS=$as_save_IFS
11913 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011914 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011916 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011918 break 2
11919 fi
11920done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011921 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011922IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011923
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011924 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11925 ;;
11926esac
11927fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011928SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011929if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011931$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011932else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011934$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011935fi
11936
Theodore Ts'oe1052142006-10-21 21:46:47 -040011937
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011938# Extract the first word of "perl", so it can be a program name with args.
11939set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011941$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011942if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011943 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011944else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011945 case $PERL in
11946 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011947 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11948 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011949 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951for as_dir in $PATH
11952do
11953 IFS=$as_save_IFS
11954 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011955 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011957 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011959 break 2
11960 fi
11961done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011962 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011963IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011964
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011965 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11966 ;;
11967esac
11968fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011969PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011970if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011972$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011973else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011975$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011976fi
11977
Theodore Ts'oe1052142006-10-21 21:46:47 -040011978
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011979# Extract the first word of "ldconfig", so it can be a program name with args.
11980set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011982$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011983if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011984 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011985else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011986 case $LDCONFIG in
11987 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011988 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11989 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011990 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992for as_dir in $PATH
11993do
11994 IFS=$as_save_IFS
11995 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011996 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011998 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012000 break 2
12001 fi
12002done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012003 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012004IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012005
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012006 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12007 ;;
12008esac
12009fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012010LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012011if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012013$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012014else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012016$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012017fi
12018
Theodore Ts'oe1052142006-10-21 21:46:47 -040012019
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012020if test -n "$ac_tool_prefix"; then
12021 # 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 +000012022set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012024$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012025if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012026 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012027else
12028 if test -n "$AR"; then
12029 ac_cv_prog_AR="$AR" # Let the user override the test.
12030else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032for as_dir in $PATH
12033do
12034 IFS=$as_save_IFS
12035 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012036 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012038 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012040 break 2
12041 fi
12042done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012043 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012044IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012045
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012046fi
12047fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012048AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012049if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012051$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012052else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012054$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012055fi
12056
Theodore Ts'oe1052142006-10-21 21:46:47 -040012057
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012058fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012059if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012060 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012061 # Extract the first word of "ar", so it can be a program name with args.
12062set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012064$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012065if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012066 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012067else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012068 if test -n "$ac_ct_AR"; then
12069 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012070else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072for as_dir in $PATH
12073do
12074 IFS=$as_save_IFS
12075 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012076 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012078 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012080 break 2
12081 fi
12082done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012083 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012084IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012085
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012086fi
12087fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012088ac_ct_AR=$ac_cv_prog_ac_ct_AR
12089if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012091$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012092else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012094$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012095fi
12096
Theodore Ts'oe1052142006-10-21 21:46:47 -040012097 if test "x$ac_ct_AR" = x; then
12098 AR="ar"
12099 else
12100 case $cross_compiling:$ac_tool_warned in
12101yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012102{ $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 +010012103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012104ac_tool_warned=yes ;;
12105esac
12106 AR=$ac_ct_AR
12107 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012108else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012109 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012110fi
12111
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012112if test -n "$ac_tool_prefix"; then
12113 # 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 +000012114set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012116$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012117if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012118 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012119else
12120 if test -n "$RANLIB"; then
12121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12122else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124for as_dir in $PATH
12125do
12126 IFS=$as_save_IFS
12127 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012128 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012130 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012132 break 2
12133 fi
12134done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012135 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012136IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012137
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012138fi
12139fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012140RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012141if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012143$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012144else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012146$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012147fi
12148
Theodore Ts'oe1052142006-10-21 21:46:47 -040012149
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012150fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012151if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012152 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012153 # Extract the first word of "ranlib", so it can be a program name with args.
12154set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012156$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012157if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012158 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012159else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160 if test -n "$ac_ct_RANLIB"; then
12161 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012162else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12164for as_dir in $PATH
12165do
12166 IFS=$as_save_IFS
12167 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012168 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012170 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012172 break 2
12173 fi
12174done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012175 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012176IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012177
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012178fi
12179fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012180ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12181if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012183$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012184else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012186$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012187fi
12188
Theodore Ts'oe1052142006-10-21 21:46:47 -040012189 if test "x$ac_ct_RANLIB" = x; then
12190 RANLIB=":"
12191 else
12192 case $cross_compiling:$ac_tool_warned in
12193yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012194{ $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 +010012195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012196ac_tool_warned=yes ;;
12197esac
12198 RANLIB=$ac_ct_RANLIB
12199 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012200else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012201 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012202fi
12203
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012204if test -n "$ac_tool_prefix"; then
12205 # 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 +000012206set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012208$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012209if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012210 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012211else
12212 if test -n "$STRIP"; then
12213 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12214else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216for as_dir in $PATH
12217do
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012220 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012222 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012224 break 2
12225 fi
12226done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012227 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012228IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012229
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012230fi
12231fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012233if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012235$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012236else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012238$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012239fi
12240
Theodore Ts'oe1052142006-10-21 21:46:47 -040012241
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012242fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012243if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012244 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012245 # Extract the first word of "strip", so it can be a program name with args.
12246set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012248$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012249if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012250 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012251else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012252 if test -n "$ac_ct_STRIP"; then
12253 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012254else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256for as_dir in $PATH
12257do
12258 IFS=$as_save_IFS
12259 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012260 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012262 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012264 break 2
12265 fi
12266done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012267 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012268IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012269
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012270fi
12271fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012272ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12273if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012275$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012276else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012278$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012279fi
12280
Theodore Ts'oe1052142006-10-21 21:46:47 -040012281 if test "x$ac_ct_STRIP" = x; then
12282 STRIP=":"
12283 else
12284 case $cross_compiling:$ac_tool_warned in
12285yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012286{ $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 +010012287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012288ac_tool_warned=yes ;;
12289esac
12290 STRIP=$ac_ct_STRIP
12291 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012292else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012293 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012294fi
12295
Manish Katiyar7321d942008-04-14 17:20:03 +053012296# Extract the first word of "makeinfo", so it can be a program name with args.
12297set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012299$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012300if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012301 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012302else
12303 if test -n "$MAKEINFO"; then
12304 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12305else
12306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12307for as_dir in $PATH
12308do
12309 IFS=$as_save_IFS
12310 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012311 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053012313 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012315 break 2
12316 fi
12317done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012318 done
Manish Katiyar7321d942008-04-14 17:20:03 +053012319IFS=$as_save_IFS
12320
12321fi
12322fi
12323MAKEINFO=$ac_cv_prog_MAKEINFO
12324if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012326$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012327else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012329$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012330fi
12331
12332
12333if test "_$MAKEINFO" = "_"; then
12334 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12335else
12336 case "$MAKEINFO" in
12337 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012339*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012340$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012341*** Makeinfo is missing. Info documentation will not be built." >&2;}
12342 ;;
12343 *)
12344 ;;
12345 esac
12346fi
12347
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012348
Theodore Ts'o6c133521999-07-03 20:37:03 +000012349# See if we need a separate native compiler.
12350if test $cross_compiling = no; then
12351 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012352
Theodore Ts'o6c133521999-07-03 20:37:03 +000012353else
12354 for ac_prog in gcc cc
12355do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012356 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012357set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012359$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012360if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012361 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012362else
12363 if test -n "$BUILD_CC"; then
12364 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12365else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012368do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012369 IFS=$as_save_IFS
12370 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012371 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012373 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012375 break 2
12376 fi
12377done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012378 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012379IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012380
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012381fi
12382fi
12383BUILD_CC=$ac_cv_prog_BUILD_CC
12384if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012386$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012387else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012389$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012390fi
12391
Theodore Ts'oe1052142006-10-21 21:46:47 -040012392
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012393 test -n "$BUILD_CC" && break
12394done
12395
12396fi
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -070012397for 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 attr/xattr.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012398do :
12399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12400ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012401if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012402 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012403#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012404_ACEOF
12405
12406fi
12407
12408done
12409
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012410for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012411do :
12412 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012413#if HAVE_SYS_TYPES_H
12414#include <sys/types.h>
12415#endif
12416#if HAVE_SYS_SOCKET
12417#include <sys/socket.h>
12418#endif
12419
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012420"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012421if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012422 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012423#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012424_ACEOF
12425
12426fi
12427
12428done
12429
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012430for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012431do :
12432 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012433if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012434 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012435#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012436_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012437
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012438ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012439if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012440
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012441$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012442
12443fi
12444
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012445fi
12446done
12447
12448
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012449ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12450"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012451if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012452
12453$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012454
12455fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012456
Theodore Ts'o28739272014-01-03 00:26:43 -050012457ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12458if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12459
12460cat >>confdefs.h <<_ACEOF
12461#define HAVE_STRUCT_STAT_ST_ATIM 1
12462_ACEOF
12463
12464
12465fi
12466
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012467ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12468"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012469if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012470
12471$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012472
Theodore Ts'offf45482003-04-13 00:44:19 -040012473fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012474
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012475ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12476"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012477if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012478
12479$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012480
12481fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012482
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012483ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012484 #define _LARGEFILE64_SOURCE
12485 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012486"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012487if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012488
12489$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012490
12491fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012492
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012493# The cast to long int works around a bug in the HP C Compiler
12494# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12495# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12496# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012498$as_echo_n "checking size of short... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012499if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012500 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012501else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012502 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 -050012503
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012504else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012505 if test "$ac_cv_type_short" = yes; then
12506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012508as_fn_error 77 "cannot compute sizeof (short)
12509See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012510 else
12511 ac_cv_sizeof_short=0
12512 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012513fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012514
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012515fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012517$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012518
12519
12520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012521cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012522#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012523_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012524
12525
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012526# The cast to long int works around a bug in the HP C Compiler
12527# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12528# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12529# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012531$as_echo_n "checking size of int... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012532if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012533 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012534else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012535 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 -050012536
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012537else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012538 if test "$ac_cv_type_int" = yes; then
12539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012541as_fn_error 77 "cannot compute sizeof (int)
12542See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012543 else
12544 ac_cv_sizeof_int=0
12545 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012546fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012547
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012548fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012550$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012551
12552
12553
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012554cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012555#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012556_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012557
12558
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012559# The cast to long int works around a bug in the HP C Compiler
12560# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12561# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12562# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012564$as_echo_n "checking size of long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012565if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012566 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012567else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012568 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 -050012569
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012570else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012571 if test "$ac_cv_type_long" = yes; then
12572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012574as_fn_error 77 "cannot compute sizeof (long)
12575See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012576 else
12577 ac_cv_sizeof_long=0
12578 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012579fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012580
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012581fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012583$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012584
12585
12586
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012587cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012588#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012589_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012590
12591
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012592# The cast to long int works around a bug in the HP C Compiler
12593# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12594# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12595# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012597$as_echo_n "checking size of long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012598if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012599 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012600else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012601 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 -050012602
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012603else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012604 if test "$ac_cv_type_long_long" = yes; then
12605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012607as_fn_error 77 "cannot compute sizeof (long long)
12608See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012609 else
12610 ac_cv_sizeof_long_long=0
12611 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012612fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012613
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012614fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012616$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012617
12618
12619
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012620cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012621#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012622_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012623
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012624
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012625# The cast to long int works around a bug in the HP C Compiler
12626# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12627# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12628# This bug is HP SR number 8606223364.
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12630$as_echo_n "checking size of off_t... " >&6; }
12631if ${ac_cv_sizeof_off_t+:} false; then :
12632 $as_echo_n "(cached) " >&6
12633else
12634 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12635
12636else
12637 if test "$ac_cv_type_off_t" = yes; then
12638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12640as_fn_error 77 "cannot compute sizeof (off_t)
12641See \`config.log' for more details" "$LINENO" 5; }
12642 else
12643 ac_cv_sizeof_off_t=0
12644 fi
12645fi
12646
12647fi
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12649$as_echo "$ac_cv_sizeof_off_t" >&6; }
12650
12651
12652
12653cat >>confdefs.h <<_ACEOF
12654#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12655_ACEOF
12656
12657
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012658SIZEOF_SHORT=$ac_cv_sizeof_short
12659SIZEOF_INT=$ac_cv_sizeof_int
12660SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012661SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012662SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12663
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012664
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012665
12666
12667
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012669$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012670if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012671 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012672else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012673 ac_cv_c_bigendian=unknown
12674 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012676/* end confdefs.h. */
12677#ifndef __APPLE_CC__
12678 not a universal capable compiler
12679 #endif
12680 typedef int dummy;
12681
12682_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012683if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012684
12685 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012686 # there are at least two -arch flags with different values.
12687 ac_arch=
12688 ac_prev=
12689 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12690 if test -n "$ac_prev"; then
12691 case $ac_word in
12692 i?86 | x86_64 | ppc | ppc64)
12693 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12694 ac_arch=$ac_word
12695 else
12696 ac_cv_c_bigendian=universal
12697 break
12698 fi
12699 ;;
12700 esac
12701 ac_prev=
12702 elif test "x$ac_word" = "x-arch"; then
12703 ac_prev=arch
12704 fi
12705 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012706fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12708 if test $ac_cv_c_bigendian = unknown; then
12709 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012711/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012712#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012713 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012714
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012715int
12716main ()
12717{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012718#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12719 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12720 && LITTLE_ENDIAN)
12721 bogus endian macros
12722 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012723
12724 ;
12725 return 0;
12726}
12727_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012728if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012729 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012731/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012732#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012733 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012734
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012735int
12736main ()
12737{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012738#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012739 not big endian
12740 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012741
12742 ;
12743 return 0;
12744}
12745_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012746if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012747 ac_cv_c_bigendian=yes
12748else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012749 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012750fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012752fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12754 fi
12755 if test $ac_cv_c_bigendian = unknown; then
12756 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012758/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012759#include <limits.h>
12760
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012761int
12762main ()
12763{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012764#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12765 bogus endian macros
12766 #endif
12767
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012768 ;
12769 return 0;
12770}
12771_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012772if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012773 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012775/* end confdefs.h. */
12776#include <limits.h>
12777
12778int
12779main ()
12780{
12781#ifndef _BIG_ENDIAN
12782 not big endian
12783 #endif
12784
12785 ;
12786 return 0;
12787}
12788_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012789if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012790 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012791else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012792 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012793fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012795fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12797 fi
12798 if test $ac_cv_c_bigendian = unknown; then
12799 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012800 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012801 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012803/* end confdefs.h. */
12804short int ascii_mm[] =
12805 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12806 short int ascii_ii[] =
12807 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12808 int use_ascii (int i) {
12809 return ascii_mm[i] + ascii_ii[i];
12810 }
12811 short int ebcdic_ii[] =
12812 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12813 short int ebcdic_mm[] =
12814 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12815 int use_ebcdic (int i) {
12816 return ebcdic_mm[i] + ebcdic_ii[i];
12817 }
12818 extern int foo;
12819
12820int
12821main ()
12822{
12823return use_ascii (foo) == use_ebcdic (foo);
12824 ;
12825 return 0;
12826}
12827_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012828if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012829 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12830 ac_cv_c_bigendian=yes
12831 fi
12832 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12833 if test "$ac_cv_c_bigendian" = unknown; then
12834 ac_cv_c_bigendian=no
12835 else
12836 # finding both strings is unlikely to happen, but who knows?
12837 ac_cv_c_bigendian=unknown
12838 fi
12839 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012840fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012842else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012844/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012845$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012846int
12847main ()
12848{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012849
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012850 /* Are we little or big endian? From Harbison&Steele. */
12851 union
12852 {
12853 long int l;
12854 char c[sizeof (long int)];
12855 } u;
12856 u.l = 1;
12857 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012858
12859 ;
12860 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012861}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012862_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012863if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012864 ac_cv_c_bigendian=no
12865else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012866 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012867fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12869 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012870fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012871
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012872 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012873fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012875$as_echo "$ac_cv_c_bigendian" >&6; }
12876 case $ac_cv_c_bigendian in #(
12877 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012878 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012879;; #(
12880 no)
12881 ;; #(
12882 universal)
12883
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012884$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012885
12886 ;; #(
12887 *)
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012888 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012889 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012890 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012891
Chen Qi91f04682014-05-05 21:08:42 -040012892if test $cross_compiling = no; then
12893 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12894else
12895 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12896fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040012897ASM_TYPES_HEADER=./asm_types.h
12898
Theodore Ts'o488c75a2008-06-07 08:55:21 -040012899echo "/* These defines are needed for the public ext2fs.h header file */" \
12900 > public_config.h
12901if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12902 uniq tmp_config.$$ >> public_config.h
12903else
12904 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12905fi
12906if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12907 uniq tmp_config.$$ >> public_config.h
12908else
12909 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12910fi
12911rm -f tmp_config.$$
12912PUBLIC_CONFIG_HEADER=./public_config.h
12913
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012914for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012915do :
12916 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012917if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012918 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012919#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012920_ACEOF
12921
12922fi
12923
Theodore Ts'o0c193f82003-08-01 14:26:23 -040012924done
12925
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012926ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012927if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012928
12929cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012930#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012931_ACEOF
12932
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012934fi
12935
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012936{ $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 +010012937$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012938if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012939 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012940else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012942/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012943#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012944int
12945main ()
12946{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012947struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012948 ;
12949 return 0;
12950}
12951_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012952if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012953 e2fsprogs_cv_struct_st_flags=yes
12954else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012955 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012956fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12958fi
12959
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012961$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012962if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012964$as_echo_n "checking whether st_flags field is useful... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012965 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012966 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012967else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012969/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012970#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012971int
12972main ()
12973{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012974struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012975 ;
12976 return 0;
12977}
12978_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012979if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012980 e2fsprogs_cv_struct_st_flags_immut=yes
12981else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012982 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012983fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12985fi
12986
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012988$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012989 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012990
12991$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012992
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012993 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012994fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012995ac_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 -050012996 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012997"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012998if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012999
13000cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013001#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013002_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013003
13004fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013005
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013006if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013008$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013009if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013010 $as_echo_n "(cached) " >&6
13011else
13012 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013014/* end confdefs.h. */
13015
13016/* Override any GCC internal prototype to avoid an error.
13017 Use char because int might match the return type of a GCC
13018 builtin and then its argument prototype would still apply. */
13019#ifdef __cplusplus
13020extern "C"
13021#endif
13022char blkid_probe_all ();
13023int
13024main ()
13025{
13026return blkid_probe_all ();
13027 ;
13028 return 0;
13029}
13030_ACEOF
13031for ac_lib in '' blkid; do
13032 if test -z "$ac_lib"; then
13033 ac_res="none required"
13034 else
13035 ac_res=-l$ac_lib
13036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13037 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013038 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013039 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013040fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013041rm -f core conftest.err conftest.$ac_objext \
13042 conftest$ac_exeext
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013043 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013044 break
13045fi
13046done
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013047if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013048
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013049else
13050 ac_cv_search_blkid_probe_all=no
13051fi
13052rm conftest.$ac_ext
13053LIBS=$ac_func_search_save_LIBS
13054fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013056$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13057ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013058if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13060
13061fi
13062
13063fi
Theodore Ts'o8b779482014-11-04 11:20:09 -050013064for ac_func in __secure_getenv backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013065do :
13066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13067ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013068if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013069 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013070#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013071_ACEOF
13072
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013073fi
13074done
13075
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013076SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013078$as_echo_n "checking for socket in -lsocket... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013079if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013080 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013081else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013082 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013083LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013085/* end confdefs.h. */
13086
Theodore Ts'oe1052142006-10-21 21:46:47 -040013087/* Override any GCC internal prototype to avoid an error.
13088 Use char because int might match the return type of a GCC
13089 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013090#ifdef __cplusplus
13091extern "C"
13092#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013093char socket ();
13094int
13095main ()
13096{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013097return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013098 ;
13099 return 0;
13100}
13101_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013102if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013103 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013104else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013105 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013106fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013107rm -f core conftest.err conftest.$ac_objext \
13108 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013109LIBS=$ac_check_lib_save_LIBS
13110fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013112$as_echo "$ac_cv_lib_socket_socket" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013113if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013114 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013115fi
13116
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013117
Darrick J. Wongb291c112014-09-13 15:12:46 -070013118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13119$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13120if ${ac_cv_lib_magic_magic_file+:} false; then :
13121 $as_echo_n "(cached) " >&6
13122else
13123 ac_check_lib_save_LIBS=$LIBS
13124LIBS="-lmagic $LIBS"
13125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126/* end confdefs.h. */
13127
13128/* Override any GCC internal prototype to avoid an error.
13129 Use char because int might match the return type of a GCC
13130 builtin and then its argument prototype would still apply. */
13131#ifdef __cplusplus
13132extern "C"
13133#endif
13134char magic_file ();
13135int
13136main ()
13137{
13138return magic_file ();
13139 ;
13140 return 0;
13141}
13142_ACEOF
13143if ac_fn_c_try_link "$LINENO"; then :
13144 ac_cv_lib_magic_magic_file=yes
13145else
13146 ac_cv_lib_magic_magic_file=no
13147fi
13148rm -f core conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
13150LIBS=$ac_check_lib_save_LIBS
13151fi
13152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13153$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13154if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13155 MAGIC_LIB=-lmagic
13156for ac_header in magic.h
13157do :
13158 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13159if test "x$ac_cv_header_magic_h" = xyes; then :
13160 cat >>confdefs.h <<_ACEOF
13161#define HAVE_MAGIC_H 1
13162_ACEOF
13163
13164fi
13165
13166done
13167
13168fi
13169
Theodore Ts'od2e3c0d2014-09-21 01:25:58 -040013170if test "$ac_cv_lib_dl_dlopen" = yes ; then
13171 MAGIC_LIB=$DLOPEN_LIB
13172fi
Darrick J. Wongb291c112014-09-13 15:12:46 -070013173
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -070013174FUSE_CMT=
13175FUSE_LIB=
13176# Check whether --enable-fuse2fs was given.
13177if test "${enable_fuse2fs+set}" = set; then :
13178 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13179then
13180 FUSE_CMT="#"
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13182$as_echo "Disabling fuse2fs" >&6; }
13183else
13184 for ac_header in pthread.h fuse.h
13185do :
13186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13187ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13188#define FUSE_USE_VERSION 29
13189"
13190if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13191 cat >>confdefs.h <<_ACEOF
13192#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13193_ACEOF
13194
13195else
13196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13198as_fn_error $? "Cannot find fuse2fs headers.
13199See \`config.log' for more details" "$LINENO" 5; }
13200fi
13201
13202done
13203
13204
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206/* end confdefs.h. */
13207#define FUSE_USE_VERSION 29
13208#ifdef __linux__
13209#include <linux/fs.h>
13210#include <linux/falloc.h>
13211#include <linux/xattr.h>
13212#endif
13213
13214int
13215main ()
13216{
13217
13218 ;
13219 return 0;
13220}
13221_ACEOF
13222if ac_fn_c_try_cpp "$LINENO"; then :
13223
13224else
13225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13227as_fn_error $? "Cannot find fuse2fs Linux headers.
13228See \`config.log' for more details" "$LINENO" 5; }
13229fi
13230rm -f conftest.err conftest.i conftest.$ac_ext
13231
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13233$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13234if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13235 $as_echo_n "(cached) " >&6
13236else
13237 ac_check_lib_save_LIBS=$LIBS
13238LIBS="-losxfuse $LIBS"
13239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240/* end confdefs.h. */
13241
13242/* Override any GCC internal prototype to avoid an error.
13243 Use char because int might match the return type of a GCC
13244 builtin and then its argument prototype would still apply. */
13245#ifdef __cplusplus
13246extern "C"
13247#endif
13248char fuse_main ();
13249int
13250main ()
13251{
13252return fuse_main ();
13253 ;
13254 return 0;
13255}
13256_ACEOF
13257if ac_fn_c_try_link "$LINENO"; then :
13258 ac_cv_lib_osxfuse_fuse_main=yes
13259else
13260 ac_cv_lib_osxfuse_fuse_main=no
13261fi
13262rm -f core conftest.err conftest.$ac_objext \
13263 conftest$ac_exeext conftest.$ac_ext
13264LIBS=$ac_check_lib_save_LIBS
13265fi
13266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13267$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13268if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13269 FUSE_LIB=-losxfuse
13270else
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13272$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13273if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13274 $as_echo_n "(cached) " >&6
13275else
13276 ac_check_lib_save_LIBS=$LIBS
13277LIBS="-lfuse $LIBS"
13278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279/* end confdefs.h. */
13280
13281/* Override any GCC internal prototype to avoid an error.
13282 Use char because int might match the return type of a GCC
13283 builtin and then its argument prototype would still apply. */
13284#ifdef __cplusplus
13285extern "C"
13286#endif
13287char fuse_main ();
13288int
13289main ()
13290{
13291return fuse_main ();
13292 ;
13293 return 0;
13294}
13295_ACEOF
13296if ac_fn_c_try_link "$LINENO"; then :
13297 ac_cv_lib_fuse_fuse_main=yes
13298else
13299 ac_cv_lib_fuse_fuse_main=no
13300fi
13301rm -f core conftest.err conftest.$ac_objext \
13302 conftest$ac_exeext conftest.$ac_ext
13303LIBS=$ac_check_lib_save_LIBS
13304fi
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13306$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13307if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13308 FUSE_LIB=-lfuse
13309else
13310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13312as_fn_error $? "Cannot find fuse library.
13313See \`config.log' for more details" "$LINENO" 5; }
13314fi
13315
13316fi
13317
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13319$as_echo "Enabling fuse2fs" >&6; }
13320fi
13321
13322else
13323 for ac_header in pthread.h fuse.h
13324do :
13325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13326ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13327#define FUSE_USE_VERSION 29
13328#ifdef __linux__
13329# include <linux/fs.h>
13330# include <linux/falloc.h>
13331# include <linux/xattr.h>
13332#endif
13333"
13334if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13335 cat >>confdefs.h <<_ACEOF
13336#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13337_ACEOF
13338
13339else
13340 FUSE_CMT="#"
13341fi
13342
13343done
13344
13345if test -z "$FUSE_CMT"
13346then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13348$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13349if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13350 $as_echo_n "(cached) " >&6
13351else
13352 ac_check_lib_save_LIBS=$LIBS
13353LIBS="-losxfuse $LIBS"
13354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355/* end confdefs.h. */
13356
13357/* Override any GCC internal prototype to avoid an error.
13358 Use char because int might match the return type of a GCC
13359 builtin and then its argument prototype would still apply. */
13360#ifdef __cplusplus
13361extern "C"
13362#endif
13363char fuse_main ();
13364int
13365main ()
13366{
13367return fuse_main ();
13368 ;
13369 return 0;
13370}
13371_ACEOF
13372if ac_fn_c_try_link "$LINENO"; then :
13373 ac_cv_lib_osxfuse_fuse_main=yes
13374else
13375 ac_cv_lib_osxfuse_fuse_main=no
13376fi
13377rm -f core conftest.err conftest.$ac_objext \
13378 conftest$ac_exeext conftest.$ac_ext
13379LIBS=$ac_check_lib_save_LIBS
13380fi
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13382$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13383if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13384 FUSE_LIB=-losxfuse
13385else
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13387$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13388if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13389 $as_echo_n "(cached) " >&6
13390else
13391 ac_check_lib_save_LIBS=$LIBS
13392LIBS="-lfuse $LIBS"
13393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394/* end confdefs.h. */
13395
13396/* Override any GCC internal prototype to avoid an error.
13397 Use char because int might match the return type of a GCC
13398 builtin and then its argument prototype would still apply. */
13399#ifdef __cplusplus
13400extern "C"
13401#endif
13402char fuse_main ();
13403int
13404main ()
13405{
13406return fuse_main ();
13407 ;
13408 return 0;
13409}
13410_ACEOF
13411if ac_fn_c_try_link "$LINENO"; then :
13412 ac_cv_lib_fuse_fuse_main=yes
13413else
13414 ac_cv_lib_fuse_fuse_main=no
13415fi
13416rm -f core conftest.err conftest.$ac_objext \
13417 conftest$ac_exeext conftest.$ac_ext
13418LIBS=$ac_check_lib_save_LIBS
13419fi
13420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13421$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13422if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13423 FUSE_LIB=-lfuse
13424else
13425 FUSE_CMT="#"
13426fi
13427
13428fi
13429
13430fi
13431if test -z "$FUSE_CMT"
13432then
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13434$as_echo "Enabling fuse2fs by default." >&6; }
13435fi
13436
13437fi
13438
13439
13440
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013442$as_echo_n "checking for optreset... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013443if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013444 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013445else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013447/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013448#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013449
13450_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013452 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013453 ac_cv_have_optreset=yes
13454else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013455 ac_cv_have_optreset=no
13456fi
13457rm -f conftest*
13458
13459fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013461$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013462if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013463
13464$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013465
13466fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013467
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013468SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013469ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013470if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013471
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013472else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013474$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013475if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013476 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013477else
13478 ac_check_lib_save_LIBS=$LIBS
13479LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013481/* end confdefs.h. */
13482
13483/* Override any GCC internal prototype to avoid an error.
13484 Use char because int might match the return type of a GCC
13485 builtin and then its argument prototype would still apply. */
13486#ifdef __cplusplus
13487extern "C"
13488#endif
13489char sem_init ();
13490int
13491main ()
13492{
13493return sem_init ();
13494 ;
13495 return 0;
13496}
13497_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013498if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013499 ac_cv_lib_pthread_sem_init=yes
13500else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013501 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013502fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013503rm -f core conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013505LIBS=$ac_check_lib_save_LIBS
13506fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013508$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013509if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013510 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013511
13512 SEM_INIT_LIB=-lpthread
13513else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013515$as_echo_n "checking for sem_init in -lrt... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013516if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013517 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013518else
13519 ac_check_lib_save_LIBS=$LIBS
13520LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013522/* end confdefs.h. */
13523
13524/* Override any GCC internal prototype to avoid an error.
13525 Use char because int might match the return type of a GCC
13526 builtin and then its argument prototype would still apply. */
13527#ifdef __cplusplus
13528extern "C"
13529#endif
13530char sem_init ();
13531int
13532main ()
13533{
13534return sem_init ();
13535 ;
13536 return 0;
13537}
13538_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013539if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013540 ac_cv_lib_rt_sem_init=yes
13541else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013542 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013543fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013544rm -f core conftest.err conftest.$ac_objext \
13545 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013546LIBS=$ac_check_lib_save_LIBS
13547fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013549$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013550if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013551 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013552
13553 SEM_INIT_LIB=-lrt
13554else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013556$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013557if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013558 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013559else
13560 ac_check_lib_save_LIBS=$LIBS
13561LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013563/* end confdefs.h. */
13564
13565/* Override any GCC internal prototype to avoid an error.
13566 Use char because int might match the return type of a GCC
13567 builtin and then its argument prototype would still apply. */
13568#ifdef __cplusplus
13569extern "C"
13570#endif
13571char sem_init ();
13572int
13573main ()
13574{
13575return sem_init ();
13576 ;
13577 return 0;
13578}
13579_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013580if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013581 ac_cv_lib_posix4_sem_init=yes
13582else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013583 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013584fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013585rm -f core conftest.err conftest.$ac_objext \
13586 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013587LIBS=$ac_check_lib_save_LIBS
13588fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013590$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013591if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013592 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013593
13594 SEM_INIT_LIB=-lposix4
13595fi
13596
13597fi
13598
13599fi
13600
13601fi
13602
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013604$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040013605if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013606 UNI_DIFF_OPTS=-u
13607else
13608 UNI_DIFF_OPTS=-c
13609fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013611$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013612
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013613case "$host_os" in
13614linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013615
13616$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013617
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013618 ;;
13619esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013620LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013621CYGWIN_CMT="#"
13622UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013623case "$host_os" in
13624linux*)
13625 LINUX_CMT=
13626 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040013627cygwin)
13628 CYGWIN_CMT=
13629 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013630 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013631esac
13632
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013633
13634
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013635case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013636linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013637 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13638 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013639 { $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 +010013640$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013641 fi
13642 ;;
13643esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013644case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013645linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013646 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013647 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013648 { $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 +010013649$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013650 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013652$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013653 mandir=/usr/share/man
13654 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013655 fi
13656;;
13657esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013658if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000013659 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013660 root_prefix="$ac_default_prefix"
13661 else
13662 root_prefix="$prefix"
13663 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040013664 root_bindir=$bindir
13665 root_sbindir=$sbindir
13666 root_libdir=$libdir
13667 root_sysconfdir=$sysconfdir
13668else
13669 root_bindir='${root_prefix}/bin'
13670 root_sbindir='${root_prefix}/sbin'
13671 root_libdir='${root_prefix}/lib'
13672 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013673fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013674if test "$bindir" != '${exec_prefix}/bin'; then
13675 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013677$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013678fi
13679if test "$sbindir" != '${exec_prefix}/sbin'; then
13680 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013682$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013683fi
13684if test "$libdir" != '${exec_prefix}/lib'; then
13685 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013687$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013688fi
13689if test "$sysconfdir" != '${prefix}/etc'; then
13690 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013692$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013693fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013694
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013695
13696
13697
13698
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013699
13700# Check whether --with-multiarch was given.
13701if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050013702 withval=$with_multiarch; if test "$withval" = "lib64"; then
13703 libdir=/usr/lib64
13704 root_libdir=/lib64
13705else
13706 libdir=$libdir/$withval
13707 root_libdir=$root_libdir/$withval
13708fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013709
13710fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050013711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13712$as_echo_n "checking whether we can link with -static... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013713if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013714 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000013715else
13716 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013718/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000013719#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013720int
13721main ()
13722{
Theodore Ts'oae851481997-04-29 18:13:24 +000013723fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013724 ;
13725 return 0;
13726}
13727_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013728if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000013729 ac_cv_e2fsprogs_use_static=yes
13730else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013731 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000013732fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013733rm -f core conftest.err conftest.$ac_objext \
13734 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000013735LDFLAGS=$SAVE_LDFLAGS
13736fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013737
Theodore Ts'odefde781999-01-04 07:39:19 +000013738case "$host_os" in
13739solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013740 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000013741;;
13742esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013744$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000013745LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000013746if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013747 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000013748fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013749
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013750case "$host_os" in
13751darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013753$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013754
13755$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013756
13757 ;;
13758esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013759SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13760ET_DIR=`cd ${srcdir}/lib/et; pwd`
13761
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013762
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013763if test "$cross_compiling" = yes ; then
13764 DO_TEST_SUITE=
13765else
13766 DO_TEST_SUITE=check
13767fi
13768
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013769INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13770if test -n "$CPPFLAGS" ; then
13771 INCLUDES="$INCLUDES $CPPFLAGS"
13772fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013773if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013774 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013775fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050013776if test -n "$WITH_DIET_LIBC" ; then
13777 INCLUDES="$INCLUDES -D_REENTRANT"
13778fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013779
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -040013780
13781 MKINSTALLDIRS=
13782 if test -n "$ac_aux_dir"; then
13783 case "$ac_aux_dir" in
13784 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13785 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13786 esac
13787 fi
13788 if test -z "$MKINSTALLDIRS"; then
13789 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13790 fi
13791
13792
Theodore Ts'odd947da2005-11-09 18:37:07 -040013793if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050013794 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013795 BUILD_LDFLAGS="$LDFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013796fi
13797
13798
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013799test -d lib || mkdir lib
13800test -d include || mkdir include
13801test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000013802test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050013803for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040013804 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013805 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13806 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013807 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070013808 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050013809 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
13810 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050013811 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013812 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020013813 resize/Makefile doc/Makefile intl/Makefile \
13814 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013815 if test -d `dirname ${srcdir}/$i` ; then
13816 outlist="$outlist $i"
13817 fi
13818done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013819ac_config_files="$ac_config_files $outlist"
13820
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013821cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013822# This file is a shell script that caches the results of configure
13823# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013824# scripts and configure runs, see configure's option --config-cache.
13825# It is not useful on other systems. If it contains results you don't
13826# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013827#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013828# config.status only pays attention to the cache file if you give it
13829# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013830#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013831# `ac_cv_env_foo' variables (set or unset) will be overridden when
13832# loading this file, other *unset* `ac_cv_foo' will be assigned the
13833# following values.
13834
13835_ACEOF
13836
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013837# The following way of writing the cache mishandles newlines in values,
13838# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013839# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013840# Ultrix sh set writes to stderr and can't be redirected directly,
13841# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013842(
13843 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13844 eval ac_val=\$$ac_var
13845 case $ac_val in #(
13846 *${as_nl}*)
13847 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013848 *_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 +010013849$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013850 esac
13851 case $ac_var in #(
13852 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013853 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013854 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013855 esac ;;
13856 esac
13857 done
13858
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013859 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013860 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13861 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013862 # `set' does not quote correctly, so add quotes: double-quote
13863 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013864 sed -n \
13865 "s/'/'\\\\''/g;
13866 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013867 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013868 *)
13869 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013870 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013871 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013872 esac |
13873 sort
13874) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013875 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040013876 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013877 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040013878 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013879 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13880 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040013881 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13882 :end' >>confcache
13883if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13884 if test -w "$cache_file"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013885 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013886 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013887$as_echo "$as_me: updating cache $cache_file" >&6;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013888 if test ! -f "$cache_file" || test -h "$cache_file"; then
13889 cat confcache >"$cache_file"
13890 else
13891 case $cache_file in #(
13892 */* | ?:*)
13893 mv -f confcache "$cache_file"$$ &&
13894 mv -f "$cache_file"$$ "$cache_file" ;; #(
13895 *)
13896 mv -f confcache "$cache_file" ;;
13897 esac
13898 fi
13899 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013900 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013901 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013902$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013903 fi
13904fi
13905rm -f confcache
13906
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013907test "x$prefix" = xNONE && prefix=$ac_default_prefix
13908# Let make expand exec_prefix.
13909test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13910
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013911DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013912
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013913ac_libobjs=
13914ac_ltlibobjs=
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013915U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013916for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13917 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013918 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013919 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040013920 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13921 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013922 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13923 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013924done
13925LIBOBJS=$ac_libobjs
13926
13927LTLIBOBJS=$ac_ltlibobjs
13928
13929
13930
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013931
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013932: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013933ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013934ac_clean_files_save=$ac_clean_files
13935ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013936{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013937$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013938as_write_fail=0
13939cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013940#! $SHELL
13941# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013942# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013943# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013944# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013945
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013946debug=false
13947ac_cs_recheck=false
13948ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013949
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013950SHELL=\${CONFIG_SHELL-$SHELL}
13951export SHELL
13952_ASEOF
13953cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13954## -------------------- ##
13955## M4sh Initialization. ##
13956## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013957
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013958# Be more Bourne compatible
13959DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013960if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013961 emulate sh
13962 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013963 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013964 # is contrary to our usage. Disable this feature.
13965 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013966 setopt NO_GLOB_SUBST
13967else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013968 case `(set -o) 2>/dev/null` in #(
13969 *posix*) :
13970 set -o posix ;; #(
13971 *) :
13972 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013973esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013974fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013975
13976
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013977as_nl='
13978'
13979export as_nl
13980# Printing a long string crashes Solaris 7 /usr/bin/printf.
13981as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13982as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13983as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013984# Prefer a ksh shell builtin over an external printf program on Solaris,
13985# but without wasting forks for bash or zsh.
13986if test -z "$BASH_VERSION$ZSH_VERSION" \
13987 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13988 as_echo='print -r --'
13989 as_echo_n='print -rn --'
13990elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013991 as_echo='printf %s\n'
13992 as_echo_n='printf %s'
13993else
13994 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13995 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13996 as_echo_n='/usr/ucb/echo -n'
13997 else
13998 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13999 as_echo_n_body='eval
14000 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014001 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014002 *"$as_nl"*)
14003 expr "X$arg" : "X\\(.*\\)$as_nl";
14004 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14005 esac;
14006 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14007 '
14008 export as_echo_n_body
14009 as_echo_n='sh -c $as_echo_n_body as_echo'
14010 fi
14011 export as_echo_body
14012 as_echo='sh -c $as_echo_body as_echo'
14013fi
14014
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014015# The user is always right.
14016if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014017 PATH_SEPARATOR=:
14018 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14019 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14020 PATH_SEPARATOR=';'
14021 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014022fi
14023
Theodore Ts'oe1052142006-10-21 21:46:47 -040014024
14025# IFS
14026# We need space, tab and new line, in precisely that order. Quoting is
14027# there to prevent editors from complaining about space-tab.
14028# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14029# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014030IFS=" "" $as_nl"
14031
14032# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014033as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014034case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014035 *[\\/]* ) as_myself=$0 ;;
14036 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014037for as_dir in $PATH
14038do
14039 IFS=$as_save_IFS
14040 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014041 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14042 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040014043IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014044
Theodore Ts'oe1052142006-10-21 21:46:47 -040014045 ;;
14046esac
14047# We did not find ourselves, most probably we were run as `sh COMMAND'
14048# in which case we are not to be found in the path.
14049if test "x$as_myself" = x; then
14050 as_myself=$0
14051fi
14052if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014053 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014054 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014055fi
14056
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014057# Unset variables that we do not need and which cause bugs (e.g. in
14058# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14059# suppresses any "Segmentation fault" message there. '((' could
14060# trigger a bug in pdksh 5.2.14.
14061for as_var in BASH_ENV ENV MAIL MAILPATH
14062do eval test x\${$as_var+set} = xset \
14063 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040014064done
14065PS1='$ '
14066PS2='> '
14067PS4='+ '
14068
14069# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014070LC_ALL=C
14071export LC_ALL
14072LANGUAGE=C
14073export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040014074
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014075# CDPATH.
14076(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14077
14078
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014079# as_fn_error STATUS ERROR [LINENO LOG_FD]
14080# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014081# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14082# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014083# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014084as_fn_error ()
14085{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014086 as_status=$1; test $as_status -eq 0 && as_status=1
14087 if test "$4"; then
14088 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14089 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014090 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014091 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014092 as_fn_exit $as_status
14093} # as_fn_error
14094
14095
14096# as_fn_set_status STATUS
14097# -----------------------
14098# Set $? to STATUS, without forking.
14099as_fn_set_status ()
14100{
14101 return $1
14102} # as_fn_set_status
14103
14104# as_fn_exit STATUS
14105# -----------------
14106# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14107as_fn_exit ()
14108{
14109 set +e
14110 as_fn_set_status $1
14111 exit $1
14112} # as_fn_exit
14113
14114# as_fn_unset VAR
14115# ---------------
14116# Portably unset VAR.
14117as_fn_unset ()
14118{
14119 { eval $1=; unset $1;}
14120}
14121as_unset=as_fn_unset
14122# as_fn_append VAR VALUE
14123# ----------------------
14124# Append the text in VALUE to the end of the definition contained in VAR. Take
14125# advantage of any shell optimizations that allow amortized linear growth over
14126# repeated appends, instead of the typical quadratic growth present in naive
14127# implementations.
14128if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14129 eval 'as_fn_append ()
14130 {
14131 eval $1+=\$2
14132 }'
14133else
14134 as_fn_append ()
14135 {
14136 eval $1=\$$1\$2
14137 }
14138fi # as_fn_append
14139
14140# as_fn_arith ARG...
14141# ------------------
14142# Perform arithmetic evaluation on the ARGs, and store the result in the
14143# global $as_val. Take advantage of shells that can avoid forks. The arguments
14144# must be portable across $(()) and expr.
14145if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14146 eval 'as_fn_arith ()
14147 {
14148 as_val=$(( $* ))
14149 }'
14150else
14151 as_fn_arith ()
14152 {
14153 as_val=`expr "$@" || test $? -eq 1`
14154 }
14155fi # as_fn_arith
14156
14157
Theodore Ts'oe1052142006-10-21 21:46:47 -040014158if expr a : '\(a\)' >/dev/null 2>&1 &&
14159 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14160 as_expr=expr
14161else
14162 as_expr=false
14163fi
14164
14165if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14166 as_basename=basename
14167else
14168 as_basename=false
14169fi
14170
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014171if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14172 as_dirname=dirname
14173else
14174 as_dirname=false
14175fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014176
Theodore Ts'oe1052142006-10-21 21:46:47 -040014177as_me=`$as_basename -- "$0" ||
14178$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14179 X"$0" : 'X\(//\)$' \| \
14180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014181$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014182 sed '/^.*\/\([^/][^/]*\)\/*$/{
14183 s//\1/
14184 q
14185 }
14186 /^X\/\(\/\/\)$/{
14187 s//\1/
14188 q
14189 }
14190 /^X\/\(\/\).*/{
14191 s//\1/
14192 q
14193 }
14194 s/.*/./; q'`
14195
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014196# Avoid depending upon Character Ranges.
14197as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14198as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14199as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14200as_cr_digits='0123456789'
14201as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040014202
14203ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014204case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014205-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014206 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014207 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014208 xy) ECHO_C='\c';;
14209 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14210 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014211 esac;;
14212*)
14213 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014214esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014215
14216rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040014217if test -d conf$$.dir; then
14218 rm -f conf$$.dir/conf$$.file
14219else
14220 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014221 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040014222fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014223if (echo >conf$$.file) 2>/dev/null; then
14224 if ln -s conf$$.file conf$$ 2>/dev/null; then
14225 as_ln_s='ln -s'
14226 # ... but there are two gotchas:
14227 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14228 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014229 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014230 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014231 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014232 elif ln conf$$.file conf$$ 2>/dev/null; then
14233 as_ln_s=ln
14234 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014235 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014236 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014237else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014238 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014239fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014240rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14241rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014242
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014243
14244# as_fn_mkdir_p
14245# -------------
14246# Create "$as_dir" as a directory, including parents if necessary.
14247as_fn_mkdir_p ()
14248{
14249
14250 case $as_dir in #(
14251 -*) as_dir=./$as_dir;;
14252 esac
14253 test -d "$as_dir" || eval $as_mkdir_p || {
14254 as_dirs=
14255 while :; do
14256 case $as_dir in #(
14257 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14258 *) as_qdir=$as_dir;;
14259 esac
14260 as_dirs="'$as_qdir' $as_dirs"
14261 as_dir=`$as_dirname -- "$as_dir" ||
14262$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14263 X"$as_dir" : 'X\(//\)[^/]' \| \
14264 X"$as_dir" : 'X\(//\)$' \| \
14265 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14266$as_echo X"$as_dir" |
14267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14268 s//\1/
14269 q
14270 }
14271 /^X\(\/\/\)[^/].*/{
14272 s//\1/
14273 q
14274 }
14275 /^X\(\/\/\)$/{
14276 s//\1/
14277 q
14278 }
14279 /^X\(\/\).*/{
14280 s//\1/
14281 q
14282 }
14283 s/.*/./; q'`
14284 test -d "$as_dir" && break
14285 done
14286 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014287 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014288
14289
14290} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014291if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014292 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014293else
14294 test -d ./-p && rmdir ./-p
14295 as_mkdir_p=false
14296fi
14297
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014298
14299# as_fn_executable_p FILE
14300# -----------------------
14301# Test if FILE is an executable regular file.
14302as_fn_executable_p ()
14303{
14304 test -f "$1" && test -x "$1"
14305} # as_fn_executable_p
14306as_test_x='test -x'
14307as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014308
14309# Sed expression to map a string onto a valid CPP name.
14310as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14311
14312# Sed expression to map a string onto a valid variable name.
14313as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14314
14315
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014316exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014317## ----------------------------------- ##
14318## Main body of $CONFIG_STATUS script. ##
14319## ----------------------------------- ##
14320_ASEOF
14321test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014322
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14324# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014325# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040014326# values after options handling.
14327ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014328This file was extended by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014329generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014330
14331 CONFIG_FILES = $CONFIG_FILES
14332 CONFIG_HEADERS = $CONFIG_HEADERS
14333 CONFIG_LINKS = $CONFIG_LINKS
14334 CONFIG_COMMANDS = $CONFIG_COMMANDS
14335 $ $0 $@
14336
Theodore Ts'oe1052142006-10-21 21:46:47 -040014337on `(hostname || uname -n) 2>/dev/null | sed 1q`
14338"
14339
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014340_ACEOF
14341
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014342case $ac_config_files in *"
14343"*) set x $ac_config_files; shift; ac_config_files=$*;;
14344esac
14345
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014346case $ac_config_headers in *"
14347"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14348esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014349
14350
14351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014352# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014353config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014354config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014355config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014356
Theodore Ts'oe1052142006-10-21 21:46:47 -040014357_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014358
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014360ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014361\`$as_me' instantiates files and other configuration actions
14362from templates according to the current configuration. Unless the files
14363and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014364
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014365Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014366
14367 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014368 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014369 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014370 -q, --quiet, --silent
14371 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014372 -d, --debug don't remove temporary files
14373 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014374 --file=FILE[:TEMPLATE]
14375 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014376 --header=FILE[:TEMPLATE]
14377 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014378
14379Configuration files:
14380$config_files
14381
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014382Configuration headers:
14383$config_headers
14384
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014385Configuration commands:
14386$config_commands
14387
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014388Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014389
Theodore Ts'oe1052142006-10-21 21:46:47 -040014390_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014392ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014393ac_cs_version="\\
14394config.status
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014395configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014396 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014397
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014398Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014399This config.status script is free software; the Free Software Foundation
14400gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040014401
14402ac_pwd='$ac_pwd'
14403srcdir='$srcdir'
14404INSTALL='$INSTALL'
Theodore Ts'o93613952014-07-03 23:44:13 -040014405MKDIR_P='$MKDIR_P'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014406AWK='$AWK'
14407test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014408_ACEOF
14409
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14411# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014412ac_need_defaults=:
14413while test $# != 0
14414do
14415 case $1 in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014416 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014417 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14418 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014419 ac_shift=:
14420 ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014421 --*=)
14422 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14423 ac_optarg=
14424 ac_shift=:
14425 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014426 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014427 ac_option=$1
14428 ac_optarg=$2
14429 ac_shift=shift
14430 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014431 esac
14432
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014433 case $ac_option in
14434 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014435 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14436 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014437 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014438 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014439 --config | --confi | --conf | --con | --co | --c )
14440 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014441 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014442 debug=: ;;
14443 --file | --fil | --fi | --f )
14444 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014445 case $ac_optarg in
14446 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014447 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014448 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014449 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014450 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014451 --header | --heade | --head | --hea )
14452 $ac_shift
14453 case $ac_optarg in
14454 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14455 esac
14456 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14457 ac_need_defaults=false;;
14458 --he | --h)
14459 # Conflict between --help and --header
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014460 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014461Try \`$0 --help' for more information.";;
14462 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014463 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14465 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14466 ac_cs_silent=: ;;
14467
14468 # This is an error.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014469 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014470Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014471
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014472 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014473 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014474
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014475 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014476 shift
14477done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014478
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014479ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014480
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014481if $ac_cs_silent; then
14482 exec 6>/dev/null
14483 ac_configure_extra_args="$ac_configure_extra_args --silent"
14484fi
14485
14486_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014488if \$ac_cs_recheck; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014489 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014490 shift
14491 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14492 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014493 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014494 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014495fi
14496
14497_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014499exec 5>>config.log
14500{
14501 echo
14502 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14503## Running $as_me. ##
14504_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014505 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014506} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014507
Theodore Ts'oe1052142006-10-21 21:46:47 -040014508_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014510#
Theodore Ts'oe1052142006-10-21 21:46:47 -040014511# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014512#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014513# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014514 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'o93613952014-07-03 23:44:13 -040014515 # from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014516 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014517 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14518 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014519
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014521_ACEOF
14522
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014524
14525# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014526for ac_config_target in $ac_config_targets
14527do
Theodore Ts'oe1052142006-10-21 21:46:47 -040014528 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014529 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'o93613952014-07-03 23:44:13 -040014530 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014531 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14532
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014533 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014534 esac
14535done
14536
Theodore Ts'oe1052142006-10-21 21:46:47 -040014537
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014538# If the user did not use the arguments to specify the items to instantiate,
14539# then the envvar interface is used. Set only those that are not.
14540# We use the long form for the default assignment because of an extremely
14541# bizarre bug on SunOS 4.1.3.
14542if $ac_need_defaults; then
14543 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014544 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014545 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14546fi
14547
14548# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040014549# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014550# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014551# Hook for its removal unless debugging.
14552# Note that there is a small window in which the directory will not be cleaned:
14553# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014554$debug ||
14555{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014556 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040014557 trap 'exit_status=$?
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014558 : "${ac_tmp:=$tmp}"
14559 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040014560' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014561 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014562}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014563# Create a (secure) tmp directory for tmp files.
14564
14565{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014566 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014567 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014568} ||
14569{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014570 tmp=./conf$$-$RANDOM
14571 (umask 077 && mkdir "$tmp")
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014572} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14573ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014574
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014575# Set up the scripts for CONFIG_FILES section.
14576# No need to generate them if there are no CONFIG_FILES.
14577# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014578if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014579
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014580if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14581 ac_cs_awk_getline=:
14582 ac_cs_awk_pipe_init=
14583 ac_cs_awk_read_file='
14584 while ((getline aline < (F[key])) > 0)
14585 print(aline)
14586 close(F[key])'
14587 ac_cs_awk_pipe_fini=
14588else
14589 ac_cs_awk_getline=false
14590 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14591 ac_cs_awk_read_file='
14592 print "|#_!!_#|"
14593 print "cat " F[key] " &&"
14594 '$ac_cs_awk_pipe_init
14595 # The final `:' finishes the AND list.
14596 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14597fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014598ac_cr=`echo X | tr X '\015'`
14599# On cygwin, bash can eat \r inside `` if the user requested igncr.
14600# But we know of no other shell where ac_cr would be empty at this
14601# point, so we can use a bashism as a fallback.
14602if test "x$ac_cr" = x; then
14603 eval ac_cr=\$\'\\r\'
14604fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014605ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14606if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014607 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014608else
14609 ac_cs_awk_cr=$ac_cr
14610fi
14611
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014612echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014613_ACEOF
14614
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014615# Create commands to substitute file output variables.
14616{
14617 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014618 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014619 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14620 echo "_ACAWK" &&
14621 echo "_ACEOF"
14622} >conf$$files.sh &&
14623. ./conf$$files.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014625rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014626
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014627{
14628 echo "cat >conf$$subs.awk <<_ACEOF" &&
14629 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14630 echo "_ACEOF"
14631} >conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014632 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14633ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014634ac_delim='%!_!# '
14635for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014636 . ./conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014637 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014638
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014639 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14640 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014641 break
14642 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014643 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014644 else
14645 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014646 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014647done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014648rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014649
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014651cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014652_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014653sed -n '
14654h
14655s/^/S["/; s/!.*/"]=/
14656p
14657g
14658s/^[^!]*!//
14659:repl
14660t repl
14661s/'"$ac_delim"'$//
14662t delim
14663:nl
14664h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014665s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014666t more1
14667s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14668p
14669n
14670b repl
14671:more1
14672s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14673p
14674g
14675s/.\{148\}//
14676t nl
14677:delim
14678h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014679s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014680t more2
14681s/["\\]/\\&/g; s/^/"/; s/$/"/
14682p
14683b
14684:more2
14685s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14686p
14687g
14688s/.\{148\}//
14689t delim
14690' <conf$$subs.awk | sed '
14691/^[^""]/{
14692 N
14693 s/\n//
14694}
14695' >>$CONFIG_STATUS || ac_write_fail=1
14696rm -f conf$$subs.awk
14697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14698_ACAWK
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014699cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014700 for (key in S) S_is_set[key] = 1
14701 FS = ""
14702 \$ac_cs_awk_pipe_init
14703}
14704{
14705 line = $ 0
14706 nfields = split(line, field, "@")
14707 substed = 0
14708 len = length(field[1])
14709 for (i = 2; i < nfields; i++) {
14710 key = field[i]
14711 keylen = length(key)
14712 if (S_is_set[key]) {
14713 value = S[key]
14714 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14715 len += length(value) + length(field[++i])
14716 substed = 1
14717 } else
14718 len += 1 + keylen
14719 }
14720 if (nfields == 3 && !substed) {
14721 key = field[2]
14722 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14723 \$ac_cs_awk_read_file
14724 next
14725 }
14726 }
14727 print line
14728}
14729\$ac_cs_awk_pipe_fini
14730_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040014731_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14733if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14734 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14735else
14736 cat
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014737fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14738 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014739_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014740
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014741# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14742# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040014743# trailing colons and then remove the whole line if VPATH becomes empty
14744# (actually we leave an empty line to preserve line numbers).
14745if test "x$srcdir" = x.; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014746 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14747h
14748s///
14749s/^/:/
14750s/[ ]*$/:/
14751s/:\$(srcdir):/:/g
14752s/:\${srcdir}:/:/g
14753s/:@srcdir@:/:/g
14754s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014755s/:*$//
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014756x
14757s/\(=[ ]*\).*/\1/
14758G
14759s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014760s/^[^=]*=[ ]*$//
14761}'
14762fi
14763
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014765fi # test -n "$CONFIG_FILES"
14766
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014767# Set up the scripts for CONFIG_HEADERS section.
14768# No need to generate them if there are no CONFIG_HEADERS.
14769# This happens for instance with `./config.status Makefile'.
14770if test -n "$CONFIG_HEADERS"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014771cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014772BEGIN {
14773_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014774
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014775# Transform confdefs.h into an awk script `defines.awk', embedded as
14776# here-document in config.status, that substitutes the proper values into
14777# config.h.in to produce config.h.
14778
14779# Create a delimiter string that does not exist in confdefs.h, to ease
14780# handling of long lines.
14781ac_delim='%!_!# '
14782for ac_last_try in false false :; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014783 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14784 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014785 break
14786 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014787 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014788 else
14789 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14790 fi
14791done
14792
14793# For the awk script, D is an array of macro values keyed by name,
14794# likewise P contains macro parameters if any. Preserve backslash
14795# newline sequences.
14796
14797ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14798sed -n '
14799s/.\{148\}/&'"$ac_delim"'/g
14800t rset
14801:rset
14802s/^[ ]*#[ ]*define[ ][ ]*/ /
14803t def
14804d
14805:def
14806s/\\$//
14807t bsnl
14808s/["\\]/\\&/g
14809s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14810D["\1"]=" \3"/p
14811s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14812d
14813:bsnl
14814s/["\\]/\\&/g
14815s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14816D["\1"]=" \3\\\\\\n"\\/p
14817t cont
14818s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14819t cont
14820d
14821:cont
14822n
14823s/.\{148\}/&'"$ac_delim"'/g
14824t clear
14825:clear
14826s/\\$//
14827t bsnlc
14828s/["\\]/\\&/g; s/^/"/; s/$/"/p
14829d
14830:bsnlc
14831s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14832b cont
14833' <confdefs.h | sed '
14834s/'"$ac_delim"'/"\\\
14835"/g' >>$CONFIG_STATUS || ac_write_fail=1
14836
14837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14838 for (key in D) D_is_set[key] = 1
14839 FS = ""
14840}
14841/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14842 line = \$ 0
14843 split(line, arg, " ")
14844 if (arg[1] == "#") {
14845 defundef = arg[2]
14846 mac1 = arg[3]
14847 } else {
14848 defundef = substr(arg[1], 2)
14849 mac1 = arg[2]
14850 }
14851 split(mac1, mac2, "(") #)
14852 macro = mac2[1]
14853 prefix = substr(line, 1, index(line, defundef) - 1)
14854 if (D_is_set[macro]) {
14855 # Preserve the white space surrounding the "#".
14856 print prefix "define", macro P[macro] D[macro]
14857 next
14858 } else {
14859 # Replace #undef with comments. This is necessary, for example,
14860 # in the case of _POSIX_SOURCE, which is predefined and required
14861 # on some systems where configure will not decide to define it.
14862 if (defundef == "undef") {
14863 print "/*", prefix defundef, macro, "*/"
14864 next
14865 }
14866 }
14867}
14868{ print }
14869_ACAWK
14870_ACEOF
14871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014872 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014873fi # test -n "$CONFIG_HEADERS"
14874
14875
14876eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014877shift
14878for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040014879do
14880 case $ac_tag in
14881 :[FHLC]) ac_mode=$ac_tag; continue;;
14882 esac
14883 case $ac_mode$ac_tag in
14884 :[FHL]*:*);;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014885 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014886 :[FH]-) ac_tag=-:-;;
14887 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14888 esac
14889 ac_save_IFS=$IFS
14890 IFS=:
14891 set x $ac_tag
14892 IFS=$ac_save_IFS
14893 shift
14894 ac_file=$1
14895 shift
14896
14897 case $ac_mode in
14898 :L) ac_source=$1;;
14899 :[FH])
14900 ac_file_inputs=
14901 for ac_f
14902 do
14903 case $ac_f in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014904 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014905 *) # Look for the file first in the build tree, then in the source tree
14906 # (if the path is not absolute). The absolute path cannot be DOS-style,
14907 # because $ac_f cannot contain `:'.
14908 test -f "$ac_f" ||
14909 case $ac_f in
14910 [\\/$]*) false;;
14911 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14912 esac ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014913 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014914 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014915 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014916 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014917 done
14918
14919 # Let's still pretend it is `configure' which instantiates (i.e., don't
14920 # use $as_me), people would be surprised to read:
14921 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014922 configure_input='Generated from '`
14923 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14924 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014925 if test x"$ac_file" != x-; then
14926 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014928$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014929 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014930 # Neutralize special characters interpreted by sed in replacement strings.
14931 case $configure_input in #(
14932 *\&* | *\|* | *\\* )
14933 ac_sed_conf_input=`$as_echo "$configure_input" |
14934 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14935 *) ac_sed_conf_input=$configure_input;;
14936 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014937
14938 case $ac_tag in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014939 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014941 esac
14942 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014943 esac
14944
Theodore Ts'oe1052142006-10-21 21:46:47 -040014945 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014946$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14947 X"$ac_file" : 'X\(//\)[^/]' \| \
14948 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040014949 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014950$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14952 s//\1/
14953 q
14954 }
14955 /^X\(\/\/\)[^/].*/{
14956 s//\1/
14957 q
14958 }
14959 /^X\(\/\/\)$/{
14960 s//\1/
14961 q
14962 }
14963 /^X\(\/\).*/{
14964 s//\1/
14965 q
14966 }
14967 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014968 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014969 ac_builddir=.
14970
Theodore Ts'oe1052142006-10-21 21:46:47 -040014971case "$ac_dir" in
14972.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14973*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014974 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014975 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014976 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014977 case $ac_top_builddir_sub in
14978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14980 esac ;;
14981esac
14982ac_abs_top_builddir=$ac_pwd
14983ac_abs_builddir=$ac_pwd$ac_dir_suffix
14984# for backward compatibility:
14985ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014986
14987case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014988 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014989 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014990 ac_top_srcdir=$ac_top_builddir_sub
14991 ac_abs_top_srcdir=$ac_pwd ;;
14992 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014993 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014994 ac_top_srcdir=$srcdir
14995 ac_abs_top_srcdir=$srcdir ;;
14996 *) # Relative name.
14997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14998 ac_top_srcdir=$ac_top_build_prefix$srcdir
14999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015000esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015001ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015002
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015003
Theodore Ts'oe1052142006-10-21 21:46:47 -040015004 case $ac_mode in
15005 :F)
15006 #
15007 # CONFIG_FILE
15008 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015009
15010 case $INSTALL in
15011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015012 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015013 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040015014 ac_MKDIR_P=$MKDIR_P
15015 case $MKDIR_P in
15016 [\\/$]* | ?:[\\/]* ) ;;
15017 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15018 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015019_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015020
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040015022# If the template does not know about datarootdir, expand it.
15023# FIXME: This hack should be removed a few years after 2.60.
15024ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015025ac_sed_dataroot='
15026/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040015027 p
15028 q
15029}
15030/@datadir@/p
15031/@docdir@/p
15032/@infodir@/p
15033/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015034/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015035case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040015036*datarootdir*) ac_datarootdir_seen=yes;;
15037*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015038 { $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 +010015039$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015040_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040015042 ac_datarootdir_hack='
15043 s&@datadir@&$datadir&g
15044 s&@docdir@&$docdir&g
15045 s&@infodir@&$infodir&g
15046 s&@localedir@&$localedir&g
15047 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015048 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015049esac
15050_ACEOF
15051
15052# Neutralize VPATH when `$srcdir' = `.'.
15053# Shell code in configure.ac might set extrasub.
15054# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15056ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015057$extrasub
15058_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015060:t
15061/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015062s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015063s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015064s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015065s&@srcdir@&$ac_srcdir&;t t
15066s&@abs_srcdir@&$ac_abs_srcdir&;t t
15067s&@top_srcdir@&$ac_top_srcdir&;t t
15068s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15069s&@builddir@&$ac_builddir&;t t
15070s&@abs_builddir@&$ac_abs_builddir&;t t
15071s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15072s&@INSTALL@&$ac_INSTALL&;t t
Theodore Ts'o93613952014-07-03 23:44:13 -040015073s&@MKDIR_P@&$ac_MKDIR_P&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015074$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015075"
15076eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15077if $ac_cs_awk_getline; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015078 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015079else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015080 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15081fi \
15082 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015083
Theodore Ts'oe1052142006-10-21 21:46:47 -040015084test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015085 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15086 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15087 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015089which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015090$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015091which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015092
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015093 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015094 case $ac_file in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015095 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15096 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015097 esac \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015099 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015100 :H)
15101 #
15102 # CONFIG_HEADER
15103 #
15104 if test x"$ac_file" != x-; then
15105 {
15106 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015107 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15108 } >"$ac_tmp/config.h" \
15109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15110 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015111 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15112$as_echo "$as_me: $ac_file is unchanged" >&6;}
15113 else
15114 rm -f "$ac_file"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015115 mv "$ac_tmp/config.h" "$ac_file" \
15116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015117 fi
15118 else
15119 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015120 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15121 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015122 fi
15123 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015124
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015125 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015126$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015127 ;;
15128 esac
15129
15130
15131 case $ac_file$ac_mode in
Theodore Ts'o93613952014-07-03 23:44:13 -040015132 "po-directories":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015133 for ac_file in $CONFIG_FILES; do
15134 # Support "outfile[:infile[:infile...]]"
15135 case "$ac_file" in
15136 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000015137 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015138 # PO directories have a Makefile.in generated from Makefile.in.in.
15139 case "$ac_file" in */Makefile.in)
15140 # Adjust a relative srcdir.
15141 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o93613952014-07-03 23:44:13 -040015142 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015143 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15144 # In autoconf-2.13 it is called $ac_given_srcdir.
15145 # In autoconf-2.50 it is called $srcdir.
15146 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15147 case "$ac_given_srcdir" in
15148 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15149 /*) top_srcdir="$ac_given_srcdir" ;;
15150 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15151 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040015152 # Treat a directory as a PO directory if and only if it has a
15153 # POTFILES.in file. This allows packages to have multiple PO
15154 # directories under different names or in different locations.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015155 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15156 rm -f "$ac_dir/POTFILES"
15157 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
Theodore Ts'o93613952014-07-03 23:44:13 -040015158 gt_tab=`printf '\t'`
15159 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015160 POMAKEFILEDEPS="POTFILES.in"
15161 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015162 # on $ac_dir but don't depend on user-specified configuration
15163 # parameters.
15164 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15165 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015166 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015167 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15168 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040015169 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15170 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015171 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015172 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15173 else
15174 # The set of available languages was given in configure.in.
Theodore Ts'o93613952014-07-03 23:44:13 -040015175 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015176 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015177 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015178 # Compute POFILES
15179 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15180 # Compute UPDATEPOFILES
15181 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15182 # Compute DUMMYPOFILES
15183 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15184 # Compute GMOFILES
15185 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015186 case "$ac_given_srcdir" in
15187 .) srcdirpre= ;;
15188 *) srcdirpre='$(srcdir)/' ;;
15189 esac
15190 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015191 UPDATEPOFILES=
15192 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015193 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015194 for lang in $ALL_LINGUAS; do
15195 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015196 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15197 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015198 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015199 done
15200 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15201 # environment variable.
15202 INST_LINGUAS=
15203 if test -n "$ALL_LINGUAS"; then
15204 for presentlang in $ALL_LINGUAS; do
15205 useit=no
15206 if test "%UNSET%" != "$LINGUAS"; then
15207 desiredlanguages="$LINGUAS"
15208 else
15209 desiredlanguages="$ALL_LINGUAS"
15210 fi
15211 for desiredlang in $desiredlanguages; do
15212 # Use the presentlang catalog if desiredlang is
15213 # a. equal to presentlang, or
15214 # b. a variant of presentlang (because in this case,
15215 # presentlang can be used as a fallback for messages
15216 # which are not translated in the desiredlang catalog).
15217 case "$desiredlang" in
15218 "$presentlang"*) useit=yes;;
15219 esac
15220 done
15221 if test $useit = yes; then
15222 INST_LINGUAS="$INST_LINGUAS $presentlang"
15223 fi
15224 done
15225 fi
15226 CATALOGS=
15227 if test -n "$INST_LINGUAS"; then
15228 for lang in $INST_LINGUAS; do
15229 CATALOGS="$CATALOGS $lang.gmo"
15230 done
15231 fi
15232 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015233 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 -040015234 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15235 if test -f "$f"; then
15236 case "$f" in
15237 *.orig | *.bak | *~) ;;
15238 *) cat "$f" >> "$ac_dir/Makefile" ;;
15239 esac
15240 fi
15241 done
15242 fi
15243 ;;
15244 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015245 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015246
Theodore Ts'oe1052142006-10-21 21:46:47 -040015247 esac
15248done # for ac_tag
15249
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015250
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015251as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015252_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015253ac_clean_files=$ac_clean_files_save
15254
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015255test $ac_write_fail = 0 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015256 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015257
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015258
15259# configure is writing to config.log, and then calls config.status.
15260# config.status does its own redirection, appending to config.log.
15261# Unfortunately, on DOS this fails, as config.log is still kept open
15262# by configure, so config.status won't be able to write to it; its
15263# output is simply discarded. So we exec the FD to /dev/null,
15264# effectively closing config.log, so it can be properly (re)opened and
15265# appended to by config.status. When coming back to configure, we
15266# need to make the FD available again.
15267if test "$no_create" != yes; then
15268 ac_cs_success=:
15269 ac_config_status_args=
15270 test "$silent" = yes &&
15271 ac_config_status_args="$ac_config_status_args --quiet"
15272 exec 5>/dev/null
15273 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15274 exec 5>>config.log
15275 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15276 # would make configure fail if this is the last instruction.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015277 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015278fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015279if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015281$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15282fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015283
Theodore Ts'oee683a12005-02-05 15:53:56 -050015284if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi