blob: 8f6d6cb9cc1f6e3d1cd99a24cf7f654b43403d47 [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
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400628LDFLAGS_SHLIB
629CFLAGS_STLIB
630CFLAGS_SHLIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100631BUILD_LDFLAGS
632BUILD_CFLAGS
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -0400633MKINSTALLDIRS
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400634INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100635DO_TEST_SUITE
636ET_DIR
637SS_DIR
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400638LDFLAGS_STATIC
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100639root_sysconfdir
640root_libdir
641root_sbindir
642root_bindir
643root_prefix
644UNIX_CMT
645CYGWIN_CMT
646LINUX_CMT
647UNI_DIFF_OPTS
648SEM_INIT_LIB
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700649FUSE_CMT
650FUSE_LIB
Darrick J. Wongb291c112014-09-13 15:12:46 -0700651MAGIC_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100652SOCKET_LIB
Theodore Ts'o2dd680f2016-05-29 01:07:40 -0400653SIZEOF_TIME_T
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400654SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100655SIZEOF_LONG_LONG
656SIZEOF_LONG
657SIZEOF_INT
658SIZEOF_SHORT
659BUILD_CC
660MAKEINFO
661STRIP
662AR
663LDCONFIG
664PERL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100665AWK
666CHMOD
667RM
668CP
669MV
670LN_S
671LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400672ifNotGNUmake
673ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100674BINARY_TYPE
675POSUB
676LTLIBINTL
677LIBINTL
678INTLLIBS
679INTL_LIBTOOL_SUFFIX_PREFIX
680INTLOBJS
681GENCAT
682INSTOBJEXT
683DATADIRNAME
684CATOBJEXT
685USE_INCLUDED_LIBINTL
686BUILD_INCLUDED_LIBINTL
Theodore Ts'o93613952014-07-03 23:44:13 -0400687LTLIBC
688WINDRES
689WOE32
690WOE32DLL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100691HAVE_WPRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400692HAVE_NEWLOCALE
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100693HAVE_SNPRINTF
694HAVE_ASPRINTF
695HAVE_POSIX_PRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400696INTL_DEFAULT_VERBOSITY
697INTL_MACOSX_LIBS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100698GLIBC21
Theodore Ts'o93613952014-07-03 23:44:13 -0400699INTLBISON
700LTLIBICONV
701LIBICONV
702LTLIBMULTITHREAD
703LIBMULTITHREAD
704LTLIBTHREAD
705LIBTHREAD
706LIBPTH_PREFIX
707LTLIBPTH
708LIBPTH
709PRI_MACROS_BROKEN
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100710ALLOCA
Theodore Ts'o93613952014-07-03 23:44:13 -0400711HAVE_VISIBILITY
712CFLAG_VISIBILITY
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100713RANLIB
Theodore Ts'o93613952014-07-03 23:44:13 -0400714GLIBC2
715XGETTEXT_EXTRA_OPTIONS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100716MSGMERGE
Theodore Ts'o93613952014-07-03 23:44:13 -0400717XGETTEXT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100718XGETTEXT
Theodore Ts'o93613952014-07-03 23:44:13 -0400719GMSGFMT_015
720MSGFMT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100721GMSGFMT
722MSGFMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400723GETTEXT_MACRO_VERSION
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100724USE_NLS
Theodore Ts'o93613952014-07-03 23:44:13 -0400725SED
726MKDIR_P
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100727INSTALL_DATA
728INSTALL_SCRIPT
729INSTALL_PROGRAM
730SET_MAKE
731VERSION
732PACKAGE
733GETTEXT_PACKAGE
734UUIDD_CMT
735E2INITRD_MAN
736E2INITRD_PROG
737FSCK_MAN
738FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500739DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100740RESIZER_CMT
741IMAGER_CMT
742DEBUGFS_CMT
743BLKID_CMT
744DEPPROFILED_LIBBLKID
745PROFILED_LIBBLKID
746DEPSTATIC_LIBBLKID
747STATIC_LIBBLKID
748DEPLIBBLKID
749LIBBLKID
750UUID_CMT
751DEPPROFILED_LIBUUID
752PROFILED_LIBUUID
753DEPSTATIC_LIBUUID
754STATIC_LIBUUID
755DEPLIBUUID
756LIBUUID
Theodore Ts'o93613952014-07-03 23:44:13 -0400757PKG_CONFIG_LIBDIR
758PKG_CONFIG_PATH
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100759PKG_CONFIG
760TEST_IO_CMT
761PRIVATE_LIBS_CMT
762LDFLAG_DYNAMIC
763PROFILED_LIB_EXT
764STATIC_LIB_EXT
765LIB_EXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100766PROFILE_CMT
767BSDLIB_CMT
768ELF_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400769Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400770ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400771E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400772LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400773SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400774LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100775MAINTAINER_CMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400776EGREP
777GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100778CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400779RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500780DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100781OBJEXT
782EXEEXT
783ac_ct_CC
784CPPFLAGS
785LDFLAGS
786CFLAGS
787CC
788host_os
789host_vendor
790host_cpu
791host
792build_os
793build_vendor
794build_cpu
795build
796E2FSPROGS_PKGVER
797E2FSPROGS_VERSION
798E2FSPROGS_DAY
799E2FSPROGS_MONTH
800E2FSPROGS_YEAR
801target_alias
802host_alias
803build_alias
804LIBS
805ECHO_T
806ECHO_N
807ECHO_C
808DEFS
809mandir
810localedir
811libdir
812psdir
813pdfdir
814dvidir
815htmldir
816infodir
817docdir
818oldincludedir
819includedir
Theodore Ts'o2ab53822016-03-15 01:10:29 -0400820runstatedir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100821localstatedir
822sharedstatedir
823sysconfdir
824datadir
825datarootdir
826libexecdir
827sbindir
828bindir
829program_transform_name
830prefix
831exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500832PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100833PACKAGE_BUGREPORT
834PACKAGE_STRING
835PACKAGE_VERSION
836PACKAGE_TARNAME
837PACKAGE_NAME
838PATH_SEPARATOR
839SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400840ac_subst_files='MCONFIG
841MAKEFILE_ELF
842MAKEFILE_BSDLIB
843MAKEFILE_PROFILE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400844MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400845ASM_TYPES_HEADER
846PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100847ac_user_opts='
848enable_option_checking
849with_diet_libc
850with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100851with_ccopts
852with_ldopts
853with_root_prefix
854enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400855enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400856enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400857enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400858enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400859enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100860enable_elf_shlibs
861enable_bsd_shlibs
862enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500863enable_gcov
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400864enable_hardening
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100865enable_jbd_debug
866enable_blkid_debug
867enable_testio_debug
868enable_libuuid
869enable_libblkid
Theodore Ts'o3df60142013-06-16 16:14:40 -0400870enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100871enable_debugfs
872enable_imager
873enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500874enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100875enable_fsck
876enable_e2initrd_helper
877enable_tls
878enable_uuidd
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000879enable_mmp
Tony Breeds1625bf42012-07-30 14:44:12 -0400880enable_bmap_stats
881enable_bmap_stats_ops
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100882enable_nls
Theodore Ts'o93613952014-07-03 23:44:13 -0400883enable_threads
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100884with_gnu_ld
885enable_rpath
Theodore Ts'o93613952014-07-03 23:44:13 -0400886with_libpth_prefix
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100887with_libiconv_prefix
888with_included_gettext
889with_libintl_prefix
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700890enable_fuse2fs
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400891with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100892'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400893 ac_precious_vars='build_alias
894host_alias
895target_alias
896CC
897CFLAGS
898LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400899LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400900CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400901CPP
Theodore Ts'o93613952014-07-03 23:44:13 -0400902PKG_CONFIG
903PKG_CONFIG_PATH
904PKG_CONFIG_LIBDIR'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400905
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000906
907# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500908ac_init_help=
909ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100910ac_unrecognized_opts=
911ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000912# The variables have the same names as the options, with
913# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500914cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000915exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000916no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000917no_recursion=
918prefix=NONE
919program_prefix=NONE
920program_suffix=NONE
921program_transform_name=s,x,x,
922silent=
923site=
924srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000925verbose=
926x_includes=NONE
927x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500928
929# Installation directory options.
930# These are left unexpanded so users can "make install exec_prefix=/foo"
931# and all the variables that are supposed to be based on exec_prefix
932# by default will actually change.
933# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400934# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000935bindir='${exec_prefix}/bin'
936sbindir='${exec_prefix}/sbin'
937libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400938datarootdir='${prefix}/share'
939datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000940sysconfdir='${prefix}/etc'
941sharedstatedir='${prefix}/com'
942localstatedir='${prefix}/var'
Theodore Ts'o2ab53822016-03-15 01:10:29 -0400943runstatedir='${localstatedir}/run'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000944includedir='${prefix}/include'
945oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400946docdir='${datarootdir}/doc/${PACKAGE}'
947infodir='${datarootdir}/info'
948htmldir='${docdir}'
949dvidir='${docdir}'
950pdfdir='${docdir}'
951psdir='${docdir}'
952libdir='${exec_prefix}/lib'
953localedir='${datarootdir}/locale'
954mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000955
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000956ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400957ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000958for ac_option
959do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400962 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000963 ac_prev=
964 continue
965 fi
966
Theodore Ts'oe1052142006-10-21 21:46:47 -0400967 case $ac_option in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000968 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 *=) ac_optarg= ;;
970 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400971 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000972
973 # Accept the important Cygnus configure options, so we can diagnose typos.
974
Theodore Ts'oe1052142006-10-21 21:46:47 -0400975 case $ac_dashdash$ac_option in
976 --)
977 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000978
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500982 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000983
984 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500985 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500987 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000988
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500994 cache_file=$ac_optarg ;;
995
996 --config-cache | -C)
997 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000998
Theodore Ts'oe1052142006-10-21 21:46:47 -0400999 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001000 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001002 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001003
Theodore Ts'oe1052142006-10-21 21:46:47 -04001004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1010
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001011 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001013 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001015 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020"enable_$ac_useropt"
1021"*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001026
1027 -docdir | --docdir | --docdi | --doc | --do)
1028 ac_prev=docdir ;;
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1031
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 ac_prev=dvidir ;;
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001036
1037 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001039 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001041 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1045 *"
1046"enable_$ac_useropt"
1047"*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001052
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001060 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001061
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1064 with_gas=yes ;;
1065
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001072
1073 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001074 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001075 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001076 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001077
Theodore Ts'oe1052142006-10-21 21:46:47 -04001078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079 ac_prev=htmldir ;;
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081 | --ht=*)
1082 htmldir=$ac_optarg ;;
1083
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001089 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001090
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1092 ac_prev=infodir ;;
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001094 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001095
1096 -libdir | --libdir | --libdi | --libd)
1097 ac_prev=libdir ;;
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001099 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001100
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001106 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001107
Theodore Ts'oe1052142006-10-21 21:46:47 -04001108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1112
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001113 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001114 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001118 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001119
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121 ac_prev=mandir ;;
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001123 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001124
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1127 with_fp=no ;;
1128
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001130 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001131 no_create=yes ;;
1132
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135 no_recursion=yes ;;
1136
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001144 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001145
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147 ac_prev=prefix ;;
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001149 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001150
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001156 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001157
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001163 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001164
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001180 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001181
Theodore Ts'oe1052142006-10-21 21:46:47 -04001182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183 ac_prev=pdfdir ;;
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1186
1187 -psdir | --psdir | --psdi | --psd | --ps)
1188 ac_prev=psdir ;;
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190 psdir=$ac_optarg ;;
1191
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1194 silent=yes ;;
1195
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001196 -runstatedir | --runstatedir | --runstatedi | --runstated \
1197 | --runstate | --runstat | --runsta | --runst | --runs \
1198 | --run | --ru | --r)
1199 ac_prev=runstatedir ;;
1200 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1201 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1202 | --run=* | --ru=* | --r=*)
1203 runstatedir=$ac_optarg ;;
1204
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206 ac_prev=sbindir ;;
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001209 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001210
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1214 | --sha | --sh)
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001220 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001221
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001222 -site | --site | --sit)
1223 ac_prev=site ;;
1224 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001225 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001226
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228 ac_prev=srcdir ;;
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001230 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001231
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001237 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001238
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001239 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001240 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001242 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001243
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245 verbose=yes ;;
1246
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001249
1250 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001252 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001254 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259"with_$ac_useropt"
1260"*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001265
1266 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001267 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001268 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001270 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1274 *"
1275"with_$ac_useropt"
1276"*) ;;
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1279 esac
1280 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001281
1282 --x)
1283 # Obsolete; use --with-x.
1284 with_x=yes ;;
1285
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001291 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001292
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001298 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001299
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001300 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1301Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001302 ;;
1303
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001304 *=*)
1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001307 case $ac_envvar in #(
1308 '' | [0-9]* | *[!_$as_cr_alnum]* )
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001309 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001310 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001311 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001312 export $ac_envvar ;;
1313
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001314 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001315 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001319 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001320 ;;
1321
1322 esac
1323done
1324
1325if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001327 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001328fi
1329
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001330if test -n "$ac_unrecognized_opts"; then
1331 case $enable_option_checking in
1332 no) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001333 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001334 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335 esac
1336fi
1337
1338# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001339for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001342 libdir localedir mandir runstatedir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001343do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001344 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001345 # Remove trailing slashes.
1346 case $ac_val in
1347 */ )
1348 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349 eval $ac_var=\$ac_val;;
1350 esac
1351 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001352 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001353 [\\/$]* | ?:[\\/]* ) continue;;
1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001355 esac
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001356 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001357done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001358
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001365
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001370 elif test "x$build_alias" != "x$host_alias"; then
1371 cross_compiling=yes
1372 fi
1373fi
1374
1375ac_tool_prefix=
1376test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378test "$silent" = yes && exec 6>/dev/null
1379
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001380
Theodore Ts'oe1052142006-10-21 21:46:47 -04001381ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382ac_ls_di=`ls -di .` &&
1383ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001384 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001385test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001386 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001387
1388
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001389# Find the source files, if location was not specified.
1390if test -z "$srcdir"; then
1391 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001392 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001393 ac_confdir=`$as_dirname -- "$as_myself" ||
1394$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395 X"$as_myself" : 'X\(//\)[^/]' \| \
1396 X"$as_myself" : 'X\(//\)$' \| \
1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\/\)[^/].*/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)$/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\).*/{
1412 s//\1/
1413 q
1414 }
1415 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001416 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001417 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001418 srcdir=..
1419 fi
1420else
1421 ac_srcdir_defaulted=no
1422fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001423if test ! -r "$srcdir/$ac_unique_file"; then
1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001425 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001427ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428ac_abs_confdir=`(
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001429 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001430 pwd)`
1431# When building in place, set srcdir=.
1432if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 srcdir=.
1434fi
1435# Remove unnecessary trailing slashes from srcdir.
1436# Double slashes in file names in object file debugging info
1437# mess up M-x gdb in Emacs.
1438case $srcdir in
1439*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440esac
1441for ac_var in $ac_precious_vars; do
1442 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_${ac_var}_value=\$${ac_var}
1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001447
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001448#
1449# Report the --help message.
1450#
1451if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1454 cat <<_ACEOF
1455\`configure' configures this package to adapt to many kinds of systems.
1456
1457Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460VAR=VALUE. See below for descriptions of some of the useful variables.
1461
1462Defaults for the options are specified in brackets.
1463
1464Configuration:
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001469 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1474
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001475Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001477 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001479 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001480
1481By default, \`make install' will install all the files in
1482\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484for instance \`--prefix=\$HOME'.
1485
1486For better control, use the options below.
1487
1488Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001495 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001509_ACEOF
1510
1511 cat <<\_ACEOF
1512
1513System types:
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1516_ACEOF
1517fi
1518
1519if test -n "$ac_init_help"; then
1520
1521 cat <<\_ACEOF
1522
1523Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001524 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001525 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1526 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001527 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001528 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001529 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001530
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001531 --enable-symlink-build use symlinks while building instead of hard links
1532 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001533 --enable-elf-shlibs select ELF shared libraries
1534 --enable-bsd-shlibs select BSD shared libraries
1535 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001536 --enable-gcov build for coverage testing using gcov
Theodore Ts'ofd1677e2016-05-21 23:51:19 -04001537 --enable-hardening build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001538 --enable-jbd-debug enable journal debugging
1539 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001540 --disable-testio-debug disable the use of the test I/O manager for debugging
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001541 --enable-libuuid build and use private uuid library
1542 --enable-libblkid build and use private blkid library
Theodore Ts'o3df60142013-06-16 16:14:40 -04001543 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001544 --disable-debugfs disable support of debugfs program
1545 --disable-imager disable support of e2image program
1546 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001547 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001548 --enable-fsck build fsck wrapper program
1549 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001550 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001551 --disable-uuidd disable building the uuid daemon
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001552 --disable-mmp disable support mmp, Multi Mount Protection
Tony Breeds1625bf42012-07-30 14:44:12 -04001553 --disable-bmap-stats disable collection of bitmap stats.
1554 --enable-bmap-stats-ops enable collection of additional bitmap stats
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001555 --disable-nls do not use Native Language Support
Theodore Ts'o93613952014-07-03 23:44:13 -04001556 --enable-threads={posix|solaris|pth|windows}
1557 specify multithreading API
1558 --disable-threads build without multithread safety
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001559 --disable-rpath do not hardcode runtime library paths
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001560 --disable-fuse2fs do not build fuse2fs
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001561
1562Optional Packages:
1563 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1564 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001565 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001566 --with-cc no longer supported, use CC= instead
1567 --with-ccopts no longer supported, use CFLAGS= instead
1568 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001569 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
Theodore Ts'o93613952014-07-03 23:44:13 -04001570 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1571 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1572 --without-libpth-prefix don't search for libpth in includedir and libdir
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001573 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1574 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1575 --with-included-gettext use the GNU gettext library included here
1576 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1577 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001578 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001579
1580Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001585 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001586 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001587 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001588 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001589 PKG_CONFIG path to pkg-config utility
Theodore Ts'o93613952014-07-03 23:44:13 -04001590 PKG_CONFIG_PATH
1591 directories to add to pkg-config's search path
1592 PKG_CONFIG_LIBDIR
1593 path overriding pkg-config's built-in search path
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001594
1595Use these variables to override the choices made by `configure' or to help
1596it to find libraries and programs with nonstandard names/locations.
1597
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001598Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001599_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001600ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001601fi
1602
1603if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001606 test -d "$ac_dir" ||
1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001609 ac_builddir=.
1610
Theodore Ts'oe1052142006-10-21 21:46:47 -04001611case "$ac_dir" in
1612.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001615 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620 esac ;;
1621esac
1622ac_abs_top_builddir=$ac_pwd
1623ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624# for backward compatibility:
1625ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001626
1627case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001628 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001629 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001630 ac_top_srcdir=$ac_top_builddir_sub
1631 ac_abs_top_srcdir=$ac_pwd ;;
1632 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001633 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001634 ac_top_srcdir=$srcdir
1635 ac_abs_top_srcdir=$srcdir ;;
1636 *) # Relative name.
1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001640esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001641ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001642
Theodore Ts'oe1052142006-10-21 21:46:47 -04001643 cd "$ac_dir" || { ac_status=$?; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001651 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001653 fi || ac_status=$?
1654 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001655 done
1656fi
1657
Theodore Ts'oe1052142006-10-21 21:46:47 -04001658test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001659if $ac_init_version; then
1660 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001661configure
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001662generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001663
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001664Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001665This configure script is free software; the Free Software Foundation
1666gives unlimited permission to copy, distribute and modify it.
1667_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001668 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001669fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001670
1671## ------------------------ ##
1672## Autoconf initialization. ##
1673## ------------------------ ##
1674
1675# ac_fn_c_try_compile LINENO
1676# --------------------------
1677# Try to compile conftest.$ac_ext, and return whether this succeeded.
1678ac_fn_c_try_compile ()
1679{
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext
1682 if { { ac_try="$ac_compile"
1683case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_compile") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest.$ac_objext; then :
1701 ac_retval=0
1702else
1703 $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1
1707fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001709 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001710
1711} # ac_fn_c_try_compile
1712
1713# ac_fn_c_try_link LINENO
1714# -----------------------
1715# Try to link conftest.$ac_ext, and return whether this succeeded.
1716ac_fn_c_try_link ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext conftest$ac_exeext
1720 if { { ac_try="$ac_link"
1721case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>conftest.err
1728 ac_status=$?
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1733 fi
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_c_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest$ac_exeext && {
1739 test "$cross_compiling" = yes ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001740 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001741 }; then :
1742 ac_retval=0
1743else
1744 $as_echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=1
1748fi
1749 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1750 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1751 # interfere with the next link command; also delete a directory that is
1752 # left behind by Apple's compiler. We do this before executing the actions.
1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001755 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001756
1757} # ac_fn_c_try_link
1758
1759# ac_fn_c_try_cpp LINENO
1760# ----------------------
1761# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1762ac_fn_c_try_cpp ()
1763{
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 if { { ac_try="$ac_cpp conftest.$ac_ext"
1766case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769esac
1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771$as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1778 fi
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001780 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 }; then :
1784 ac_retval=0
1785else
1786 $as_echo "$as_me: failed program was:" >&5
1787sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=1
1790fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001792 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001793
1794} # ac_fn_c_try_cpp
1795
1796# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1797# -------------------------------------------------------
1798# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1799# the include files in INCLUDES and setting the cache variable VAR
1800# accordingly.
1801ac_fn_c_check_header_mongrel ()
1802{
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001804 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001807if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001808 $as_echo_n "(cached) " >&6
1809fi
1810eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812$as_echo "$ac_res" >&6; }
1813else
1814 # Is the header compilable?
1815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1816$as_echo_n "checking $2 usability... " >&6; }
1817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818/* end confdefs.h. */
1819$4
1820#include <$2>
1821_ACEOF
1822if ac_fn_c_try_compile "$LINENO"; then :
1823 ac_header_compiler=yes
1824else
1825 ac_header_compiler=no
1826fi
1827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1829$as_echo "$ac_header_compiler" >&6; }
1830
1831# Is the header present?
1832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1833$as_echo_n "checking $2 presence... " >&6; }
1834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h. */
1836#include <$2>
1837_ACEOF
1838if ac_fn_c_try_cpp "$LINENO"; then :
1839 ac_header_preproc=yes
1840else
1841 ac_header_preproc=no
1842fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001843rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1845$as_echo "$ac_header_preproc" >&6; }
1846
1847# So? What about this header?
1848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1849 yes:no: )
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1851$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1853$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1854 ;;
1855 no:yes:* )
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1857$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1859$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1861$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1863$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1865$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1866 ;;
1867esac
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001870if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001871 $as_echo_n "(cached) " >&6
1872else
1873 eval "$3=\$ac_header_compiler"
1874fi
1875eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
1878fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001880
1881} # ac_fn_c_check_header_mongrel
1882
Theodore Ts'o93613952014-07-03 23:44:13 -04001883# ac_fn_c_try_run LINENO
1884# ----------------------
1885# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1886# that executables *can* be run.
1887ac_fn_c_try_run ()
1888{
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if { { ac_try="$ac_link"
1891case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894esac
1895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896$as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>&5
1898 ac_status=$?
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1901 { { case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904esac
1905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906$as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_try") 2>&5
1908 ac_status=$?
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; }; }; then :
1911 ac_retval=0
1912else
1913 $as_echo "$as_me: program exited with status $ac_status" >&5
1914 $as_echo "$as_me: failed program was:" >&5
1915sed 's/^/| /' conftest.$ac_ext >&5
1916
1917 ac_retval=$ac_status
1918fi
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1922
1923} # ac_fn_c_try_run
1924
1925# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1926# -------------------------------------------------------
1927# Tests whether HEADER exists and can be compiled using the include files in
1928# INCLUDES, setting the cache variable VAR accordingly.
1929ac_fn_c_check_header_compile ()
1930{
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933$as_echo_n "checking for $2... " >&6; }
1934if eval \${$3+:} false; then :
1935 $as_echo_n "(cached) " >&6
1936else
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h. */
1939$4
1940#include <$2>
1941_ACEOF
1942if ac_fn_c_try_compile "$LINENO"; then :
1943 eval "$3=yes"
1944else
1945 eval "$3=no"
1946fi
1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948fi
1949eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951$as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
1954} # ac_fn_c_check_header_compile
1955
1956# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1957# -------------------------------------------
1958# Tests whether TYPE exists after having included INCLUDES, setting cache
1959# variable VAR accordingly.
1960ac_fn_c_check_type ()
1961{
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964$as_echo_n "checking for $2... " >&6; }
1965if eval \${$3+:} false; then :
1966 $as_echo_n "(cached) " >&6
1967else
1968 eval "$3=no"
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970/* end confdefs.h. */
1971$4
1972int
1973main ()
1974{
1975if (sizeof ($2))
1976 return 0;
1977 ;
1978 return 0;
1979}
1980_ACEOF
1981if ac_fn_c_try_compile "$LINENO"; then :
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983/* end confdefs.h. */
1984$4
1985int
1986main ()
1987{
1988if (sizeof (($2)))
1989 return 0;
1990 ;
1991 return 0;
1992}
1993_ACEOF
1994if ac_fn_c_try_compile "$LINENO"; then :
1995
1996else
1997 eval "$3=yes"
1998fi
1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000fi
2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002fi
2003eval ac_res=\$$3
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005$as_echo "$ac_res" >&6; }
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007
2008} # ac_fn_c_check_type
2009
2010# ac_fn_c_check_func LINENO FUNC VAR
2011# ----------------------------------
2012# Tests whether FUNC exists, setting the cache variable VAR accordingly
2013ac_fn_c_check_func ()
2014{
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017$as_echo_n "checking for $2... " >&6; }
2018if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2020else
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h. */
2023/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2025#define $2 innocuous_$2
2026
2027/* System header to define __stub macros and hopefully few prototypes,
2028 which can conflict with char $2 (); below.
2029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2030 <limits.h> exists even on freestanding compilers. */
2031
2032#ifdef __STDC__
2033# include <limits.h>
2034#else
2035# include <assert.h>
2036#endif
2037
2038#undef $2
2039
2040/* Override any GCC internal prototype to avoid an error.
2041 Use char because int might match the return type of a GCC
2042 builtin and then its argument prototype would still apply. */
2043#ifdef __cplusplus
2044extern "C"
2045#endif
2046char $2 ();
2047/* The GNU C library defines this for functions which it implements
2048 to always fail with ENOSYS. Some functions are actually named
2049 something starting with __ and the normal name is an alias. */
2050#if defined __stub_$2 || defined __stub___$2
2051choke me
2052#endif
2053
2054int
2055main ()
2056{
2057return $2 ();
2058 ;
2059 return 0;
2060}
2061_ACEOF
2062if ac_fn_c_try_link "$LINENO"; then :
2063 eval "$3=yes"
2064else
2065 eval "$3=no"
2066fi
2067rm -f core conftest.err conftest.$ac_objext \
2068 conftest$ac_exeext conftest.$ac_ext
2069fi
2070eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072$as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075} # ac_fn_c_check_func
2076
2077# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2078# ---------------------------------------------
2079# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2080# accordingly.
2081ac_fn_c_check_decl ()
2082{
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 as_decl_name=`echo $2|sed 's/ *(.*//'`
2085 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2087$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2088if eval \${$3+:} false; then :
2089 $as_echo_n "(cached) " >&6
2090else
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h. */
2093$4
2094int
2095main ()
2096{
2097#ifndef $as_decl_name
2098#ifdef __cplusplus
2099 (void) $as_decl_use;
2100#else
2101 (void) $as_decl_name;
2102#endif
2103#endif
2104
2105 ;
2106 return 0;
2107}
2108_ACEOF
2109if ac_fn_c_try_compile "$LINENO"; then :
2110 eval "$3=yes"
2111else
2112 eval "$3=no"
2113fi
2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115fi
2116eval ac_res=\$$3
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118$as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120
2121} # ac_fn_c_check_decl
2122
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002123# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2124# --------------------------------------------
2125# Tries to find the compile-time value of EXPR in a program that includes
2126# INCLUDES, setting VAR accordingly. Returns whether the value could be
2127# computed
2128ac_fn_c_compute_int ()
2129{
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 if test "$cross_compiling" = yes; then
2132 # Depending upon the size, compute the lo and hi bounds.
2133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134/* end confdefs.h. */
2135$4
2136int
2137main ()
2138{
2139static int test_array [1 - 2 * !(($2) >= 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002140test_array [0] = 0;
2141return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002142
2143 ;
2144 return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_lo=0 ac_mid=0
2149 while :; do
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151/* end confdefs.h. */
2152$4
2153int
2154main ()
2155{
2156static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002157test_array [0] = 0;
2158return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002159
2160 ;
2161 return 0;
2162}
2163_ACEOF
2164if ac_fn_c_try_compile "$LINENO"; then :
2165 ac_hi=$ac_mid; break
2166else
2167 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2168 if test $ac_lo -le $ac_mid; then
2169 ac_lo= ac_hi=
2170 break
2171 fi
2172 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2173fi
2174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 done
2176else
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178/* end confdefs.h. */
2179$4
2180int
2181main ()
2182{
2183static int test_array [1 - 2 * !(($2) < 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002184test_array [0] = 0;
2185return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002186
2187 ;
2188 return 0;
2189}
2190_ACEOF
2191if ac_fn_c_try_compile "$LINENO"; then :
2192 ac_hi=-1 ac_mid=-1
2193 while :; do
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195/* end confdefs.h. */
2196$4
2197int
2198main ()
2199{
2200static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002201test_array [0] = 0;
2202return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002203
2204 ;
2205 return 0;
2206}
2207_ACEOF
2208if ac_fn_c_try_compile "$LINENO"; then :
2209 ac_lo=$ac_mid; break
2210else
2211 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2212 if test $ac_mid -le $ac_hi; then
2213 ac_lo= ac_hi=
2214 break
2215 fi
2216 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2217fi
2218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 done
2220else
2221 ac_lo= ac_hi=
2222fi
2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224fi
2225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226# Binary search between lo and hi bounds.
2227while test "x$ac_lo" != "x$ac_hi"; do
2228 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230/* end confdefs.h. */
2231$4
2232int
2233main ()
2234{
2235static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002236test_array [0] = 0;
2237return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002238
2239 ;
2240 return 0;
2241}
2242_ACEOF
2243if ac_fn_c_try_compile "$LINENO"; then :
2244 ac_hi=$ac_mid
2245else
2246 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2247fi
2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249done
2250case $ac_lo in #((
2251?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2252'') ac_retval=1 ;;
2253esac
2254 else
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256/* end confdefs.h. */
2257$4
2258static long int longval () { return $2; }
2259static unsigned long int ulongval () { return $2; }
2260#include <stdio.h>
2261#include <stdlib.h>
2262int
2263main ()
2264{
2265
2266 FILE *f = fopen ("conftest.val", "w");
2267 if (! f)
2268 return 1;
2269 if (($2) < 0)
2270 {
2271 long int i = longval ();
2272 if (i != ($2))
2273 return 1;
2274 fprintf (f, "%ld", i);
2275 }
2276 else
2277 {
2278 unsigned long int i = ulongval ();
2279 if (i != ($2))
2280 return 1;
2281 fprintf (f, "%lu", i);
2282 }
2283 /* Do not output a trailing newline, as this causes \r\n confusion
2284 on some platforms. */
2285 return ferror (f) || fclose (f) != 0;
2286
2287 ;
2288 return 0;
2289}
2290_ACEOF
2291if ac_fn_c_try_run "$LINENO"; then :
2292 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2293else
2294 ac_retval=1
2295fi
2296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2297 conftest.$ac_objext conftest.beam conftest.$ac_ext
2298rm -f conftest.val
2299
2300 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002302 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002303
2304} # ac_fn_c_compute_int
2305
2306# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2307# ----------------------------------------------------
2308# Tries to find if the field MEMBER exists in type AGGR, after including
2309# INCLUDES, setting cache variable VAR accordingly.
2310ac_fn_c_check_member ()
2311{
2312 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2314$as_echo_n "checking for $2.$3... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002315if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002316 $as_echo_n "(cached) " >&6
2317else
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319/* end confdefs.h. */
2320$5
2321int
2322main ()
2323{
2324static $2 ac_aggr;
2325if (ac_aggr.$3)
2326return 0;
2327 ;
2328 return 0;
2329}
2330_ACEOF
2331if ac_fn_c_try_compile "$LINENO"; then :
2332 eval "$4=yes"
2333else
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335/* end confdefs.h. */
2336$5
2337int
2338main ()
2339{
2340static $2 ac_aggr;
2341if (sizeof ac_aggr.$3)
2342return 0;
2343 ;
2344 return 0;
2345}
2346_ACEOF
2347if ac_fn_c_try_compile "$LINENO"; then :
2348 eval "$4=yes"
2349else
2350 eval "$4=no"
2351fi
2352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2353fi
2354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355fi
2356eval ac_res=\$$4
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002359 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002360
2361} # ac_fn_c_check_member
Theodore Ts'oe1052142006-10-21 21:46:47 -04002362cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002363This file contains any messages produced by compilers while
2364running configure, to aid debugging if configure makes a mistake.
2365
2366It was created by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002367generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002368
2369 $ $0 $@
2370
2371_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002372exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002373{
2374cat <<_ASUNAME
2375## --------- ##
2376## Platform. ##
2377## --------- ##
2378
2379hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2380uname -m = `(uname -m) 2>/dev/null || echo unknown`
2381uname -r = `(uname -r) 2>/dev/null || echo unknown`
2382uname -s = `(uname -s) 2>/dev/null || echo unknown`
2383uname -v = `(uname -v) 2>/dev/null || echo unknown`
2384
2385/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2386/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2387
2388/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2389/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2390/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002391/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002392/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2393/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2394/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2395
2396_ASUNAME
2397
2398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399for as_dir in $PATH
2400do
2401 IFS=$as_save_IFS
2402 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002403 $as_echo "PATH: $as_dir"
2404 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002405IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002406
2407} >&5
2408
2409cat >&5 <<_ACEOF
2410
2411
2412## ----------- ##
2413## Core tests. ##
2414## ----------- ##
2415
2416_ACEOF
2417
2418
2419# Keep a trace of the command line.
2420# Strip out --no-create and --no-recursion so they do not pile up.
2421# Strip out --silent because we don't want to record it for future runs.
2422# Also quote any args containing shell meta-characters.
2423# Make two passes to allow for proper duplicate-argument suppression.
2424ac_configure_args=
2425ac_configure_args0=
2426ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002427ac_must_keep_next=false
2428for ac_pass in 1 2
2429do
2430 for ac_arg
2431 do
2432 case $ac_arg in
2433 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2435 | -silent | --silent | --silen | --sile | --sil)
2436 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002437 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002438 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002439 esac
2440 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002441 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002442 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002443 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002444 if test $ac_must_keep_next = true; then
2445 ac_must_keep_next=false # Got value, back to normal.
2446 else
2447 case $ac_arg in
2448 *=* | --config-cache | -C | -disable-* | --disable-* \
2449 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2450 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2451 | -with-* | --with-* | -without-* | --without-* | --x)
2452 case "$ac_configure_args0 " in
2453 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2454 esac
2455 ;;
2456 -* ) ac_must_keep_next=true ;;
2457 esac
2458 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002459 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002460 ;;
2461 esac
2462 done
2463done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002464{ ac_configure_args0=; unset ac_configure_args0;}
2465{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002466
2467# When interrupted or exit'd, cleanup temporary files, and complete
2468# config.log. We remove comments because anyway the quotes in there
2469# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002470# WARNING: Use '\'' to represent an apostrophe within the trap.
2471# 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 -05002472trap 'exit_status=$?
2473 # Save into config.log some information that might help in debugging.
2474 {
2475 echo
2476
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002477 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002478## Cache variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002479## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002480 echo
2481 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002482(
2483 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2484 eval ac_val=\$$ac_var
2485 case $ac_val in #(
2486 *${as_nl}*)
2487 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002488 *_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 +01002489$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002490 esac
2491 case $ac_var in #(
2492 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002493 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002494 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002495 esac ;;
2496 esac
2497 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002498 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002499 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2500 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002501 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002502 "s/'\''/'\''\\\\'\'''\''/g;
2503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2504 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002505 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002507 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002508 esac |
2509 sort
2510)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002511 echo
2512
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002513 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002514## Output variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002515## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002516 echo
2517 for ac_var in $ac_subst_vars
2518 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002519 eval ac_val=\$$ac_var
2520 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002521 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002522 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002523 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002524 done | sort
2525 echo
2526
2527 if test -n "$ac_subst_files"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002528 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002529## File substitutions. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002530## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002531 echo
2532 for ac_var in $ac_subst_files
2533 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002534 eval ac_val=\$$ac_var
2535 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002536 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002537 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002538 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002539 done | sort
2540 echo
2541 fi
2542
2543 if test -s confdefs.h; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002544 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002545## confdefs.h. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002546## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002547 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002548 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002549 echo
2550 fi
2551 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002552 $as_echo "$as_me: caught signal $ac_signal"
2553 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002554 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002555 rm -f core *.core core.conftest.* &&
2556 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002557 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002558' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002559for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002560 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002561done
2562ac_signal=0
2563
2564# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002565rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002566
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002567$as_echo "/* confdefs.h */" > confdefs.h
2568
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002569# Predefined preprocessor variables.
2570
2571cat >>confdefs.h <<_ACEOF
2572#define PACKAGE_NAME "$PACKAGE_NAME"
2573_ACEOF
2574
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002575cat >>confdefs.h <<_ACEOF
2576#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2577_ACEOF
2578
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002579cat >>confdefs.h <<_ACEOF
2580#define PACKAGE_VERSION "$PACKAGE_VERSION"
2581_ACEOF
2582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002583cat >>confdefs.h <<_ACEOF
2584#define PACKAGE_STRING "$PACKAGE_STRING"
2585_ACEOF
2586
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002587cat >>confdefs.h <<_ACEOF
2588#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2589_ACEOF
2590
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002591cat >>confdefs.h <<_ACEOF
2592#define PACKAGE_URL "$PACKAGE_URL"
2593_ACEOF
2594
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002595
2596# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002597# Prefer an explicitly selected file to automatically selected ones.
2598ac_site_file1=NONE
2599ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002600if test -n "$CONFIG_SITE"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002601 # We do not want a PATH search for config.site.
2602 case $CONFIG_SITE in #((
2603 -*) ac_site_file1=./$CONFIG_SITE;;
2604 */*) ac_site_file1=$CONFIG_SITE;;
2605 *) ac_site_file1=./$CONFIG_SITE;;
2606 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002607elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002608 ac_site_file1=$prefix/share/config.site
2609 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002610else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002611 ac_site_file1=$ac_default_prefix/share/config.site
2612 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002613fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002614for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002615do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002616 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002617 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002618 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002619$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002620 sed 's/^/| /' "$ac_site_file" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002621 . "$ac_site_file" \
2622 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2624as_fn_error $? "failed to load site script $ac_site_file
2625See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002626 fi
2627done
2628
2629if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002630 # Some versions of bash will fail to source /dev/null (special files
2631 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2632 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002633 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002634$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002635 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002636 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2637 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002638 esac
2639 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002640else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002641 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002642$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002643 >$cache_file
2644fi
2645
Theodore Ts'o93613952014-07-03 23:44:13 -04002646gt_needs="$gt_needs "
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002647as_fn_append ac_header_list " stdlib.h"
2648as_fn_append ac_header_list " unistd.h"
2649as_fn_append ac_header_list " sys/param.h"
Theodore Ts'o93613952014-07-03 23:44:13 -04002650as_fn_append ac_func_list " symlink"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002651# Check that the precious variables saved in the cache have kept the same
2652# value.
2653ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002654for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002655 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2656 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002657 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2658 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002659 case $ac_old_set,$ac_new_set in
2660 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002661 { $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 +01002662$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 -05002663 ac_cache_corrupted=: ;;
2664 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002665 { $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 +01002666$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002667 ac_cache_corrupted=: ;;
2668 ,);;
2669 *)
2670 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002671 # differences in whitespace do not lead to failure.
2672 ac_old_val_w=`echo x $ac_old_val`
2673 ac_new_val_w=`echo x $ac_new_val`
2674 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002675 { $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 +01002676$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2677 ac_cache_corrupted=:
2678 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002679 { $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 +01002680$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2681 eval $ac_var=\$ac_old_val
2682 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002683 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002684$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002685 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002686$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002687 fi;;
2688 esac
2689 # Pass precious variables to config.status.
2690 if test "$ac_new_set" = set; then
2691 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002692 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002693 *) ac_arg=$ac_var=$ac_new_val ;;
2694 esac
2695 case " $ac_configure_args " in
2696 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002697 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002698 esac
2699 fi
2700done
2701if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002702 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002704 { $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 +01002705$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002706 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002707fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002708## -------------------- ##
2709## Main body of script. ##
2710## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002711
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002712ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002713ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002717
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002718
2719
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002720ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002721for ac_dir in config "$srcdir"/config; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002722 if test -f "$ac_dir/install-sh"; then
2723 ac_aux_dir=$ac_dir
2724 ac_install_sh="$ac_aux_dir/install-sh -c"
2725 break
2726 elif test -f "$ac_dir/install.sh"; then
2727 ac_aux_dir=$ac_dir
2728 ac_install_sh="$ac_aux_dir/install.sh -c"
2729 break
2730 elif test -f "$ac_dir/shtool"; then
2731 ac_aux_dir=$ac_dir
2732 ac_install_sh="$ac_aux_dir/shtool install -c"
2733 break
2734 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002735done
2736if test -z "$ac_aux_dir"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002737 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 +00002738fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002739
2740# These three variables are undocumented and unsupported,
2741# and are intended to be withdrawn in a future Autoconf release.
2742# They can cause serious problems if a builder's source tree is in a directory
2743# whose full name contains unusual characters.
2744ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2745ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2746ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2747
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002748
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002749ac_config_headers="$ac_config_headers lib/config.h"
2750
2751
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002752MCONFIG=./MCONFIG
2753
Theodore Ts'o74becf31997-04-26 14:37:06 +00002754BINARY_TYPE=bin
2755E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2756 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2757DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2758 | tr \" " "`
Theodore Ts'o2ab53822016-03-15 01:10:29 -04002759E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
Theodore Ts'o74becf31997-04-26 14:37:06 +00002760MONTH=`echo $DATE | awk -F- '{print $2}'`
2761YEAR=`echo $DATE | awk -F- '{print $3}'`
2762
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002763if expr $YEAR ">" 1900 > /dev/null ; then
2764 E2FSPROGS_YEAR=$YEAR
2765elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002766 E2FSPROGS_YEAR=19$YEAR
2767else
2768 E2FSPROGS_YEAR=20$YEAR
2769fi
2770
2771case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002772Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2773Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2774Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2775Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2776May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2777Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2778Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2779Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2780Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2781Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2782Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2783Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002784*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002785$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002786esac
2787
Andreas Dilger927566a2006-11-12 19:41:25 -05002788base_ver=`echo $E2FSPROGS_VERSION | \
2789 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002790
2791date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2792
2793case $E2FSPROGS_VERSION in
2794*-WIP|pre-*)
Theodore Ts'o2ab53822016-03-15 01:10:29 -04002795 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
Andreas Dilger927566a2006-11-12 19:41:25 -05002796 ;;
2797*)
2798 E2FSPROGS_PKGVER="$base_ver"
2799 ;;
2800esac
2801
2802unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002803{ $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 +01002804$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002806$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002807
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002808
2809
2810
Andreas Dilger927566a2006-11-12 19:41:25 -05002811
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002812WITH_DIET_LIBC=
2813
2814# Check whether --with-diet-libc was given.
2815if test "${with_diet_libc+set}" = set; then :
2816 withval=$with_diet_libc; CC="diet cc -nostdinc"
2817WITH_DIET_LIBC=yes
2818if test -z "$LIBS"
2819then
2820 LIBS="-lcompat"
2821else
2822 LIBS="$LIBS -lcompat"
2823fi
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2825$as_echo "CC=$CC" >&6; }
2826fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002827# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002828$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002829 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002830
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002832$as_echo_n "checking build system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002833if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002834 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002835else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002836 ac_build_alias=$build_alias
2837test "x$ac_build_alias" = x &&
2838 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2839test "x$ac_build_alias" = x &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002840 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002841ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002842 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002843
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002844fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002846$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002847case $ac_cv_build in
2848*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002849*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002850esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002851build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002852ac_save_IFS=$IFS; IFS='-'
2853set x $ac_cv_build
2854shift
2855build_cpu=$1
2856build_vendor=$2
2857shift; shift
2858# Remember, the first character of IFS is used to create $*,
2859# except with old shells:
2860build_os=$*
2861IFS=$ac_save_IFS
2862case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002863
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002864
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002866$as_echo_n "checking host system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002867if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002868 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002869else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002870 if test "x$host_alias" = x; then
2871 ac_cv_host=$ac_cv_build
2872else
2873 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002874 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002875fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002876
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002877fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002879$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002880case $ac_cv_host in
2881*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002882*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002883esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002884host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002885ac_save_IFS=$IFS; IFS='-'
2886set x $ac_cv_host
2887shift
2888host_cpu=$1
2889host_vendor=$2
2890shift; shift
2891# Remember, the first character of IFS is used to create $*,
2892# except with old shells:
2893host_os=$*
2894IFS=$ac_save_IFS
2895case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002896
2897
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002898DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002899ac_ext=c
2900ac_cpp='$CPP $CPPFLAGS'
2901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2903ac_compiler_gnu=$ac_cv_c_compiler_gnu
2904if test -n "$ac_tool_prefix"; then
2905 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2906set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002908$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002909if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002910 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002911else
2912 if test -n "$CC"; then
2913 ac_cv_prog_CC="$CC" # Let the user override the test.
2914else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH
2917do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002920 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002922 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002924 break 2
2925 fi
2926done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002927 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002928IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002929
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002930fi
2931fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002932CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002933if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002935$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002936else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002938$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002939fi
2940
Theodore Ts'oe1052142006-10-21 21:46:47 -04002941
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002942fi
2943if test -z "$ac_cv_prog_CC"; then
2944 ac_ct_CC=$CC
2945 # Extract the first word of "gcc", so it can be a program name with args.
2946set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002948$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002949if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002950 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002951else
2952 if test -n "$ac_ct_CC"; then
2953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2954else
2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956for as_dir in $PATH
2957do
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002960 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002962 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002964 break 2
2965 fi
2966done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002967 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002968IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002969
2970fi
2971fi
2972ac_ct_CC=$ac_cv_prog_ac_ct_CC
2973if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002975$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002976else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002978$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002979fi
2980
Theodore Ts'oe1052142006-10-21 21:46:47 -04002981 if test "x$ac_ct_CC" = x; then
2982 CC=""
2983 else
2984 case $cross_compiling:$ac_tool_warned in
2985yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002986{ $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 +01002987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002988ac_tool_warned=yes ;;
2989esac
2990 CC=$ac_ct_CC
2991 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002992else
2993 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002994fi
2995
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002996if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002997 if test -n "$ac_tool_prefix"; then
2998 # 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 -05002999set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003001$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003002if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003003 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003004else
3005 if test -n "$CC"; then
3006 ac_cv_prog_CC="$CC" # Let the user override the test.
3007else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003013 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003015 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003017 break 2
3018 fi
3019done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003020 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003021IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003022
3023fi
3024fi
3025CC=$ac_cv_prog_CC
3026if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003028$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003029else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003031$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003032fi
3033
Theodore Ts'oe1052142006-10-21 21:46:47 -04003034
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003035 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003036fi
3037if test -z "$CC"; then
3038 # Extract the first word of "cc", so it can be a program name with args.
3039set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003041$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003042if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003043 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003044else
3045 if test -n "$CC"; then
3046 ac_cv_prog_CC="$CC" # Let the user override the test.
3047else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003048 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050for as_dir in $PATH
3051do
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003054 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003056 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3057 ac_prog_rejected=yes
3058 continue
3059 fi
3060 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003062 break 2
3063 fi
3064done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003065 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003066IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003067
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003068if test $ac_prog_rejected = yes; then
3069 # We found a bogon in the path, so make sure we never use it.
3070 set dummy $ac_cv_prog_CC
3071 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003072 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003073 # We chose a different compiler from the bogus one.
3074 # However, it has the same basename, so the bogon will be chosen
3075 # first if we set CC to just the basename; use the full file name.
3076 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003077 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003078 fi
3079fi
3080fi
3081fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003082CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003083if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003085$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003086else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003088$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003089fi
3090
Theodore Ts'oe1052142006-10-21 21:46:47 -04003091
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003092fi
3093if test -z "$CC"; then
3094 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003095 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003096 do
3097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3098set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003100$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003101if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003102 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003103else
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC="$CC" # Let the user override the test.
3106else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH
3109do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003112 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003114 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003116 break 2
3117 fi
3118done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003119 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003120IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003121
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003122fi
3123fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003124CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003125if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003127$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003128else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003130$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003131fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003132
Theodore Ts'oe1052142006-10-21 21:46:47 -04003133
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003134 test -n "$CC" && break
3135 done
3136fi
3137if test -z "$CC"; then
3138 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003139 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003140do
3141 # Extract the first word of "$ac_prog", so it can be a program name with args.
3142set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003144$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003145if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003146 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003147else
3148 if test -n "$ac_ct_CC"; then
3149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3150else
3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152for as_dir in $PATH
3153do
3154 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003156 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003158 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003160 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003161 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003162done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003163 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003164IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003165
3166fi
3167fi
3168ac_ct_CC=$ac_cv_prog_ac_ct_CC
3169if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003171$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003172else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003174$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003175fi
3176
Theodore Ts'oe1052142006-10-21 21:46:47 -04003177
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003178 test -n "$ac_ct_CC" && break
3179done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003180
Theodore Ts'oe1052142006-10-21 21:46:47 -04003181 if test "x$ac_ct_CC" = x; then
3182 CC=""
3183 else
3184 case $cross_compiling:$ac_tool_warned in
3185yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003186{ $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 +01003187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003188ac_tool_warned=yes ;;
3189esac
3190 CC=$ac_ct_CC
3191 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003192fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003193
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003194fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003195
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003196
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003197test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003199as_fn_error $? "no acceptable C compiler found in \$PATH
3200See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003201
3202# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003203$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003204set X $ac_compile
3205ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003206for ac_option in --version -v -V -qversion; do
3207 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003208case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213$as_echo "$ac_try_echo"; } >&5
3214 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003215 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003216 if test -s conftest.err; then
3217 sed '10a\
3218... rest of stderr output deleted ...
3219 10q' conftest.err >conftest.er1
3220 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003221 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003222 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }
3225done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003226
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003228/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003229
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003230int
3231main ()
3232{
3233
3234 ;
3235 return 0;
3236}
3237_ACEOF
3238ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003239ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003240# Try to create an executable without -o first, disregard a.out.
3241# It will help us diagnose broken compilers, and finding out an intuition
3242# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3244$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003245ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3246
3247# The possible output files:
3248ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3249
Theodore Ts'oe1052142006-10-21 21:46:47 -04003250ac_rmfiles=
3251for ac_file in $ac_files
3252do
3253 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003255 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3256 esac
3257done
3258rm -f $ac_rmfiles
3259
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003260if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003261case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003267 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003268 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003271 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3272# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3273# in a Makefile. We should not override ac_cv_exeext if it was cached,
3274# so that the user can short-circuit this test for compilers unknown to
3275# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003276for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003277do
3278 test -f "$ac_file" || continue
3279 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003281 ;;
3282 [ab].out )
3283 # We found the default executable, but exeext='' is most
3284 # certainly right.
3285 break;;
3286 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003287 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003288 then :; else
3289 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3290 fi
3291 # We set ac_cv_exeext here because the later test for it is not
3292 # safe: cross compilers may not add the suffix if given an `-o'
3293 # argument, so we may need to know it at that point already.
3294 # Even if this section looks crufty: it has the advantage of
3295 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003296 break;;
3297 * )
3298 break;;
3299 esac
3300done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003301test "$ac_cv_exeext" = no && ac_cv_exeext=
3302
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003303else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003304 ac_file=''
3305fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003306if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308$as_echo "no" >&6; }
3309$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003310sed 's/^/| /' conftest.$ac_ext >&5
3311
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003312{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003314as_fn_error 77 "C compiler cannot create executables
3315See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003316else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003319fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3321$as_echo_n "checking for C compiler default output file name... " >&6; }
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3323$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003324ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003325
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003326rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003327ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003329$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003330if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003331case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003337 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003338 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003341 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3342# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3343# work properly (i.e., refer to `conftest.exe'), while it won't with
3344# `rm'.
3345for ac_file in conftest.exe conftest conftest.*; do
3346 test -f "$ac_file" || continue
3347 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003349 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003350 break;;
3351 * ) break;;
3352 esac
3353done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003354else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003357as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3358See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003359fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003360rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003362$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003363
3364rm -f conftest.$ac_ext
3365EXEEXT=$ac_cv_exeext
3366ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368/* end confdefs.h. */
3369#include <stdio.h>
3370int
3371main ()
3372{
3373FILE *f = fopen ("conftest.out", "w");
3374 return ferror (f) || fclose (f) != 0;
3375
3376 ;
3377 return 0;
3378}
3379_ACEOF
3380ac_clean_files="$ac_clean_files conftest.out"
3381# Check that the compiler produces executables we can run. If not, either
3382# the compiler is broken, or we cross compile.
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3384$as_echo_n "checking whether we are cross compiling... " >&6; }
3385if test "$cross_compiling" != yes; then
3386 { { ac_try="$ac_link"
3387case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390esac
3391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392$as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_link") 2>&5
3394 ac_status=$?
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }
3397 if { ac_try='./conftest$ac_cv_exeext'
3398 { { case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401esac
3402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403$as_echo "$ac_try_echo"; } >&5
3404 (eval "$ac_try") 2>&5
3405 ac_status=$?
3406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407 test $ac_status = 0; }; }; then
3408 cross_compiling=no
3409 else
3410 if test "$cross_compiling" = maybe; then
3411 cross_compiling=yes
3412 else
3413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003415as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003416If you meant to cross compile, use \`--host'.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003417See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003418 fi
3419 fi
3420fi
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3422$as_echo "$cross_compiling" >&6; }
3423
3424rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3425ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003427$as_echo_n "checking for suffix of object files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003428if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003429 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003430else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003432/* end confdefs.h. */
3433
3434int
3435main ()
3436{
3437
3438 ;
3439 return 0;
3440}
3441_ACEOF
3442rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003443if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003444case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003450 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003451 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003454 for ac_file in conftest.o conftest.obj conftest.*; do
3455 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003456 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003458 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3459 break;;
3460 esac
3461done
3462else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003463 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003464sed 's/^/| /' conftest.$ac_ext >&5
3465
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003466{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003468as_fn_error $? "cannot compute suffix of object files: cannot compile
3469See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003470fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003471rm -f conftest.$ac_cv_objext conftest.$ac_ext
3472fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003474$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003475OBJEXT=$ac_cv_objext
3476ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003477{ $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 +01003478$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003479if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003480 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003481else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003483/* end confdefs.h. */
3484
3485int
3486main ()
3487{
3488#ifndef __GNUC__
3489 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003490#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003491
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003492 ;
3493 return 0;
3494}
3495_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003496if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003497 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003498else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003499 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003500fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003502ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003503
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003504fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003506$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3507if test $ac_compiler_gnu = yes; then
3508 GCC=yes
3509else
3510 GCC=
3511fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003512ac_test_CFLAGS=${CFLAGS+set}
3513ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003515$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003516if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003517 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003518else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003519 ac_save_c_werror_flag=$ac_c_werror_flag
3520 ac_c_werror_flag=yes
3521 ac_cv_prog_cc_g=no
3522 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003524/* end confdefs.h. */
3525
3526int
3527main ()
3528{
3529
3530 ;
3531 return 0;
3532}
3533_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003534if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003535 ac_cv_prog_cc_g=yes
3536else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003537 CFLAGS=""
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003539/* end confdefs.h. */
3540
3541int
3542main ()
3543{
3544
3545 ;
3546 return 0;
3547}
3548_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003549if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003550
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003551else
3552 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003553 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003555/* end confdefs.h. */
3556
3557int
3558main ()
3559{
3560
3561 ;
3562 return 0;
3563}
3564_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003565if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003566 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003567fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003569fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 ac_c_werror_flag=$ac_save_c_werror_flag
3574fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003576$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003577if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003578 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003579elif test $ac_cv_prog_cc_g = yes; then
3580 if test "$GCC" = yes; then
3581 CFLAGS="-g -O2"
3582 else
3583 CFLAGS="-g"
3584 fi
3585else
3586 if test "$GCC" = yes; then
3587 CFLAGS="-O2"
3588 else
3589 CFLAGS=
3590 fi
3591fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003593$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003594if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003595 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003596else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003597 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003598ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003600/* end confdefs.h. */
3601#include <stdarg.h>
3602#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003603struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003604/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3605struct buf { int x; };
3606FILE * (*rcsopen) (struct buf *, struct stat *, int);
3607static char *e (p, i)
3608 char **p;
3609 int i;
3610{
3611 return p[i];
3612}
3613static char *f (char * (*g) (char **, int), char **p, ...)
3614{
3615 char *s;
3616 va_list v;
3617 va_start (v,p);
3618 s = g (p, va_arg (v,int));
3619 va_end (v);
3620 return s;
3621}
3622
3623/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3624 function prototypes and stuff, but not '\xHH' hex character constants.
3625 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003626 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003627 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3628 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003629 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003630int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3631
Theodore Ts'oe1052142006-10-21 21:46:47 -04003632/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3633 inside strings and character constants. */
3634#define FOO(x) 'x'
3635int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3636
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003637int test (int i, double x);
3638struct s1 {int (*f) (int a);};
3639struct s2 {int (*f) (double a);};
3640int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3641int argc;
3642char **argv;
3643int
3644main ()
3645{
3646return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3647 ;
3648 return 0;
3649}
3650_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003651for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3652 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003653do
3654 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003655 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003656 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003657fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003658rm -f core conftest.err conftest.$ac_objext
3659 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003660done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003661rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003662CC=$ac_save_CC
3663
3664fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003665# AC_CACHE_VAL
3666case "x$ac_cv_prog_cc_c89" in
3667 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003669$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003670 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003672$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003673 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003674 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003676$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003677esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003678if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003679
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003680fi
3681
3682ac_ext=c
3683ac_cpp='$CPP $CPPFLAGS'
3684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687
3688
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3690$as_echo_n "checking for dlopen in -ldl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003691if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003692 $as_echo_n "(cached) " >&6
3693else
3694 ac_check_lib_save_LIBS=$LIBS
3695LIBS="-ldl $LIBS"
3696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697/* end confdefs.h. */
3698
3699/* Override any GCC internal prototype to avoid an error.
3700 Use char because int might match the return type of a GCC
3701 builtin and then its argument prototype would still apply. */
3702#ifdef __cplusplus
3703extern "C"
3704#endif
3705char dlopen ();
3706int
3707main ()
3708{
3709return dlopen ();
3710 ;
3711 return 0;
3712}
3713_ACEOF
3714if ac_fn_c_try_link "$LINENO"; then :
3715 ac_cv_lib_dl_dlopen=yes
3716else
3717 ac_cv_lib_dl_dlopen=no
3718fi
3719rm -f core conftest.err conftest.$ac_objext \
3720 conftest$ac_exeext conftest.$ac_ext
3721LIBS=$ac_check_lib_save_LIBS
3722fi
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3724$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003725if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003726 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003727
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003728$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3729
3730fi
3731
3732
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003733
3734# Check whether --with-cc was given.
3735if test "${with_cc+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003736 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003737fi
3738
3739
3740# Check whether --with-ccopts was given.
3741if test "${with_ccopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003742 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003743fi
3744
3745
3746# Check whether --with-ldopts was given.
3747if test "${with_ldopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003748 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003749fi
3750
3751ac_ext=c
3752ac_cpp='$CPP $CPPFLAGS'
3753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756if test -n "$ac_tool_prefix"; then
3757 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3758set dummy ${ac_tool_prefix}gcc; ac_word=$2
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003761if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003762 $as_echo_n "(cached) " >&6
3763else
3764 if test -n "$CC"; then
3765 ac_cv_prog_CC="$CC" # Let the user override the test.
3766else
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003774 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3777 fi
3778done
3779 done
3780IFS=$as_save_IFS
3781
3782fi
3783fi
3784CC=$ac_cv_prog_CC
3785if test -n "$CC"; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787$as_echo "$CC" >&6; }
3788else
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790$as_echo "no" >&6; }
3791fi
3792
3793
3794fi
3795if test -z "$ac_cv_prog_CC"; then
3796 ac_ct_CC=$CC
3797 # Extract the first word of "gcc", so it can be a program name with args.
3798set dummy gcc; ac_word=$2
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003801if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003802 $as_echo_n "(cached) " >&6
3803else
3804 if test -n "$ac_ct_CC"; then
3805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3806else
3807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003814 ac_cv_prog_ac_ct_CC="gcc"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3817 fi
3818done
3819 done
3820IFS=$as_save_IFS
3821
3822fi
3823fi
3824ac_ct_CC=$ac_cv_prog_ac_ct_CC
3825if test -n "$ac_ct_CC"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3827$as_echo "$ac_ct_CC" >&6; }
3828else
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830$as_echo "no" >&6; }
3831fi
3832
3833 if test "x$ac_ct_CC" = x; then
3834 CC=""
3835 else
3836 case $cross_compiling:$ac_tool_warned in
3837yes:)
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840ac_tool_warned=yes ;;
3841esac
3842 CC=$ac_ct_CC
3843 fi
3844else
3845 CC="$ac_cv_prog_CC"
3846fi
3847
3848if test -z "$CC"; then
3849 if test -n "$ac_tool_prefix"; then
3850 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3851set dummy ${ac_tool_prefix}cc; ac_word=$2
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003854if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003855 $as_echo_n "(cached) " >&6
3856else
3857 if test -n "$CC"; then
3858 ac_cv_prog_CC="$CC" # Let the user override the test.
3859else
3860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861for as_dir in $PATH
3862do
3863 IFS=$as_save_IFS
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003867 ac_cv_prog_CC="${ac_tool_prefix}cc"
3868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 break 2
3870 fi
3871done
3872 done
3873IFS=$as_save_IFS
3874
3875fi
3876fi
3877CC=$ac_cv_prog_CC
3878if test -n "$CC"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3880$as_echo "$CC" >&6; }
3881else
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883$as_echo "no" >&6; }
3884fi
3885
3886
3887 fi
3888fi
3889if test -z "$CC"; then
3890 # Extract the first word of "cc", so it can be a program name with args.
3891set dummy cc; ac_word=$2
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003894if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003895 $as_echo_n "(cached) " >&6
3896else
3897 if test -n "$CC"; then
3898 ac_cv_prog_CC="$CC" # Let the user override the test.
3899else
3900 ac_prog_rejected=no
3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003908 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3909 ac_prog_rejected=yes
3910 continue
3911 fi
3912 ac_cv_prog_CC="cc"
3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 break 2
3915 fi
3916done
3917 done
3918IFS=$as_save_IFS
3919
3920if test $ac_prog_rejected = yes; then
3921 # We found a bogon in the path, so make sure we never use it.
3922 set dummy $ac_cv_prog_CC
3923 shift
3924 if test $# != 0; then
3925 # We chose a different compiler from the bogus one.
3926 # However, it has the same basename, so the bogon will be chosen
3927 # first if we set CC to just the basename; use the full file name.
3928 shift
3929 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3930 fi
3931fi
3932fi
3933fi
3934CC=$ac_cv_prog_CC
3935if test -n "$CC"; then
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3937$as_echo "$CC" >&6; }
3938else
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940$as_echo "no" >&6; }
3941fi
3942
3943
3944fi
3945if test -z "$CC"; then
3946 if test -n "$ac_tool_prefix"; then
3947 for ac_prog in cl.exe
3948 do
3949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3950set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003953if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003954 $as_echo_n "(cached) " >&6
3955else
3956 if test -n "$CC"; then
3957 ac_cv_prog_CC="$CC" # Let the user override the test.
3958else
3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003966 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 break 2
3969 fi
3970done
3971 done
3972IFS=$as_save_IFS
3973
3974fi
3975fi
3976CC=$ac_cv_prog_CC
3977if test -n "$CC"; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3979$as_echo "$CC" >&6; }
3980else
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982$as_echo "no" >&6; }
3983fi
3984
3985
3986 test -n "$CC" && break
3987 done
3988fi
3989if test -z "$CC"; then
3990 ac_ct_CC=$CC
3991 for ac_prog in cl.exe
3992do
3993 # Extract the first word of "$ac_prog", so it can be a program name with args.
3994set dummy $ac_prog; ac_word=$2
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003997if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003998 $as_echo_n "(cached) " >&6
3999else
4000 if test -n "$ac_ct_CC"; then
4001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4002else
4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004for as_dir in $PATH
4005do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004010 ac_cv_prog_ac_ct_CC="$ac_prog"
4011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 break 2
4013 fi
4014done
4015 done
4016IFS=$as_save_IFS
4017
4018fi
4019fi
4020ac_ct_CC=$ac_cv_prog_ac_ct_CC
4021if test -n "$ac_ct_CC"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4023$as_echo "$ac_ct_CC" >&6; }
4024else
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026$as_echo "no" >&6; }
4027fi
4028
4029
4030 test -n "$ac_ct_CC" && break
4031done
4032
4033 if test "x$ac_ct_CC" = x; then
4034 CC=""
4035 else
4036 case $cross_compiling:$ac_tool_warned in
4037yes:)
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4040ac_tool_warned=yes ;;
4041esac
4042 CC=$ac_ct_CC
4043 fi
4044fi
4045
4046fi
4047
4048
4049test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004051as_fn_error $? "no acceptable C compiler found in \$PATH
4052See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004053
4054# Provide some information about the compiler.
4055$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4056set X $ac_compile
4057ac_compiler=$2
4058for ac_option in --version -v -V -qversion; do
4059 { { ac_try="$ac_compiler $ac_option >&5"
4060case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063esac
4064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4065$as_echo "$ac_try_echo"; } >&5
4066 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4067 ac_status=$?
4068 if test -s conftest.err; then
4069 sed '10a\
4070... rest of stderr output deleted ...
4071 10q' conftest.err >conftest.er1
4072 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004073 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004074 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }
4077done
4078
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4080$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004081if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004082 $as_echo_n "(cached) " >&6
4083else
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085/* end confdefs.h. */
4086
4087int
4088main ()
4089{
4090#ifndef __GNUC__
4091 choke me
4092#endif
4093
4094 ;
4095 return 0;
4096}
4097_ACEOF
4098if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_compiler_gnu=yes
4100else
4101 ac_compiler_gnu=no
4102fi
4103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104ac_cv_c_compiler_gnu=$ac_compiler_gnu
4105
4106fi
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4108$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4109if test $ac_compiler_gnu = yes; then
4110 GCC=yes
4111else
4112 GCC=
4113fi
4114ac_test_CFLAGS=${CFLAGS+set}
4115ac_save_CFLAGS=$CFLAGS
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4117$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004118if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004119 $as_echo_n "(cached) " >&6
4120else
4121 ac_save_c_werror_flag=$ac_c_werror_flag
4122 ac_c_werror_flag=yes
4123 ac_cv_prog_cc_g=no
4124 CFLAGS="-g"
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h. */
4127
4128int
4129main ()
4130{
4131
4132 ;
4133 return 0;
4134}
4135_ACEOF
4136if ac_fn_c_try_compile "$LINENO"; then :
4137 ac_cv_prog_cc_g=yes
4138else
4139 CFLAGS=""
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141/* end confdefs.h. */
4142
4143int
4144main ()
4145{
4146
4147 ;
4148 return 0;
4149}
4150_ACEOF
4151if ac_fn_c_try_compile "$LINENO"; then :
4152
4153else
4154 ac_c_werror_flag=$ac_save_c_werror_flag
4155 CFLAGS="-g"
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157/* end confdefs.h. */
4158
4159int
4160main ()
4161{
4162
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167if ac_fn_c_try_compile "$LINENO"; then :
4168 ac_cv_prog_cc_g=yes
4169fi
4170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171fi
4172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173fi
4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 ac_c_werror_flag=$ac_save_c_werror_flag
4176fi
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4178$as_echo "$ac_cv_prog_cc_g" >&6; }
4179if test "$ac_test_CFLAGS" = set; then
4180 CFLAGS=$ac_save_CFLAGS
4181elif test $ac_cv_prog_cc_g = yes; then
4182 if test "$GCC" = yes; then
4183 CFLAGS="-g -O2"
4184 else
4185 CFLAGS="-g"
4186 fi
4187else
4188 if test "$GCC" = yes; then
4189 CFLAGS="-O2"
4190 else
4191 CFLAGS=
4192 fi
4193fi
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4195$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004196if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004197 $as_echo_n "(cached) " >&6
4198else
4199 ac_cv_prog_cc_c89=no
4200ac_save_CC=$CC
4201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202/* end confdefs.h. */
4203#include <stdarg.h>
4204#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004205struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004206/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4207struct buf { int x; };
4208FILE * (*rcsopen) (struct buf *, struct stat *, int);
4209static char *e (p, i)
4210 char **p;
4211 int i;
4212{
4213 return p[i];
4214}
4215static char *f (char * (*g) (char **, int), char **p, ...)
4216{
4217 char *s;
4218 va_list v;
4219 va_start (v,p);
4220 s = g (p, va_arg (v,int));
4221 va_end (v);
4222 return s;
4223}
4224
4225/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4226 function prototypes and stuff, but not '\xHH' hex character constants.
4227 These don't provoke an error unfortunately, instead are silently treated
4228 as 'x'. The following induces an error, until -std is added to get
4229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4230 array size at least. It's necessary to write '\x00'==0 to get something
4231 that's true only with -std. */
4232int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4233
4234/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4235 inside strings and character constants. */
4236#define FOO(x) 'x'
4237int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4238
4239int test (int i, double x);
4240struct s1 {int (*f) (int a);};
4241struct s2 {int (*f) (double a);};
4242int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4243int argc;
4244char **argv;
4245int
4246main ()
4247{
4248return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4249 ;
4250 return 0;
4251}
4252_ACEOF
4253for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4254 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4255do
4256 CC="$ac_save_CC $ac_arg"
4257 if ac_fn_c_try_compile "$LINENO"; then :
4258 ac_cv_prog_cc_c89=$ac_arg
4259fi
4260rm -f core conftest.err conftest.$ac_objext
4261 test "x$ac_cv_prog_cc_c89" != "xno" && break
4262done
4263rm -f conftest.$ac_ext
4264CC=$ac_save_CC
4265
4266fi
4267# AC_CACHE_VAL
4268case "x$ac_cv_prog_cc_c89" in
4269 x)
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4271$as_echo "none needed" >&6; } ;;
4272 xno)
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4274$as_echo "unsupported" >&6; } ;;
4275 *)
4276 CC="$CC $ac_cv_prog_cc_c89"
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4278$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4279esac
4280if test "x$ac_cv_prog_cc_c89" != xno; then :
4281
4282fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004283
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004284ac_ext=c
4285ac_cpp='$CPP $CPPFLAGS'
4286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004290if test "$GCC" = yes; then
4291 RDYNAMIC="-rdynamic"
4292
4293fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004294ac_ext=c
4295ac_cpp='$CPP $CPPFLAGS'
4296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004300$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004301# On Suns, sometimes $CPP names a directory.
4302if test -n "$CPP" && test -d "$CPP"; then
4303 CPP=
4304fi
4305if test -z "$CPP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004306 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004307 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004308else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004309 # Double quotes because CPP needs to be expanded
4310 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4311 do
4312 ac_preproc_ok=false
4313for ac_c_preproc_warn_flag in '' yes
4314do
4315 # Use a header file that comes with gcc, so configuring glibc
4316 # with a fresh cross-compiler works.
4317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004319 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004320 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004322/* end confdefs.h. */
4323#ifdef __STDC__
4324# include <limits.h>
4325#else
4326# include <assert.h>
4327#endif
4328 Syntax error
4329_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004330if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004331
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004332else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004333 # Broken: fails on valid input.
4334continue
4335fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004336rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004337
Theodore Ts'oe1052142006-10-21 21:46:47 -04004338 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004339 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004341/* end confdefs.h. */
4342#include <ac_nonexistent.h>
4343_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004344if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004345 # Broken: success on invalid input.
4346continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004347else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004348 # Passes both tests.
4349ac_preproc_ok=:
4350break
4351fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004352rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004353
4354done
4355# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004356rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004357if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004358 break
4359fi
4360
4361 done
4362 ac_cv_prog_CPP=$CPP
4363
4364fi
4365 CPP=$ac_cv_prog_CPP
4366else
4367 ac_cv_prog_CPP=$CPP
4368fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004370$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004371ac_preproc_ok=false
4372for ac_c_preproc_warn_flag in '' yes
4373do
4374 # Use a header file that comes with gcc, so configuring glibc
4375 # with a fresh cross-compiler works.
4376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4377 # <limits.h> exists even on freestanding compilers.
4378 # On the NeXT, cc -E runs the code through the compiler's parser,
4379 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004381/* end confdefs.h. */
4382#ifdef __STDC__
4383# include <limits.h>
4384#else
4385# include <assert.h>
4386#endif
4387 Syntax error
4388_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004389if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004390
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004391else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004392 # Broken: fails on valid input.
4393continue
4394fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004395rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004396
Theodore Ts'oe1052142006-10-21 21:46:47 -04004397 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004398 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004400/* end confdefs.h. */
4401#include <ac_nonexistent.h>
4402_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004403if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004404 # Broken: success on invalid input.
4405continue
4406else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004407 # Passes both tests.
4408ac_preproc_ok=:
4409break
4410fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004411rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004412
4413done
4414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004415rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004416if $ac_preproc_ok; then :
4417
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004418else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004421as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4422See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004423fi
4424
4425ac_ext=c
4426ac_cpp='$CPP $CPPFLAGS'
4427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004432$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004433if test "$GCC" = yes
4434then
4435 case "$host_cpu" in
4436 alpha) addcflags="-mieee" ;;
4437 esac
4438fi
4439if test "x$addcflags" != x
4440then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004442$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004443 CFLAGS="$addcflags $CFLAGS"
4444else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004446$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004447fi
Theodore Ts'o93613952014-07-03 23:44:13 -04004448
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4450$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4451if ${ac_cv_path_GREP+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453else
4454 if test -z "$GREP"; then
4455 ac_path_GREP_found=false
4456 # Loop through the user's path and test for each of PROGNAME-LIST
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4459do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_prog in grep ggrep; do
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4465 as_fn_executable_p "$ac_path_GREP" || continue
4466# Check for GNU ac_path_GREP and select it if it is found.
4467 # Check for GNU $ac_path_GREP
4468case `"$ac_path_GREP" --version 2>&1` in
4469*GNU*)
4470 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4471*)
4472 ac_count=0
4473 $as_echo_n 0123456789 >"conftest.in"
4474 while :
4475 do
4476 cat "conftest.in" "conftest.in" >"conftest.tmp"
4477 mv "conftest.tmp" "conftest.in"
4478 cp "conftest.in" "conftest.nl"
4479 $as_echo 'GREP' >> "conftest.nl"
4480 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4482 as_fn_arith $ac_count + 1 && ac_count=$as_val
4483 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4484 # Best one so far, save it but keep looking for a better one
4485 ac_cv_path_GREP="$ac_path_GREP"
4486 ac_path_GREP_max=$ac_count
4487 fi
4488 # 10*(2^10) chars as input seems more than enough
4489 test $ac_count -gt 10 && break
4490 done
4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4492esac
4493
4494 $ac_path_GREP_found && break 3
4495 done
4496 done
4497 done
4498IFS=$as_save_IFS
4499 if test -z "$ac_cv_path_GREP"; then
4500 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4501 fi
4502else
4503 ac_cv_path_GREP=$GREP
4504fi
4505
4506fi
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4508$as_echo "$ac_cv_path_GREP" >&6; }
4509 GREP="$ac_cv_path_GREP"
4510
4511
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4513$as_echo_n "checking for egrep... " >&6; }
4514if ${ac_cv_path_EGREP+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516else
4517 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4518 then ac_cv_path_EGREP="$GREP -E"
4519 else
4520 if test -z "$EGREP"; then
4521 ac_path_EGREP_found=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4525do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_prog in egrep; do
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4531 as_fn_executable_p "$ac_path_EGREP" || continue
4532# Check for GNU ac_path_EGREP and select it if it is found.
4533 # Check for GNU $ac_path_EGREP
4534case `"$ac_path_EGREP" --version 2>&1` in
4535*GNU*)
4536 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4537*)
4538 ac_count=0
4539 $as_echo_n 0123456789 >"conftest.in"
4540 while :
4541 do
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 $as_echo 'EGREP' >> "conftest.nl"
4546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4548 as_fn_arith $ac_count + 1 && ac_count=$as_val
4549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_EGREP="$ac_path_EGREP"
4552 ac_path_EGREP_max=$ac_count
4553 fi
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4556 done
4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4558esac
4559
4560 $ac_path_EGREP_found && break 3
4561 done
4562 done
4563 done
4564IFS=$as_save_IFS
4565 if test -z "$ac_cv_path_EGREP"; then
4566 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4567 fi
4568else
4569 ac_cv_path_EGREP=$EGREP
4570fi
4571
4572 fi
4573fi
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4575$as_echo "$ac_cv_path_EGREP" >&6; }
4576 EGREP="$ac_cv_path_EGREP"
4577
4578
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4580$as_echo_n "checking for ANSI C header files... " >&6; }
4581if ${ac_cv_header_stdc+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583else
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585/* end confdefs.h. */
4586#include <stdlib.h>
4587#include <stdarg.h>
4588#include <string.h>
4589#include <float.h>
4590
4591int
4592main ()
4593{
4594
4595 ;
4596 return 0;
4597}
4598_ACEOF
4599if ac_fn_c_try_compile "$LINENO"; then :
4600 ac_cv_header_stdc=yes
4601else
4602 ac_cv_header_stdc=no
4603fi
4604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605
4606if test $ac_cv_header_stdc = yes; then
4607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609/* end confdefs.h. */
4610#include <string.h>
4611
4612_ACEOF
4613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4614 $EGREP "memchr" >/dev/null 2>&1; then :
4615
4616else
4617 ac_cv_header_stdc=no
4618fi
4619rm -f conftest*
4620
4621fi
4622
4623if test $ac_cv_header_stdc = yes; then
4624 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626/* end confdefs.h. */
4627#include <stdlib.h>
4628
4629_ACEOF
4630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4631 $EGREP "free" >/dev/null 2>&1; then :
4632
4633else
4634 ac_cv_header_stdc=no
4635fi
4636rm -f conftest*
4637
4638fi
4639
4640if test $ac_cv_header_stdc = yes; then
4641 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4642 if test "$cross_compiling" = yes; then :
4643 :
4644else
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646/* end confdefs.h. */
4647#include <ctype.h>
4648#include <stdlib.h>
4649#if ((' ' & 0x0FF) == 0x020)
4650# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4651# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4652#else
4653# define ISLOWER(c) \
4654 (('a' <= (c) && (c) <= 'i') \
4655 || ('j' <= (c) && (c) <= 'r') \
4656 || ('s' <= (c) && (c) <= 'z'))
4657# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4658#endif
4659
4660#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4661int
4662main ()
4663{
4664 int i;
4665 for (i = 0; i < 256; i++)
4666 if (XOR (islower (i), ISLOWER (i))
4667 || toupper (i) != TOUPPER (i))
4668 return 2;
4669 return 0;
4670}
4671_ACEOF
4672if ac_fn_c_try_run "$LINENO"; then :
4673
4674else
4675 ac_cv_header_stdc=no
4676fi
4677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4678 conftest.$ac_objext conftest.beam conftest.$ac_ext
4679fi
4680
4681fi
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4684$as_echo "$ac_cv_header_stdc" >&6; }
4685if test $ac_cv_header_stdc = yes; then
4686
4687$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4688
4689fi
4690
4691# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4692for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4693 inttypes.h stdint.h unistd.h
4694do :
4695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4696ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4697"
4698if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4699 cat >>confdefs.h <<_ACEOF
4700#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4701_ACEOF
4702
4703fi
4704
4705done
4706
4707
4708
4709 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4710if test "x$ac_cv_header_minix_config_h" = xyes; then :
4711 MINIX=yes
4712else
4713 MINIX=
4714fi
4715
4716
4717 if test "$MINIX" = yes; then
4718
4719$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4720
4721
4722$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4723
4724
4725$as_echo "#define _MINIX 1" >>confdefs.h
4726
4727 fi
4728
4729
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4731$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4732if ${ac_cv_safe_to_define___extensions__+:} false; then :
4733 $as_echo_n "(cached) " >&6
4734else
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736/* end confdefs.h. */
4737
4738# define __EXTENSIONS__ 1
4739 $ac_includes_default
4740int
4741main ()
4742{
4743
4744 ;
4745 return 0;
4746}
4747_ACEOF
4748if ac_fn_c_try_compile "$LINENO"; then :
4749 ac_cv_safe_to_define___extensions__=yes
4750else
4751 ac_cv_safe_to_define___extensions__=no
4752fi
4753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754fi
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4756$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4757 test $ac_cv_safe_to_define___extensions__ = yes &&
4758 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4759
4760 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4761
4762 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4763
4764 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4765
4766 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4767
4768
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004769LIB_EXT=.a
4770STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004771PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004772
Theodore Ts'oe1052142006-10-21 21:46:47 -04004773# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004774if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004775 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004776else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004777 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004778fi
4779# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004780if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004781 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004782then
4783 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004785$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004786else
4787 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004789$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004790fi
4791
4792else
4793 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004795$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004796
Theodore Ts'oe1052142006-10-21 21:46:47 -04004797fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004798
Theodore Ts'oe1052142006-10-21 21:46:47 -04004799
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004800# Check whether --enable-symlink-install was given.
4801if test "${enable_symlink_install+set}" = set; then :
4802 enableval=$enable_symlink_install; if test "$enableval" = "no"
4803then
4804 LINK_INSTALL_FLAGS=-f
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4806$as_echo "Disabling symlinks for install" >&6; }
4807else
4808 LINK_INSTALL_FLAGS=-sf
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4810$as_echo "Enabling symlinks for install" >&6; }
4811fi
4812
4813else
4814 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4816$as_echo "Disabling symlinks for install by default" >&6; }
4817
4818fi
4819
4820
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004821relative_symlink_defined=
4822# Check whether --enable-relative-symlinks was given.
4823if test "${enable_relative_symlinks+set}" = set; then :
4824 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004825then
4826 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004827 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4829$as_echo "Disabling relative symlinks for install" >&6; }
4830else
4831 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004832 relative_symlink_defined=yes
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4834$as_echo "Enabling relative symlinks for install" >&6; }
4835fi
4836fi
4837
4838# Check whether --enable-symlink-relative-symlinks was given.
4839if test "${enable_symlink_relative_symlinks+set}" = set; then :
4840 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4841then
4842 SYMLINK_RELATIVE=yes
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4844$as_echo "Disabling relative symlinks for install" >&6; }
4845else
4846 SYMLINK_RELATIVE=--relative
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4848$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004849fi
4850
4851else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004852 if test -z "$relative_symlink_defined"
4853then
4854 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4856$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004857fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004858
4859fi
4860
4861
4862# Check whether --enable-symlink-build was given.
4863if test "${enable_symlink_build+set}" = set; then :
4864 enableval=$enable_symlink_build; if test "$enableval" = "no"
4865then
4866 LINK_BUILD_FLAGS=
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4868$as_echo "Disabling symlinks for build" >&6; }
4869else
4870 LINK_BUILD_FLAGS=-s
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4872$as_echo "Enabling symlinks for build" >&6; }
4873fi
4874
4875else
4876 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4878$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004879
4880fi
4881
4882
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004883# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004884if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004885 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4886then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004888$as_echo "Disabling verbose make commands" >&6; }
4889 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004890 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004891 Q=@
4892else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004894$as_echo "Enabling verbose make commands" >&6; }
4895 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004896 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004897 Q=
4898fi
4899
4900else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004902$as_echo "Disabling verbose make commands" >&6; }
4903E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004904ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004905Q=@
4906
4907fi
4908
4909
4910
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004911
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004912E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004913LDFLAG_DYNAMIC=
4914PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004915# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004916if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004917 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004918then
4919 ELF_CMT=#
4920 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004922$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004923else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004924 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004925 ELF_CMT=
4926 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004927 case "$host_os" in
4928 solaris2.*)
4929 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4930 ;;
4931 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004932 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004933 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004934 PRIVATE_LIBS_CMT=#
4935 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004937$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004938fi
4939
4940else
4941 MAKEFILE_ELF=/dev/null
4942ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004944$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004945
Theodore Ts'oe1052142006-10-21 21:46:47 -04004946fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004947
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004948
Theodore Ts'oe1052142006-10-21 21:46:47 -04004949
4950# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004951if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004952 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004953then
4954 BSDLIB_CMT=#
4955 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004957$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004958else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004959 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004960 BSDLIB_CMT=
4961 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004962 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004963 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004964 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004965 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4966 LIB_EXT=.dylib
4967 ;;
4968 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004970$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004971fi
4972
4973else
4974 MAKEFILE_BSDLIB=/dev/null
4975BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004977$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004978
Theodore Ts'oe1052142006-10-21 21:46:47 -04004979fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004980
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004981
Theodore Ts'oe1052142006-10-21 21:46:47 -04004982
4983# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004984if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004985 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004986then
4987 PROFILE_CMT=#
4988 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004990$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004991else
4992 PROFILE_CMT=
4993 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4994 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004996$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004997fi
4998
4999else
5000 PROFILE_CMT=#
5001MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005003$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005004
Theodore Ts'oe1052142006-10-21 21:46:47 -04005005fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005006
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005007
Theodore Ts'oe1052142006-10-21 21:46:47 -04005008
Theodore Ts'ofedfb272014-02-23 00:17:09 -05005009# Check whether --enable-gcov was given.
5010if test "${enable_gcov+set}" = set; then :
5011 enableval=$enable_gcov; if test "$enableval" = "yes"
5012then
5013 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5014 LDFLAGS="-fprofile-arcs -ftest-coverage"
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5016$as_echo "Enabling gcov support" >&6; }
5017fi
5018
5019fi
5020
Theodore Ts'ofd1677e2016-05-21 23:51:19 -04005021CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5022CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5023LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5024LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5025# Check whether --enable-hardening was given.
5026if test "${enable_hardening+set}" = set; then :
5027 enableval=$enable_hardening; if test "$enableval" = "yes"
5028then
5029 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5030 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5031 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5032 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5033 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5034 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5035 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5036 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5038$as_echo "Enabling hardening support" >&6; }
5039fi
5040
5041fi
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
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005308 if test -n "$PKG_CONFIG"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5310$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5311if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5312 $as_echo_n "(cached) " >&6
5313else
5314 ac_check_lib_save_LIBS=$LIBS
5315LIBS="-luuid $LIBS"
5316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317/* end confdefs.h. */
5318
5319/* Override any GCC internal prototype to avoid an error.
5320 Use char because int might match the return type of a GCC
5321 builtin and then its argument prototype would still apply. */
5322#ifdef __cplusplus
5323extern "C"
5324#endif
5325char uuid_generate ();
5326int
5327main ()
5328{
5329return uuid_generate ();
5330 ;
5331 return 0;
5332}
5333_ACEOF
5334if ac_fn_c_try_link "$LINENO"; then :
5335 ac_cv_lib_uuid_uuid_generate=yes
5336else
5337 ac_cv_lib_uuid_uuid_generate=no
5338fi
5339rm -f core conftest.err conftest.$ac_objext \
5340 conftest$ac_exeext conftest.$ac_ext
5341LIBS=$ac_check_lib_save_LIBS
5342fi
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5344$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5345if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5346 LIBUUID=`$PKG_CONFIG --libs uuid`;
5347 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5348fi
5349
5350fi
5351if test -n "$LIBUUID"; then
5352 PROFILED_LIBUUID=$LIBUUID
5353 UUID_CMT=#
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5355$as_echo "Using system uuid by default" >&6; }
5356else
5357 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5358 DEPLIBUUID=$LIBUUID
5359 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5360 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5361 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5362 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005364$as_echo "Enabling private uuid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005365fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005366
5367fi
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
Theodore Ts'o93613952014-07-03 23:44:13 -04005378
5379
5380
5381
5382
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005383if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005384 if test -n "$ac_tool_prefix"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005385 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5386set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005388$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005389if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005390 $as_echo_n "(cached) " >&6
5391else
5392 case $PKG_CONFIG in
5393 [\\/]* | ?:[\\/]*)
5394 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5395 ;;
5396 *)
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005402 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005404 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005406 break 2
5407 fi
5408done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005409 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005410IFS=$as_save_IFS
5411
5412 ;;
5413esac
5414fi
5415PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5416if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005418$as_echo "$PKG_CONFIG" >&6; }
5419else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005421$as_echo "no" >&6; }
5422fi
5423
5424
5425fi
5426if test -z "$ac_cv_path_PKG_CONFIG"; then
5427 ac_pt_PKG_CONFIG=$PKG_CONFIG
5428 # Extract the first word of "pkg-config", so it can be a program name with args.
5429set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005431$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005432if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005433 $as_echo_n "(cached) " >&6
5434else
5435 case $ac_pt_PKG_CONFIG in
5436 [\\/]* | ?:[\\/]*)
5437 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5438 ;;
5439 *)
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441for as_dir in $PATH
5442do
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005445 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005447 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005449 break 2
5450 fi
5451done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005452 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005453IFS=$as_save_IFS
5454
5455 ;;
5456esac
5457fi
5458ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5459if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005461$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5462else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005464$as_echo "no" >&6; }
5465fi
5466
5467 if test "x$ac_pt_PKG_CONFIG" = x; then
5468 PKG_CONFIG=""
5469 else
5470 case $cross_compiling:$ac_tool_warned in
5471yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005472{ $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 +01005473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5474ac_tool_warned=yes ;;
5475esac
5476 PKG_CONFIG=$ac_pt_PKG_CONFIG
5477 fi
5478else
5479 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5480fi
5481
5482fi
5483if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005484 _pkg_min_version=0.9.0
5485 { $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 +01005486$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005487 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005489$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005490 else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005492$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005493 PKG_CONFIG=""
5494 fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005495fi
5496LIBBLKID=
5497DEPLIBBLKID=
5498STATIC_LIBBLKID=
5499DEPSTATIC_LIBBLKID=
5500PROFILED_LIBBLKID=
5501DEPPROFILED_LIBBLKID=
5502BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005503
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005504# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005505if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005506 enableval=$enable_libblkid; if test "$enableval" = "no"
5507then
5508 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005509 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005510 fi
5511
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005513$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005514if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005515 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005516else
5517 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005518LIBS="-lblkid -luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005520/* end confdefs.h. */
5521
5522/* Override any GCC internal prototype to avoid an error.
5523 Use char because int might match the return type of a GCC
5524 builtin and then its argument prototype would still apply. */
5525#ifdef __cplusplus
5526extern "C"
5527#endif
5528char blkid_get_cache ();
5529int
5530main ()
5531{
5532return blkid_get_cache ();
5533 ;
5534 return 0;
5535}
5536_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005537if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005538 ac_cv_lib_blkid_blkid_get_cache=yes
5539else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005540 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005541fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005542rm -f core conftest.err conftest.$ac_objext \
5543 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005544LIBS=$ac_check_lib_save_LIBS
5545fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005547$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005548if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005549 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5550 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5551else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005552 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005553fi
5554
5555 BLKID_CMT=#
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005556 PROFILED_LIBBLKID=$LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005558$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005559else
5560 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5561 DEPLIBBLKID=$LIBBLKID
5562 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5563 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5564 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5565 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005566 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005567
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005569$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005570fi
5571
5572else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005573 if test -n "$PKG_CONFIG"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5575$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5576if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578else
5579 ac_check_lib_save_LIBS=$LIBS
5580LIBS="-lblkid $LIBS"
5581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582/* end confdefs.h. */
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005583
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005584/* Override any GCC internal prototype to avoid an error.
5585 Use char because int might match the return type of a GCC
5586 builtin and then its argument prototype would still apply. */
5587#ifdef __cplusplus
5588extern "C"
5589#endif
5590char blkid_get_cache ();
5591int
5592main ()
5593{
5594return blkid_get_cache ();
5595 ;
5596 return 0;
5597}
5598_ACEOF
5599if ac_fn_c_try_link "$LINENO"; then :
5600 ac_cv_lib_blkid_blkid_get_cache=yes
5601else
5602 ac_cv_lib_blkid_blkid_get_cache=no
5603fi
5604rm -f core conftest.err conftest.$ac_objext \
5605 conftest$ac_exeext conftest.$ac_ext
5606LIBS=$ac_check_lib_save_LIBS
5607fi
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5609$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5610if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5611 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5612 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5613fi
5614
5615fi
5616if test -n "$LIBBLKID"; then
5617 BLKID_CMT=#
5618 PROFILED_LIBBLKID=$LIBBLKID
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5620$as_echo "Using system blkid library by default" >&6; }
5621else
5622 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5623 DEPLIBBLKID=$LIBBLKID
5624 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5625 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5626 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5627 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5628 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005631$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005632fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005633
5634fi
5635
5636
5637
5638
5639
5640
5641
5642
Theodore Ts'o3df60142013-06-16 16:14:40 -04005643
5644# Check whether --enable-backtrace was given.
5645if test "${enable_backtrace+set}" = set; then :
5646 enableval=$enable_backtrace; if test "$enableval" = "no"
5647then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5649$as_echo "Disabling use of backtrace" >&6; }
5650 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5651
5652else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5654$as_echo "Enabling use of backtrace" >&6; }
5655fi
5656
5657else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5659$as_echo "Enabling use of backtrace by default" >&6; }
5660
5661fi
5662
Theodore Ts'oe1052142006-10-21 21:46:47 -04005663# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005664if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005665 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005666then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005668$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005669 DEBUGFS_CMT="#"
5670else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005671 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005673$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005674fi
5675
5676else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005678$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005679DEBUGFS_CMT=
5680
Theodore Ts'oe1052142006-10-21 21:46:47 -04005681fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005682
Theodore Ts'oe1052142006-10-21 21:46:47 -04005683
5684# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005685if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005686 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005687then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005689$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005690 IMAGER_CMT="#"
5691else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005692 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005694$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005695fi
5696
5697else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005699$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005700IMAGER_CMT=
5701
Theodore Ts'oe1052142006-10-21 21:46:47 -04005702fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005703
Theodore Ts'oe1052142006-10-21 21:46:47 -04005704
5705# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005706if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005707 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005708then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005710$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005711 RESIZER_CMT="#"
5712else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005713 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005715$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005716fi
5717
5718else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005720$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005721RESIZER_CMT=
5722
Theodore Ts'oe1052142006-10-21 21:46:47 -04005723fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005724
Theodore Ts'oe1052142006-10-21 21:46:47 -04005725
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005726# Check whether --enable-defrag was given.
5727if test "${enable_defrag+set}" = set; then :
5728 enableval=$enable_defrag; if test "$enableval" = "no"
5729then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5731$as_echo "Disabling e4defrag support" >&6; }
5732 DEFRAG_CMT="#"
5733else
5734 DEFRAG_CMT=
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5736$as_echo "Enabling e4defrag support" >&6; }
5737fi
5738
5739else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005740 if test -z "$WITH_DIET_LIBC"
5741then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005743$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005744 DEFRAG_CMT=
5745else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5747$as_echo "Disabling e4defrag support by default" >&6; }
5748 DEFRAG_CMT="#"
5749fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005750
5751fi
5752
5753
Theodore Ts'oe1052142006-10-21 21:46:47 -04005754# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005755if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005756 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005757then
5758 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005760$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005761else
5762 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005764$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005765fi
5766
5767else
5768 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005769 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005770 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005772$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005773 ;;
5774 *)
5775 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005777$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005778esac
5779
Theodore Ts'oe1052142006-10-21 21:46:47 -04005780fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005781
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005782
Theodore Ts'oe1052142006-10-21 21:46:47 -04005783
5784# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005785if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005786 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005787then
5788 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005790$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005791else
5792 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005794$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005795fi
5796
5797else
5798 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005800$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005801
Theodore Ts'oe1052142006-10-21 21:46:47 -04005802fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005803
5804
Theodore Ts'oe1052142006-10-21 21:46:47 -04005805
Theodore Ts'o32493942007-12-31 10:45:01 -05005806# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005807if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005808 enableval=$enable_tls; if test "$enableval" = "no"
5809then
5810 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005812$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005813else
5814 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005816$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005817fi
5818
5819else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005820 if test -n "$WITH_DIET_LIBC"
5821then
5822 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005823 { $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 +01005824$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005825else
5826 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005828$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005829fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005830
5831fi
5832
5833if test "$try_tls" = "yes"
5834then
5835
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005837$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005838 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005839 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005840else
5841
5842 ax_tls_keywords="__thread __declspec(thread) none"
5843 for ax_tls_keyword in $ax_tls_keywords; do
5844 case $ax_tls_keyword in
5845 none) ac_cv_tls=none ; break ;;
5846 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005848/* end confdefs.h. */
5849#include <stdlib.h>
5850 static void
5851 foo(void) {
5852 static $ax_tls_keyword int bar;
5853 exit(1);
5854 }
5855int
5856main ()
5857{
5858
5859 ;
5860 return 0;
5861}
5862_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005863if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005864 ac_cv_tls=$ax_tls_keyword ; break
5865else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005866 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005867
5868fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 esac
5871 done
5872
5873fi
5874
5875
5876 if test "$ac_cv_tls" != "none"; then
5877
5878cat >>confdefs.h <<_ACEOF
5879#define TLS $ac_cv_tls
5880_ACEOF
5881
5882 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005884$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005885
5886fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005887
Theodore Ts'o5610f992007-12-31 11:16:56 -05005888# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005889if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005890 enableval=$enable_uuidd; if test "$enableval" = "no"
5891then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005893$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005894 UUIDD_CMT="#"
5895else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005896 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005897
5898 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005900$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005901fi
5902
5903else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005904 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005905
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005906if test -z "$UUID_CMT"
5907then
5908 UUIDD_CMT=""
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005910$as_echo "Building uuidd by default" >&6; }
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005911else
5912 UUIDD_CMT="#"
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5914$as_echo "Disabling uuidd by default" >&6; }
5915fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005916
5917fi
5918
5919
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005920
5921# Check whether --enable-mmp was given.
5922if test "${enable_mmp+set}" = set; then :
5923 enableval=$enable_mmp; if test "$enableval" = "no"
5924then
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5926$as_echo "Disabling mmp support" >&6; }
5927else
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5929$as_echo "Enabling mmp support" >&6; }
5930 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5931
5932fi
5933
5934else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5936$as_echo "Enabling mmp support by default" >&6; }
5937$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5938
5939
5940fi
5941
Tony Breeds1625bf42012-07-30 14:44:12 -04005942
5943# Check whether --enable-bmap-stats was given.
5944if test "${enable_bmap_stats+set}" = set; then :
5945 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5946then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5948$as_echo "Disabling bitmap statistics support" >&6; }
5949else
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5951$as_echo "Enabling bitmap statistics support" >&6; }
5952 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5953
5954fi
5955
5956else
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5958$as_echo "Enabling bitmap statistics support by default" >&6; }
5959$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5960
5961
5962fi
5963
5964
5965# Check whether --enable-bmap-stats-ops was given.
5966if test "${enable_bmap_stats_ops+set}" = set; then :
5967 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5968then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5970$as_echo "Disabling additional bitmap statistics" >&6; }
5971else
5972 if test "x${enable_bmap_stats}" = "xno"; then :
5973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5975as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5976See \`config.log' for more details" "$LINENO" 5; }
5977fi
5978
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5980$as_echo "Enabling additional bitmap statistics" >&6; }
5981 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5982
5983fi
5984
5985else
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5987$as_echo "Disabling additional bitmap statistics by default" >&6; }
5988
5989fi
5990
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005991MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5992
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005993GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005994PACKAGE=e2fsprogs
5995VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005996VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005997
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005998cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005999#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006000_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006001
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006002
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006003cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006004#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006005_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006006
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006007
6008
6009
6010
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006012$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6013set x ${MAKE-make}
6014ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006015if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006016 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006017else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006018 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006019SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006020all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04006021 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006022_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006023# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04006024case `${MAKE-make} -f conftest.make 2>/dev/null` in
6025 *@@@%%%=?*=@@@%%%*)
6026 eval ac_cv_prog_make_${ac_make}_set=yes;;
6027 *)
6028 eval ac_cv_prog_make_${ac_make}_set=no;;
6029esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006030rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006031fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006032if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006034$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006035 SET_MAKE=
6036else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006038$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006039 SET_MAKE="MAKE=${MAKE-make}"
6040fi
6041
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006042# Find a good install program. We prefer a C program (faster),
6043# so one script is as good as another. But avoid the broken or
6044# incompatible versions:
6045# SysV /etc/install, /usr/sbin/install
6046# SunOS /usr/etc/install
6047# IRIX /sbin/install
6048# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006049# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006050# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6051# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6052# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006053# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006054# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006055# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006057$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006058if test -z "$INSTALL"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006059if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006060 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006061else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH
6064do
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006067 # Account for people who put trailing slashes in PATH elements.
6068case $as_dir/ in #((
6069 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006070 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006071 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006072 /usr/ucb/* ) ;;
6073 *)
6074 # OSF1 and SCO ODT 3.0 have their own names for install.
6075 # Don't use installbsd from OSF since it installs stuff as root
6076 # by default.
6077 for ac_prog in ginstall scoinst install; do
6078 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006079 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006080 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006081 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006082 # AIX install. It has an incompatible calling convention.
6083 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006084 elif test $ac_prog = install &&
6085 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6086 # program-specific install script used by HP pwplus--don't use.
6087 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006088 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006089 rm -rf conftest.one conftest.two conftest.dir
6090 echo one > conftest.one
6091 echo two > conftest.two
6092 mkdir conftest.dir
6093 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6094 test -s conftest.one && test -s conftest.two &&
6095 test -s conftest.dir/conftest.one &&
6096 test -s conftest.dir/conftest.two
6097 then
6098 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6099 break 3
6100 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006101 fi
6102 fi
6103 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006104 done
6105 ;;
6106esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006107
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006108 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006109IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006110
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006111rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006112
6113fi
6114 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006115 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006116 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04006117 # As a last resort, use the slow shell script. Don't cache a
6118 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006119 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04006120 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006121 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006122 fi
6123fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006125$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006126
6127# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6128# It thinks the first close brace ends the variable substitution.
6129test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6130
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006131test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006132
6133test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6134
Theodore Ts'o93613952014-07-03 23:44:13 -04006135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6136$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6137if test -z "$MKDIR_P"; then
6138 if ${ac_cv_path_mkdir+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6143do
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_prog in mkdir gmkdir; do
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6149 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6150 'mkdir (GNU coreutils) '* | \
6151 'mkdir (coreutils) '* | \
6152 'mkdir (fileutils) '4.1*)
6153 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6154 break 3;;
6155 esac
6156 done
6157 done
6158 done
6159IFS=$as_save_IFS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006160
Theodore Ts'o93613952014-07-03 23:44:13 -04006161fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006162
Theodore Ts'o93613952014-07-03 23:44:13 -04006163 test -d ./--version && rmdir ./--version
6164 if test "${ac_cv_path_mkdir+set}" = set; then
6165 MKDIR_P="$ac_cv_path_mkdir -p"
6166 else
6167 # As a last resort, use the slow shell script. Don't cache a
6168 # value for MKDIR_P within a source directory, because that will
6169 # break other packages using the cache if that directory is
6170 # removed, or if the value is a relative name.
6171 MKDIR_P="$ac_install_sh -d"
6172 fi
6173fi
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6175$as_echo "$MKDIR_P" >&6; }
6176
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6178$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6179if ${ac_cv_path_SED+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181else
6182 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6183 for ac_i in 1 2 3 4 5 6 7; do
6184 ac_script="$ac_script$as_nl$ac_script"
6185 done
6186 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6187 { ac_script=; unset ac_script;}
6188 if test -z "$SED"; then
6189 ac_path_SED_found=false
6190 # Loop through the user's path and test for each of PROGNAME-LIST
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192for as_dir in $PATH
6193do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_prog in sed gsed; do
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6199 as_fn_executable_p "$ac_path_SED" || continue
6200# Check for GNU ac_path_SED and select it if it is found.
6201 # Check for GNU $ac_path_SED
6202case `"$ac_path_SED" --version 2>&1` in
6203*GNU*)
6204 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6205*)
6206 ac_count=0
6207 $as_echo_n 0123456789 >"conftest.in"
6208 while :
6209 do
6210 cat "conftest.in" "conftest.in" >"conftest.tmp"
6211 mv "conftest.tmp" "conftest.in"
6212 cp "conftest.in" "conftest.nl"
6213 $as_echo '' >> "conftest.nl"
6214 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6215 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6216 as_fn_arith $ac_count + 1 && ac_count=$as_val
6217 if test $ac_count -gt ${ac_path_SED_max-0}; then
6218 # Best one so far, save it but keep looking for a better one
6219 ac_cv_path_SED="$ac_path_SED"
6220 ac_path_SED_max=$ac_count
6221 fi
6222 # 10*(2^10) chars as input seems more than enough
6223 test $ac_count -gt 10 && break
6224 done
6225 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6226esac
6227
6228 $ac_path_SED_found && break 3
6229 done
6230 done
6231 done
6232IFS=$as_save_IFS
6233 if test -z "$ac_cv_path_SED"; then
6234 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6235 fi
6236else
6237 ac_cv_path_SED=$SED
6238fi
6239
6240fi
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6242$as_echo "$ac_cv_path_SED" >&6; }
6243 SED="$ac_cv_path_SED"
6244 rm -f conftest.sed
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006245
6246
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006248$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006249 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006250if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006251 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006252else
6253 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04006254fi
6255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006257$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006258
6259
6260
6261
Theodore Ts'o93613952014-07-03 23:44:13 -04006262 GETTEXT_MACRO_VERSION=0.18
6263
6264
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006265
6266
6267# Prepare PATH_SEPARATOR.
6268# The user is always right.
6269if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006270 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6271 # contains only /bin. Note that ksh looks also at the FPATH variable,
6272 # so we have to set that as well for the test.
6273 PATH_SEPARATOR=:
6274 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6275 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6276 || PATH_SEPARATOR=';'
6277 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006278fi
6279
6280# Find out how to test for executable files. Don't use a zero-byte file,
6281# as systems may use methods other than mode bits to determine executability.
6282cat >conf$$.file <<_ASEOF
6283#! /bin/sh
6284exit 0
6285_ASEOF
6286chmod +x conf$$.file
6287if test -x conf$$.file >/dev/null 2>&1; then
6288 ac_executable_p="test -x"
6289else
6290 ac_executable_p="test -f"
6291fi
6292rm -f conf$$.file
6293
6294# Extract the first word of "msgfmt", so it can be a program name with args.
6295set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006297$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006298if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006299 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006300else
6301 case "$MSGFMT" in
6302 [\\/]* | ?:[\\/]*)
6303 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6304 ;;
6305 *)
6306 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6307 for ac_dir in $PATH; do
6308 IFS="$ac_save_IFS"
6309 test -z "$ac_dir" && ac_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006312 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6313 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006314 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6315 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6316 break 2
6317 fi
6318 fi
6319 done
6320 done
6321 IFS="$ac_save_IFS"
6322 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6323 ;;
6324esac
6325fi
6326MSGFMT="$ac_cv_path_MSGFMT"
6327if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006329$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006330else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006332$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006333fi
6334
6335 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6336set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006338$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006339if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006340 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006341else
6342 case $GMSGFMT in
6343 [\\/]* | ?:[\\/]*)
6344 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6345 ;;
6346 *)
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH
6349do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006352 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006354 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006356 break 2
6357 fi
6358done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006359 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006360IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006361
6362 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6363 ;;
6364esac
6365fi
6366GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006367if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006369$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006370else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006372$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006373fi
6374
6375
6376
Theodore Ts'o93613952014-07-03 23:44:13 -04006377 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6378 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6379 *) MSGFMT_015=$MSGFMT ;;
6380 esac
6381
6382 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6383 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6384 *) GMSGFMT_015=$GMSGFMT ;;
6385 esac
6386
6387
Theodore Ts'oe1052142006-10-21 21:46:47 -04006388
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006389# Prepare PATH_SEPARATOR.
6390# The user is always right.
6391if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006392 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6393 # contains only /bin. Note that ksh looks also at the FPATH variable,
6394 # so we have to set that as well for the test.
6395 PATH_SEPARATOR=:
6396 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6397 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6398 || PATH_SEPARATOR=';'
6399 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006400fi
6401
6402# Find out how to test for executable files. Don't use a zero-byte file,
6403# as systems may use methods other than mode bits to determine executability.
6404cat >conf$$.file <<_ASEOF
6405#! /bin/sh
6406exit 0
6407_ASEOF
6408chmod +x conf$$.file
6409if test -x conf$$.file >/dev/null 2>&1; then
6410 ac_executable_p="test -x"
6411else
6412 ac_executable_p="test -f"
6413fi
6414rm -f conf$$.file
6415
6416# Extract the first word of "xgettext", so it can be a program name with args.
6417set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006419$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006420if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006421 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006422else
6423 case "$XGETTEXT" in
6424 [\\/]* | ?:[\\/]*)
6425 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6426 ;;
6427 *)
6428 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6429 for ac_dir in $PATH; do
6430 IFS="$ac_save_IFS"
6431 test -z "$ac_dir" && ac_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006434 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6435 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 -05006436 (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
6437 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6438 break 2
6439 fi
6440 fi
6441 done
6442 done
6443 IFS="$ac_save_IFS"
6444 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6445 ;;
6446esac
6447fi
6448XGETTEXT="$ac_cv_path_XGETTEXT"
6449if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006451$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006452else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006454$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006455fi
6456
6457 rm -f messages.po
6458
Theodore Ts'o93613952014-07-03 23:44:13 -04006459 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6460 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6461 *) XGETTEXT_015=$XGETTEXT ;;
6462 esac
6463
6464
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006465
6466# Prepare PATH_SEPARATOR.
6467# The user is always right.
6468if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006469 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6470 # contains only /bin. Note that ksh looks also at the FPATH variable,
6471 # so we have to set that as well for the test.
6472 PATH_SEPARATOR=:
6473 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6474 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6475 || PATH_SEPARATOR=';'
6476 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006477fi
6478
6479# Find out how to test for executable files. Don't use a zero-byte file,
6480# as systems may use methods other than mode bits to determine executability.
6481cat >conf$$.file <<_ASEOF
6482#! /bin/sh
6483exit 0
6484_ASEOF
6485chmod +x conf$$.file
6486if test -x conf$$.file >/dev/null 2>&1; then
6487 ac_executable_p="test -x"
6488else
6489 ac_executable_p="test -f"
6490fi
6491rm -f conf$$.file
6492
6493# Extract the first word of "msgmerge", so it can be a program name with args.
6494set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006496$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006497if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006498 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006499else
6500 case "$MSGMERGE" in
6501 [\\/]* | ?:[\\/]*)
6502 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6503 ;;
6504 *)
6505 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6506 for ac_dir in $PATH; do
6507 IFS="$ac_save_IFS"
6508 test -z "$ac_dir" && ac_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006511 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6512 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006513 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6514 break 2
6515 fi
6516 fi
6517 done
6518 done
6519 IFS="$ac_save_IFS"
6520 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6521 ;;
6522esac
6523fi
6524MSGMERGE="$ac_cv_path_MSGMERGE"
6525if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006527$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006528else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006530$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006531fi
6532
6533
Theodore Ts'o93613952014-07-03 23:44:13 -04006534 test -n "$localedir" || localedir='${datadir}/locale'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006535
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006536
Theodore Ts'o93613952014-07-03 23:44:13 -04006537 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6538
6539
6540 ac_config_commands="$ac_config_commands po-directories"
6541
6542
6543
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6545$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6546if ${ac_cv_gnu_library_2+:} false; then :
6547 $as_echo_n "(cached) " >&6
6548else
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550/* end confdefs.h. */
6551
6552#include <features.h>
6553#ifdef __GNU_LIBRARY__
6554 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6555 Lucky GNU user
6556 #endif
6557#endif
6558
6559_ACEOF
6560if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6561 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6562 ac_cv_gnu_library_2=yes
6563else
6564 ac_cv_gnu_library_2=no
6565fi
6566rm -f conftest*
6567
6568
6569
6570fi
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6572$as_echo "$ac_cv_gnu_library_2" >&6; }
6573
6574 GLIBC2="$ac_cv_gnu_library_2"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006575
6576
6577if test -n "$ac_tool_prefix"; then
6578 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6579set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006581$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006582if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006583 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006584else
6585 if test -n "$RANLIB"; then
6586 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6587else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589for as_dir in $PATH
6590do
6591 IFS=$as_save_IFS
6592 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006593 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006595 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006597 break 2
6598 fi
6599done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006600 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006601IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006602
6603fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006604fi
6605RANLIB=$ac_cv_prog_RANLIB
6606if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006608$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006609else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006611$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006612fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006613
Theodore Ts'oe1052142006-10-21 21:46:47 -04006614
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006615fi
6616if test -z "$ac_cv_prog_RANLIB"; then
6617 ac_ct_RANLIB=$RANLIB
6618 # Extract the first word of "ranlib", so it can be a program name with args.
6619set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006621$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006622if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006623 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006624else
6625 if test -n "$ac_ct_RANLIB"; then
6626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6627else
6628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629for as_dir in $PATH
6630do
6631 IFS=$as_save_IFS
6632 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006633 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006635 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006637 break 2
6638 fi
6639done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006640 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006641IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006642
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006643fi
6644fi
6645ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6646if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006648$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006649else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006651$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006652fi
6653
Theodore Ts'oe1052142006-10-21 21:46:47 -04006654 if test "x$ac_ct_RANLIB" = x; then
6655 RANLIB=":"
6656 else
6657 case $cross_compiling:$ac_tool_warned in
6658yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006659{ $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 +01006660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006661ac_tool_warned=yes ;;
6662esac
6663 RANLIB=$ac_ct_RANLIB
6664 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006665else
6666 RANLIB="$ac_cv_prog_RANLIB"
6667fi
6668
6669
Theodore Ts'o93613952014-07-03 23:44:13 -04006670
6671 CFLAG_VISIBILITY=
6672 HAVE_VISIBILITY=0
6673 if test -n "$GCC"; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6675$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6676 if ${gl_cv_cc_vis_werror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006677 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006678else
Theodore Ts'o93613952014-07-03 23:44:13 -04006679
6680 gl_save_CFLAGS="$CFLAGS"
6681 CFLAGS="$CFLAGS -Werror"
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006683/* end confdefs.h. */
6684
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685int
6686main ()
6687{
Theodore Ts'o93613952014-07-03 23:44:13 -04006688
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006689 ;
6690 return 0;
6691}
6692_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04006693if ac_fn_c_try_compile "$LINENO"; then :
6694 gl_cv_cc_vis_werror=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006695else
Theodore Ts'o93613952014-07-03 23:44:13 -04006696 gl_cv_cc_vis_werror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006697fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699 CFLAGS="$gl_save_CFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006700fi
6701
Theodore Ts'o93613952014-07-03 23:44:13 -04006702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6703$as_echo "$gl_cv_cc_vis_werror" >&6; }
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6705$as_echo_n "checking for simple visibility declarations... " >&6; }
6706 if ${gl_cv_cc_visibility+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006707 $as_echo_n "(cached) " >&6
6708else
Theodore Ts'o93613952014-07-03 23:44:13 -04006709
6710 gl_save_CFLAGS="$CFLAGS"
6711 CFLAGS="$CFLAGS -fvisibility=hidden"
6712 if test $gl_cv_cc_vis_werror = yes; then
6713 CFLAGS="$CFLAGS -Werror"
6714 fi
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716/* end confdefs.h. */
6717extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6718 extern __attribute__((__visibility__("default"))) int exportedvar;
6719 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6720 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6721 void dummyfunc (void) {}
6722
6723int
6724main ()
6725{
6726
6727 ;
6728 return 0;
6729}
6730_ACEOF
6731if ac_fn_c_try_compile "$LINENO"; then :
6732 gl_cv_cc_visibility=yes
6733else
6734 gl_cv_cc_visibility=no
6735fi
6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737 CFLAGS="$gl_save_CFLAGS"
6738fi
6739
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6741$as_echo "$gl_cv_cc_visibility" >&6; }
6742 if test $gl_cv_cc_visibility = yes; then
6743 CFLAG_VISIBILITY="-fvisibility=hidden"
6744 HAVE_VISIBILITY=1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006745 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006746 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006747
6748
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006749
Theodore Ts'o93613952014-07-03 23:44:13 -04006750cat >>confdefs.h <<_ACEOF
6751#define HAVE_VISIBILITY $HAVE_VISIBILITY
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006752_ACEOF
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006753
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006754
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006756$as_echo_n "checking for inline... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006757if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006758 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006759else
6760 ac_cv_c_inline=no
6761for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006763/* end confdefs.h. */
6764#ifndef __cplusplus
6765typedef int foo_t;
6766static $ac_kw foo_t static_foo () {return 0; }
6767$ac_kw foo_t foo () {return 0; }
6768#endif
6769
6770_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006771if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006772 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006773fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006776done
6777
6778fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006780$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006781
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006782case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006783 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006784 *)
6785 case $ac_cv_c_inline in
6786 no) ac_val=;;
6787 *) ac_val=$ac_cv_c_inline;;
6788 esac
6789 cat >>confdefs.h <<_ACEOF
6790#ifndef __cplusplus
6791#define inline $ac_val
6792#endif
6793_ACEOF
6794 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006795esac
6796
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006797ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006798if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006799
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006800else
6801
6802cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006803#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006804_ACEOF
6805
6806fi
6807
6808
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006810$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04006811if ${gl_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006812 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006813else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006815/* end confdefs.h. */
6816#include <sys/types.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04006817 #include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006818int
6819main ()
6820{
Theodore Ts'o93613952014-07-03 23:44:13 -04006821uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006822 ;
6823 return 0;
6824}
6825_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006826if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04006827 gl_cv_header_stdint_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006828else
Theodore Ts'o93613952014-07-03 23:44:13 -04006829 gl_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006830fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006832fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6834$as_echo "$gl_cv_header_stdint_h" >&6; }
6835 if test $gl_cv_header_stdint_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006836
6837cat >>confdefs.h <<_ACEOF
6838#define HAVE_STDINT_H_WITH_UINTMAX 1
6839_ACEOF
6840
6841 fi
6842
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006843# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6844# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006846$as_echo_n "checking for working alloca.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006847if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006848 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006849else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006851/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006852#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006853int
6854main ()
6855{
6856char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006857 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006858 ;
6859 return 0;
6860}
6861_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006862if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006863 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006864else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006865 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006866fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006867rm -f core conftest.err conftest.$ac_objext \
6868 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006869fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006871$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006872if test $ac_cv_working_alloca_h = yes; then
6873
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006874$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006875
6876fi
6877
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006879$as_echo_n "checking for alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006880if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006881 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006882else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006884/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006885#ifdef __GNUC__
6886# define alloca __builtin_alloca
6887#else
6888# ifdef _MSC_VER
6889# include <malloc.h>
6890# define alloca _alloca
6891# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006892# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006893# include <alloca.h>
6894# else
6895# ifdef _AIX
6896 #pragma alloca
6897# else
6898# ifndef alloca /* predefined by HP cc +Olibcalls */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006899void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006900# endif
6901# endif
6902# endif
6903# endif
6904#endif
6905
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006906int
6907main ()
6908{
6909char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006910 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006911 ;
6912 return 0;
6913}
6914_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006915if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006916 ac_cv_func_alloca_works=yes
6917else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006918 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006919fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006920rm -f core conftest.err conftest.$ac_objext \
6921 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006922fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006924$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006925
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006926if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006927
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006928$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006929
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006930else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006931 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6932# that cause trouble. Some versions do not even contain alloca or
6933# contain a buggy version. If you still want to use their alloca,
6934# use ar to extract alloca.o from them instead of compiling alloca.c.
6935
Theodore Ts'oe1052142006-10-21 21:46:47 -04006936ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006937
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006938$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006939
6940
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006942$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006943if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006944 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006945else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006947/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006948#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006949webecray
6950#else
6951wenotbecray
6952#endif
6953
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006954_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006956 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006957 ac_cv_os_cray=yes
6958else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006959 ac_cv_os_cray=no
6960fi
6961rm -f conftest*
6962
6963fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006965$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006966if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006967 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006969ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006970if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006971
6972cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006973#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006974_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006975
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006976 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006977fi
6978
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006979 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006980fi
6981
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006983$as_echo_n "checking stack direction for C alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006984if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006985 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006986else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006987 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006988 ac_cv_c_stack_direction=0
6989else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006991/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006992$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006993int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006994find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006995{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006996 int dir, dummy = 0;
6997 if (! addr)
6998 addr = &dummy;
6999 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7000 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7001 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007002}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007003
7004int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007005main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007006{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007007 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007008}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007009_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007010if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007011 ac_cv_c_stack_direction=1
7012else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007013 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007014fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7016 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007017fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007018
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007019fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007021$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007022cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007023#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007024_ACEOF
7025
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007026
7027fi
7028
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007029
7030
7031
7032 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007033do :
7034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007035ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7036"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007037if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007038 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007039#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007040_ACEOF
7041
7042fi
7043
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007044done
7045
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007046
7047
7048
7049
7050
7051
7052
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007053for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007054do :
7055 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007056if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007057 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007058#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007059_ACEOF
7060
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007061fi
7062done
7063
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007065$as_echo_n "checking for working mmap... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007066if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007067 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007068else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007069 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007070 ac_cv_func_mmap_fixed_mapped=no
7071else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007073/* end confdefs.h. */
7074$ac_includes_default
7075/* malloc might have been renamed as rpl_malloc. */
7076#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007077
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007078/* Thanks to Mike Haertel and Jim Avera for this test.
7079 Here is a matrix of mmap possibilities:
7080 mmap private not fixed
7081 mmap private fixed at somewhere currently unmapped
7082 mmap private fixed at somewhere already mapped
7083 mmap shared not fixed
7084 mmap shared fixed at somewhere currently unmapped
7085 mmap shared fixed at somewhere already mapped
7086 For private mappings, we should verify that changes cannot be read()
7087 back from the file, nor mmap's back from the file at a different
7088 address. (There have been systems where private was not correctly
7089 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007090 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007091 like early versions of FreeBSD and possibly contemporary NetBSD.)
7092 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007093 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007094
7095 Grep wants private fixed already mapped.
7096 The main things grep needs to know about mmap are:
7097 * does it exist and is it safe to write into the mmap'd area
7098 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007099
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007100#include <fcntl.h>
7101#include <sys/mman.h>
7102
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007103#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007104char *malloc ();
7105#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007106
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007107/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007108#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007109# ifdef _SC_PAGESIZE
7110# define getpagesize() sysconf(_SC_PAGESIZE)
7111# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007112# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007113# include <sys/param.h>
7114# ifdef EXEC_PAGESIZE
7115# define getpagesize() EXEC_PAGESIZE
7116# else /* no EXEC_PAGESIZE */
7117# ifdef NBPG
7118# define getpagesize() NBPG * CLSIZE
7119# ifndef CLSIZE
7120# define CLSIZE 1
7121# endif /* no CLSIZE */
7122# else /* no NBPG */
7123# ifdef NBPC
7124# define getpagesize() NBPC
7125# else /* no NBPC */
7126# ifdef PAGESIZE
7127# define getpagesize() PAGESIZE
7128# endif /* PAGESIZE */
7129# endif /* no NBPC */
7130# endif /* no NBPG */
7131# endif /* no EXEC_PAGESIZE */
7132# else /* no HAVE_SYS_PARAM_H */
7133# define getpagesize() 8192 /* punt totally */
7134# endif /* no HAVE_SYS_PARAM_H */
7135# endif /* no _SC_PAGESIZE */
7136
7137#endif /* no HAVE_GETPAGESIZE */
7138
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007139int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007140main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007141{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007142 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007143 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007144 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007145 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007146
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007147 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007148
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007149 /* First, make a file with some known garbage in it. */
7150 data = (char *) malloc (pagesize);
7151 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007152 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007153 for (i = 0; i < pagesize; ++i)
7154 *(data + i) = rand ();
7155 umask (0);
7156 fd = creat ("conftest.mmap", 0600);
7157 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007158 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007159 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007160 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007161 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007162
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007163 /* Next, check that the tail of a page is zero-filled. File must have
7164 non-zero length, otherwise we risk SIGBUS for entire page. */
7165 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7166 if (fd2 < 0)
7167 return 4;
7168 cdata2 = "";
7169 if (write (fd2, cdata2, 1) != 1)
7170 return 5;
7171 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7172 if (data2 == MAP_FAILED)
7173 return 6;
7174 for (i = 0; i < pagesize; ++i)
7175 if (*(data2 + i))
7176 return 7;
7177 close (fd2);
7178 if (munmap (data2, pagesize))
7179 return 8;
7180
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007181 /* Next, try to mmap the file at a fixed address which already has
7182 something else allocated at it. If we can, also make sure that
7183 we see the same garbage. */
7184 fd = open ("conftest.mmap", O_RDWR);
7185 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007186 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007187 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7188 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007189 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007190 for (i = 0; i < pagesize; ++i)
7191 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007192 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007193
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007194 /* Finally, make sure that changes to the mapped area do not
7195 percolate back to the file as seen by read(). (This is a bug on
7196 some variants of i386 svr4.0.) */
7197 for (i = 0; i < pagesize; ++i)
7198 *(data2 + i) = *(data2 + i) + 1;
7199 data3 = (char *) malloc (pagesize);
7200 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007201 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007202 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007203 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007204 for (i = 0; i < pagesize; ++i)
7205 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007206 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007207 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007208 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007209}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007210_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007211if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007212 ac_cv_func_mmap_fixed_mapped=yes
7213else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007214 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007215fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007216rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7217 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007218fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007219
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007220fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007222$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007223if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007224
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007225$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007226
7227fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007228rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007229
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007231
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007233$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007234if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007235 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007236else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007237
Theodore Ts'o93613952014-07-03 23:44:13 -04007238 gt_cv_int_divbyzero_sigfpe=
7239 case "$host_os" in
7240 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7241 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7242 # compiling. If we were to perform the real test, 1 Crash Report
7243 # dialog window would pop up.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007244 case "$host_cpu" in
Theodore Ts'o93613952014-07-03 23:44:13 -04007245 i[34567]86 | x86_64)
7246 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007247 esac
Theodore Ts'o93613952014-07-03 23:44:13 -04007248 ;;
7249 esac
7250 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7251 if test "$cross_compiling" = yes; then :
7252
7253 # Guess based on the CPU.
7254 case "$host_cpu" in
7255 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7256 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7257 *)
7258 gt_cv_int_divbyzero_sigfpe="guessing no";;
7259 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007260
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007261else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007263/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007264
7265#include <stdlib.h>
7266#include <signal.h>
7267
7268static void
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007269sigfpe_handler (int sig)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007270{
7271 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7272 exit (sig != SIGFPE);
7273}
7274
7275int x = 1;
7276int y = 0;
7277int z;
7278int nan;
7279
7280int main ()
7281{
7282 signal (SIGFPE, sigfpe_handler);
7283/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7284#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7285 signal (SIGTRAP, sigfpe_handler);
7286#endif
7287/* Linux/SPARC yields signal SIGILL. */
7288#if defined (__sparc__) && defined (__linux__)
7289 signal (SIGILL, sigfpe_handler);
7290#endif
7291
7292 z = x / y;
7293 nan = y / y;
Theodore Ts'o93613952014-07-03 23:44:13 -04007294 exit (2);
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007295}
7296
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007297_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007298if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007299 gt_cv_int_divbyzero_sigfpe=yes
7300else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007301 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007302fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7304 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007305fi
7306
Theodore Ts'o93613952014-07-03 23:44:13 -04007307 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007308
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007309fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007311$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007312 case "$gt_cv_int_divbyzero_sigfpe" in
7313 *yes) value=1;;
7314 *) value=0;;
7315 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007316
7317cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007318#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007319_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007320
7321
7322
Theodore Ts'o93613952014-07-03 23:44:13 -04007323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7324$as_echo_n "checking for inttypes.h... " >&6; }
7325if ${gl_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007326 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007327else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007329/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007330
7331#include <sys/types.h>
7332#include <inttypes.h>
7333
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007334int
7335main ()
7336{
Theodore Ts'o93613952014-07-03 23:44:13 -04007337uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007338 ;
7339 return 0;
7340}
7341_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04007342if ac_fn_c_try_compile "$LINENO"; then :
7343 gl_cv_header_inttypes_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007344else
Theodore Ts'o93613952014-07-03 23:44:13 -04007345 gl_cv_header_inttypes_h=no
7346fi
7347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348fi
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7350$as_echo "$gl_cv_header_inttypes_h" >&6; }
7351 if test $gl_cv_header_inttypes_h = yes; then
7352
7353cat >>confdefs.h <<_ACEOF
7354#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7355_ACEOF
7356
7357 fi
7358
7359
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7361$as_echo_n "checking for unsigned long long int... " >&6; }
7362if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7363 $as_echo_n "(cached) " >&6
7364else
7365 ac_cv_type_unsigned_long_long_int=yes
7366 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368/* end confdefs.h. */
7369
7370 /* For now, do not test the preprocessor; as of 2007 there are too many
7371 implementations with broken preprocessors. Perhaps this can
7372 be revisited in 2012. In the meantime, code should not expect
7373 #if to work with literals wider than 32 bits. */
7374 /* Test literals. */
7375 long long int ll = 9223372036854775807ll;
7376 long long int nll = -9223372036854775807LL;
7377 unsigned long long int ull = 18446744073709551615ULL;
7378 /* Test constant expressions. */
7379 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7380 ? 1 : -1)];
7381 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7382 ? 1 : -1)];
7383 int i = 63;
7384int
7385main ()
7386{
7387/* Test availability of runtime routines for shift and division. */
7388 long long int llmax = 9223372036854775807ll;
7389 unsigned long long int ullmax = 18446744073709551615ull;
7390 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7391 | (llmax / ll) | (llmax % ll)
7392 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7393 | (ullmax / ull) | (ullmax % ull));
7394 ;
7395 return 0;
7396}
7397
7398_ACEOF
7399if ac_fn_c_try_link "$LINENO"; then :
7400
7401else
7402 ac_cv_type_unsigned_long_long_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007403fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007404rm -f core conftest.err conftest.$ac_objext \
7405 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -04007406 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007407fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7409$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7410 if test $ac_cv_type_unsigned_long_long_int = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007411
Theodore Ts'o93613952014-07-03 23:44:13 -04007412$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007413
7414 fi
7415
7416
7417
7418
Theodore Ts'o93613952014-07-03 23:44:13 -04007419 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007420
Theodore Ts'o93613952014-07-03 23:44:13 -04007421 test $ac_cv_type_unsigned_long_long_int = yes \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007422 && ac_type='unsigned long long' \
7423 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007424
7425cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007426#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007427_ACEOF
7428
7429 else
7430
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007431$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007432
7433 fi
7434
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007435
Theodore Ts'o93613952014-07-03 23:44:13 -04007436 for ac_header in inttypes.h
7437do :
7438 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7439if test "x$ac_cv_header_inttypes_h" = xyes; then :
7440 cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007441#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007442_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007443
Theodore Ts'o93613952014-07-03 23:44:13 -04007444fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007445
Theodore Ts'o93613952014-07-03 23:44:13 -04007446done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007447
Theodore Ts'o93613952014-07-03 23:44:13 -04007448 if test $ac_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007449 { $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 +01007450$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007451if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007452 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007453else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007454
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007456/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007457
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007458#include <inttypes.h>
7459#ifdef PRId32
7460char *p = PRId32;
7461#endif
7462
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007463int
7464main ()
7465{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007466
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007467 ;
7468 return 0;
7469}
7470_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007471if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007472 gt_cv_inttypes_pri_broken=no
7473else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007474 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007475fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007477
7478fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007480$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007481 fi
7482 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007483
7484cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007485#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007486_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007487
Theodore Ts'o93613952014-07-03 23:44:13 -04007488 PRI_MACROS_BROKEN=1
7489 else
7490 PRI_MACROS_BROKEN=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007491 fi
7492
7493
7494
Theodore Ts'o93613952014-07-03 23:44:13 -04007495
7496
7497
7498
7499 # Check whether --enable-threads was given.
7500if test "${enable_threads+set}" = set; then :
7501 enableval=$enable_threads; gl_use_threads=$enableval
7502else
7503 if test -n "$gl_use_threads_default"; then
7504 gl_use_threads="$gl_use_threads_default"
7505 else
7506 case "$host_os" in
7507 osf*) gl_use_threads=no ;;
7508 cygwin*)
7509 case `uname -r` in
7510 1.[0-5].*) gl_use_threads=no ;;
7511 *) gl_use_threads=yes ;;
7512 esac
7513 ;;
7514 *) gl_use_threads=yes ;;
7515 esac
7516 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007517
7518fi
7519
Theodore Ts'o93613952014-07-03 23:44:13 -04007520 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7521 # For using <pthread.h>:
7522 case "$host_os" in
7523 osf*)
7524 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7525 # groks <pthread.h>. cc also understands the flag -pthread, but
7526 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7527 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7528 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7529 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7530 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7531 ;;
7532 esac
7533 # Some systems optimize for single-threaded programs by default, and
7534 # need special flags to disable these optimizations. For example, the
7535 # definition of 'errno' in <errno.h>.
7536 case "$host_os" in
7537 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7538 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7539 esac
7540 fi
7541
7542
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007543
7544
7545
7546 if test "X$prefix" = "XNONE"; then
7547 acl_final_prefix="$ac_default_prefix"
7548 else
7549 acl_final_prefix="$prefix"
7550 fi
7551 if test "X$exec_prefix" = "XNONE"; then
7552 acl_final_exec_prefix='${prefix}'
7553 else
7554 acl_final_exec_prefix="$exec_prefix"
7555 fi
7556 acl_save_prefix="$prefix"
7557 prefix="$acl_final_prefix"
7558 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7559 prefix="$acl_save_prefix"
7560
7561
Theodore Ts'o93613952014-07-03 23:44:13 -04007562
Theodore Ts'oe1052142006-10-21 21:46:47 -04007563# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007564if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007565 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007566else
7567 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007568fi
7569
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007570# Prepare PATH_SEPARATOR.
7571# The user is always right.
7572if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007573 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7574 # contains only /bin. Note that ksh looks also at the FPATH variable,
7575 # so we have to set that as well for the test.
7576 PATH_SEPARATOR=:
7577 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7578 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7579 || PATH_SEPARATOR=';'
7580 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007581fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007583ac_prog=ld
7584if test "$GCC" = yes; then
7585 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o93613952014-07-03 23:44:13 -04007586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7587$as_echo_n "checking for ld used by $CC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007588 case $host in
7589 *-*-mingw*)
7590 # gcc leaves a trailing carriage return which upsets mingw
7591 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7592 *)
7593 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7594 esac
7595 case $ac_prog in
7596 # Accept absolute paths.
Theodore Ts'o93613952014-07-03 23:44:13 -04007597 [\\/]* | ?:[\\/]*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007598 re_direlt='/[^/][^/]*/\.\./'
Theodore Ts'o93613952014-07-03 23:44:13 -04007599 # Canonicalize the pathname of ld
7600 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7601 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7602 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007603 done
7604 test -z "$LD" && LD="$ac_prog"
7605 ;;
7606 "")
7607 # If it fails, then pretend we aren't using GCC.
7608 ac_prog=ld
7609 ;;
7610 *)
7611 # If it is relative, then search for the first ld in PATH.
7612 with_gnu_ld=unknown
7613 ;;
7614 esac
7615elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007617$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007618else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007620$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007621fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007622if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007623 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007624else
7625 if test -z "$LD"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007626 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007627 for ac_dir in $PATH; do
Theodore Ts'o93613952014-07-03 23:44:13 -04007628 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007629 test -z "$ac_dir" && ac_dir=.
7630 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7631 acl_cv_path_LD="$ac_dir/$ac_prog"
7632 # Check to see if the program is GNU ld. I'd rather use --version,
Theodore Ts'o93613952014-07-03 23:44:13 -04007633 # but apparently some variants of GNU ld only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007634 # Break only if it was the GNU/non-GNU ld that we prefer.
Theodore Ts'o93613952014-07-03 23:44:13 -04007635 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007636 *GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007637 test "$with_gnu_ld" != no && break
7638 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007639 *)
Theodore Ts'o93613952014-07-03 23:44:13 -04007640 test "$with_gnu_ld" != yes && break
7641 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007642 esac
7643 fi
7644 done
Theodore Ts'o93613952014-07-03 23:44:13 -04007645 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007646else
7647 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7648fi
7649fi
7650
7651LD="$acl_cv_path_LD"
7652if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007654$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007655else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007657$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007658fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007659test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007661$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007662if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007663 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007664else
Theodore Ts'o93613952014-07-03 23:44:13 -04007665 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007666case `$LD -v 2>&1 </dev/null` in
7667*GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007668 acl_cv_prog_gnu_ld=yes
7669 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007670*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007671 acl_cv_prog_gnu_ld=no
7672 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007673esac
7674fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007676$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007677with_gnu_ld=$acl_cv_prog_gnu_ld
7678
7679
7680
Theodore Ts'o93613952014-07-03 23:44:13 -04007681
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007683$as_echo_n "checking for shared library run path origin... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007684if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007685 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007686else
7687
7688 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7689 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7690 . ./conftest.sh
7691 rm -f ./conftest.sh
7692 acl_cv_rpath=done
7693
7694fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007696$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007697 wl="$acl_cv_wl"
Theodore Ts'o93613952014-07-03 23:44:13 -04007698 acl_libext="$acl_cv_libext"
7699 acl_shlibext="$acl_cv_shlibext"
7700 acl_libname_spec="$acl_cv_libname_spec"
7701 acl_library_names_spec="$acl_cv_library_names_spec"
7702 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7703 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7704 acl_hardcode_direct="$acl_cv_hardcode_direct"
7705 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007706 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007707if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007708 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007709else
7710 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007711fi
7712
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007713
7714
7715
Theodore Ts'o93613952014-07-03 23:44:13 -04007716 acl_libdirstem=lib
7717 acl_libdirstem2=
7718 case "$host_os" in
7719 solaris*)
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7721$as_echo_n "checking for 64-bit host... " >&6; }
7722if ${gl_cv_solaris_64bit+:} false; then :
7723 $as_echo_n "(cached) " >&6
7724else
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726/* end confdefs.h. */
7727
7728#ifdef _LP64
7729sixtyfour bits
7730#endif
7731
7732_ACEOF
7733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7734 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7735 gl_cv_solaris_64bit=yes
7736else
7737 gl_cv_solaris_64bit=no
7738fi
7739rm -f conftest*
7740
7741
7742fi
7743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7744$as_echo "$gl_cv_solaris_64bit" >&6; }
7745 if test $gl_cv_solaris_64bit = yes; then
7746 acl_libdirstem=lib/64
7747 case "$host_cpu" in
7748 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7749 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7750 esac
7751 fi
7752 ;;
7753 *)
7754 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7755 if test -n "$searchpath"; then
7756 acl_save_IFS="${IFS= }"; IFS=":"
7757 for searchdir in $searchpath; do
7758 if test -d "$searchdir"; then
7759 case "$searchdir" in
7760 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7761 */../ | */.. )
7762 # Better ignore directories of this form. They are misleading.
7763 ;;
7764 *) searchdir=`cd "$searchdir" && pwd`
7765 case "$searchdir" in
7766 */lib64 ) acl_libdirstem=lib64 ;;
7767 esac ;;
7768 esac
7769 fi
7770 done
7771 IFS="$acl_save_IFS"
7772 fi
7773 ;;
7774 esac
7775 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7776
7777
7778
7779 gl_threads_api=none
7780 LIBTHREAD=
7781 LTLIBTHREAD=
7782 LIBMULTITHREAD=
7783 LTLIBMULTITHREAD=
7784 if test "$gl_use_threads" != no; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7786$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7787if ${gl_cv_have_weak+:} false; then :
7788 $as_echo_n "(cached) " >&6
7789else
7790 gl_cv_have_weak=no
7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792/* end confdefs.h. */
7793extern void xyzzy ();
7794#pragma weak xyzzy
7795int
7796main ()
7797{
7798xyzzy();
7799 ;
7800 return 0;
7801}
7802_ACEOF
7803if ac_fn_c_try_link "$LINENO"; then :
7804 gl_cv_have_weak=maybe
7805fi
7806rm -f core conftest.err conftest.$ac_objext \
7807 conftest$ac_exeext conftest.$ac_ext
7808 if test $gl_cv_have_weak = maybe; then
7809 if test "$cross_compiling" = yes; then :
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811/* end confdefs.h. */
7812#ifdef __ELF__
7813 Extensible Linking Format
7814 #endif
7815
7816_ACEOF
7817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7818 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7819 gl_cv_have_weak="guessing yes"
7820else
7821 gl_cv_have_weak="guessing no"
7822fi
7823rm -f conftest*
7824
7825
7826else
7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828/* end confdefs.h. */
7829
7830#include <stdio.h>
7831#pragma weak fputs
7832int main ()
7833{
7834 return (fputs == NULL);
7835}
7836_ACEOF
7837if ac_fn_c_try_run "$LINENO"; then :
7838 gl_cv_have_weak=yes
7839else
7840 gl_cv_have_weak=no
7841fi
7842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7843 conftest.$ac_objext conftest.beam conftest.$ac_ext
7844fi
7845
7846 fi
7847
7848fi
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7850$as_echo "$gl_cv_have_weak" >&6; }
7851 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7852 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7853 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7854 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7855if test "x$ac_cv_header_pthread_h" = xyes; then :
7856 gl_have_pthread_h=yes
7857else
7858 gl_have_pthread_h=no
7859fi
7860
7861
7862 if test "$gl_have_pthread_h" = yes; then
7863 # Other possible tests:
7864 # -lpthreads (FSU threads, PCthreads)
7865 # -lgthreads
7866 gl_have_pthread=
7867 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7868 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7869 # the second one only in libpthread, and lock.c needs it.
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h. */
7872#include <pthread.h>
7873int
7874main ()
7875{
7876pthread_mutex_lock((pthread_mutex_t*)0);
7877 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7878 ;
7879 return 0;
7880}
7881_ACEOF
7882if ac_fn_c_try_link "$LINENO"; then :
7883 gl_have_pthread=yes
7884fi
7885rm -f core conftest.err conftest.$ac_objext \
7886 conftest$ac_exeext conftest.$ac_ext
7887 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7888 # since it is defined as a macro on OSF/1.)
7889 if test -n "$gl_have_pthread"; then
7890 # The program links fine without libpthread. But it may actually
7891 # need to link with libpthread in order to create multiple threads.
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7893$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7894if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7895 $as_echo_n "(cached) " >&6
7896else
7897 ac_check_lib_save_LIBS=$LIBS
7898LIBS="-lpthread $LIBS"
7899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900/* end confdefs.h. */
7901
7902/* Override any GCC internal prototype to avoid an error.
7903 Use char because int might match the return type of a GCC
7904 builtin and then its argument prototype would still apply. */
7905#ifdef __cplusplus
7906extern "C"
7907#endif
7908char pthread_kill ();
7909int
7910main ()
7911{
7912return pthread_kill ();
7913 ;
7914 return 0;
7915}
7916_ACEOF
7917if ac_fn_c_try_link "$LINENO"; then :
7918 ac_cv_lib_pthread_pthread_kill=yes
7919else
7920 ac_cv_lib_pthread_pthread_kill=no
7921fi
7922rm -f core conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7924LIBS=$ac_check_lib_save_LIBS
7925fi
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7927$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7928if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7929 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7930 # On Solaris and HP-UX, most pthread functions exist also in libc.
7931 # Therefore pthread_in_use() needs to actually try to create a
7932 # thread: pthread_create from libc will fail, whereas
7933 # pthread_create will actually create a thread.
7934 case "$host_os" in
7935 solaris* | hpux*)
7936
7937$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7938
7939 esac
7940
7941fi
7942
7943 else
7944 # Some library is needed. Try libpthread and libc_r.
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7946$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7947if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7948 $as_echo_n "(cached) " >&6
7949else
7950 ac_check_lib_save_LIBS=$LIBS
7951LIBS="-lpthread $LIBS"
7952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953/* end confdefs.h. */
7954
7955/* Override any GCC internal prototype to avoid an error.
7956 Use char because int might match the return type of a GCC
7957 builtin and then its argument prototype would still apply. */
7958#ifdef __cplusplus
7959extern "C"
7960#endif
7961char pthread_kill ();
7962int
7963main ()
7964{
7965return pthread_kill ();
7966 ;
7967 return 0;
7968}
7969_ACEOF
7970if ac_fn_c_try_link "$LINENO"; then :
7971 ac_cv_lib_pthread_pthread_kill=yes
7972else
7973 ac_cv_lib_pthread_pthread_kill=no
7974fi
7975rm -f core conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
7977LIBS=$ac_check_lib_save_LIBS
7978fi
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7980$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7981if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7982 gl_have_pthread=yes
7983 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7984 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7985fi
7986
7987 if test -z "$gl_have_pthread"; then
7988 # For FreeBSD 4.
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
7990$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
7991if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7992 $as_echo_n "(cached) " >&6
7993else
7994 ac_check_lib_save_LIBS=$LIBS
7995LIBS="-lc_r $LIBS"
7996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997/* end confdefs.h. */
7998
7999/* Override any GCC internal prototype to avoid an error.
8000 Use char because int might match the return type of a GCC
8001 builtin and then its argument prototype would still apply. */
8002#ifdef __cplusplus
8003extern "C"
8004#endif
8005char pthread_kill ();
8006int
8007main ()
8008{
8009return pthread_kill ();
8010 ;
8011 return 0;
8012}
8013_ACEOF
8014if ac_fn_c_try_link "$LINENO"; then :
8015 ac_cv_lib_c_r_pthread_kill=yes
8016else
8017 ac_cv_lib_c_r_pthread_kill=no
8018fi
8019rm -f core conftest.err conftest.$ac_objext \
8020 conftest$ac_exeext conftest.$ac_ext
8021LIBS=$ac_check_lib_save_LIBS
8022fi
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8024$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8025if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8026 gl_have_pthread=yes
8027 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8028 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8029fi
8030
8031 fi
8032 fi
8033 if test -n "$gl_have_pthread"; then
8034 gl_threads_api=posix
8035
8036$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8037
8038 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8039 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8040
8041$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8042
8043 LIBTHREAD=
8044 LTLIBTHREAD=
8045 fi
8046 fi
8047 fi
8048 fi
8049 fi
8050 if test -z "$gl_have_pthread"; then
8051 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8052 gl_have_solaristhread=
8053 gl_save_LIBS="$LIBS"
8054 LIBS="$LIBS -lthread"
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056/* end confdefs.h. */
8057
8058#include <thread.h>
8059#include <synch.h>
8060
8061int
8062main ()
8063{
8064thr_self();
8065 ;
8066 return 0;
8067}
8068_ACEOF
8069if ac_fn_c_try_link "$LINENO"; then :
8070 gl_have_solaristhread=yes
8071fi
8072rm -f core conftest.err conftest.$ac_objext \
8073 conftest$ac_exeext conftest.$ac_ext
8074 LIBS="$gl_save_LIBS"
8075 if test -n "$gl_have_solaristhread"; then
8076 gl_threads_api=solaris
8077 LIBTHREAD=-lthread
8078 LTLIBTHREAD=-lthread
8079 LIBMULTITHREAD="$LIBTHREAD"
8080 LTLIBMULTITHREAD="$LTLIBTHREAD"
8081
8082$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8083
8084 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8085
8086$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8087
8088 LIBTHREAD=
8089 LTLIBTHREAD=
8090 fi
8091 fi
8092 fi
8093 fi
8094 if test "$gl_use_threads" = pth; then
8095 gl_save_CPPFLAGS="$CPPFLAGS"
8096
8097
8098
8099
8100
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8102$as_echo_n "checking how to link with libpth... " >&6; }
8103if ${ac_cv_libpth_libs+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105else
8106
8107
8108
8109
8110
8111
8112
8113
8114 use_additional=yes
8115
8116 acl_save_prefix="$prefix"
8117 prefix="$acl_final_prefix"
8118 acl_save_exec_prefix="$exec_prefix"
8119 exec_prefix="$acl_final_exec_prefix"
8120
8121 eval additional_includedir=\"$includedir\"
8122 eval additional_libdir=\"$libdir\"
8123
8124 exec_prefix="$acl_save_exec_prefix"
8125 prefix="$acl_save_prefix"
8126
8127
8128# Check whether --with-libpth-prefix was given.
8129if test "${with_libpth_prefix+set}" = set; then :
8130 withval=$with_libpth_prefix;
8131 if test "X$withval" = "Xno"; then
8132 use_additional=no
8133 else
8134 if test "X$withval" = "X"; then
8135
8136 acl_save_prefix="$prefix"
8137 prefix="$acl_final_prefix"
8138 acl_save_exec_prefix="$exec_prefix"
8139 exec_prefix="$acl_final_exec_prefix"
8140
8141 eval additional_includedir=\"$includedir\"
8142 eval additional_libdir=\"$libdir\"
8143
8144 exec_prefix="$acl_save_exec_prefix"
8145 prefix="$acl_save_prefix"
8146
8147 else
8148 additional_includedir="$withval/include"
8149 additional_libdir="$withval/$acl_libdirstem"
8150 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8151 && ! test -d "$withval/$acl_libdirstem"; then
8152 additional_libdir="$withval/$acl_libdirstem2"
8153 fi
8154 fi
8155 fi
8156
8157fi
8158
8159 LIBPTH=
8160 LTLIBPTH=
8161 INCPTH=
8162 LIBPTH_PREFIX=
8163 HAVE_LIBPTH=
8164 rpathdirs=
8165 ltrpathdirs=
8166 names_already_handled=
8167 names_next_round='pth '
8168 while test -n "$names_next_round"; do
8169 names_this_round="$names_next_round"
8170 names_next_round=
8171 for name in $names_this_round; do
8172 already_handled=
8173 for n in $names_already_handled; do
8174 if test "$n" = "$name"; then
8175 already_handled=yes
8176 break
8177 fi
8178 done
8179 if test -z "$already_handled"; then
8180 names_already_handled="$names_already_handled $name"
8181 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8182 eval value=\"\$HAVE_LIB$uppername\"
8183 if test -n "$value"; then
8184 if test "$value" = yes; then
8185 eval value=\"\$LIB$uppername\"
8186 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8187 eval value=\"\$LTLIB$uppername\"
8188 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8189 else
8190 :
8191 fi
8192 else
8193 found_dir=
8194 found_la=
8195 found_so=
8196 found_a=
8197 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8198 if test -n "$acl_shlibext"; then
8199 shrext=".$acl_shlibext" # typically: shrext=.so
8200 else
8201 shrext=
8202 fi
8203 if test $use_additional = yes; then
8204 dir="$additional_libdir"
8205 if test -n "$acl_shlibext"; then
8206 if test -f "$dir/$libname$shrext"; then
8207 found_dir="$dir"
8208 found_so="$dir/$libname$shrext"
8209 else
8210 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8211 ver=`(cd "$dir" && \
8212 for f in "$libname$shrext".*; do echo "$f"; done \
8213 | sed -e "s,^$libname$shrext\\\\.,," \
8214 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8215 | sed 1q ) 2>/dev/null`
8216 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8217 found_dir="$dir"
8218 found_so="$dir/$libname$shrext.$ver"
8219 fi
8220 else
8221 eval library_names=\"$acl_library_names_spec\"
8222 for f in $library_names; do
8223 if test -f "$dir/$f"; then
8224 found_dir="$dir"
8225 found_so="$dir/$f"
8226 break
8227 fi
8228 done
8229 fi
8230 fi
8231 fi
8232 if test "X$found_dir" = "X"; then
8233 if test -f "$dir/$libname.$acl_libext"; then
8234 found_dir="$dir"
8235 found_a="$dir/$libname.$acl_libext"
8236 fi
8237 fi
8238 if test "X$found_dir" != "X"; then
8239 if test -f "$dir/$libname.la"; then
8240 found_la="$dir/$libname.la"
8241 fi
8242 fi
8243 fi
8244 if test "X$found_dir" = "X"; then
8245 for x in $LDFLAGS $LTLIBPTH; do
8246
8247 acl_save_prefix="$prefix"
8248 prefix="$acl_final_prefix"
8249 acl_save_exec_prefix="$exec_prefix"
8250 exec_prefix="$acl_final_exec_prefix"
8251 eval x=\"$x\"
8252 exec_prefix="$acl_save_exec_prefix"
8253 prefix="$acl_save_prefix"
8254
8255 case "$x" in
8256 -L*)
8257 dir=`echo "X$x" | sed -e 's/^X-L//'`
8258 if test -n "$acl_shlibext"; then
8259 if test -f "$dir/$libname$shrext"; then
8260 found_dir="$dir"
8261 found_so="$dir/$libname$shrext"
8262 else
8263 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8264 ver=`(cd "$dir" && \
8265 for f in "$libname$shrext".*; do echo "$f"; done \
8266 | sed -e "s,^$libname$shrext\\\\.,," \
8267 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8268 | sed 1q ) 2>/dev/null`
8269 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8270 found_dir="$dir"
8271 found_so="$dir/$libname$shrext.$ver"
8272 fi
8273 else
8274 eval library_names=\"$acl_library_names_spec\"
8275 for f in $library_names; do
8276 if test -f "$dir/$f"; then
8277 found_dir="$dir"
8278 found_so="$dir/$f"
8279 break
8280 fi
8281 done
8282 fi
8283 fi
8284 fi
8285 if test "X$found_dir" = "X"; then
8286 if test -f "$dir/$libname.$acl_libext"; then
8287 found_dir="$dir"
8288 found_a="$dir/$libname.$acl_libext"
8289 fi
8290 fi
8291 if test "X$found_dir" != "X"; then
8292 if test -f "$dir/$libname.la"; then
8293 found_la="$dir/$libname.la"
8294 fi
8295 fi
8296 ;;
8297 esac
8298 if test "X$found_dir" != "X"; then
8299 break
8300 fi
8301 done
8302 fi
8303 if test "X$found_dir" != "X"; then
8304 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8305 if test "X$found_so" != "X"; then
8306 if test "$enable_rpath" = no \
8307 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8308 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8309 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8310 else
8311 haveit=
8312 for x in $ltrpathdirs; do
8313 if test "X$x" = "X$found_dir"; then
8314 haveit=yes
8315 break
8316 fi
8317 done
8318 if test -z "$haveit"; then
8319 ltrpathdirs="$ltrpathdirs $found_dir"
8320 fi
8321 if test "$acl_hardcode_direct" = yes; then
8322 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8323 else
8324 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8325 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8326 haveit=
8327 for x in $rpathdirs; do
8328 if test "X$x" = "X$found_dir"; then
8329 haveit=yes
8330 break
8331 fi
8332 done
8333 if test -z "$haveit"; then
8334 rpathdirs="$rpathdirs $found_dir"
8335 fi
8336 else
8337 haveit=
8338 for x in $LDFLAGS $LIBPTH; do
8339
8340 acl_save_prefix="$prefix"
8341 prefix="$acl_final_prefix"
8342 acl_save_exec_prefix="$exec_prefix"
8343 exec_prefix="$acl_final_exec_prefix"
8344 eval x=\"$x\"
8345 exec_prefix="$acl_save_exec_prefix"
8346 prefix="$acl_save_prefix"
8347
8348 if test "X$x" = "X-L$found_dir"; then
8349 haveit=yes
8350 break
8351 fi
8352 done
8353 if test -z "$haveit"; then
8354 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8355 fi
8356 if test "$acl_hardcode_minus_L" != no; then
8357 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8358 else
8359 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8360 fi
8361 fi
8362 fi
8363 fi
8364 else
8365 if test "X$found_a" != "X"; then
8366 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8367 else
8368 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8369 fi
8370 fi
8371 additional_includedir=
8372 case "$found_dir" in
8373 */$acl_libdirstem | */$acl_libdirstem/)
8374 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8375 if test "$name" = 'pth'; then
8376 LIBPTH_PREFIX="$basedir"
8377 fi
8378 additional_includedir="$basedir/include"
8379 ;;
8380 */$acl_libdirstem2 | */$acl_libdirstem2/)
8381 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8382 if test "$name" = 'pth'; then
8383 LIBPTH_PREFIX="$basedir"
8384 fi
8385 additional_includedir="$basedir/include"
8386 ;;
8387 esac
8388 if test "X$additional_includedir" != "X"; then
8389 if test "X$additional_includedir" != "X/usr/include"; then
8390 haveit=
8391 if test "X$additional_includedir" = "X/usr/local/include"; then
8392 if test -n "$GCC"; then
8393 case $host_os in
8394 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8395 esac
8396 fi
8397 fi
8398 if test -z "$haveit"; then
8399 for x in $CPPFLAGS $INCPTH; 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-I$additional_includedir"; then
8410 haveit=yes
8411 break
8412 fi
8413 done
8414 if test -z "$haveit"; then
8415 if test -d "$additional_includedir"; then
8416 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8417 fi
8418 fi
8419 fi
8420 fi
8421 fi
8422 if test -n "$found_la"; then
8423 save_libdir="$libdir"
8424 case "$found_la" in
8425 */* | *\\*) . "$found_la" ;;
8426 *) . "./$found_la" ;;
8427 esac
8428 libdir="$save_libdir"
8429 for dep in $dependency_libs; do
8430 case "$dep" in
8431 -L*)
8432 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8433 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8434 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8435 haveit=
8436 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8437 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8438 if test -n "$GCC"; then
8439 case $host_os in
8440 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8441 esac
8442 fi
8443 fi
8444 if test -z "$haveit"; then
8445 haveit=
8446 for x in $LDFLAGS $LIBPTH; do
8447
8448 acl_save_prefix="$prefix"
8449 prefix="$acl_final_prefix"
8450 acl_save_exec_prefix="$exec_prefix"
8451 exec_prefix="$acl_final_exec_prefix"
8452 eval x=\"$x\"
8453 exec_prefix="$acl_save_exec_prefix"
8454 prefix="$acl_save_prefix"
8455
8456 if test "X$x" = "X-L$additional_libdir"; then
8457 haveit=yes
8458 break
8459 fi
8460 done
8461 if test -z "$haveit"; then
8462 if test -d "$additional_libdir"; then
8463 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8464 fi
8465 fi
8466 haveit=
8467 for x in $LDFLAGS $LTLIBPTH; do
8468
8469 acl_save_prefix="$prefix"
8470 prefix="$acl_final_prefix"
8471 acl_save_exec_prefix="$exec_prefix"
8472 exec_prefix="$acl_final_exec_prefix"
8473 eval x=\"$x\"
8474 exec_prefix="$acl_save_exec_prefix"
8475 prefix="$acl_save_prefix"
8476
8477 if test "X$x" = "X-L$additional_libdir"; then
8478 haveit=yes
8479 break
8480 fi
8481 done
8482 if test -z "$haveit"; then
8483 if test -d "$additional_libdir"; then
8484 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8485 fi
8486 fi
8487 fi
8488 fi
8489 ;;
8490 -R*)
8491 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8492 if test "$enable_rpath" != no; then
8493 haveit=
8494 for x in $rpathdirs; do
8495 if test "X$x" = "X$dir"; then
8496 haveit=yes
8497 break
8498 fi
8499 done
8500 if test -z "$haveit"; then
8501 rpathdirs="$rpathdirs $dir"
8502 fi
8503 haveit=
8504 for x in $ltrpathdirs; do
8505 if test "X$x" = "X$dir"; then
8506 haveit=yes
8507 break
8508 fi
8509 done
8510 if test -z "$haveit"; then
8511 ltrpathdirs="$ltrpathdirs $dir"
8512 fi
8513 fi
8514 ;;
8515 -l*)
8516 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8517 ;;
8518 *.la)
8519 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8520 ;;
8521 *)
8522 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8523 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8524 ;;
8525 esac
8526 done
8527 fi
8528 else
8529 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8530 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8531 fi
8532 fi
8533 fi
8534 done
8535 done
8536 if test "X$rpathdirs" != "X"; then
8537 if test -n "$acl_hardcode_libdir_separator"; then
8538 alldirs=
8539 for found_dir in $rpathdirs; do
8540 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8541 done
8542 acl_save_libdir="$libdir"
8543 libdir="$alldirs"
8544 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8545 libdir="$acl_save_libdir"
8546 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8547 else
8548 for found_dir in $rpathdirs; do
8549 acl_save_libdir="$libdir"
8550 libdir="$found_dir"
8551 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8552 libdir="$acl_save_libdir"
8553 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8554 done
8555 fi
8556 fi
8557 if test "X$ltrpathdirs" != "X"; then
8558 for found_dir in $ltrpathdirs; do
8559 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8560 done
8561 fi
8562
8563
8564
8565
8566
8567
8568 ac_cv_libpth_libs="$LIBPTH"
8569 ac_cv_libpth_ltlibs="$LTLIBPTH"
8570 ac_cv_libpth_cppflags="$INCPTH"
8571 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8572
8573fi
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8575$as_echo "$ac_cv_libpth_libs" >&6; }
8576 LIBPTH="$ac_cv_libpth_libs"
8577 LTLIBPTH="$ac_cv_libpth_ltlibs"
8578 INCPTH="$ac_cv_libpth_cppflags"
8579 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8580
8581 for element in $INCPTH; do
8582 haveit=
8583 for x in $CPPFLAGS; do
8584
8585 acl_save_prefix="$prefix"
8586 prefix="$acl_final_prefix"
8587 acl_save_exec_prefix="$exec_prefix"
8588 exec_prefix="$acl_final_exec_prefix"
8589 eval x=\"$x\"
8590 exec_prefix="$acl_save_exec_prefix"
8591 prefix="$acl_save_prefix"
8592
8593 if test "X$x" = "X$element"; then
8594 haveit=yes
8595 break
8596 fi
8597 done
8598 if test -z "$haveit"; then
8599 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8600 fi
8601 done
8602
8603
8604
8605
8606 HAVE_LIBPTH=yes
8607
8608
8609
8610 gl_have_pth=
8611 gl_save_LIBS="$LIBS"
8612 LIBS="$LIBS $LIBPTH"
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614/* end confdefs.h. */
8615#include <pth.h>
8616int
8617main ()
8618{
8619pth_self();
8620 ;
8621 return 0;
8622}
8623_ACEOF
8624if ac_fn_c_try_link "$LINENO"; then :
8625 gl_have_pth=yes
8626fi
8627rm -f core conftest.err conftest.$ac_objext \
8628 conftest$ac_exeext conftest.$ac_ext
8629 LIBS="$gl_save_LIBS"
8630 if test -n "$gl_have_pth"; then
8631 gl_threads_api=pth
8632 LIBTHREAD="$LIBPTH"
8633 LTLIBTHREAD="$LTLIBPTH"
8634 LIBMULTITHREAD="$LIBTHREAD"
8635 LTLIBMULTITHREAD="$LTLIBTHREAD"
8636
8637$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8638
8639 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8640 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8641
8642$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8643
8644 LIBTHREAD=
8645 LTLIBTHREAD=
8646 fi
8647 fi
8648 else
8649 CPPFLAGS="$gl_save_CPPFLAGS"
8650 fi
8651 fi
8652 if test -z "$gl_have_pthread"; then
8653 case "$gl_use_threads" in
8654 yes | windows | win32) # The 'win32' is for backward compatibility.
8655 if { case "$host_os" in
8656 mingw*) true;;
8657 *) false;;
8658 esac
8659 }; then
8660 gl_threads_api=windows
8661
8662$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8663
8664 fi
8665 ;;
8666 esac
8667 fi
8668 fi
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8670$as_echo_n "checking for multithread API to use... " >&6; }
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8672$as_echo "$gl_threads_api" >&6; }
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684 if test "$gl_threads_api" = posix; then
8685 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8686 # pthread_rwlock_* functions.
8687 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8688"
8689if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8690
8691$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8692
8693fi
8694
8695 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697/* end confdefs.h. */
8698
8699 #include <pthread.h>
8700int
8701main ()
8702{
8703
8704#if __FreeBSD__ == 4
8705error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8706#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8707 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8708error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8709#else
8710int x = (int)PTHREAD_MUTEX_RECURSIVE;
8711return !x;
8712#endif
8713
8714 ;
8715 return 0;
8716}
8717_ACEOF
8718if ac_fn_c_try_compile "$LINENO"; then :
8719
8720$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8721
8722fi
8723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8724 fi
8725 :
8726
8727
8728
8729
8730
8731
8732
8733
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008734
8735
8736
8737
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008738 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008739
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008740 acl_save_prefix="$prefix"
8741 prefix="$acl_final_prefix"
8742 acl_save_exec_prefix="$exec_prefix"
8743 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008744
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008745 eval additional_includedir=\"$includedir\"
8746 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008747
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008748 exec_prefix="$acl_save_exec_prefix"
8749 prefix="$acl_save_prefix"
8750
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008751
Theodore Ts'oe1052142006-10-21 21:46:47 -04008752# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008753if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008754 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008755 if test "X$withval" = "Xno"; then
8756 use_additional=no
8757 else
8758 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008759
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008760 acl_save_prefix="$prefix"
8761 prefix="$acl_final_prefix"
8762 acl_save_exec_prefix="$exec_prefix"
8763 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008764
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008765 eval additional_includedir=\"$includedir\"
8766 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008767
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008768 exec_prefix="$acl_save_exec_prefix"
8769 prefix="$acl_save_prefix"
8770
8771 else
8772 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -04008773 additional_libdir="$withval/$acl_libdirstem"
8774 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8775 && ! test -d "$withval/$acl_libdirstem"; then
8776 additional_libdir="$withval/$acl_libdirstem2"
8777 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008778 fi
8779 fi
8780
Theodore Ts'oe1052142006-10-21 21:46:47 -04008781fi
8782
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008783 LIBICONV=
8784 LTLIBICONV=
8785 INCICONV=
Theodore Ts'o93613952014-07-03 23:44:13 -04008786 LIBICONV_PREFIX=
8787 HAVE_LIBICONV=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008788 rpathdirs=
8789 ltrpathdirs=
8790 names_already_handled=
8791 names_next_round='iconv '
8792 while test -n "$names_next_round"; do
8793 names_this_round="$names_next_round"
8794 names_next_round=
8795 for name in $names_this_round; do
8796 already_handled=
8797 for n in $names_already_handled; do
8798 if test "$n" = "$name"; then
8799 already_handled=yes
8800 break
8801 fi
8802 done
8803 if test -z "$already_handled"; then
8804 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -04008805 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008806 eval value=\"\$HAVE_LIB$uppername\"
8807 if test -n "$value"; then
8808 if test "$value" = yes; then
8809 eval value=\"\$LIB$uppername\"
8810 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8811 eval value=\"\$LTLIB$uppername\"
8812 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8813 else
8814 :
8815 fi
8816 else
8817 found_dir=
8818 found_la=
8819 found_so=
8820 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -04008821 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8822 if test -n "$acl_shlibext"; then
8823 shrext=".$acl_shlibext" # typically: shrext=.so
8824 else
8825 shrext=
8826 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008827 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008828 dir="$additional_libdir"
8829 if test -n "$acl_shlibext"; then
8830 if test -f "$dir/$libname$shrext"; then
8831 found_dir="$dir"
8832 found_so="$dir/$libname$shrext"
8833 else
8834 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8835 ver=`(cd "$dir" && \
8836 for f in "$libname$shrext".*; do echo "$f"; done \
8837 | sed -e "s,^$libname$shrext\\\\.,," \
8838 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8839 | sed 1q ) 2>/dev/null`
8840 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8841 found_dir="$dir"
8842 found_so="$dir/$libname$shrext.$ver"
8843 fi
8844 else
8845 eval library_names=\"$acl_library_names_spec\"
8846 for f in $library_names; do
8847 if test -f "$dir/$f"; then
8848 found_dir="$dir"
8849 found_so="$dir/$f"
8850 break
8851 fi
8852 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008853 fi
8854 fi
8855 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008856 if test "X$found_dir" = "X"; then
8857 if test -f "$dir/$libname.$acl_libext"; then
8858 found_dir="$dir"
8859 found_a="$dir/$libname.$acl_libext"
8860 fi
8861 fi
8862 if test "X$found_dir" != "X"; then
8863 if test -f "$dir/$libname.la"; then
8864 found_la="$dir/$libname.la"
8865 fi
8866 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008867 fi
8868 if test "X$found_dir" = "X"; then
8869 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008870
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008871 acl_save_prefix="$prefix"
8872 prefix="$acl_final_prefix"
8873 acl_save_exec_prefix="$exec_prefix"
8874 exec_prefix="$acl_final_exec_prefix"
8875 eval x=\"$x\"
8876 exec_prefix="$acl_save_exec_prefix"
8877 prefix="$acl_save_prefix"
8878
8879 case "$x" in
8880 -L*)
8881 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04008882 if test -n "$acl_shlibext"; then
8883 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008884 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04008885 found_so="$dir/$libname$shrext"
8886 else
8887 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8888 ver=`(cd "$dir" && \
8889 for f in "$libname$shrext".*; do echo "$f"; done \
8890 | sed -e "s,^$libname$shrext\\\\.,," \
8891 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8892 | sed 1q ) 2>/dev/null`
8893 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8894 found_dir="$dir"
8895 found_so="$dir/$libname$shrext.$ver"
8896 fi
8897 else
8898 eval library_names=\"$acl_library_names_spec\"
8899 for f in $library_names; do
8900 if test -f "$dir/$f"; then
8901 found_dir="$dir"
8902 found_so="$dir/$f"
8903 break
8904 fi
8905 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008906 fi
8907 fi
8908 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008909 if test "X$found_dir" = "X"; then
8910 if test -f "$dir/$libname.$acl_libext"; then
8911 found_dir="$dir"
8912 found_a="$dir/$libname.$acl_libext"
8913 fi
8914 fi
8915 if test "X$found_dir" != "X"; then
8916 if test -f "$dir/$libname.la"; then
8917 found_la="$dir/$libname.la"
8918 fi
8919 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008920 ;;
8921 esac
8922 if test "X$found_dir" != "X"; then
8923 break
8924 fi
8925 done
8926 fi
8927 if test "X$found_dir" != "X"; then
8928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8929 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008930 if test "$enable_rpath" = no \
8931 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8932 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008933 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8934 else
8935 haveit=
8936 for x in $ltrpathdirs; do
8937 if test "X$x" = "X$found_dir"; then
8938 haveit=yes
8939 break
8940 fi
8941 done
8942 if test -z "$haveit"; then
8943 ltrpathdirs="$ltrpathdirs $found_dir"
8944 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008945 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008946 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8947 else
Theodore Ts'o93613952014-07-03 23:44:13 -04008948 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008949 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8950 haveit=
8951 for x in $rpathdirs; do
8952 if test "X$x" = "X$found_dir"; then
8953 haveit=yes
8954 break
8955 fi
8956 done
8957 if test -z "$haveit"; then
8958 rpathdirs="$rpathdirs $found_dir"
8959 fi
8960 else
8961 haveit=
8962 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008963
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008964 acl_save_prefix="$prefix"
8965 prefix="$acl_final_prefix"
8966 acl_save_exec_prefix="$exec_prefix"
8967 exec_prefix="$acl_final_exec_prefix"
8968 eval x=\"$x\"
8969 exec_prefix="$acl_save_exec_prefix"
8970 prefix="$acl_save_prefix"
8971
8972 if test "X$x" = "X-L$found_dir"; then
8973 haveit=yes
8974 break
8975 fi
8976 done
8977 if test -z "$haveit"; then
8978 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8979 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008980 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008981 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8982 else
8983 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8984 fi
8985 fi
8986 fi
8987 fi
8988 else
8989 if test "X$found_a" != "X"; then
8990 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8991 else
8992 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8993 fi
8994 fi
8995 additional_includedir=
8996 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -04008997 */$acl_libdirstem | */$acl_libdirstem/)
8998 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8999 if test "$name" = 'iconv'; then
9000 LIBICONV_PREFIX="$basedir"
9001 fi
9002 additional_includedir="$basedir/include"
9003 ;;
9004 */$acl_libdirstem2 | */$acl_libdirstem2/)
9005 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9006 if test "$name" = 'iconv'; then
9007 LIBICONV_PREFIX="$basedir"
9008 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009009 additional_includedir="$basedir/include"
9010 ;;
9011 esac
9012 if test "X$additional_includedir" != "X"; then
9013 if test "X$additional_includedir" != "X/usr/include"; then
9014 haveit=
9015 if test "X$additional_includedir" = "X/usr/local/include"; then
9016 if test -n "$GCC"; then
9017 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009018 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009019 esac
9020 fi
9021 fi
9022 if test -z "$haveit"; then
9023 for x in $CPPFLAGS $INCICONV; 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-I$additional_includedir"; then
9034 haveit=yes
9035 break
9036 fi
9037 done
9038 if test -z "$haveit"; then
9039 if test -d "$additional_includedir"; then
9040 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9041 fi
9042 fi
9043 fi
9044 fi
9045 fi
9046 if test -n "$found_la"; then
9047 save_libdir="$libdir"
9048 case "$found_la" in
9049 */* | *\\*) . "$found_la" ;;
9050 *) . "./$found_la" ;;
9051 esac
9052 libdir="$save_libdir"
9053 for dep in $dependency_libs; do
9054 case "$dep" in
9055 -L*)
9056 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009057 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9058 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009059 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -04009060 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9061 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009062 if test -n "$GCC"; then
9063 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009064 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009065 esac
9066 fi
9067 fi
9068 if test -z "$haveit"; then
9069 haveit=
9070 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009071
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009072 acl_save_prefix="$prefix"
9073 prefix="$acl_final_prefix"
9074 acl_save_exec_prefix="$exec_prefix"
9075 exec_prefix="$acl_final_exec_prefix"
9076 eval x=\"$x\"
9077 exec_prefix="$acl_save_exec_prefix"
9078 prefix="$acl_save_prefix"
9079
9080 if test "X$x" = "X-L$additional_libdir"; then
9081 haveit=yes
9082 break
9083 fi
9084 done
9085 if test -z "$haveit"; then
9086 if test -d "$additional_libdir"; then
9087 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9088 fi
9089 fi
9090 haveit=
9091 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009092
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009093 acl_save_prefix="$prefix"
9094 prefix="$acl_final_prefix"
9095 acl_save_exec_prefix="$exec_prefix"
9096 exec_prefix="$acl_final_exec_prefix"
9097 eval x=\"$x\"
9098 exec_prefix="$acl_save_exec_prefix"
9099 prefix="$acl_save_prefix"
9100
9101 if test "X$x" = "X-L$additional_libdir"; then
9102 haveit=yes
9103 break
9104 fi
9105 done
9106 if test -z "$haveit"; then
9107 if test -d "$additional_libdir"; then
9108 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9109 fi
9110 fi
9111 fi
9112 fi
9113 ;;
9114 -R*)
9115 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9116 if test "$enable_rpath" != no; then
9117 haveit=
9118 for x in $rpathdirs; do
9119 if test "X$x" = "X$dir"; then
9120 haveit=yes
9121 break
9122 fi
9123 done
9124 if test -z "$haveit"; then
9125 rpathdirs="$rpathdirs $dir"
9126 fi
9127 haveit=
9128 for x in $ltrpathdirs; do
9129 if test "X$x" = "X$dir"; then
9130 haveit=yes
9131 break
9132 fi
9133 done
9134 if test -z "$haveit"; then
9135 ltrpathdirs="$ltrpathdirs $dir"
9136 fi
9137 fi
9138 ;;
9139 -l*)
9140 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9141 ;;
9142 *.la)
9143 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9144 ;;
9145 *)
9146 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9147 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9148 ;;
9149 esac
9150 done
9151 fi
9152 else
9153 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9154 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9155 fi
9156 fi
9157 fi
9158 done
9159 done
9160 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009161 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009162 alldirs=
9163 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -04009164 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009165 done
9166 acl_save_libdir="$libdir"
9167 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -04009168 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009169 libdir="$acl_save_libdir"
9170 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9171 else
9172 for found_dir in $rpathdirs; do
9173 acl_save_libdir="$libdir"
9174 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04009175 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009176 libdir="$acl_save_libdir"
9177 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9178 done
9179 fi
9180 fi
9181 if test "X$ltrpathdirs" != "X"; then
9182 for found_dir in $ltrpathdirs; do
9183 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9184 done
9185 fi
9186
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009187
9188
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009189
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009190
9191
9192
9193
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009194
9195
9196
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009197
9198 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009199
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009200 for element in $INCICONV; do
9201 haveit=
9202 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009203
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009204 acl_save_prefix="$prefix"
9205 prefix="$acl_final_prefix"
9206 acl_save_exec_prefix="$exec_prefix"
9207 exec_prefix="$acl_final_exec_prefix"
9208 eval x=\"$x\"
9209 exec_prefix="$acl_save_exec_prefix"
9210 prefix="$acl_save_prefix"
9211
9212 if test "X$x" = "X$element"; then
9213 haveit=yes
9214 break
9215 fi
9216 done
9217 if test -z "$haveit"; then
9218 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9219 fi
9220 done
9221
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009222
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009224$as_echo_n "checking for iconv... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009225if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009226 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009227else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009228
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009229 am_cv_func_iconv="no, consider installing GNU libiconv"
9230 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009232/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009233
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009234#include <stdlib.h>
9235#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009236
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009237int
9238main ()
9239{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009240iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009241 iconv(cd,NULL,NULL,NULL,NULL);
9242 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009243 ;
9244 return 0;
9245}
9246_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009247if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009248 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009249fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009250rm -f core conftest.err conftest.$ac_objext \
9251 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009252 if test "$am_cv_func_iconv" != yes; then
9253 am_save_LIBS="$LIBS"
9254 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009256/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009257
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009258#include <stdlib.h>
9259#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009260
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009261int
9262main ()
9263{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009264iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009265 iconv(cd,NULL,NULL,NULL,NULL);
9266 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009267 ;
9268 return 0;
9269}
9270_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009271if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009272 am_cv_lib_iconv=yes
9273 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009274fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009275rm -f core conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009277 LIBS="$am_save_LIBS"
9278 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009279
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009280fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009282$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009283 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9285$as_echo_n "checking for working iconv... " >&6; }
9286if ${am_cv_func_iconv_works+:} false; then :
9287 $as_echo_n "(cached) " >&6
9288else
9289
9290 am_save_LIBS="$LIBS"
9291 if test $am_cv_lib_iconv = yes; then
9292 LIBS="$LIBS $LIBICONV"
9293 fi
9294 if test "$cross_compiling" = yes; then :
9295
9296 case "$host_os" in
9297 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9298 *) am_cv_func_iconv_works="guessing yes" ;;
9299 esac
9300
9301else
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303/* end confdefs.h. */
9304
9305#include <iconv.h>
9306#include <string.h>
9307int main ()
9308{
9309 int result = 0;
9310 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9311 returns. */
9312 {
9313 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9314 if (cd_utf8_to_88591 != (iconv_t)(-1))
9315 {
9316 static const char input[] = "\342\202\254"; /* EURO SIGN */
9317 char buf[10];
9318 const char *inptr = input;
9319 size_t inbytesleft = strlen (input);
9320 char *outptr = buf;
9321 size_t outbytesleft = sizeof (buf);
9322 size_t res = iconv (cd_utf8_to_88591,
9323 (char **) &inptr, &inbytesleft,
9324 &outptr, &outbytesleft);
9325 if (res == 0)
9326 result |= 1;
9327 iconv_close (cd_utf8_to_88591);
9328 }
9329 }
9330 /* Test against Solaris 10 bug: Failures are not distinguishable from
9331 successful returns. */
9332 {
9333 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9334 if (cd_ascii_to_88591 != (iconv_t)(-1))
9335 {
9336 static const char input[] = "\263";
9337 char buf[10];
9338 const char *inptr = input;
9339 size_t inbytesleft = strlen (input);
9340 char *outptr = buf;
9341 size_t outbytesleft = sizeof (buf);
9342 size_t res = iconv (cd_ascii_to_88591,
9343 (char **) &inptr, &inbytesleft,
9344 &outptr, &outbytesleft);
9345 if (res == 0)
9346 result |= 2;
9347 iconv_close (cd_ascii_to_88591);
9348 }
9349 }
9350 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9351 {
9352 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9353 if (cd_88591_to_utf8 != (iconv_t)(-1))
9354 {
9355 static const char input[] = "\304";
9356 static char buf[2] = { (char)0xDE, (char)0xAD };
9357 const char *inptr = input;
9358 size_t inbytesleft = 1;
9359 char *outptr = buf;
9360 size_t outbytesleft = 1;
9361 size_t res = iconv (cd_88591_to_utf8,
9362 (char **) &inptr, &inbytesleft,
9363 &outptr, &outbytesleft);
9364 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9365 result |= 4;
9366 iconv_close (cd_88591_to_utf8);
9367 }
9368 }
9369#if 0 /* This bug could be worked around by the caller. */
9370 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9371 {
9372 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9373 if (cd_88591_to_utf8 != (iconv_t)(-1))
9374 {
9375 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9376 char buf[50];
9377 const char *inptr = input;
9378 size_t inbytesleft = strlen (input);
9379 char *outptr = buf;
9380 size_t outbytesleft = sizeof (buf);
9381 size_t res = iconv (cd_88591_to_utf8,
9382 (char **) &inptr, &inbytesleft,
9383 &outptr, &outbytesleft);
9384 if ((int)res > 0)
9385 result |= 8;
9386 iconv_close (cd_88591_to_utf8);
9387 }
9388 }
9389#endif
9390 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9391 provided. */
9392 if (/* Try standardized names. */
9393 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9394 /* Try IRIX, OSF/1 names. */
9395 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9396 /* Try AIX names. */
9397 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9398 /* Try HP-UX names. */
9399 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9400 result |= 16;
9401 return result;
9402}
9403_ACEOF
9404if ac_fn_c_try_run "$LINENO"; then :
9405 am_cv_func_iconv_works=yes
9406else
9407 am_cv_func_iconv_works=no
9408fi
9409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9410 conftest.$ac_objext conftest.beam conftest.$ac_ext
9411fi
9412
9413 LIBS="$am_save_LIBS"
9414
9415fi
9416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9417$as_echo "$am_cv_func_iconv_works" >&6; }
9418 case "$am_cv_func_iconv_works" in
9419 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9420 *) am_func_iconv=yes ;;
9421 esac
9422 else
9423 am_func_iconv=no am_cv_lib_iconv=no
9424 fi
9425 if test "$am_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009426
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009427$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009428
9429 fi
9430 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009432$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009434$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009435 else
9436 CPPFLAGS="$am_save_CPPFLAGS"
9437 LIBICONV=
9438 LTLIBICONV=
9439 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009440
9441
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009442
9443 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009445$as_echo_n "checking for iconv declaration... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009446 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009447 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009448else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009449
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009451/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009452
9453#include <stdlib.h>
9454#include <iconv.h>
9455extern
9456#ifdef __cplusplus
9457"C"
9458#endif
Theodore Ts'o93613952014-07-03 23:44:13 -04009459#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009460size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9461#else
9462size_t iconv();
9463#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009464
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009465int
9466main ()
9467{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009468
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009469 ;
9470 return 0;
9471}
9472_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009473if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009474 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009475else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009476 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009477fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009479 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 +00009480fi
9481
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009482 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009483 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9484 $am_cv_proto_iconv" >&5
9485$as_echo "
9486 $am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009487
9488cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009489#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009490_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009491
Theodore Ts'o93613952014-07-03 23:44:13 -04009492
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009493 fi
9494
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009495
Theodore Ts'o93613952014-07-03 23:44:13 -04009496
9497
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009499/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009500int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009501int
9502main ()
9503{
Theodore Ts'o93613952014-07-03 23:44:13 -04009504
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009505 ;
9506 return 0;
9507}
9508_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009509if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04009510
9511$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9512
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009513fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009514rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009516
Theodore Ts'o93613952014-07-03 23:44:13 -04009517 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9518do :
9519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9520ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9521if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9522 cat >>confdefs.h <<_ACEOF
9523#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009524_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04009525
9526fi
9527
9528done
9529
9530 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9531 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9532 argz_stringify argz_next __fsetlocking
9533do :
9534 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9535ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9536if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9537 cat >>confdefs.h <<_ACEOF
9538#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9539_ACEOF
9540
9541fi
9542done
9543
9544
9545 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9546"
9547if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9548 ac_have_decl=1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009549else
Theodore Ts'o93613952014-07-03 23:44:13 -04009550 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009551fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009552
9553cat >>confdefs.h <<_ACEOF
9554#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9555_ACEOF
9556ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9557"
9558if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9559 ac_have_decl=1
9560else
9561 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009562fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009563
Theodore Ts'o93613952014-07-03 23:44:13 -04009564cat >>confdefs.h <<_ACEOF
9565#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9566_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009567
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009568
Theodore Ts'o93613952014-07-03 23:44:13 -04009569
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009570
9571 for ac_prog in bison
9572do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009573 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009574set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009576$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009577if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009578 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009579else
9580 if test -n "$INTLBISON"; then
9581 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9582else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584for as_dir in $PATH
9585do
9586 IFS=$as_save_IFS
9587 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009588 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009590 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009592 break 2
9593 fi
9594done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009595 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009596IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009597
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009598fi
9599fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009600INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009601if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009603$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009604else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009606$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009607fi
9608
Theodore Ts'oe1052142006-10-21 21:46:47 -04009609
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009610 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009611done
9612
9613 if test -z "$INTLBISON"; then
9614 ac_verc_fail=yes
9615 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009617$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009618 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9619 case $ac_prog_version in
9620 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9621 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9622 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9623 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9624 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009626$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009627 fi
9628 if test $ac_verc_fail = yes; then
9629 INTLBISON=:
9630 fi
9631
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009632
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009633
Theodore Ts'o93613952014-07-03 23:44:13 -04009634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9635$as_echo_n "checking for long long int... " >&6; }
9636if ${ac_cv_type_long_long_int+:} false; then :
9637 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009638else
Theodore Ts'o93613952014-07-03 23:44:13 -04009639 ac_cv_type_long_long_int=yes
9640 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9641 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9642 if test $ac_cv_type_long_long_int = yes; then
9643 if test "$cross_compiling" = yes; then :
9644 :
9645else
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647/* end confdefs.h. */
9648#include <limits.h>
9649 #ifndef LLONG_MAX
9650 # define HALF \
9651 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9652 # define LLONG_MAX (HALF - 1 + HALF)
9653 #endif
9654int
9655main ()
9656{
9657long long int n = 1;
9658 int i;
9659 for (i = 0; ; i++)
9660 {
9661 long long int m = n << i;
9662 if (m >> i != n)
9663 return 1;
9664 if (LLONG_MAX / 2 < m)
9665 break;
9666 }
9667 return 0;
9668 ;
9669 return 0;
9670}
9671_ACEOF
9672if ac_fn_c_try_run "$LINENO"; then :
9673
9674else
9675 ac_cv_type_long_long_int=no
9676fi
9677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9678 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009679fi
9680
Theodore Ts'o93613952014-07-03 23:44:13 -04009681 fi
9682 fi
9683fi
9684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9685$as_echo "$ac_cv_type_long_long_int" >&6; }
9686 if test $ac_cv_type_long_long_int = yes; then
9687
9688$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9689
9690 fi
9691
9692
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9694$as_echo_n "checking for wchar_t... " >&6; }
9695if ${gt_cv_c_wchar_t+:} false; then :
9696 $as_echo_n "(cached) " >&6
9697else
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699/* end confdefs.h. */
9700#include <stddef.h>
9701 wchar_t foo = (wchar_t)'\0';
9702int
9703main ()
9704{
9705
9706 ;
9707 return 0;
9708}
9709_ACEOF
9710if ac_fn_c_try_compile "$LINENO"; then :
9711 gt_cv_c_wchar_t=yes
9712else
9713 gt_cv_c_wchar_t=no
9714fi
9715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9716fi
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9718$as_echo "$gt_cv_c_wchar_t" >&6; }
9719 if test $gt_cv_c_wchar_t = yes; then
9720
9721$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9722
9723 fi
9724
9725
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9727$as_echo_n "checking for wint_t... " >&6; }
9728if ${gt_cv_c_wint_t+:} false; then :
9729 $as_echo_n "(cached) " >&6
9730else
9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732/* end confdefs.h. */
9733
9734/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9735 <wchar.h>.
9736 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9737 before <wchar.h>. */
9738#include <stddef.h>
9739#include <stdio.h>
9740#include <time.h>
9741#include <wchar.h>
9742 wint_t foo = (wchar_t)'\0';
9743int
9744main ()
9745{
9746
9747 ;
9748 return 0;
9749}
9750_ACEOF
9751if ac_fn_c_try_compile "$LINENO"; then :
9752 gt_cv_c_wint_t=yes
9753else
9754 gt_cv_c_wint_t=no
9755fi
9756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757fi
9758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9759$as_echo "$gt_cv_c_wint_t" >&6; }
9760 if test $gt_cv_c_wint_t = yes; then
9761
9762$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9763
9764 fi
9765
9766
9767
9768
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9770$as_echo_n "checking for intmax_t... " >&6; }
9771if ${gt_cv_c_intmax_t+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773else
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775/* end confdefs.h. */
9776
9777#include <stddef.h>
9778#include <stdlib.h>
9779#if HAVE_STDINT_H_WITH_UINTMAX
9780#include <stdint.h>
9781#endif
9782#if HAVE_INTTYPES_H_WITH_UINTMAX
9783#include <inttypes.h>
9784#endif
9785
9786int
9787main ()
9788{
9789intmax_t x = -1;
9790 return !x;
9791 ;
9792 return 0;
9793}
9794_ACEOF
9795if ac_fn_c_try_compile "$LINENO"; then :
9796 gt_cv_c_intmax_t=yes
9797else
9798 gt_cv_c_intmax_t=no
9799fi
9800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801fi
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9803$as_echo "$gt_cv_c_intmax_t" >&6; }
9804 if test $gt_cv_c_intmax_t = yes; then
9805
9806$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9807
9808 fi
9809
9810
9811
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9813$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9814if ${gt_cv_func_printf_posix+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816else
9817
9818 if test "$cross_compiling" = yes; then :
9819
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821/* end confdefs.h. */
9822
9823#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9824 notposix
9825#endif
9826
9827_ACEOF
9828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9829 $EGREP "notposix" >/dev/null 2>&1; then :
9830 gt_cv_func_printf_posix="guessing no"
9831else
9832 gt_cv_func_printf_posix="guessing yes"
9833fi
9834rm -f conftest*
9835
9836
9837else
9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839/* end confdefs.h. */
9840
9841#include <stdio.h>
9842#include <string.h>
9843/* The string "%2$d %1$d", with dollar characters protected from the shell's
9844 dollar expansion (possibly an autoconf bug). */
9845static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9846static char buf[100];
9847int main ()
9848{
9849 sprintf (buf, format, 33, 55);
9850 return (strcmp (buf, "55 33") != 0);
9851}
9852_ACEOF
9853if ac_fn_c_try_run "$LINENO"; then :
9854 gt_cv_func_printf_posix=yes
9855else
9856 gt_cv_func_printf_posix=no
9857fi
9858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9859 conftest.$ac_objext conftest.beam conftest.$ac_ext
9860fi
9861
9862
9863fi
9864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9865$as_echo "$gt_cv_func_printf_posix" >&6; }
9866 case $gt_cv_func_printf_posix in
9867 *yes)
9868
9869$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9870
9871 ;;
9872 esac
9873
9874
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9876$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9877if ${ac_cv_gnu_library_2_1+:} false; then :
9878 $as_echo_n "(cached) " >&6
9879else
9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881/* end confdefs.h. */
9882
9883#include <features.h>
9884#ifdef __GNU_LIBRARY__
9885 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9886 Lucky GNU user
9887 #endif
9888#endif
9889#ifdef __UCLIBC__
9890 Lucky user
9891#endif
9892
9893_ACEOF
9894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9895 $EGREP "Lucky" >/dev/null 2>&1; then :
9896 ac_cv_gnu_library_2_1=yes
9897else
9898 ac_cv_gnu_library_2_1=no
9899fi
9900rm -f conftest*
9901
9902
9903
9904fi
9905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9906$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9907
9908 GLIBC21="$ac_cv_gnu_library_2_1"
9909
9910
9911
9912 for ac_header in stdint.h
9913do :
9914 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9915if test "x$ac_cv_header_stdint_h" = xyes; then :
9916 cat >>confdefs.h <<_ACEOF
9917#define HAVE_STDINT_H 1
9918_ACEOF
9919
9920fi
9921
9922done
9923
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9925$as_echo_n "checking for SIZE_MAX... " >&6; }
9926if ${gl_cv_size_max+:} false; then :
9927 $as_echo_n "(cached) " >&6
9928else
9929
9930 gl_cv_size_max=
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932/* end confdefs.h. */
9933
9934#include <limits.h>
9935#if HAVE_STDINT_H
9936#include <stdint.h>
9937#endif
9938#ifdef SIZE_MAX
9939Found it
9940#endif
9941
9942_ACEOF
9943if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9944 $EGREP "Found it" >/dev/null 2>&1; then :
9945 gl_cv_size_max=yes
9946fi
9947rm -f conftest*
9948
9949 if test -z "$gl_cv_size_max"; then
9950 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9951#include <limits.h>"; then :
9952
9953else
9954 size_t_bits_minus_1=
9955fi
9956
9957 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9958
9959else
9960 fits_in_uint=
9961fi
9962
9963 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9964 if test $fits_in_uint = 1; then
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966/* end confdefs.h. */
9967#include <stddef.h>
9968 extern size_t foo;
9969 extern unsigned long foo;
9970
9971int
9972main ()
9973{
9974
9975 ;
9976 return 0;
9977}
9978_ACEOF
9979if ac_fn_c_try_compile "$LINENO"; then :
9980 fits_in_uint=0
9981fi
9982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9983 fi
9984 if test $fits_in_uint = 1; then
9985 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9986 else
9987 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9988 fi
9989 else
9990 gl_cv_size_max='((size_t)~(size_t)0)'
9991 fi
9992 fi
9993
9994fi
9995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
9996$as_echo "$gl_cv_size_max" >&6; }
9997 if test "$gl_cv_size_max" != yes; then
9998
9999cat >>confdefs.h <<_ACEOF
10000#define SIZE_MAX $gl_cv_size_max
10001_ACEOF
10002
10003 fi
10004
10005
10006
10007
10008 for ac_header in stdint.h
10009do :
10010 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10011if test "x$ac_cv_header_stdint_h" = xyes; then :
10012 cat >>confdefs.h <<_ACEOF
10013#define HAVE_STDINT_H 1
10014_ACEOF
10015
10016fi
10017
10018done
10019
10020
10021
10022
10023
10024 for ac_func in $ac_func_list
10025do :
10026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10027ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10028if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10029 cat >>confdefs.h <<_ACEOF
10030#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10031_ACEOF
10032
10033fi
10034done
10035
10036
10037
10038
10039
10040
10041
10042
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10044$as_echo_n "checking for working fcntl.h... " >&6; }
10045if ${gl_cv_header_working_fcntl_h+:} false; then :
10046 $as_echo_n "(cached) " >&6
10047else
10048 if test "$cross_compiling" = yes; then :
10049 gl_cv_header_working_fcntl_h=cross-compiling
10050else
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052/* end confdefs.h. */
10053#include <sys/types.h>
10054 #include <sys/stat.h>
10055 #if HAVE_UNISTD_H
10056 # include <unistd.h>
10057 #else /* on Windows with MSVC */
10058 # include <io.h>
10059 # include <stdlib.h>
10060 # defined sleep(n) _sleep ((n) * 1000)
10061 #endif
10062 #include <fcntl.h>
10063 #ifndef O_NOATIME
10064 #define O_NOATIME 0
10065 #endif
10066 #ifndef O_NOFOLLOW
10067 #define O_NOFOLLOW 0
10068 #endif
10069 static int const constants[] =
10070 {
10071 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10072 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10073 };
10074
10075int
10076main ()
10077{
10078
10079 int result = !constants;
10080 #if HAVE_SYMLINK
10081 {
10082 static char const sym[] = "conftest.sym";
10083 if (symlink ("/dev/null", sym) != 0)
10084 result |= 2;
10085 else
10086 {
10087 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10088 if (fd >= 0)
10089 {
10090 close (fd);
10091 result |= 4;
10092 }
10093 }
10094 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10095 result |= 2;
10096 else
10097 {
10098 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10099 if (fd >= 0)
10100 {
10101 close (fd);
10102 result |= 4;
10103 }
10104 }
10105 unlink (sym);
10106 }
10107 #endif
10108 {
10109 static char const file[] = "confdefs.h";
10110 int fd = open (file, O_RDONLY | O_NOATIME);
10111 if (fd < 0)
10112 result |= 8;
10113 else
10114 {
10115 struct stat st0;
10116 if (fstat (fd, &st0) != 0)
10117 result |= 16;
10118 else
10119 {
10120 char c;
10121 sleep (1);
10122 if (read (fd, &c, 1) != 1)
10123 result |= 24;
10124 else
10125 {
10126 if (close (fd) != 0)
10127 result |= 32;
10128 else
10129 {
10130 struct stat st1;
10131 if (stat (file, &st1) != 0)
10132 result |= 40;
10133 else
10134 if (st0.st_atime != st1.st_atime)
10135 result |= 64;
10136 }
10137 }
10138 }
10139 }
10140 }
10141 return result;
10142 ;
10143 return 0;
10144}
10145_ACEOF
10146if ac_fn_c_try_run "$LINENO"; then :
10147 gl_cv_header_working_fcntl_h=yes
10148else
10149 case $? in #(
10150 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10151 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10152 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10153 *) gl_cv_header_working_fcntl_h='no';;
10154 esac
10155fi
10156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10157 conftest.$ac_objext conftest.beam conftest.$ac_ext
10158fi
10159
10160fi
10161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10162$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10163
10164 case $gl_cv_header_working_fcntl_h in #(
10165 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10166 *) ac_val=1;;
10167 esac
10168
10169cat >>confdefs.h <<_ACEOF
10170#define HAVE_WORKING_O_NOATIME $ac_val
10171_ACEOF
10172
10173
10174 case $gl_cv_header_working_fcntl_h in #(
10175 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10176 *) ac_val=1;;
10177 esac
10178
10179cat >>confdefs.h <<_ACEOF
10180#define HAVE_WORKING_O_NOFOLLOW $ac_val
10181_ACEOF
10182
10183
10184
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10186$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10187if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10188 $as_echo_n "(cached) " >&6
10189else
10190 gt_save_LIBS="$LIBS"
10191 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193/* end confdefs.h. */
10194#include <CoreFoundation/CFPreferences.h>
10195int
10196main ()
10197{
10198CFPreferencesCopyAppValue(NULL, NULL)
10199 ;
10200 return 0;
10201}
10202_ACEOF
10203if ac_fn_c_try_link "$LINENO"; then :
10204 gt_cv_func_CFPreferencesCopyAppValue=yes
10205else
10206 gt_cv_func_CFPreferencesCopyAppValue=no
10207fi
10208rm -f core conftest.err conftest.$ac_objext \
10209 conftest$ac_exeext conftest.$ac_ext
10210 LIBS="$gt_save_LIBS"
10211fi
10212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10213$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10214 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10215
10216$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10217
10218 fi
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10220$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10221if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10222 $as_echo_n "(cached) " >&6
10223else
10224 gt_save_LIBS="$LIBS"
10225 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227/* end confdefs.h. */
10228#include <CoreFoundation/CFLocale.h>
10229int
10230main ()
10231{
10232CFLocaleCopyCurrent();
10233 ;
10234 return 0;
10235}
10236_ACEOF
10237if ac_fn_c_try_link "$LINENO"; then :
10238 gt_cv_func_CFLocaleCopyCurrent=yes
10239else
10240 gt_cv_func_CFLocaleCopyCurrent=no
10241fi
10242rm -f core conftest.err conftest.$ac_objext \
10243 conftest$ac_exeext conftest.$ac_ext
10244 LIBS="$gt_save_LIBS"
10245fi
10246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10247$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10248 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10249
10250$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10251
10252 fi
10253 INTL_MACOSX_LIBS=
10254 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10255 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10256 fi
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267 case "$enable_silent_rules" in
10268 yes) INTL_DEFAULT_VERBOSITY=0;;
10269 no) INTL_DEFAULT_VERBOSITY=1;;
10270 *) INTL_DEFAULT_VERBOSITY=1;;
10271 esac
10272
10273
10274 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10275if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10276
10277else
10278
10279$as_echo "#define ptrdiff_t long" >>confdefs.h
10280
10281
10282fi
10283
10284 for ac_header in features.h stddef.h stdlib.h string.h
10285do :
10286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10287ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10288if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10289 cat >>confdefs.h <<_ACEOF
10290#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10291_ACEOF
10292
10293fi
10294
10295done
10296
10297 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10298 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10299do :
10300 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10301ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10302if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10303 cat >>confdefs.h <<_ACEOF
10304#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10305_ACEOF
10306
10307fi
10308done
10309
10310
10311 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10312"
10313if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10314 ac_have_decl=1
10315else
10316 ac_have_decl=0
10317fi
10318
10319cat >>confdefs.h <<_ACEOF
10320#define HAVE_DECL__SNPRINTF $ac_have_decl
10321_ACEOF
10322ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10323"
10324if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10325 ac_have_decl=1
10326else
10327 ac_have_decl=0
10328fi
10329
10330cat >>confdefs.h <<_ACEOF
10331#define HAVE_DECL__SNWPRINTF $ac_have_decl
10332_ACEOF
10333
10334
10335 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10336"
10337if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10338 ac_have_decl=1
10339else
10340 ac_have_decl=0
10341fi
10342
10343cat >>confdefs.h <<_ACEOF
10344#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10345_ACEOF
10346
10347
10348 case $gt_cv_func_printf_posix in
10349 *yes) HAVE_POSIX_PRINTF=1 ;;
10350 *) HAVE_POSIX_PRINTF=0 ;;
10351 esac
10352
10353 if test "$ac_cv_func_asprintf" = yes; then
10354 HAVE_ASPRINTF=1
10355 else
10356 HAVE_ASPRINTF=0
10357 fi
10358
10359 if test "$ac_cv_func_snprintf" = yes; then
10360 HAVE_SNPRINTF=1
10361 else
10362 HAVE_SNPRINTF=0
10363 fi
10364
10365 if test "$ac_cv_func_newlocale" = yes; then
10366 HAVE_NEWLOCALE=1
10367 else
10368 HAVE_NEWLOCALE=0
10369 fi
10370
10371 if test "$ac_cv_func_wprintf" = yes; then
10372 HAVE_WPRINTF=1
10373 else
10374 HAVE_WPRINTF=0
10375 fi
10376
10377
10378
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10380$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10381if ${am_cv_langinfo_codeset+:} false; then :
10382 $as_echo_n "(cached) " >&6
10383else
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385/* end confdefs.h. */
10386#include <langinfo.h>
10387int
10388main ()
10389{
10390char* cs = nl_langinfo(CODESET); return !cs;
10391 ;
10392 return 0;
10393}
10394_ACEOF
10395if ac_fn_c_try_link "$LINENO"; then :
10396 am_cv_langinfo_codeset=yes
10397else
10398 am_cv_langinfo_codeset=no
10399fi
10400rm -f core conftest.err conftest.$ac_objext \
10401 conftest$ac_exeext conftest.$ac_ext
10402
10403fi
10404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10405$as_echo "$am_cv_langinfo_codeset" >&6; }
10406 if test $am_cv_langinfo_codeset = yes; then
10407
10408$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10409
10410 fi
10411
10412
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10414$as_echo_n "checking for LC_MESSAGES... " >&6; }
10415if ${gt_cv_val_LC_MESSAGES+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417else
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419/* end confdefs.h. */
10420#include <locale.h>
10421int
10422main ()
10423{
10424return LC_MESSAGES
10425 ;
10426 return 0;
10427}
10428_ACEOF
10429if ac_fn_c_try_link "$LINENO"; then :
10430 gt_cv_val_LC_MESSAGES=yes
10431else
10432 gt_cv_val_LC_MESSAGES=no
10433fi
10434rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10436fi
10437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10438$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10439 if test $gt_cv_val_LC_MESSAGES = yes; then
10440
10441$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10442
10443 fi
10444
10445
10446 if test "$enable_shared" = yes; then
10447 case "$host_os" in
10448 mingw* | cygwin*) is_woe32dll=yes ;;
10449 *) is_woe32dll=no ;;
10450 esac
10451 else
10452 is_woe32dll=no
10453 fi
10454 WOE32DLL=$is_woe32dll
10455
10456
10457 case "$host_os" in
10458 mingw* | cygwin*) is_woe32=yes ;;
10459 *) is_woe32=no ;;
10460 esac
10461 WOE32=$is_woe32
10462
10463 if test $WOE32 = yes; then
10464 if test -n "$ac_tool_prefix"; then
10465 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10466set dummy ${ac_tool_prefix}windres; ac_word=$2
10467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10468$as_echo_n "checking for $ac_word... " >&6; }
10469if ${ac_cv_prog_WINDRES+:} false; then :
10470 $as_echo_n "(cached) " >&6
10471else
10472 if test -n "$WINDRES"; then
10473 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10474else
10475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476for as_dir in $PATH
10477do
10478 IFS=$as_save_IFS
10479 test -z "$as_dir" && as_dir=.
10480 for ac_exec_ext in '' $ac_executable_extensions; do
10481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10482 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10484 break 2
10485 fi
10486done
10487 done
10488IFS=$as_save_IFS
10489
10490fi
10491fi
10492WINDRES=$ac_cv_prog_WINDRES
10493if test -n "$WINDRES"; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10495$as_echo "$WINDRES" >&6; }
10496else
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498$as_echo "no" >&6; }
10499fi
10500
10501
10502fi
10503if test -z "$ac_cv_prog_WINDRES"; then
10504 ac_ct_WINDRES=$WINDRES
10505 # Extract the first word of "windres", so it can be a program name with args.
10506set dummy windres; ac_word=$2
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508$as_echo_n "checking for $ac_word... " >&6; }
10509if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10510 $as_echo_n "(cached) " >&6
10511else
10512 if test -n "$ac_ct_WINDRES"; then
10513 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10514else
10515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10516for as_dir in $PATH
10517do
10518 IFS=$as_save_IFS
10519 test -z "$as_dir" && as_dir=.
10520 for ac_exec_ext in '' $ac_executable_extensions; do
10521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10522 ac_cv_prog_ac_ct_WINDRES="windres"
10523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10524 break 2
10525 fi
10526done
10527 done
10528IFS=$as_save_IFS
10529
10530fi
10531fi
10532ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10533if test -n "$ac_ct_WINDRES"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10535$as_echo "$ac_ct_WINDRES" >&6; }
10536else
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538$as_echo "no" >&6; }
10539fi
10540
10541 if test "x$ac_ct_WINDRES" = x; then
10542 WINDRES=""
10543 else
10544 case $cross_compiling:$ac_tool_warned in
10545yes:)
10546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10548ac_tool_warned=yes ;;
10549esac
10550 WINDRES=$ac_ct_WINDRES
10551 fi
10552else
10553 WINDRES="$ac_cv_prog_WINDRES"
10554fi
10555
10556 fi
10557
10558 case "$host_os" in
10559 hpux*) LTLIBC="" ;;
10560 *) LTLIBC="-lc" ;;
10561 esac
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10590$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10591if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10592 $as_echo_n "(cached) " >&6
10593else
10594 gt_save_LIBS="$LIBS"
10595 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597/* end confdefs.h. */
10598#include <CoreFoundation/CFPreferences.h>
10599int
10600main ()
10601{
10602CFPreferencesCopyAppValue(NULL, NULL)
10603 ;
10604 return 0;
10605}
10606_ACEOF
10607if ac_fn_c_try_link "$LINENO"; then :
10608 gt_cv_func_CFPreferencesCopyAppValue=yes
10609else
10610 gt_cv_func_CFPreferencesCopyAppValue=no
10611fi
10612rm -f core conftest.err conftest.$ac_objext \
10613 conftest$ac_exeext conftest.$ac_ext
10614 LIBS="$gt_save_LIBS"
10615fi
10616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10617$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10618 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10619
10620$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10621
10622 fi
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10624$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10625if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10626 $as_echo_n "(cached) " >&6
10627else
10628 gt_save_LIBS="$LIBS"
10629 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631/* end confdefs.h. */
10632#include <CoreFoundation/CFLocale.h>
10633int
10634main ()
10635{
10636CFLocaleCopyCurrent();
10637 ;
10638 return 0;
10639}
10640_ACEOF
10641if ac_fn_c_try_link "$LINENO"; then :
10642 gt_cv_func_CFLocaleCopyCurrent=yes
10643else
10644 gt_cv_func_CFLocaleCopyCurrent=no
10645fi
10646rm -f core conftest.err conftest.$ac_objext \
10647 conftest$ac_exeext conftest.$ac_ext
10648 LIBS="$gt_save_LIBS"
10649fi
10650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10651$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10652 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10653
10654$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10655
10656 fi
10657 INTL_MACOSX_LIBS=
10658 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10659 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10660 fi
10661
10662
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010663
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010664
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010665
10666
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010667 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010668 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010669
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010670 LIBINTL=
10671 LTLIBINTL=
10672 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010673
Theodore Ts'o93613952014-07-03 23:44:13 -040010674 case " $gt_needs " in
10675 *" need-formatstring-macros "*) gt_api_version=3 ;;
10676 *" need-ngettext "*) gt_api_version=2 ;;
10677 *) gt_api_version=1 ;;
10678 esac
10679 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10680 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10681
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010682 if test "$USE_NLS" = "yes"; then
10683 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010684
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010686$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010687
Theodore Ts'oe1052142006-10-21 21:46:47 -040010688# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010689if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010690 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010691else
10692 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010693fi
10694
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010696$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010697
10698 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10699 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010700
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010701
Theodore Ts'o93613952014-07-03 23:44:13 -040010702 if test $gt_api_version -ge 3; then
10703 gt_revision_test_code='
10704#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10705#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10706#endif
10707typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10708'
10709 else
10710 gt_revision_test_code=
10711 fi
10712 if test $gt_api_version -ge 2; then
10713 gt_expression_test_code=' + * ngettext ("", "", 0)'
10714 else
10715 gt_expression_test_code=
10716 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010717
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010719$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040010720if eval \${$gt_func_gnugettext_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010721 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010722else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010724/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040010725
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010726#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040010727$gt_revision_test_code
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010728extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010729extern int *_nl_domain_bindings;
Theodore Ts'o93613952014-07-03 23:44:13 -040010730
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010731int
10732main ()
10733{
Theodore Ts'o93613952014-07-03 23:44:13 -040010734
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010735bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040010736return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10737
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010738 ;
10739 return 0;
10740}
10741_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010742if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040010743 eval "$gt_func_gnugettext_libc=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010744else
Theodore Ts'o93613952014-07-03 23:44:13 -040010745 eval "$gt_func_gnugettext_libc=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010746fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010747rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010749fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010750eval ac_res=\$$gt_func_gnugettext_libc
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10752$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010753
Theodore Ts'o93613952014-07-03 23:44:13 -040010754 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10755
10756
10757
10758
10759
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010760
10761
10762
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010763 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010764
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010765 acl_save_prefix="$prefix"
10766 prefix="$acl_final_prefix"
10767 acl_save_exec_prefix="$exec_prefix"
10768 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010769
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010770 eval additional_includedir=\"$includedir\"
10771 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010772
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010773 exec_prefix="$acl_save_exec_prefix"
10774 prefix="$acl_save_prefix"
10775
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010776
Theodore Ts'oe1052142006-10-21 21:46:47 -040010777# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010778if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010779 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010780 if test "X$withval" = "Xno"; then
10781 use_additional=no
10782 else
10783 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010784
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010785 acl_save_prefix="$prefix"
10786 prefix="$acl_final_prefix"
10787 acl_save_exec_prefix="$exec_prefix"
10788 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010789
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010790 eval additional_includedir=\"$includedir\"
10791 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010792
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010793 exec_prefix="$acl_save_exec_prefix"
10794 prefix="$acl_save_prefix"
10795
10796 else
10797 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -040010798 additional_libdir="$withval/$acl_libdirstem"
10799 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10800 && ! test -d "$withval/$acl_libdirstem"; then
10801 additional_libdir="$withval/$acl_libdirstem2"
10802 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010803 fi
10804 fi
10805
Theodore Ts'oe1052142006-10-21 21:46:47 -040010806fi
10807
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010808 LIBINTL=
10809 LTLIBINTL=
10810 INCINTL=
Theodore Ts'o93613952014-07-03 23:44:13 -040010811 LIBINTL_PREFIX=
10812 HAVE_LIBINTL=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010813 rpathdirs=
10814 ltrpathdirs=
10815 names_already_handled=
10816 names_next_round='intl '
10817 while test -n "$names_next_round"; do
10818 names_this_round="$names_next_round"
10819 names_next_round=
10820 for name in $names_this_round; do
10821 already_handled=
10822 for n in $names_already_handled; do
10823 if test "$n" = "$name"; then
10824 already_handled=yes
10825 break
10826 fi
10827 done
10828 if test -z "$already_handled"; then
10829 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -040010830 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010831 eval value=\"\$HAVE_LIB$uppername\"
10832 if test -n "$value"; then
10833 if test "$value" = yes; then
10834 eval value=\"\$LIB$uppername\"
10835 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10836 eval value=\"\$LTLIB$uppername\"
10837 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10838 else
10839 :
10840 fi
10841 else
10842 found_dir=
10843 found_la=
10844 found_so=
10845 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -040010846 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10847 if test -n "$acl_shlibext"; then
10848 shrext=".$acl_shlibext" # typically: shrext=.so
10849 else
10850 shrext=
10851 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010852 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010853 dir="$additional_libdir"
10854 if test -n "$acl_shlibext"; then
10855 if test -f "$dir/$libname$shrext"; then
10856 found_dir="$dir"
10857 found_so="$dir/$libname$shrext"
10858 else
10859 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10860 ver=`(cd "$dir" && \
10861 for f in "$libname$shrext".*; do echo "$f"; done \
10862 | sed -e "s,^$libname$shrext\\\\.,," \
10863 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10864 | sed 1q ) 2>/dev/null`
10865 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10866 found_dir="$dir"
10867 found_so="$dir/$libname$shrext.$ver"
10868 fi
10869 else
10870 eval library_names=\"$acl_library_names_spec\"
10871 for f in $library_names; do
10872 if test -f "$dir/$f"; then
10873 found_dir="$dir"
10874 found_so="$dir/$f"
10875 break
10876 fi
10877 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010878 fi
10879 fi
10880 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010881 if test "X$found_dir" = "X"; then
10882 if test -f "$dir/$libname.$acl_libext"; then
10883 found_dir="$dir"
10884 found_a="$dir/$libname.$acl_libext"
10885 fi
10886 fi
10887 if test "X$found_dir" != "X"; then
10888 if test -f "$dir/$libname.la"; then
10889 found_la="$dir/$libname.la"
10890 fi
10891 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010892 fi
10893 if test "X$found_dir" = "X"; then
10894 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010895
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010896 acl_save_prefix="$prefix"
10897 prefix="$acl_final_prefix"
10898 acl_save_exec_prefix="$exec_prefix"
10899 exec_prefix="$acl_final_exec_prefix"
10900 eval x=\"$x\"
10901 exec_prefix="$acl_save_exec_prefix"
10902 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010903
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010904 case "$x" in
10905 -L*)
10906 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040010907 if test -n "$acl_shlibext"; then
10908 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010909 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040010910 found_so="$dir/$libname$shrext"
10911 else
10912 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10913 ver=`(cd "$dir" && \
10914 for f in "$libname$shrext".*; do echo "$f"; done \
10915 | sed -e "s,^$libname$shrext\\\\.,," \
10916 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10917 | sed 1q ) 2>/dev/null`
10918 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10919 found_dir="$dir"
10920 found_so="$dir/$libname$shrext.$ver"
10921 fi
10922 else
10923 eval library_names=\"$acl_library_names_spec\"
10924 for f in $library_names; do
10925 if test -f "$dir/$f"; then
10926 found_dir="$dir"
10927 found_so="$dir/$f"
10928 break
10929 fi
10930 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010931 fi
10932 fi
10933 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010934 if test "X$found_dir" = "X"; then
10935 if test -f "$dir/$libname.$acl_libext"; then
10936 found_dir="$dir"
10937 found_a="$dir/$libname.$acl_libext"
10938 fi
10939 fi
10940 if test "X$found_dir" != "X"; then
10941 if test -f "$dir/$libname.la"; then
10942 found_la="$dir/$libname.la"
10943 fi
10944 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010945 ;;
10946 esac
10947 if test "X$found_dir" != "X"; then
10948 break
10949 fi
10950 done
10951 fi
10952 if test "X$found_dir" != "X"; then
10953 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10954 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010955 if test "$enable_rpath" = no \
10956 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10957 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010958 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10959 else
10960 haveit=
10961 for x in $ltrpathdirs; do
10962 if test "X$x" = "X$found_dir"; then
10963 haveit=yes
10964 break
10965 fi
10966 done
10967 if test -z "$haveit"; then
10968 ltrpathdirs="$ltrpathdirs $found_dir"
10969 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010970 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010971 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10972 else
Theodore Ts'o93613952014-07-03 23:44:13 -040010973 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010974 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10975 haveit=
10976 for x in $rpathdirs; do
10977 if test "X$x" = "X$found_dir"; then
10978 haveit=yes
10979 break
10980 fi
10981 done
10982 if test -z "$haveit"; then
10983 rpathdirs="$rpathdirs $found_dir"
10984 fi
10985 else
10986 haveit=
10987 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010988
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010989 acl_save_prefix="$prefix"
10990 prefix="$acl_final_prefix"
10991 acl_save_exec_prefix="$exec_prefix"
10992 exec_prefix="$acl_final_exec_prefix"
10993 eval x=\"$x\"
10994 exec_prefix="$acl_save_exec_prefix"
10995 prefix="$acl_save_prefix"
10996
10997 if test "X$x" = "X-L$found_dir"; then
10998 haveit=yes
10999 break
11000 fi
11001 done
11002 if test -z "$haveit"; then
11003 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11004 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011005 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011006 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11007 else
11008 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11009 fi
11010 fi
11011 fi
11012 fi
11013 else
11014 if test "X$found_a" != "X"; then
11015 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11016 else
11017 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11018 fi
11019 fi
11020 additional_includedir=
11021 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -040011022 */$acl_libdirstem | */$acl_libdirstem/)
11023 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11024 if test "$name" = 'intl'; then
11025 LIBINTL_PREFIX="$basedir"
11026 fi
11027 additional_includedir="$basedir/include"
11028 ;;
11029 */$acl_libdirstem2 | */$acl_libdirstem2/)
11030 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11031 if test "$name" = 'intl'; then
11032 LIBINTL_PREFIX="$basedir"
11033 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011034 additional_includedir="$basedir/include"
11035 ;;
11036 esac
11037 if test "X$additional_includedir" != "X"; then
11038 if test "X$additional_includedir" != "X/usr/include"; then
11039 haveit=
11040 if test "X$additional_includedir" = "X/usr/local/include"; then
11041 if test -n "$GCC"; then
11042 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011043 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011044 esac
11045 fi
11046 fi
11047 if test -z "$haveit"; then
11048 for x in $CPPFLAGS $INCINTL; 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-I$additional_includedir"; then
11059 haveit=yes
11060 break
11061 fi
11062 done
11063 if test -z "$haveit"; then
11064 if test -d "$additional_includedir"; then
11065 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11066 fi
11067 fi
11068 fi
11069 fi
11070 fi
11071 if test -n "$found_la"; then
11072 save_libdir="$libdir"
11073 case "$found_la" in
11074 */* | *\\*) . "$found_la" ;;
11075 *) . "./$found_la" ;;
11076 esac
11077 libdir="$save_libdir"
11078 for dep in $dependency_libs; do
11079 case "$dep" in
11080 -L*)
11081 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040011082 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11083 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011084 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -040011085 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11086 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011087 if test -n "$GCC"; then
11088 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011089 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011090 esac
11091 fi
11092 fi
11093 if test -z "$haveit"; then
11094 haveit=
11095 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011096
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011097 acl_save_prefix="$prefix"
11098 prefix="$acl_final_prefix"
11099 acl_save_exec_prefix="$exec_prefix"
11100 exec_prefix="$acl_final_exec_prefix"
11101 eval x=\"$x\"
11102 exec_prefix="$acl_save_exec_prefix"
11103 prefix="$acl_save_prefix"
11104
11105 if test "X$x" = "X-L$additional_libdir"; then
11106 haveit=yes
11107 break
11108 fi
11109 done
11110 if test -z "$haveit"; then
11111 if test -d "$additional_libdir"; then
11112 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11113 fi
11114 fi
11115 haveit=
11116 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011117
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011118 acl_save_prefix="$prefix"
11119 prefix="$acl_final_prefix"
11120 acl_save_exec_prefix="$exec_prefix"
11121 exec_prefix="$acl_final_exec_prefix"
11122 eval x=\"$x\"
11123 exec_prefix="$acl_save_exec_prefix"
11124 prefix="$acl_save_prefix"
11125
11126 if test "X$x" = "X-L$additional_libdir"; then
11127 haveit=yes
11128 break
11129 fi
11130 done
11131 if test -z "$haveit"; then
11132 if test -d "$additional_libdir"; then
11133 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11134 fi
11135 fi
11136 fi
11137 fi
11138 ;;
11139 -R*)
11140 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11141 if test "$enable_rpath" != no; then
11142 haveit=
11143 for x in $rpathdirs; do
11144 if test "X$x" = "X$dir"; then
11145 haveit=yes
11146 break
11147 fi
11148 done
11149 if test -z "$haveit"; then
11150 rpathdirs="$rpathdirs $dir"
11151 fi
11152 haveit=
11153 for x in $ltrpathdirs; do
11154 if test "X$x" = "X$dir"; then
11155 haveit=yes
11156 break
11157 fi
11158 done
11159 if test -z "$haveit"; then
11160 ltrpathdirs="$ltrpathdirs $dir"
11161 fi
11162 fi
11163 ;;
11164 -l*)
11165 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11166 ;;
11167 *.la)
11168 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11169 ;;
11170 *)
11171 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11172 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11173 ;;
11174 esac
11175 done
11176 fi
11177 else
11178 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11179 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11180 fi
11181 fi
11182 fi
11183 done
11184 done
11185 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011186 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011187 alldirs=
11188 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -040011189 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011190 done
11191 acl_save_libdir="$libdir"
11192 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -040011193 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011194 libdir="$acl_save_libdir"
11195 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11196 else
11197 for found_dir in $rpathdirs; do
11198 acl_save_libdir="$libdir"
11199 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040011200 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011201 libdir="$acl_save_libdir"
11202 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11203 done
11204 fi
11205 fi
11206 if test "X$ltrpathdirs" != "X"; then
11207 for found_dir in $ltrpathdirs; do
11208 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11209 done
11210 fi
11211
Theodore Ts'o93613952014-07-03 23:44:13 -040011212
11213
11214
11215
11216
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011218$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040011219if eval \${$gt_func_gnugettext_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011220 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011221else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011222 gt_save_CPPFLAGS="$CPPFLAGS"
11223 CPPFLAGS="$CPPFLAGS $INCINTL"
11224 gt_save_LIBS="$LIBS"
11225 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011227/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011228
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011229#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011230$gt_revision_test_code
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011231extern int _nl_msg_cat_cntr;
11232extern
11233#ifdef __cplusplus
11234"C"
11235#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011236const char *_nl_expand_alias (const char *);
11237
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011238int
11239main ()
11240{
Theodore Ts'o93613952014-07-03 23:44:13 -040011241
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011242bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011243return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11244
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011245 ;
11246 return 0;
11247}
11248_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011249if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040011250 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011251else
Theodore Ts'o93613952014-07-03 23:44:13 -040011252 eval "$gt_func_gnugettext_libintl=no"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011253fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011254rm -f core conftest.err conftest.$ac_objext \
11255 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -040011256 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011257 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011259/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011260
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011261#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011262$gt_revision_test_code
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011263extern int _nl_msg_cat_cntr;
11264extern
11265#ifdef __cplusplus
11266"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011267#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011268const char *_nl_expand_alias (const char *);
11269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011270int
11271main ()
11272{
Theodore Ts'o93613952014-07-03 23:44:13 -040011273
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011274bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011275return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11276
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011277 ;
11278 return 0;
11279}
11280_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011281if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011282 LIBINTL="$LIBINTL $LIBICONV"
Theodore Ts'o93613952014-07-03 23:44:13 -040011283 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11284 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011285
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011286fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011287rm -f core conftest.err conftest.$ac_objext \
11288 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011289 fi
11290 CPPFLAGS="$gt_save_CPPFLAGS"
11291 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011292fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011293eval ac_res=\$$gt_func_gnugettext_libintl
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11295$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011296 fi
11297
Theodore Ts'o93613952014-07-03 23:44:13 -040011298 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11299 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011300 && test "$PACKAGE" != gettext-runtime \
11301 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011302 gt_use_preinstalled_gnugettext=yes
11303 else
11304 LIBINTL=
11305 LTLIBINTL=
11306 INCINTL=
11307 fi
11308
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011309
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011310 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11311 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011312 fi
11313 fi
11314
11315 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011316 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011317 USE_INCLUDED_LIBINTL=yes
Theodore Ts'o93613952014-07-03 23:44:13 -040011318 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11319 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011320 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011321 fi
11322
Theodore Ts'o93613952014-07-03 23:44:13 -040011323 CATOBJEXT=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011324 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11325 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11326 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011327 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011328
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011329
Theodore Ts'o93613952014-07-03 23:44:13 -040011330 if test -n "$INTL_MACOSX_LIBS"; then
11331 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11332 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11333 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11334 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11335 fi
11336 fi
11337
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011338 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11339 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011340
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011341$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011342
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011343 else
11344 USE_NLS=no
11345 fi
11346 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011347
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011349$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011351$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011352 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011354$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011355 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011356 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011357 gt_source="external libintl"
11358 else
11359 gt_source="libc"
11360 fi
11361 else
11362 gt_source="included intl directory"
11363 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011365$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011366 fi
11367
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011368 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011369
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011370 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011371 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011373$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011375$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011376
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011377 for element in $INCINTL; do
11378 haveit=
11379 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011380
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011381 acl_save_prefix="$prefix"
11382 prefix="$acl_final_prefix"
11383 acl_save_exec_prefix="$exec_prefix"
11384 exec_prefix="$acl_final_exec_prefix"
11385 eval x=\"$x\"
11386 exec_prefix="$acl_save_exec_prefix"
11387 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011388
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011389 if test "X$x" = "X$element"; then
11390 haveit=yes
11391 break
11392 fi
11393 done
11394 if test -z "$haveit"; then
11395 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11396 fi
11397 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011398
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011399 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011400
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011401
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011402$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011403
11404
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011405$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011406
11407 fi
11408
11409 POSUB=po
11410 fi
11411
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011412
11413 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011414 BUILD_INCLUDED_LIBINTL=yes
11415 fi
11416
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011417
11418
11419
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011420
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011421 nls_cv_header_intl=
11422 nls_cv_header_libgt=
11423
11424 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011425
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011426
11427 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011428
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011429
11430 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011431
11432
Theodore Ts'o93613952014-07-03 23:44:13 -040011433 INTLOBJS=
11434 if test "$USE_INCLUDED_LIBINTL" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011435 INTLOBJS="\$(GETTOBJS)"
11436 fi
11437
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011438
11439 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011440
11441
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011442
11443 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011444
11445
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011446
11447
11448
11449
11450
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011452$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11453set x ${MAKE-make}
11454ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011455if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011456 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011457else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011458 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011459SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011460all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011461 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011462_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011463# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011464case `${MAKE-make} -f conftest.make 2>/dev/null` in
11465 *@@@%%%=?*=@@@%%%*)
11466 eval ac_cv_prog_make_${ac_make}_set=yes;;
11467 *)
11468 eval ac_cv_prog_make_${ac_make}_set=no;;
11469esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011470rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011471fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011472if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011474$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011475 SET_MAKE=
11476else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011478$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011479 SET_MAKE="MAKE=${MAKE-make}"
11480fi
11481
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011483$as_echo_n "checking for GNU make... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011484if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011485 $as_echo_n "(cached) " >&6
11486else
11487 _cv_gnu_make_command='' ;
11488 for a in "$MAKE" make gmake gnumake ; do
11489 if test -z "$a" ; then continue ; fi ;
11490 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11491 _cv_gnu_make_command=$a ;
11492 break;
11493 fi
11494 done ;
11495
11496fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011498$as_echo "$_cv_gnu_make_command" >&6; } ;
11499 if test "x$_cv_gnu_make_command" != "x" ; then
11500 ifGNUmake='' ;
11501 ifNotGNUmake='#' ;
11502 else
11503 ifGNUmake='#' ;
11504 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011506$as_echo "\"Not found\"" >&6; };
11507 fi
11508
11509
11510
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011511# Extract the first word of "ln", so it can be a program name with args.
11512set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011514$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011515if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011516 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011517else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011518 case $LN in
11519 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011520 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11521 ;;
11522 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524for as_dir in $PATH
11525do
11526 IFS=$as_save_IFS
11527 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011528 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011530 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011532 break 2
11533 fi
11534done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011535 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011536IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011537
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011538 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11539 ;;
11540esac
11541fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011542LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011543if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011545$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011546else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011548$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011549fi
11550
Theodore Ts'oe1052142006-10-21 21:46:47 -040011551
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011553$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011554LN_S=$as_ln_s
11555if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011557$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011558else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011560$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011561fi
11562
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011563# Extract the first word of "mv", so it can be a program name with args.
11564set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011566$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011567if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011568 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011569else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011570 case $MV in
11571 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011572 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11573 ;;
11574 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576for as_dir in $PATH
11577do
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011580 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011582 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011584 break 2
11585 fi
11586done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011587 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011588IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011589
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011590 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11591 ;;
11592esac
11593fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011594MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011595if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011597$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011598else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011600$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011601fi
11602
Theodore Ts'oe1052142006-10-21 21:46:47 -040011603
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011604# Extract the first word of "cp", so it can be a program name with args.
11605set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011607$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011608if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011609 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011610else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011611 case $CP in
11612 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011613 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11614 ;;
11615 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617for as_dir in $PATH
11618do
11619 IFS=$as_save_IFS
11620 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011621 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011623 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011625 break 2
11626 fi
11627done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011628 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011629IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011630
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011631 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11632 ;;
11633esac
11634fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011635CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011636if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011638$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011639else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011641$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011642fi
11643
Theodore Ts'oe1052142006-10-21 21:46:47 -040011644
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011645# Extract the first word of "rm", so it can be a program name with args.
11646set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011648$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011649if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011650 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011651else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011652 case $RM in
11653 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011654 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11655 ;;
11656 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658for as_dir in $PATH
11659do
11660 IFS=$as_save_IFS
11661 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011662 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011664 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011666 break 2
11667 fi
11668done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011669 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011670IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011671
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011672 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11673 ;;
11674esac
11675fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011676RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011677if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011679$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011680else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011682$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011683fi
11684
Theodore Ts'oe1052142006-10-21 21:46:47 -040011685
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011686# Extract the first word of "chmod", so it can be a program name with args.
11687set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011689$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011690if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011691 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011692else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011693 case $CHMOD in
11694 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011695 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11696 ;;
11697 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699for as_dir in $PATH
11700do
11701 IFS=$as_save_IFS
11702 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011703 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011705 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011707 break 2
11708 fi
11709done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011710 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011711IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011712
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011713 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11714 ;;
11715esac
11716fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011717CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011718if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011720$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011721else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011723$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011724fi
11725
Theodore Ts'oe1052142006-10-21 21:46:47 -040011726
Theodore Ts'o32237012005-01-17 19:13:39 -050011727for ac_prog in gawk mawk nawk awk
11728do
11729 # Extract the first word of "$ac_prog", so it can be a program name with args.
11730set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011732$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011733if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011734 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011735else
Theodore Ts'o32237012005-01-17 19:13:39 -050011736 if test -n "$AWK"; then
11737 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11738else
11739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011740for as_dir in $PATH
11741do
11742 IFS=$as_save_IFS
11743 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011744 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011746 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011748 break 2
11749 fi
11750done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011751 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011752IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011753
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011754fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011755fi
11756AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011757if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011759$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011760else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011762$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011763fi
11764
Theodore Ts'oe1052142006-10-21 21:46:47 -040011765
Theodore Ts'o32237012005-01-17 19:13:39 -050011766 test -n "$AWK" && break
11767done
11768
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011770$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011771if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011772 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011773else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011774 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11775 then ac_cv_path_EGREP="$GREP -E"
11776 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011777 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011778 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011779 # Loop through the user's path and test for each of PROGNAME-LIST
11780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011781for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11782do
11783 IFS=$as_save_IFS
11784 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011785 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011786 for ac_exec_ext in '' $ac_executable_extensions; do
11787 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011788 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011789# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011790 # Check for GNU $ac_path_EGREP
11791case `"$ac_path_EGREP" --version 2>&1` in
11792*GNU*)
11793 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11794*)
11795 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011796 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011797 while :
11798 do
11799 cat "conftest.in" "conftest.in" >"conftest.tmp"
11800 mv "conftest.tmp" "conftest.in"
11801 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011802 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011803 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011805 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -040011806 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11807 # Best one so far, save it but keep looking for a better one
11808 ac_cv_path_EGREP="$ac_path_EGREP"
11809 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011810 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011811 # 10*(2^10) chars as input seems more than enough
11812 test $ac_count -gt 10 && break
11813 done
11814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11815esac
11816
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011817 $ac_path_EGREP_found && break 3
11818 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011819 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011820 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011821IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011822 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011823 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 +010011824 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011825else
11826 ac_cv_path_EGREP=$EGREP
11827fi
11828
Theodore Ts'oe1052142006-10-21 21:46:47 -040011829 fi
11830fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011832$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011833 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011834
11835
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011836# Extract the first word of "sed", so it can be a program name with args.
11837set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011839$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011840if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011841 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011842else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011843 case $SED in
11844 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011845 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11846 ;;
11847 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11849for as_dir in $PATH
11850do
11851 IFS=$as_save_IFS
11852 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011853 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011855 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011857 break 2
11858 fi
11859done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011860 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011861IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011862
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011863 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11864 ;;
11865esac
11866fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011867SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011868if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011870$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011871else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011873$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011874fi
11875
Theodore Ts'oe1052142006-10-21 21:46:47 -040011876
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011877# Extract the first word of "perl", so it can be a program name with args.
11878set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011880$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011881if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011882 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011883else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011884 case $PERL in
11885 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011886 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11887 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011888 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11890for as_dir in $PATH
11891do
11892 IFS=$as_save_IFS
11893 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011894 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011896 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011898 break 2
11899 fi
11900done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011901 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011902IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011903
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011904 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11905 ;;
11906esac
11907fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011908PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011909if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011911$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011912else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011914$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011915fi
11916
Theodore Ts'oe1052142006-10-21 21:46:47 -040011917
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011918# Extract the first word of "ldconfig", so it can be a program name with args.
11919set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011921$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011922if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011923 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011924else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011925 case $LDCONFIG in
11926 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011927 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11928 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011929 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11931for as_dir in $PATH
11932do
11933 IFS=$as_save_IFS
11934 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011935 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011937 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011939 break 2
11940 fi
11941done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011942 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011943IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011944
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011945 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11946 ;;
11947esac
11948fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011949LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011950if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011952$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011953else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011955$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011956fi
11957
Theodore Ts'oe1052142006-10-21 21:46:47 -040011958
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011959if test -n "$ac_tool_prefix"; then
11960 # 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 +000011961set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011963$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011964if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011965 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011966else
11967 if test -n "$AR"; then
11968 ac_cv_prog_AR="$AR" # Let the user override the test.
11969else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971for as_dir in $PATH
11972do
11973 IFS=$as_save_IFS
11974 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011975 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011977 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011979 break 2
11980 fi
11981done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011982 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011983IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011984
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011985fi
11986fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011987AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011988if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011990$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011991else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011993$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011994fi
11995
Theodore Ts'oe1052142006-10-21 21:46:47 -040011996
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011997fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011998if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011999 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012000 # Extract the first word of "ar", so it can be a program name with args.
12001set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012003$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012004if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012005 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012006else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012007 if test -n "$ac_ct_AR"; then
12008 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012009else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011for as_dir in $PATH
12012do
12013 IFS=$as_save_IFS
12014 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012015 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012017 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012019 break 2
12020 fi
12021done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012022 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012023IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012024
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012025fi
12026fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012027ac_ct_AR=$ac_cv_prog_ac_ct_AR
12028if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012030$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012031else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012033$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012034fi
12035
Theodore Ts'oe1052142006-10-21 21:46:47 -040012036 if test "x$ac_ct_AR" = x; then
12037 AR="ar"
12038 else
12039 case $cross_compiling:$ac_tool_warned in
12040yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012041{ $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 +010012042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012043ac_tool_warned=yes ;;
12044esac
12045 AR=$ac_ct_AR
12046 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012047else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012048 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012049fi
12050
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012051if test -n "$ac_tool_prefix"; then
12052 # 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 +000012053set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012055$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012056if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012057 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012058else
12059 if test -n "$RANLIB"; then
12060 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12061else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12063for as_dir in $PATH
12064do
12065 IFS=$as_save_IFS
12066 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012067 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012069 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012071 break 2
12072 fi
12073done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012074 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012075IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012076
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012077fi
12078fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012079RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012080if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012082$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012083else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012085$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012086fi
12087
Theodore Ts'oe1052142006-10-21 21:46:47 -040012088
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012089fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012090if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012091 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012092 # Extract the first word of "ranlib", so it can be a program name with args.
12093set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012095$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012096if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012097 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012098else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012099 if test -n "$ac_ct_RANLIB"; then
12100 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012101else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103for as_dir in $PATH
12104do
12105 IFS=$as_save_IFS
12106 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012107 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012109 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012111 break 2
12112 fi
12113done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012114 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012115IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012116
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012117fi
12118fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012119ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12120if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012122$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012123else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012125$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012126fi
12127
Theodore Ts'oe1052142006-10-21 21:46:47 -040012128 if test "x$ac_ct_RANLIB" = x; then
12129 RANLIB=":"
12130 else
12131 case $cross_compiling:$ac_tool_warned in
12132yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012133{ $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 +010012134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012135ac_tool_warned=yes ;;
12136esac
12137 RANLIB=$ac_ct_RANLIB
12138 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012139else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012140 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012141fi
12142
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012143if test -n "$ac_tool_prefix"; then
12144 # 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 +000012145set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012147$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012148if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012149 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012150else
12151 if test -n "$STRIP"; then
12152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12153else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155for as_dir in $PATH
12156do
12157 IFS=$as_save_IFS
12158 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012159 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012161 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012163 break 2
12164 fi
12165done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012166 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012167IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012168
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012169fi
12170fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012171STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012172if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012174$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012175else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012177$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012178fi
12179
Theodore Ts'oe1052142006-10-21 21:46:47 -040012180
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012181fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012182if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012183 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012184 # Extract the first word of "strip", so it can be a program name with args.
12185set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012187$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012188if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012189 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012190else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012191 if test -n "$ac_ct_STRIP"; then
12192 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012193else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12195for as_dir in $PATH
12196do
12197 IFS=$as_save_IFS
12198 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012199 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012201 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012203 break 2
12204 fi
12205done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012206 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012207IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012208
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012209fi
12210fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012211ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12212if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012214$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012215else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012217$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012218fi
12219
Theodore Ts'oe1052142006-10-21 21:46:47 -040012220 if test "x$ac_ct_STRIP" = x; then
12221 STRIP=":"
12222 else
12223 case $cross_compiling:$ac_tool_warned in
12224yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012225{ $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 +010012226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012227ac_tool_warned=yes ;;
12228esac
12229 STRIP=$ac_ct_STRIP
12230 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012231else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012233fi
12234
Manish Katiyar7321d942008-04-14 17:20:03 +053012235# Extract the first word of "makeinfo", so it can be a program name with args.
12236set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012238$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012239if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012240 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012241else
12242 if test -n "$MAKEINFO"; then
12243 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12244else
12245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246for as_dir in $PATH
12247do
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012250 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053012252 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012254 break 2
12255 fi
12256done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012257 done
Manish Katiyar7321d942008-04-14 17:20:03 +053012258IFS=$as_save_IFS
12259
12260fi
12261fi
12262MAKEINFO=$ac_cv_prog_MAKEINFO
12263if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012265$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012266else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012268$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012269fi
12270
12271
12272if test "_$MAKEINFO" = "_"; then
12273 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12274else
12275 case "$MAKEINFO" in
12276 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012278*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012279$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012280*** Makeinfo is missing. Info documentation will not be built." >&2;}
12281 ;;
12282 *)
12283 ;;
12284 esac
12285fi
12286
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012287
Theodore Ts'o6c133521999-07-03 20:37:03 +000012288# See if we need a separate native compiler.
12289if test $cross_compiling = no; then
12290 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012291
Theodore Ts'o6c133521999-07-03 20:37:03 +000012292else
12293 for ac_prog in gcc cc
12294do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012295 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012296set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012298$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012299if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012300 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012301else
12302 if test -n "$BUILD_CC"; then
12303 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12304else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012307do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012310 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012312 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012314 break 2
12315 fi
12316done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012317 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012318IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012319
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012320fi
12321fi
12322BUILD_CC=$ac_cv_prog_BUILD_CC
12323if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012325$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012326else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012328$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012329fi
12330
Theodore Ts'oe1052142006-10-21 21:46:47 -040012331
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012332 test -n "$BUILD_CC" && break
12333done
12334
12335fi
Theodore Ts'o74f2c4a2015-06-19 19:28:25 -040012336for 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/key.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 -050012337do :
12338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12339ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012340if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012341 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012342#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012343_ACEOF
12344
12345fi
12346
12347done
12348
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012349for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012350do :
12351 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012352#if HAVE_SYS_TYPES_H
12353#include <sys/types.h>
12354#endif
12355#if HAVE_SYS_SOCKET
12356#include <sys/socket.h>
12357#endif
12358
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012359"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012360if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012361 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012362#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012363_ACEOF
12364
12365fi
12366
12367done
12368
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012369for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012370do :
12371 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012372if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012373 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012374#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012375_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012376
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012377ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012378if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012379
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012380$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012381
12382fi
12383
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012384fi
12385done
12386
12387
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012388ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12389"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012390if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012391
12392$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012393
12394fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012395
Theodore Ts'o28739272014-01-03 00:26:43 -050012396ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12397if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12398
12399cat >>confdefs.h <<_ACEOF
12400#define HAVE_STRUCT_STAT_ST_ATIM 1
12401_ACEOF
12402
12403
12404fi
12405
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012406ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12407"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012408if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012409
12410$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012411
Theodore Ts'offf45482003-04-13 00:44:19 -040012412fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012413
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012414ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12415"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012416if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012417
12418$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012419
12420fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012421
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012422ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012423 #define _LARGEFILE64_SOURCE
12424 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012425"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012426if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012427
12428$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012429
12430fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012431
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012432# The cast to long int works around a bug in the HP C Compiler
12433# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12434# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12435# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012437$as_echo_n "checking size of short... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012438if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012439 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012440else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012441 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 -050012442
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012443else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012444 if test "$ac_cv_type_short" = yes; then
12445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012447as_fn_error 77 "cannot compute sizeof (short)
12448See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012449 else
12450 ac_cv_sizeof_short=0
12451 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012452fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012453
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012454fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012456$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012457
12458
12459
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012460cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012461#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012462_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012463
12464
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012465# The cast to long int works around a bug in the HP C Compiler
12466# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12467# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12468# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012470$as_echo_n "checking size of int... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012471if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012472 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012473else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012474 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 -050012475
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012476else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012477 if test "$ac_cv_type_int" = yes; then
12478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012480as_fn_error 77 "cannot compute sizeof (int)
12481See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012482 else
12483 ac_cv_sizeof_int=0
12484 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012485fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012486
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012487fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012489$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012490
12491
12492
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012493cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012494#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012495_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012496
12497
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012498# The cast to long int works around a bug in the HP C Compiler
12499# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12500# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12501# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012503$as_echo_n "checking size of long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012504if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012505 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012506else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012507 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 -050012508
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012509else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012510 if test "$ac_cv_type_long" = yes; then
12511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012513as_fn_error 77 "cannot compute sizeof (long)
12514See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012515 else
12516 ac_cv_sizeof_long=0
12517 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012518fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012519
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012520fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012522$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012523
12524
12525
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012526cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012527#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012528_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012529
12530
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012531# The cast to long int works around a bug in the HP C Compiler
12532# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12533# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12534# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012536$as_echo_n "checking size of long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012537if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012538 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012539else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012540 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 -050012541
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012542else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012543 if test "$ac_cv_type_long_long" = yes; then
12544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012546as_fn_error 77 "cannot compute sizeof (long long)
12547See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012548 else
12549 ac_cv_sizeof_long_long=0
12550 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012551fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012552
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012553fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012555$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012556
12557
12558
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012559cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012560#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012561_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012562
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012563
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012564# The cast to long int works around a bug in the HP C Compiler
12565# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12566# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12567# This bug is HP SR number 8606223364.
12568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12569$as_echo_n "checking size of off_t... " >&6; }
12570if ${ac_cv_sizeof_off_t+:} false; then :
12571 $as_echo_n "(cached) " >&6
12572else
12573 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12574
12575else
12576 if test "$ac_cv_type_off_t" = yes; then
12577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12579as_fn_error 77 "cannot compute sizeof (off_t)
12580See \`config.log' for more details" "$LINENO" 5; }
12581 else
12582 ac_cv_sizeof_off_t=0
12583 fi
12584fi
12585
12586fi
12587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12588$as_echo "$ac_cv_sizeof_off_t" >&6; }
12589
12590
12591
12592cat >>confdefs.h <<_ACEOF
12593#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12594_ACEOF
12595
12596
Theodore Ts'o2dd680f2016-05-29 01:07:40 -040012597# The cast to long int works around a bug in the HP C Compiler
12598# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12599# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12600# This bug is HP SR number 8606223364.
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12602$as_echo_n "checking size of time_t... " >&6; }
12603if ${ac_cv_sizeof_time_t+:} false; then :
12604 $as_echo_n "(cached) " >&6
12605else
12606 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12607
12608else
12609 if test "$ac_cv_type_time_t" = yes; then
12610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12612as_fn_error 77 "cannot compute sizeof (time_t)
12613See \`config.log' for more details" "$LINENO" 5; }
12614 else
12615 ac_cv_sizeof_time_t=0
12616 fi
12617fi
12618
12619fi
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12621$as_echo "$ac_cv_sizeof_time_t" >&6; }
12622
12623
12624
12625cat >>confdefs.h <<_ACEOF
12626#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12627_ACEOF
12628
12629
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012630SIZEOF_SHORT=$ac_cv_sizeof_short
12631SIZEOF_INT=$ac_cv_sizeof_int
12632SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012633SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012634SIZEOF_OFF_T=$ac_cv_sizeof_off_t
Theodore Ts'o2dd680f2016-05-29 01:07:40 -040012635SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12636
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012637
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012638
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012639
12640
12641
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012643$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012644if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012645 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012646else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012647 ac_cv_c_bigendian=unknown
12648 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012650/* end confdefs.h. */
12651#ifndef __APPLE_CC__
12652 not a universal capable compiler
12653 #endif
12654 typedef int dummy;
12655
12656_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012657if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012658
12659 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012660 # there are at least two -arch flags with different values.
12661 ac_arch=
12662 ac_prev=
12663 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12664 if test -n "$ac_prev"; then
12665 case $ac_word in
12666 i?86 | x86_64 | ppc | ppc64)
12667 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12668 ac_arch=$ac_word
12669 else
12670 ac_cv_c_bigendian=universal
12671 break
12672 fi
12673 ;;
12674 esac
12675 ac_prev=
12676 elif test "x$ac_word" = "x-arch"; then
12677 ac_prev=arch
12678 fi
12679 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012680fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12682 if test $ac_cv_c_bigendian = unknown; then
12683 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012685/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012686#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012687 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012688
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012689int
12690main ()
12691{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012692#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12693 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12694 && LITTLE_ENDIAN)
12695 bogus endian macros
12696 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012697
12698 ;
12699 return 0;
12700}
12701_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012702if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012703 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012705/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012706#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012707 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012708
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012709int
12710main ()
12711{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012712#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012713 not big endian
12714 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012715
12716 ;
12717 return 0;
12718}
12719_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012720if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012721 ac_cv_c_bigendian=yes
12722else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012723 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012724fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012726fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12728 fi
12729 if test $ac_cv_c_bigendian = unknown; then
12730 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012732/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012733#include <limits.h>
12734
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012735int
12736main ()
12737{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012738#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12739 bogus endian macros
12740 #endif
12741
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012742 ;
12743 return 0;
12744}
12745_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012746if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012747 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012749/* end confdefs.h. */
12750#include <limits.h>
12751
12752int
12753main ()
12754{
12755#ifndef _BIG_ENDIAN
12756 not big endian
12757 #endif
12758
12759 ;
12760 return 0;
12761}
12762_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012763if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012764 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012765else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012766 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012767fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012769fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12771 fi
12772 if test $ac_cv_c_bigendian = unknown; then
12773 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012774 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012775 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012777/* end confdefs.h. */
12778short int ascii_mm[] =
12779 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12780 short int ascii_ii[] =
12781 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12782 int use_ascii (int i) {
12783 return ascii_mm[i] + ascii_ii[i];
12784 }
12785 short int ebcdic_ii[] =
12786 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12787 short int ebcdic_mm[] =
12788 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12789 int use_ebcdic (int i) {
12790 return ebcdic_mm[i] + ebcdic_ii[i];
12791 }
12792 extern int foo;
12793
12794int
12795main ()
12796{
12797return use_ascii (foo) == use_ebcdic (foo);
12798 ;
12799 return 0;
12800}
12801_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012802if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012803 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12804 ac_cv_c_bigendian=yes
12805 fi
12806 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12807 if test "$ac_cv_c_bigendian" = unknown; then
12808 ac_cv_c_bigendian=no
12809 else
12810 # finding both strings is unlikely to happen, but who knows?
12811 ac_cv_c_bigendian=unknown
12812 fi
12813 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012814fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012816else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012818/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012819$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012820int
12821main ()
12822{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012823
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012824 /* Are we little or big endian? From Harbison&Steele. */
12825 union
12826 {
12827 long int l;
12828 char c[sizeof (long int)];
12829 } u;
12830 u.l = 1;
12831 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012832
12833 ;
12834 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012835}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012836_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012837if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012838 ac_cv_c_bigendian=no
12839else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012840 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012841fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12843 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012844fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012845
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012846 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012847fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012849$as_echo "$ac_cv_c_bigendian" >&6; }
12850 case $ac_cv_c_bigendian in #(
12851 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012852 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012853;; #(
12854 no)
12855 ;; #(
12856 universal)
12857
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012858$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012859
12860 ;; #(
12861 *)
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012862 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012863 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012864 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012865
Chen Qi91f04682014-05-05 21:08:42 -040012866if test $cross_compiling = no; then
12867 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12868else
12869 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12870fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040012871ASM_TYPES_HEADER=./asm_types.h
12872
Theodore Ts'o488c75a2008-06-07 08:55:21 -040012873echo "/* These defines are needed for the public ext2fs.h header file */" \
12874 > public_config.h
12875if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12876 uniq tmp_config.$$ >> public_config.h
12877else
12878 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12879fi
12880if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12881 uniq tmp_config.$$ >> public_config.h
12882else
12883 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12884fi
12885rm -f tmp_config.$$
12886PUBLIC_CONFIG_HEADER=./public_config.h
12887
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012888for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012889do :
12890 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012891if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012892 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012893#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012894_ACEOF
12895
12896fi
12897
Theodore Ts'o0c193f82003-08-01 14:26:23 -040012898done
12899
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012900ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012901if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012902
12903cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012904#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012905_ACEOF
12906
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012907
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012908fi
12909
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012910{ $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 +010012911$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012912if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012913 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012914else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012916/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012917#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012918int
12919main ()
12920{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012921struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012922 ;
12923 return 0;
12924}
12925_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012926if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012927 e2fsprogs_cv_struct_st_flags=yes
12928else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012929 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012930fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12932fi
12933
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012935$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012936if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012938$as_echo_n "checking whether st_flags field is useful... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012939 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012940 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012941else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012943/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012944#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012945int
12946main ()
12947{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012948struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012949 ;
12950 return 0;
12951}
12952_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012953if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012954 e2fsprogs_cv_struct_st_flags_immut=yes
12955else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012956 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012957fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12959fi
12960
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012962$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012963 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012964
12965$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012966
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012967 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012968fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012969ac_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 -050012970 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012971"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012972if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012973
12974cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050012975#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012976_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050012977
12978fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012979
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012980if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012982$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012983if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012984 $as_echo_n "(cached) " >&6
12985else
12986 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012988/* end confdefs.h. */
12989
12990/* Override any GCC internal prototype to avoid an error.
12991 Use char because int might match the return type of a GCC
12992 builtin and then its argument prototype would still apply. */
12993#ifdef __cplusplus
12994extern "C"
12995#endif
12996char blkid_probe_all ();
12997int
12998main ()
12999{
13000return blkid_probe_all ();
13001 ;
13002 return 0;
13003}
13004_ACEOF
13005for ac_lib in '' blkid; do
13006 if test -z "$ac_lib"; then
13007 ac_res="none required"
13008 else
13009 ac_res=-l$ac_lib
13010 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13011 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013012 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013013 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013014fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013015rm -f core conftest.err conftest.$ac_objext \
13016 conftest$ac_exeext
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013017 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013018 break
13019fi
13020done
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013021if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013022
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013023else
13024 ac_cv_search_blkid_probe_all=no
13025fi
13026rm conftest.$ac_ext
13027LIBS=$ac_func_search_save_LIBS
13028fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013030$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13031ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013032if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13034
13035fi
13036
13037fi
Theodore Ts'o74f2c4a2015-06-19 19:28:25 -040013038for ac_func in __secure_getenv add_key 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 keyctl 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 -050013039do :
13040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13041ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013042if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013043 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013044#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013045_ACEOF
13046
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013047fi
13048done
13049
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013050SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013052$as_echo_n "checking for socket in -lsocket... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013053if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013054 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013055else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013056 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013057LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013059/* end confdefs.h. */
13060
Theodore Ts'oe1052142006-10-21 21:46:47 -040013061/* Override any GCC internal prototype to avoid an error.
13062 Use char because int might match the return type of a GCC
13063 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013064#ifdef __cplusplus
13065extern "C"
13066#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013067char socket ();
13068int
13069main ()
13070{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013071return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013072 ;
13073 return 0;
13074}
13075_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013076if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013077 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013078else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013079 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013080fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013081rm -f core conftest.err conftest.$ac_objext \
13082 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013083LIBS=$ac_check_lib_save_LIBS
13084fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013086$as_echo "$ac_cv_lib_socket_socket" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013087if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013088 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013089fi
13090
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013091
Darrick J. Wongb291c112014-09-13 15:12:46 -070013092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13093$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13094if ${ac_cv_lib_magic_magic_file+:} false; then :
13095 $as_echo_n "(cached) " >&6
13096else
13097 ac_check_lib_save_LIBS=$LIBS
13098LIBS="-lmagic $LIBS"
13099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100/* end confdefs.h. */
13101
13102/* Override any GCC internal prototype to avoid an error.
13103 Use char because int might match the return type of a GCC
13104 builtin and then its argument prototype would still apply. */
13105#ifdef __cplusplus
13106extern "C"
13107#endif
13108char magic_file ();
13109int
13110main ()
13111{
13112return magic_file ();
13113 ;
13114 return 0;
13115}
13116_ACEOF
13117if ac_fn_c_try_link "$LINENO"; then :
13118 ac_cv_lib_magic_magic_file=yes
13119else
13120 ac_cv_lib_magic_magic_file=no
13121fi
13122rm -f core conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124LIBS=$ac_check_lib_save_LIBS
13125fi
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13127$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13128if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13129 MAGIC_LIB=-lmagic
13130for ac_header in magic.h
13131do :
13132 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13133if test "x$ac_cv_header_magic_h" = xyes; then :
13134 cat >>confdefs.h <<_ACEOF
13135#define HAVE_MAGIC_H 1
13136_ACEOF
13137
13138fi
13139
13140done
13141
13142fi
13143
Theodore Ts'od2e3c0d2014-09-21 01:25:58 -040013144if test "$ac_cv_lib_dl_dlopen" = yes ; then
13145 MAGIC_LIB=$DLOPEN_LIB
13146fi
Darrick J. Wongb291c112014-09-13 15:12:46 -070013147
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -070013148FUSE_CMT=
13149FUSE_LIB=
13150# Check whether --enable-fuse2fs was given.
13151if test "${enable_fuse2fs+set}" = set; then :
13152 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13153then
13154 FUSE_CMT="#"
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13156$as_echo "Disabling fuse2fs" >&6; }
13157else
13158 for ac_header in pthread.h fuse.h
13159do :
13160 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13161ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13162#define FUSE_USE_VERSION 29
13163"
13164if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13165 cat >>confdefs.h <<_ACEOF
13166#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13167_ACEOF
13168
13169else
13170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13172as_fn_error $? "Cannot find fuse2fs headers.
13173See \`config.log' for more details" "$LINENO" 5; }
13174fi
13175
13176done
13177
13178
13179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13180/* end confdefs.h. */
13181#define FUSE_USE_VERSION 29
13182#ifdef __linux__
13183#include <linux/fs.h>
13184#include <linux/falloc.h>
13185#include <linux/xattr.h>
13186#endif
13187
13188int
13189main ()
13190{
13191
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196if ac_fn_c_try_cpp "$LINENO"; then :
13197
13198else
13199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13201as_fn_error $? "Cannot find fuse2fs Linux headers.
13202See \`config.log' for more details" "$LINENO" 5; }
13203fi
13204rm -f conftest.err conftest.i conftest.$ac_ext
13205
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13207$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13208if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13209 $as_echo_n "(cached) " >&6
13210else
13211 ac_check_lib_save_LIBS=$LIBS
13212LIBS="-losxfuse $LIBS"
13213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214/* end confdefs.h. */
13215
13216/* Override any GCC internal prototype to avoid an error.
13217 Use char because int might match the return type of a GCC
13218 builtin and then its argument prototype would still apply. */
13219#ifdef __cplusplus
13220extern "C"
13221#endif
13222char fuse_main ();
13223int
13224main ()
13225{
13226return fuse_main ();
13227 ;
13228 return 0;
13229}
13230_ACEOF
13231if ac_fn_c_try_link "$LINENO"; then :
13232 ac_cv_lib_osxfuse_fuse_main=yes
13233else
13234 ac_cv_lib_osxfuse_fuse_main=no
13235fi
13236rm -f core conftest.err conftest.$ac_objext \
13237 conftest$ac_exeext conftest.$ac_ext
13238LIBS=$ac_check_lib_save_LIBS
13239fi
13240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13241$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13242if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13243 FUSE_LIB=-losxfuse
13244else
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13246$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13247if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13248 $as_echo_n "(cached) " >&6
13249else
13250 ac_check_lib_save_LIBS=$LIBS
13251LIBS="-lfuse $LIBS"
13252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253/* end confdefs.h. */
13254
13255/* Override any GCC internal prototype to avoid an error.
13256 Use char because int might match the return type of a GCC
13257 builtin and then its argument prototype would still apply. */
13258#ifdef __cplusplus
13259extern "C"
13260#endif
13261char fuse_main ();
13262int
13263main ()
13264{
13265return fuse_main ();
13266 ;
13267 return 0;
13268}
13269_ACEOF
13270if ac_fn_c_try_link "$LINENO"; then :
13271 ac_cv_lib_fuse_fuse_main=yes
13272else
13273 ac_cv_lib_fuse_fuse_main=no
13274fi
13275rm -f core conftest.err conftest.$ac_objext \
13276 conftest$ac_exeext conftest.$ac_ext
13277LIBS=$ac_check_lib_save_LIBS
13278fi
13279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13280$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13281if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13282 FUSE_LIB=-lfuse
13283else
13284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13286as_fn_error $? "Cannot find fuse library.
13287See \`config.log' for more details" "$LINENO" 5; }
13288fi
13289
13290fi
13291
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13293$as_echo "Enabling fuse2fs" >&6; }
13294fi
13295
13296else
13297 for ac_header in pthread.h fuse.h
13298do :
13299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13300ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13301#define FUSE_USE_VERSION 29
13302#ifdef __linux__
13303# include <linux/fs.h>
13304# include <linux/falloc.h>
13305# include <linux/xattr.h>
13306#endif
13307"
13308if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13309 cat >>confdefs.h <<_ACEOF
13310#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13311_ACEOF
13312
13313else
13314 FUSE_CMT="#"
13315fi
13316
13317done
13318
13319if test -z "$FUSE_CMT"
13320then
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13322$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13323if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13324 $as_echo_n "(cached) " >&6
13325else
13326 ac_check_lib_save_LIBS=$LIBS
13327LIBS="-losxfuse $LIBS"
13328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329/* end confdefs.h. */
13330
13331/* Override any GCC internal prototype to avoid an error.
13332 Use char because int might match the return type of a GCC
13333 builtin and then its argument prototype would still apply. */
13334#ifdef __cplusplus
13335extern "C"
13336#endif
13337char fuse_main ();
13338int
13339main ()
13340{
13341return fuse_main ();
13342 ;
13343 return 0;
13344}
13345_ACEOF
13346if ac_fn_c_try_link "$LINENO"; then :
13347 ac_cv_lib_osxfuse_fuse_main=yes
13348else
13349 ac_cv_lib_osxfuse_fuse_main=no
13350fi
13351rm -f core conftest.err conftest.$ac_objext \
13352 conftest$ac_exeext conftest.$ac_ext
13353LIBS=$ac_check_lib_save_LIBS
13354fi
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13356$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13357if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13358 FUSE_LIB=-losxfuse
13359else
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13361$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13362if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13363 $as_echo_n "(cached) " >&6
13364else
13365 ac_check_lib_save_LIBS=$LIBS
13366LIBS="-lfuse $LIBS"
13367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368/* end confdefs.h. */
13369
13370/* Override any GCC internal prototype to avoid an error.
13371 Use char because int might match the return type of a GCC
13372 builtin and then its argument prototype would still apply. */
13373#ifdef __cplusplus
13374extern "C"
13375#endif
13376char fuse_main ();
13377int
13378main ()
13379{
13380return fuse_main ();
13381 ;
13382 return 0;
13383}
13384_ACEOF
13385if ac_fn_c_try_link "$LINENO"; then :
13386 ac_cv_lib_fuse_fuse_main=yes
13387else
13388 ac_cv_lib_fuse_fuse_main=no
13389fi
13390rm -f core conftest.err conftest.$ac_objext \
13391 conftest$ac_exeext conftest.$ac_ext
13392LIBS=$ac_check_lib_save_LIBS
13393fi
13394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13395$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13396if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13397 FUSE_LIB=-lfuse
13398else
13399 FUSE_CMT="#"
13400fi
13401
13402fi
13403
13404fi
13405if test -z "$FUSE_CMT"
13406then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13408$as_echo "Enabling fuse2fs by default." >&6; }
13409fi
13410
13411fi
13412
13413
13414
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013416$as_echo_n "checking for optreset... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013417if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013418 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013419else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013421/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013422#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013423
13424_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013426 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013427 ac_cv_have_optreset=yes
13428else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013429 ac_cv_have_optreset=no
13430fi
13431rm -f conftest*
13432
13433fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013435$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013436if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013437
13438$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013439
13440fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013441
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013442SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013443ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013444if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013445
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013446else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013448$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013449if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013450 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013451else
13452 ac_check_lib_save_LIBS=$LIBS
13453LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013455/* end confdefs.h. */
13456
13457/* Override any GCC internal prototype to avoid an error.
13458 Use char because int might match the return type of a GCC
13459 builtin and then its argument prototype would still apply. */
13460#ifdef __cplusplus
13461extern "C"
13462#endif
13463char sem_init ();
13464int
13465main ()
13466{
13467return sem_init ();
13468 ;
13469 return 0;
13470}
13471_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013472if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013473 ac_cv_lib_pthread_sem_init=yes
13474else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013475 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013476fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013477rm -f core conftest.err conftest.$ac_objext \
13478 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013479LIBS=$ac_check_lib_save_LIBS
13480fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013482$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013483if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013484 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013485
13486 SEM_INIT_LIB=-lpthread
13487else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013489$as_echo_n "checking for sem_init in -lrt... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013490if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013491 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013492else
13493 ac_check_lib_save_LIBS=$LIBS
13494LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013496/* end confdefs.h. */
13497
13498/* Override any GCC internal prototype to avoid an error.
13499 Use char because int might match the return type of a GCC
13500 builtin and then its argument prototype would still apply. */
13501#ifdef __cplusplus
13502extern "C"
13503#endif
13504char sem_init ();
13505int
13506main ()
13507{
13508return sem_init ();
13509 ;
13510 return 0;
13511}
13512_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013513if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013514 ac_cv_lib_rt_sem_init=yes
13515else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013516 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013517fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013518rm -f core conftest.err conftest.$ac_objext \
13519 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013520LIBS=$ac_check_lib_save_LIBS
13521fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013523$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013524if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013525 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013526
13527 SEM_INIT_LIB=-lrt
13528else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013530$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013531if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013532 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013533else
13534 ac_check_lib_save_LIBS=$LIBS
13535LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013537/* end confdefs.h. */
13538
13539/* Override any GCC internal prototype to avoid an error.
13540 Use char because int might match the return type of a GCC
13541 builtin and then its argument prototype would still apply. */
13542#ifdef __cplusplus
13543extern "C"
13544#endif
13545char sem_init ();
13546int
13547main ()
13548{
13549return sem_init ();
13550 ;
13551 return 0;
13552}
13553_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013554if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013555 ac_cv_lib_posix4_sem_init=yes
13556else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013557 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013558fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013559rm -f core conftest.err conftest.$ac_objext \
13560 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013561LIBS=$ac_check_lib_save_LIBS
13562fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013564$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013565if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013566 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013567
13568 SEM_INIT_LIB=-lposix4
13569fi
13570
13571fi
13572
13573fi
13574
13575fi
13576
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013578$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040013579if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013580 UNI_DIFF_OPTS=-u
13581else
13582 UNI_DIFF_OPTS=-c
13583fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013585$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013586
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013587case "$host_os" in
13588linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013589
13590$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013591
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013592 ;;
13593esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013594LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013595CYGWIN_CMT="#"
13596UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013597case "$host_os" in
13598linux*)
13599 LINUX_CMT=
13600 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040013601cygwin)
13602 CYGWIN_CMT=
13603 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013604 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013605esac
13606
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013607
13608
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013609case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013610linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013611 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13612 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013613 { $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 +010013614$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013615 fi
13616 ;;
13617esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013618case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013619linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013620 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013621 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013622 { $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 +010013623$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013624 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013626$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013627 mandir=/usr/share/man
13628 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013629 fi
13630;;
13631esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013632if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000013633 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013634 root_prefix="$ac_default_prefix"
13635 else
13636 root_prefix="$prefix"
13637 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040013638 root_bindir=$bindir
13639 root_sbindir=$sbindir
13640 root_libdir=$libdir
13641 root_sysconfdir=$sysconfdir
13642else
13643 root_bindir='${root_prefix}/bin'
13644 root_sbindir='${root_prefix}/sbin'
13645 root_libdir='${root_prefix}/lib'
13646 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013647fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013648if test "$bindir" != '${exec_prefix}/bin'; then
13649 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013651$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013652fi
13653if test "$sbindir" != '${exec_prefix}/sbin'; then
13654 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013656$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013657fi
13658if test "$libdir" != '${exec_prefix}/lib'; then
13659 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013661$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013662fi
13663if test "$sysconfdir" != '${prefix}/etc'; then
13664 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013666$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013667fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013668
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013669
13670
13671
13672
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013673
13674# Check whether --with-multiarch was given.
13675if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050013676 withval=$with_multiarch; if test "$withval" = "lib64"; then
13677 libdir=/usr/lib64
13678 root_libdir=/lib64
13679else
13680 libdir=$libdir/$withval
13681 root_libdir=$root_libdir/$withval
13682fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013683
13684fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050013685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13686$as_echo_n "checking whether we can link with -static... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013687if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013688 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000013689else
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013690 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013692/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000013693#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013694int
13695main ()
13696{
Theodore Ts'oae851481997-04-29 18:13:24 +000013697fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013698 ;
13699 return 0;
13700}
13701_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013702if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000013703 ac_cv_e2fsprogs_use_static=yes
13704else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013705 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000013706fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013707rm -f core conftest.err conftest.$ac_objext \
13708 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000013709LDFLAGS=$SAVE_LDFLAGS
13710fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013711
Theodore Ts'odefde781999-01-04 07:39:19 +000013712case "$host_os" in
13713solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013714 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000013715;;
13716esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013718$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'oae851481997-04-29 18:13:24 +000013719if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013720 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
Theodore Ts'oae851481997-04-29 18:13:24 +000013721fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013722
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013723case "$host_os" in
13724darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013726$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013727
13728$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013729
13730 ;;
13731esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013732SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13733ET_DIR=`cd ${srcdir}/lib/et; pwd`
13734
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013735
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013736if test "$cross_compiling" = yes ; then
13737 DO_TEST_SUITE=
13738else
13739 DO_TEST_SUITE=check
13740fi
13741
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013742INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13743if test -n "$CPPFLAGS" ; then
13744 INCLUDES="$INCLUDES $CPPFLAGS"
13745fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013746if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013747 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013748fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050013749if test -n "$WITH_DIET_LIBC" ; then
13750 INCLUDES="$INCLUDES -D_REENTRANT"
13751fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013752
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -040013753
13754 MKINSTALLDIRS=
13755 if test -n "$ac_aux_dir"; then
13756 case "$ac_aux_dir" in
13757 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13758 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13759 esac
13760 fi
13761 if test -z "$MKINSTALLDIRS"; then
13762 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13763 fi
13764
13765
Theodore Ts'odd947da2005-11-09 18:37:07 -040013766if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050013767 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013768 BUILD_LDFLAGS="$LDFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013769fi
13770
13771
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013772CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13773CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13774LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13775
13776
13777
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013778test -d lib || mkdir lib
13779test -d include || mkdir include
13780test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000013781test -d include/asm || mkdir include/asm
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013782if test -z "$UUID_CMT" ; then
13783 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13784 lib/uuid/uuid_types.h"
13785fi
13786if test -z "$BLKID_CMT" ; then
13787 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13788 lib/blkid/blkid_types.h"
13789fi
Theodore Ts'obff0cc92003-03-23 01:37:53 -050013790for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040013791 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013792 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13793 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'of34af412015-07-11 23:05:57 -040013794 $uuid_out_list $blkid_out_list lib/support/Makefile \
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013795 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050013796 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013797 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020013798 resize/Makefile doc/Makefile intl/Makefile \
13799 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013800 if test -d `dirname ${srcdir}/$i` ; then
13801 outlist="$outlist $i"
13802 fi
13803done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013804ac_config_files="$ac_config_files $outlist"
13805
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013806cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013807# This file is a shell script that caches the results of configure
13808# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013809# scripts and configure runs, see configure's option --config-cache.
13810# It is not useful on other systems. If it contains results you don't
13811# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013812#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013813# config.status only pays attention to the cache file if you give it
13814# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013815#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013816# `ac_cv_env_foo' variables (set or unset) will be overridden when
13817# loading this file, other *unset* `ac_cv_foo' will be assigned the
13818# following values.
13819
13820_ACEOF
13821
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013822# The following way of writing the cache mishandles newlines in values,
13823# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013824# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013825# Ultrix sh set writes to stderr and can't be redirected directly,
13826# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013827(
13828 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13829 eval ac_val=\$$ac_var
13830 case $ac_val in #(
13831 *${as_nl}*)
13832 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013833 *_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 +010013834$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013835 esac
13836 case $ac_var in #(
13837 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013839 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013840 esac ;;
13841 esac
13842 done
13843
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013844 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013845 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13846 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013847 # `set' does not quote correctly, so add quotes: double-quote
13848 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013849 sed -n \
13850 "s/'/'\\\\''/g;
13851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013852 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013853 *)
13854 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013856 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013857 esac |
13858 sort
13859) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013860 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040013861 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013862 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040013863 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13865 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040013866 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13867 :end' >>confcache
13868if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13869 if test -w "$cache_file"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013870 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013871 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013872$as_echo "$as_me: updating cache $cache_file" >&6;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013873 if test ! -f "$cache_file" || test -h "$cache_file"; then
13874 cat confcache >"$cache_file"
13875 else
13876 case $cache_file in #(
13877 */* | ?:*)
13878 mv -f confcache "$cache_file"$$ &&
13879 mv -f "$cache_file"$$ "$cache_file" ;; #(
13880 *)
13881 mv -f confcache "$cache_file" ;;
13882 esac
13883 fi
13884 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013885 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013886 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013887$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013888 fi
13889fi
13890rm -f confcache
13891
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013892test "x$prefix" = xNONE && prefix=$ac_default_prefix
13893# Let make expand exec_prefix.
13894test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13895
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013896DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013897
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013898ac_libobjs=
13899ac_ltlibobjs=
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013900U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013901for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13902 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013903 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013904 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040013905 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13906 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013907 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13908 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013909done
13910LIBOBJS=$ac_libobjs
13911
13912LTLIBOBJS=$ac_ltlibobjs
13913
13914
13915
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013916
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013917: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013918ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013919ac_clean_files_save=$ac_clean_files
13920ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013921{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013922$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013923as_write_fail=0
13924cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013925#! $SHELL
13926# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013927# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013928# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013929# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013930
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013931debug=false
13932ac_cs_recheck=false
13933ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013934
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013935SHELL=\${CONFIG_SHELL-$SHELL}
13936export SHELL
13937_ASEOF
13938cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13939## -------------------- ##
13940## M4sh Initialization. ##
13941## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013942
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013943# Be more Bourne compatible
13944DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013945if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013946 emulate sh
13947 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013948 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013949 # is contrary to our usage. Disable this feature.
13950 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013951 setopt NO_GLOB_SUBST
13952else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013953 case `(set -o) 2>/dev/null` in #(
13954 *posix*) :
13955 set -o posix ;; #(
13956 *) :
13957 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013958esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013959fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013960
13961
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013962as_nl='
13963'
13964export as_nl
13965# Printing a long string crashes Solaris 7 /usr/bin/printf.
13966as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13967as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13968as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013969# Prefer a ksh shell builtin over an external printf program on Solaris,
13970# but without wasting forks for bash or zsh.
13971if test -z "$BASH_VERSION$ZSH_VERSION" \
13972 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13973 as_echo='print -r --'
13974 as_echo_n='print -rn --'
13975elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013976 as_echo='printf %s\n'
13977 as_echo_n='printf %s'
13978else
13979 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13980 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13981 as_echo_n='/usr/ucb/echo -n'
13982 else
13983 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13984 as_echo_n_body='eval
13985 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013986 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013987 *"$as_nl"*)
13988 expr "X$arg" : "X\\(.*\\)$as_nl";
13989 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13990 esac;
13991 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13992 '
13993 export as_echo_n_body
13994 as_echo_n='sh -c $as_echo_n_body as_echo'
13995 fi
13996 export as_echo_body
13997 as_echo='sh -c $as_echo_body as_echo'
13998fi
13999
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014000# The user is always right.
14001if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014002 PATH_SEPARATOR=:
14003 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14004 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14005 PATH_SEPARATOR=';'
14006 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014007fi
14008
Theodore Ts'oe1052142006-10-21 21:46:47 -040014009
14010# IFS
14011# We need space, tab and new line, in precisely that order. Quoting is
14012# there to prevent editors from complaining about space-tab.
14013# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14014# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014015IFS=" "" $as_nl"
14016
14017# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014018as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014019case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014020 *[\\/]* ) as_myself=$0 ;;
14021 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014022for as_dir in $PATH
14023do
14024 IFS=$as_save_IFS
14025 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014026 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14027 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040014028IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014029
Theodore Ts'oe1052142006-10-21 21:46:47 -040014030 ;;
14031esac
14032# We did not find ourselves, most probably we were run as `sh COMMAND'
14033# in which case we are not to be found in the path.
14034if test "x$as_myself" = x; then
14035 as_myself=$0
14036fi
14037if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014038 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014039 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014040fi
14041
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014042# Unset variables that we do not need and which cause bugs (e.g. in
14043# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14044# suppresses any "Segmentation fault" message there. '((' could
14045# trigger a bug in pdksh 5.2.14.
14046for as_var in BASH_ENV ENV MAIL MAILPATH
14047do eval test x\${$as_var+set} = xset \
14048 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040014049done
14050PS1='$ '
14051PS2='> '
14052PS4='+ '
14053
14054# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014055LC_ALL=C
14056export LC_ALL
14057LANGUAGE=C
14058export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040014059
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014060# CDPATH.
14061(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14062
14063
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014064# as_fn_error STATUS ERROR [LINENO LOG_FD]
14065# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014066# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14067# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014068# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014069as_fn_error ()
14070{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014071 as_status=$1; test $as_status -eq 0 && as_status=1
14072 if test "$4"; then
14073 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14074 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014075 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014076 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014077 as_fn_exit $as_status
14078} # as_fn_error
14079
14080
14081# as_fn_set_status STATUS
14082# -----------------------
14083# Set $? to STATUS, without forking.
14084as_fn_set_status ()
14085{
14086 return $1
14087} # as_fn_set_status
14088
14089# as_fn_exit STATUS
14090# -----------------
14091# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14092as_fn_exit ()
14093{
14094 set +e
14095 as_fn_set_status $1
14096 exit $1
14097} # as_fn_exit
14098
14099# as_fn_unset VAR
14100# ---------------
14101# Portably unset VAR.
14102as_fn_unset ()
14103{
14104 { eval $1=; unset $1;}
14105}
14106as_unset=as_fn_unset
14107# as_fn_append VAR VALUE
14108# ----------------------
14109# Append the text in VALUE to the end of the definition contained in VAR. Take
14110# advantage of any shell optimizations that allow amortized linear growth over
14111# repeated appends, instead of the typical quadratic growth present in naive
14112# implementations.
14113if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14114 eval 'as_fn_append ()
14115 {
14116 eval $1+=\$2
14117 }'
14118else
14119 as_fn_append ()
14120 {
14121 eval $1=\$$1\$2
14122 }
14123fi # as_fn_append
14124
14125# as_fn_arith ARG...
14126# ------------------
14127# Perform arithmetic evaluation on the ARGs, and store the result in the
14128# global $as_val. Take advantage of shells that can avoid forks. The arguments
14129# must be portable across $(()) and expr.
14130if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14131 eval 'as_fn_arith ()
14132 {
14133 as_val=$(( $* ))
14134 }'
14135else
14136 as_fn_arith ()
14137 {
14138 as_val=`expr "$@" || test $? -eq 1`
14139 }
14140fi # as_fn_arith
14141
14142
Theodore Ts'oe1052142006-10-21 21:46:47 -040014143if expr a : '\(a\)' >/dev/null 2>&1 &&
14144 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14145 as_expr=expr
14146else
14147 as_expr=false
14148fi
14149
14150if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14151 as_basename=basename
14152else
14153 as_basename=false
14154fi
14155
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014156if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14157 as_dirname=dirname
14158else
14159 as_dirname=false
14160fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014161
Theodore Ts'oe1052142006-10-21 21:46:47 -040014162as_me=`$as_basename -- "$0" ||
14163$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14164 X"$0" : 'X\(//\)$' \| \
14165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014166$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014167 sed '/^.*\/\([^/][^/]*\)\/*$/{
14168 s//\1/
14169 q
14170 }
14171 /^X\/\(\/\/\)$/{
14172 s//\1/
14173 q
14174 }
14175 /^X\/\(\/\).*/{
14176 s//\1/
14177 q
14178 }
14179 s/.*/./; q'`
14180
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014181# Avoid depending upon Character Ranges.
14182as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14183as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14184as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14185as_cr_digits='0123456789'
14186as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040014187
14188ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014189case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014190-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014191 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014192 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014193 xy) ECHO_C='\c';;
14194 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14195 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014196 esac;;
14197*)
14198 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014199esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014200
14201rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040014202if test -d conf$$.dir; then
14203 rm -f conf$$.dir/conf$$.file
14204else
14205 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014206 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040014207fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014208if (echo >conf$$.file) 2>/dev/null; then
14209 if ln -s conf$$.file conf$$ 2>/dev/null; then
14210 as_ln_s='ln -s'
14211 # ... but there are two gotchas:
14212 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14213 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014214 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014215 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014216 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014217 elif ln conf$$.file conf$$ 2>/dev/null; then
14218 as_ln_s=ln
14219 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014220 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014221 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014222else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014223 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014224fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014225rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14226rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014227
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014228
14229# as_fn_mkdir_p
14230# -------------
14231# Create "$as_dir" as a directory, including parents if necessary.
14232as_fn_mkdir_p ()
14233{
14234
14235 case $as_dir in #(
14236 -*) as_dir=./$as_dir;;
14237 esac
14238 test -d "$as_dir" || eval $as_mkdir_p || {
14239 as_dirs=
14240 while :; do
14241 case $as_dir in #(
14242 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14243 *) as_qdir=$as_dir;;
14244 esac
14245 as_dirs="'$as_qdir' $as_dirs"
14246 as_dir=`$as_dirname -- "$as_dir" ||
14247$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14248 X"$as_dir" : 'X\(//\)[^/]' \| \
14249 X"$as_dir" : 'X\(//\)$' \| \
14250 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14251$as_echo X"$as_dir" |
14252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14253 s//\1/
14254 q
14255 }
14256 /^X\(\/\/\)[^/].*/{
14257 s//\1/
14258 q
14259 }
14260 /^X\(\/\/\)$/{
14261 s//\1/
14262 q
14263 }
14264 /^X\(\/\).*/{
14265 s//\1/
14266 q
14267 }
14268 s/.*/./; q'`
14269 test -d "$as_dir" && break
14270 done
14271 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014272 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014273
14274
14275} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014276if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014277 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014278else
14279 test -d ./-p && rmdir ./-p
14280 as_mkdir_p=false
14281fi
14282
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014283
14284# as_fn_executable_p FILE
14285# -----------------------
14286# Test if FILE is an executable regular file.
14287as_fn_executable_p ()
14288{
14289 test -f "$1" && test -x "$1"
14290} # as_fn_executable_p
14291as_test_x='test -x'
14292as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014293
14294# Sed expression to map a string onto a valid CPP name.
14295as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14296
14297# Sed expression to map a string onto a valid variable name.
14298as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14299
14300
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014301exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014302## ----------------------------------- ##
14303## Main body of $CONFIG_STATUS script. ##
14304## ----------------------------------- ##
14305_ASEOF
14306test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014307
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14309# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014310# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040014311# values after options handling.
14312ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014313This file was extended by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014314generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014315
14316 CONFIG_FILES = $CONFIG_FILES
14317 CONFIG_HEADERS = $CONFIG_HEADERS
14318 CONFIG_LINKS = $CONFIG_LINKS
14319 CONFIG_COMMANDS = $CONFIG_COMMANDS
14320 $ $0 $@
14321
Theodore Ts'oe1052142006-10-21 21:46:47 -040014322on `(hostname || uname -n) 2>/dev/null | sed 1q`
14323"
14324
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014325_ACEOF
14326
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014327case $ac_config_files in *"
14328"*) set x $ac_config_files; shift; ac_config_files=$*;;
14329esac
14330
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014331case $ac_config_headers in *"
14332"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14333esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014334
14335
14336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014337# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014338config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014339config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014340config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014341
Theodore Ts'oe1052142006-10-21 21:46:47 -040014342_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014343
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014345ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014346\`$as_me' instantiates files and other configuration actions
14347from templates according to the current configuration. Unless the files
14348and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014349
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014350Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014351
14352 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014353 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014354 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014355 -q, --quiet, --silent
14356 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014357 -d, --debug don't remove temporary files
14358 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014359 --file=FILE[:TEMPLATE]
14360 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014361 --header=FILE[:TEMPLATE]
14362 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014363
14364Configuration files:
14365$config_files
14366
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014367Configuration headers:
14368$config_headers
14369
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014370Configuration commands:
14371$config_commands
14372
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014373Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014374
Theodore Ts'oe1052142006-10-21 21:46:47 -040014375_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014377ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014378ac_cs_version="\\
14379config.status
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014380configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014381 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014382
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014383Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014384This config.status script is free software; the Free Software Foundation
14385gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040014386
14387ac_pwd='$ac_pwd'
14388srcdir='$srcdir'
14389INSTALL='$INSTALL'
Theodore Ts'o93613952014-07-03 23:44:13 -040014390MKDIR_P='$MKDIR_P'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014391AWK='$AWK'
14392test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014393_ACEOF
14394
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14396# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014397ac_need_defaults=:
14398while test $# != 0
14399do
14400 case $1 in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014401 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014402 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14403 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014404 ac_shift=:
14405 ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014406 --*=)
14407 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14408 ac_optarg=
14409 ac_shift=:
14410 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014411 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014412 ac_option=$1
14413 ac_optarg=$2
14414 ac_shift=shift
14415 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014416 esac
14417
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014418 case $ac_option in
14419 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14421 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014422 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014423 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014424 --config | --confi | --conf | --con | --co | --c )
14425 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014426 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014427 debug=: ;;
14428 --file | --fil | --fi | --f )
14429 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014430 case $ac_optarg in
14431 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014432 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014433 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014434 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014435 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014436 --header | --heade | --head | --hea )
14437 $ac_shift
14438 case $ac_optarg in
14439 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14440 esac
14441 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14442 ac_need_defaults=false;;
14443 --he | --h)
14444 # Conflict between --help and --header
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014445 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014446Try \`$0 --help' for more information.";;
14447 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014448 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014449 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14450 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14451 ac_cs_silent=: ;;
14452
14453 # This is an error.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014454 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014455Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014457 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014458 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014459
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014460 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014461 shift
14462done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014463
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014464ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014465
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014466if $ac_cs_silent; then
14467 exec 6>/dev/null
14468 ac_configure_extra_args="$ac_configure_extra_args --silent"
14469fi
14470
14471_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014473if \$ac_cs_recheck; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014474 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014475 shift
14476 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14477 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014478 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014479 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014480fi
14481
14482_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014484exec 5>>config.log
14485{
14486 echo
14487 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14488## Running $as_me. ##
14489_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014490 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014491} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014492
Theodore Ts'oe1052142006-10-21 21:46:47 -040014493_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014495#
Theodore Ts'oe1052142006-10-21 21:46:47 -040014496# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014497#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014498# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014499 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'o93613952014-07-03 23:44:13 -040014500 # from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014501 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014502 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14503 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014504
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014505
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014506_ACEOF
14507
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014509
14510# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014511for ac_config_target in $ac_config_targets
14512do
Theodore Ts'oe1052142006-10-21 21:46:47 -040014513 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014514 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'o93613952014-07-03 23:44:13 -040014515 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014516 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14517
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014518 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014519 esac
14520done
14521
Theodore Ts'oe1052142006-10-21 21:46:47 -040014522
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014523# If the user did not use the arguments to specify the items to instantiate,
14524# then the envvar interface is used. Set only those that are not.
14525# We use the long form for the default assignment because of an extremely
14526# bizarre bug on SunOS 4.1.3.
14527if $ac_need_defaults; then
14528 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014529 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014530 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14531fi
14532
14533# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040014534# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014535# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014536# Hook for its removal unless debugging.
14537# Note that there is a small window in which the directory will not be cleaned:
14538# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014539$debug ||
14540{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014541 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040014542 trap 'exit_status=$?
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014543 : "${ac_tmp:=$tmp}"
14544 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040014545' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014546 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014547}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014548# Create a (secure) tmp directory for tmp files.
14549
14550{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014551 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014552 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014553} ||
14554{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014555 tmp=./conf$$-$RANDOM
14556 (umask 077 && mkdir "$tmp")
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014557} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14558ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014559
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014560# Set up the scripts for CONFIG_FILES section.
14561# No need to generate them if there are no CONFIG_FILES.
14562# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014563if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014564
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014565if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14566 ac_cs_awk_getline=:
14567 ac_cs_awk_pipe_init=
14568 ac_cs_awk_read_file='
14569 while ((getline aline < (F[key])) > 0)
14570 print(aline)
14571 close(F[key])'
14572 ac_cs_awk_pipe_fini=
14573else
14574 ac_cs_awk_getline=false
14575 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14576 ac_cs_awk_read_file='
14577 print "|#_!!_#|"
14578 print "cat " F[key] " &&"
14579 '$ac_cs_awk_pipe_init
14580 # The final `:' finishes the AND list.
14581 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14582fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014583ac_cr=`echo X | tr X '\015'`
14584# On cygwin, bash can eat \r inside `` if the user requested igncr.
14585# But we know of no other shell where ac_cr would be empty at this
14586# point, so we can use a bashism as a fallback.
14587if test "x$ac_cr" = x; then
14588 eval ac_cr=\$\'\\r\'
14589fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014590ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14591if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014592 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014593else
14594 ac_cs_awk_cr=$ac_cr
14595fi
14596
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014597echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014598_ACEOF
14599
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014600# Create commands to substitute file output variables.
14601{
14602 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014603 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014604 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14605 echo "_ACAWK" &&
14606 echo "_ACEOF"
14607} >conf$$files.sh &&
14608. ./conf$$files.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014609 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014610rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014611
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014612{
14613 echo "cat >conf$$subs.awk <<_ACEOF" &&
14614 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14615 echo "_ACEOF"
14616} >conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014617 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14618ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014619ac_delim='%!_!# '
14620for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014621 . ./conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014622 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014623
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014624 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14625 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014626 break
14627 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014628 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014629 else
14630 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014631 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014632done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014633rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014634
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014635cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014636cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014637_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014638sed -n '
14639h
14640s/^/S["/; s/!.*/"]=/
14641p
14642g
14643s/^[^!]*!//
14644:repl
14645t repl
14646s/'"$ac_delim"'$//
14647t delim
14648:nl
14649h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014650s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014651t more1
14652s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14653p
14654n
14655b repl
14656:more1
14657s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14658p
14659g
14660s/.\{148\}//
14661t nl
14662:delim
14663h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014664s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014665t more2
14666s/["\\]/\\&/g; s/^/"/; s/$/"/
14667p
14668b
14669:more2
14670s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14671p
14672g
14673s/.\{148\}//
14674t delim
14675' <conf$$subs.awk | sed '
14676/^[^""]/{
14677 N
14678 s/\n//
14679}
14680' >>$CONFIG_STATUS || ac_write_fail=1
14681rm -f conf$$subs.awk
14682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14683_ACAWK
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014684cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014685 for (key in S) S_is_set[key] = 1
14686 FS = ""
14687 \$ac_cs_awk_pipe_init
14688}
14689{
14690 line = $ 0
14691 nfields = split(line, field, "@")
14692 substed = 0
14693 len = length(field[1])
14694 for (i = 2; i < nfields; i++) {
14695 key = field[i]
14696 keylen = length(key)
14697 if (S_is_set[key]) {
14698 value = S[key]
14699 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14700 len += length(value) + length(field[++i])
14701 substed = 1
14702 } else
14703 len += 1 + keylen
14704 }
14705 if (nfields == 3 && !substed) {
14706 key = field[2]
14707 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14708 \$ac_cs_awk_read_file
14709 next
14710 }
14711 }
14712 print line
14713}
14714\$ac_cs_awk_pipe_fini
14715_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040014716_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14718if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14719 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14720else
14721 cat
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014722fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14723 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014724_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014725
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014726# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14727# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040014728# trailing colons and then remove the whole line if VPATH becomes empty
14729# (actually we leave an empty line to preserve line numbers).
14730if test "x$srcdir" = x.; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014731 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14732h
14733s///
14734s/^/:/
14735s/[ ]*$/:/
14736s/:\$(srcdir):/:/g
14737s/:\${srcdir}:/:/g
14738s/:@srcdir@:/:/g
14739s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014740s/:*$//
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014741x
14742s/\(=[ ]*\).*/\1/
14743G
14744s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014745s/^[^=]*=[ ]*$//
14746}'
14747fi
14748
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014750fi # test -n "$CONFIG_FILES"
14751
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014752# Set up the scripts for CONFIG_HEADERS section.
14753# No need to generate them if there are no CONFIG_HEADERS.
14754# This happens for instance with `./config.status Makefile'.
14755if test -n "$CONFIG_HEADERS"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014756cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014757BEGIN {
14758_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014759
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014760# Transform confdefs.h into an awk script `defines.awk', embedded as
14761# here-document in config.status, that substitutes the proper values into
14762# config.h.in to produce config.h.
14763
14764# Create a delimiter string that does not exist in confdefs.h, to ease
14765# handling of long lines.
14766ac_delim='%!_!# '
14767for ac_last_try in false false :; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014768 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14769 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014770 break
14771 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014772 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014773 else
14774 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14775 fi
14776done
14777
14778# For the awk script, D is an array of macro values keyed by name,
14779# likewise P contains macro parameters if any. Preserve backslash
14780# newline sequences.
14781
14782ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14783sed -n '
14784s/.\{148\}/&'"$ac_delim"'/g
14785t rset
14786:rset
14787s/^[ ]*#[ ]*define[ ][ ]*/ /
14788t def
14789d
14790:def
14791s/\\$//
14792t bsnl
14793s/["\\]/\\&/g
14794s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14795D["\1"]=" \3"/p
14796s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14797d
14798:bsnl
14799s/["\\]/\\&/g
14800s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14801D["\1"]=" \3\\\\\\n"\\/p
14802t cont
14803s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14804t cont
14805d
14806:cont
14807n
14808s/.\{148\}/&'"$ac_delim"'/g
14809t clear
14810:clear
14811s/\\$//
14812t bsnlc
14813s/["\\]/\\&/g; s/^/"/; s/$/"/p
14814d
14815:bsnlc
14816s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14817b cont
14818' <confdefs.h | sed '
14819s/'"$ac_delim"'/"\\\
14820"/g' >>$CONFIG_STATUS || ac_write_fail=1
14821
14822cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14823 for (key in D) D_is_set[key] = 1
14824 FS = ""
14825}
14826/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14827 line = \$ 0
14828 split(line, arg, " ")
14829 if (arg[1] == "#") {
14830 defundef = arg[2]
14831 mac1 = arg[3]
14832 } else {
14833 defundef = substr(arg[1], 2)
14834 mac1 = arg[2]
14835 }
14836 split(mac1, mac2, "(") #)
14837 macro = mac2[1]
14838 prefix = substr(line, 1, index(line, defundef) - 1)
14839 if (D_is_set[macro]) {
14840 # Preserve the white space surrounding the "#".
14841 print prefix "define", macro P[macro] D[macro]
14842 next
14843 } else {
14844 # Replace #undef with comments. This is necessary, for example,
14845 # in the case of _POSIX_SOURCE, which is predefined and required
14846 # on some systems where configure will not decide to define it.
14847 if (defundef == "undef") {
14848 print "/*", prefix defundef, macro, "*/"
14849 next
14850 }
14851 }
14852}
14853{ print }
14854_ACAWK
14855_ACEOF
14856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014857 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014858fi # test -n "$CONFIG_HEADERS"
14859
14860
14861eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014862shift
14863for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040014864do
14865 case $ac_tag in
14866 :[FHLC]) ac_mode=$ac_tag; continue;;
14867 esac
14868 case $ac_mode$ac_tag in
14869 :[FHL]*:*);;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014870 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014871 :[FH]-) ac_tag=-:-;;
14872 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14873 esac
14874 ac_save_IFS=$IFS
14875 IFS=:
14876 set x $ac_tag
14877 IFS=$ac_save_IFS
14878 shift
14879 ac_file=$1
14880 shift
14881
14882 case $ac_mode in
14883 :L) ac_source=$1;;
14884 :[FH])
14885 ac_file_inputs=
14886 for ac_f
14887 do
14888 case $ac_f in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014889 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014890 *) # Look for the file first in the build tree, then in the source tree
14891 # (if the path is not absolute). The absolute path cannot be DOS-style,
14892 # because $ac_f cannot contain `:'.
14893 test -f "$ac_f" ||
14894 case $ac_f in
14895 [\\/$]*) false;;
14896 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14897 esac ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014898 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014899 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014900 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014901 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014902 done
14903
14904 # Let's still pretend it is `configure' which instantiates (i.e., don't
14905 # use $as_me), people would be surprised to read:
14906 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014907 configure_input='Generated from '`
14908 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14909 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014910 if test x"$ac_file" != x-; then
14911 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014912 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014913$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014914 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014915 # Neutralize special characters interpreted by sed in replacement strings.
14916 case $configure_input in #(
14917 *\&* | *\|* | *\\* )
14918 ac_sed_conf_input=`$as_echo "$configure_input" |
14919 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14920 *) ac_sed_conf_input=$configure_input;;
14921 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014922
14923 case $ac_tag in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014924 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014926 esac
14927 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014928 esac
14929
Theodore Ts'oe1052142006-10-21 21:46:47 -040014930 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014931$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14932 X"$ac_file" : 'X\(//\)[^/]' \| \
14933 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040014934 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014935$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14937 s//\1/
14938 q
14939 }
14940 /^X\(\/\/\)[^/].*/{
14941 s//\1/
14942 q
14943 }
14944 /^X\(\/\/\)$/{
14945 s//\1/
14946 q
14947 }
14948 /^X\(\/\).*/{
14949 s//\1/
14950 q
14951 }
14952 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014953 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014954 ac_builddir=.
14955
Theodore Ts'oe1052142006-10-21 21:46:47 -040014956case "$ac_dir" in
14957.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14958*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014959 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014960 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014961 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014962 case $ac_top_builddir_sub in
14963 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14964 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14965 esac ;;
14966esac
14967ac_abs_top_builddir=$ac_pwd
14968ac_abs_builddir=$ac_pwd$ac_dir_suffix
14969# for backward compatibility:
14970ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014971
14972case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014973 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014974 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014975 ac_top_srcdir=$ac_top_builddir_sub
14976 ac_abs_top_srcdir=$ac_pwd ;;
14977 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014978 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014979 ac_top_srcdir=$srcdir
14980 ac_abs_top_srcdir=$srcdir ;;
14981 *) # Relative name.
14982 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14983 ac_top_srcdir=$ac_top_build_prefix$srcdir
14984 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014985esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014986ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014987
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014988
Theodore Ts'oe1052142006-10-21 21:46:47 -040014989 case $ac_mode in
14990 :F)
14991 #
14992 # CONFIG_FILE
14993 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014994
14995 case $INSTALL in
14996 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014997 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014998 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040014999 ac_MKDIR_P=$MKDIR_P
15000 case $MKDIR_P in
15001 [\\/$]* | ?:[\\/]* ) ;;
15002 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15003 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015004_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015005
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040015007# If the template does not know about datarootdir, expand it.
15008# FIXME: This hack should be removed a few years after 2.60.
15009ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015010ac_sed_dataroot='
15011/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040015012 p
15013 q
15014}
15015/@datadir@/p
15016/@docdir@/p
15017/@infodir@/p
15018/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015019/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015020case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040015021*datarootdir*) ac_datarootdir_seen=yes;;
15022*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015023 { $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 +010015024$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015025_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040015027 ac_datarootdir_hack='
15028 s&@datadir@&$datadir&g
15029 s&@docdir@&$docdir&g
15030 s&@infodir@&$infodir&g
15031 s&@localedir@&$localedir&g
15032 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015033 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015034esac
15035_ACEOF
15036
15037# Neutralize VPATH when `$srcdir' = `.'.
15038# Shell code in configure.ac might set extrasub.
15039# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15041ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015042$extrasub
15043_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015045:t
15046/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015047s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015048s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015049s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015050s&@srcdir@&$ac_srcdir&;t t
15051s&@abs_srcdir@&$ac_abs_srcdir&;t t
15052s&@top_srcdir@&$ac_top_srcdir&;t t
15053s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15054s&@builddir@&$ac_builddir&;t t
15055s&@abs_builddir@&$ac_abs_builddir&;t t
15056s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15057s&@INSTALL@&$ac_INSTALL&;t t
Theodore Ts'o93613952014-07-03 23:44:13 -040015058s&@MKDIR_P@&$ac_MKDIR_P&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015059$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015060"
15061eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15062if $ac_cs_awk_getline; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015063 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015064else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015065 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15066fi \
15067 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015068
Theodore Ts'oe1052142006-10-21 21:46:47 -040015069test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015070 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15071 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15072 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015074which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015075$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015076which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015077
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015078 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015079 case $ac_file in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015080 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15081 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015082 esac \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015083 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015084 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015085 :H)
15086 #
15087 # CONFIG_HEADER
15088 #
15089 if test x"$ac_file" != x-; then
15090 {
15091 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015092 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15093 } >"$ac_tmp/config.h" \
15094 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15095 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015096 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15097$as_echo "$as_me: $ac_file is unchanged" >&6;}
15098 else
15099 rm -f "$ac_file"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015100 mv "$ac_tmp/config.h" "$ac_file" \
15101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015102 fi
15103 else
15104 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015105 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15106 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015107 fi
15108 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015109
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015110 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015111$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015112 ;;
15113 esac
15114
15115
15116 case $ac_file$ac_mode in
Theodore Ts'o93613952014-07-03 23:44:13 -040015117 "po-directories":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015118 for ac_file in $CONFIG_FILES; do
15119 # Support "outfile[:infile[:infile...]]"
15120 case "$ac_file" in
15121 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000015122 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015123 # PO directories have a Makefile.in generated from Makefile.in.in.
15124 case "$ac_file" in */Makefile.in)
15125 # Adjust a relative srcdir.
15126 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o93613952014-07-03 23:44:13 -040015127 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015128 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15129 # In autoconf-2.13 it is called $ac_given_srcdir.
15130 # In autoconf-2.50 it is called $srcdir.
15131 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15132 case "$ac_given_srcdir" in
15133 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15134 /*) top_srcdir="$ac_given_srcdir" ;;
15135 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15136 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040015137 # Treat a directory as a PO directory if and only if it has a
15138 # POTFILES.in file. This allows packages to have multiple PO
15139 # directories under different names or in different locations.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015140 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15141 rm -f "$ac_dir/POTFILES"
15142 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
Theodore Ts'o93613952014-07-03 23:44:13 -040015143 gt_tab=`printf '\t'`
15144 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 -050015145 POMAKEFILEDEPS="POTFILES.in"
15146 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015147 # on $ac_dir but don't depend on user-specified configuration
15148 # parameters.
15149 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15150 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015151 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015152 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15153 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040015154 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15155 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015156 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015157 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15158 else
15159 # The set of available languages was given in configure.in.
Theodore Ts'o93613952014-07-03 23:44:13 -040015160 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015161 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015162 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015163 # Compute POFILES
15164 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15165 # Compute UPDATEPOFILES
15166 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15167 # Compute DUMMYPOFILES
15168 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15169 # Compute GMOFILES
15170 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015171 case "$ac_given_srcdir" in
15172 .) srcdirpre= ;;
15173 *) srcdirpre='$(srcdir)/' ;;
15174 esac
15175 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015176 UPDATEPOFILES=
15177 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015178 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015179 for lang in $ALL_LINGUAS; do
15180 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015181 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15182 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015183 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015184 done
15185 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15186 # environment variable.
15187 INST_LINGUAS=
15188 if test -n "$ALL_LINGUAS"; then
15189 for presentlang in $ALL_LINGUAS; do
15190 useit=no
15191 if test "%UNSET%" != "$LINGUAS"; then
15192 desiredlanguages="$LINGUAS"
15193 else
15194 desiredlanguages="$ALL_LINGUAS"
15195 fi
15196 for desiredlang in $desiredlanguages; do
15197 # Use the presentlang catalog if desiredlang is
15198 # a. equal to presentlang, or
15199 # b. a variant of presentlang (because in this case,
15200 # presentlang can be used as a fallback for messages
15201 # which are not translated in the desiredlang catalog).
15202 case "$desiredlang" in
15203 "$presentlang"*) useit=yes;;
15204 esac
15205 done
15206 if test $useit = yes; then
15207 INST_LINGUAS="$INST_LINGUAS $presentlang"
15208 fi
15209 done
15210 fi
15211 CATALOGS=
15212 if test -n "$INST_LINGUAS"; then
15213 for lang in $INST_LINGUAS; do
15214 CATALOGS="$CATALOGS $lang.gmo"
15215 done
15216 fi
15217 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015218 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 -040015219 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15220 if test -f "$f"; then
15221 case "$f" in
15222 *.orig | *.bak | *~) ;;
15223 *) cat "$f" >> "$ac_dir/Makefile" ;;
15224 esac
15225 fi
15226 done
15227 fi
15228 ;;
15229 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015230 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015231
Theodore Ts'oe1052142006-10-21 21:46:47 -040015232 esac
15233done # for ac_tag
15234
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015235
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015236as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015237_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015238ac_clean_files=$ac_clean_files_save
15239
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015240test $ac_write_fail = 0 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015241 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015242
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015243
15244# configure is writing to config.log, and then calls config.status.
15245# config.status does its own redirection, appending to config.log.
15246# Unfortunately, on DOS this fails, as config.log is still kept open
15247# by configure, so config.status won't be able to write to it; its
15248# output is simply discarded. So we exec the FD to /dev/null,
15249# effectively closing config.log, so it can be properly (re)opened and
15250# appended to by config.status. When coming back to configure, we
15251# need to make the FD available again.
15252if test "$no_create" != yes; then
15253 ac_cs_success=:
15254 ac_config_status_args=
15255 test "$silent" = yes &&
15256 ac_config_status_args="$ac_config_status_args --quiet"
15257 exec 5>/dev/null
15258 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15259 exec 5>>config.log
15260 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15261 # would make configure fail if this is the last instruction.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015262 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015263fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015264if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015266$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15267fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015268
Theodore Ts'oee683a12005-02-05 15:53:56 -050015269if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi