blob: ec274f3bdb5edf367e4fabfe313fb8cfa5e0469e [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
Theodore Ts'o749f0712016-05-29 20:48:54 -0400734TDB_MAN_COMMENT
735TDB_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100736UUIDD_CMT
737E2INITRD_MAN
738E2INITRD_PROG
739FSCK_MAN
740FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500741DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100742RESIZER_CMT
743IMAGER_CMT
744DEBUGFS_CMT
745BLKID_CMT
746DEPPROFILED_LIBBLKID
747PROFILED_LIBBLKID
748DEPSTATIC_LIBBLKID
749STATIC_LIBBLKID
750DEPLIBBLKID
751LIBBLKID
752UUID_CMT
753DEPPROFILED_LIBUUID
754PROFILED_LIBUUID
755DEPSTATIC_LIBUUID
756STATIC_LIBUUID
757DEPLIBUUID
758LIBUUID
Theodore Ts'o93613952014-07-03 23:44:13 -0400759PKG_CONFIG_LIBDIR
760PKG_CONFIG_PATH
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100761PKG_CONFIG
762TEST_IO_CMT
763PRIVATE_LIBS_CMT
764LDFLAG_DYNAMIC
765PROFILED_LIB_EXT
766STATIC_LIB_EXT
767LIB_EXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100768PROFILE_CMT
769BSDLIB_CMT
770ELF_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400771Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400772ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400773E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400774LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400775SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400776LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100777MAINTAINER_CMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400778EGREP
779GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100780CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400781RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500782DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100783OBJEXT
784EXEEXT
785ac_ct_CC
786CPPFLAGS
787LDFLAGS
788CFLAGS
789CC
790host_os
791host_vendor
792host_cpu
793host
794build_os
795build_vendor
796build_cpu
797build
798E2FSPROGS_PKGVER
799E2FSPROGS_VERSION
800E2FSPROGS_DAY
801E2FSPROGS_MONTH
802E2FSPROGS_YEAR
803target_alias
804host_alias
805build_alias
806LIBS
807ECHO_T
808ECHO_N
809ECHO_C
810DEFS
811mandir
812localedir
813libdir
814psdir
815pdfdir
816dvidir
817htmldir
818infodir
819docdir
820oldincludedir
821includedir
Theodore Ts'o2ab53822016-03-15 01:10:29 -0400822runstatedir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100823localstatedir
824sharedstatedir
825sysconfdir
826datadir
827datarootdir
828libexecdir
829sbindir
830bindir
831program_transform_name
832prefix
833exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500834PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100835PACKAGE_BUGREPORT
836PACKAGE_STRING
837PACKAGE_VERSION
838PACKAGE_TARNAME
839PACKAGE_NAME
840PATH_SEPARATOR
841SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400842ac_subst_files='MCONFIG
843MAKEFILE_ELF
844MAKEFILE_BSDLIB
845MAKEFILE_PROFILE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400846MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400847ASM_TYPES_HEADER
848PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100849ac_user_opts='
850enable_option_checking
851with_diet_libc
852with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100853with_ccopts
854with_ldopts
855with_root_prefix
856enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400857enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400858enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400859enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400860enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400861enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100862enable_elf_shlibs
863enable_bsd_shlibs
864enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500865enable_gcov
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400866enable_hardening
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100867enable_jbd_debug
868enable_blkid_debug
869enable_testio_debug
870enable_libuuid
871enable_libblkid
Theodore Ts'o3df60142013-06-16 16:14:40 -0400872enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100873enable_debugfs
874enable_imager
875enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500876enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100877enable_fsck
878enable_e2initrd_helper
879enable_tls
880enable_uuidd
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000881enable_mmp
Theodore Ts'o749f0712016-05-29 20:48:54 -0400882enable_tdb
Tony Breeds1625bf42012-07-30 14:44:12 -0400883enable_bmap_stats
884enable_bmap_stats_ops
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100885enable_nls
Theodore Ts'o93613952014-07-03 23:44:13 -0400886enable_threads
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100887with_gnu_ld
888enable_rpath
Theodore Ts'o93613952014-07-03 23:44:13 -0400889with_libpth_prefix
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100890with_libiconv_prefix
891with_included_gettext
892with_libintl_prefix
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700893enable_fuse2fs
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400894with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100895'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400896 ac_precious_vars='build_alias
897host_alias
898target_alias
899CC
900CFLAGS
901LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400902LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400903CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400904CPP
Theodore Ts'o93613952014-07-03 23:44:13 -0400905PKG_CONFIG
906PKG_CONFIG_PATH
907PKG_CONFIG_LIBDIR'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400908
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000909
910# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500911ac_init_help=
912ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100913ac_unrecognized_opts=
914ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000915# The variables have the same names as the options, with
916# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500917cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000918exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000919no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000920no_recursion=
921prefix=NONE
922program_prefix=NONE
923program_suffix=NONE
924program_transform_name=s,x,x,
925silent=
926site=
927srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000928verbose=
929x_includes=NONE
930x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500931
932# Installation directory options.
933# These are left unexpanded so users can "make install exec_prefix=/foo"
934# and all the variables that are supposed to be based on exec_prefix
935# by default will actually change.
936# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400937# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000938bindir='${exec_prefix}/bin'
939sbindir='${exec_prefix}/sbin'
940libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400941datarootdir='${prefix}/share'
942datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000943sysconfdir='${prefix}/etc'
944sharedstatedir='${prefix}/com'
945localstatedir='${prefix}/var'
Theodore Ts'o2ab53822016-03-15 01:10:29 -0400946runstatedir='${localstatedir}/run'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000947includedir='${prefix}/include'
948oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400949docdir='${datarootdir}/doc/${PACKAGE}'
950infodir='${datarootdir}/info'
951htmldir='${docdir}'
952dvidir='${docdir}'
953pdfdir='${docdir}'
954psdir='${docdir}'
955libdir='${exec_prefix}/lib'
956localedir='${datarootdir}/locale'
957mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000958
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000959ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400960ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000961for ac_option
962do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400965 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000966 ac_prev=
967 continue
968 fi
969
Theodore Ts'oe1052142006-10-21 21:46:47 -0400970 case $ac_option in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000971 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 *=) ac_optarg= ;;
973 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400974 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000975
976 # Accept the important Cygnus configure options, so we can diagnose typos.
977
Theodore Ts'oe1052142006-10-21 21:46:47 -0400978 case $ac_dashdash$ac_option in
979 --)
980 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000981
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000982 -bindir | --bindir | --bindi | --bind | --bin | --bi)
983 ac_prev=bindir ;;
984 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500985 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000986
987 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500988 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000989 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500990 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000991
992 -cache-file | --cache-file | --cache-fil | --cache-fi \
993 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994 ac_prev=cache_file ;;
995 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500997 cache_file=$ac_optarg ;;
998
999 --config-cache | -C)
1000 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001001
Theodore Ts'oe1052142006-10-21 21:46:47 -04001002 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001003 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001004 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001005 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001006
Theodore Ts'oe1052142006-10-21 21:46:47 -04001007 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008 | --dataroo | --dataro | --datar)
1009 ac_prev=datarootdir ;;
1010 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012 datarootdir=$ac_optarg ;;
1013
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001014 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001015 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001016 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001018 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1022 *"
1023"enable_$ac_useropt"
1024"*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001029
1030 -docdir | --docdir | --docdi | --doc | --do)
1031 ac_prev=docdir ;;
1032 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033 docdir=$ac_optarg ;;
1034
1035 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036 ac_prev=dvidir ;;
1037 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001039
1040 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001041 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001042 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001044 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1048 *"
1049"enable_$ac_useropt"
1050"*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001055
1056 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058 | --exec | --exe | --ex)
1059 ac_prev=exec_prefix ;;
1060 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001063 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001064
1065 -gas | --gas | --ga | --g)
1066 # Obsolete; use --with-gas.
1067 with_gas=yes ;;
1068
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001069 -help | --help | --hel | --he | -h)
1070 ac_init_help=long ;;
1071 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072 ac_init_help=recursive ;;
1073 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001075
1076 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001077 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001078 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001079 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001080
Theodore Ts'oe1052142006-10-21 21:46:47 -04001081 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082 ac_prev=htmldir ;;
1083 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084 | --ht=*)
1085 htmldir=$ac_optarg ;;
1086
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001087 -includedir | --includedir | --includedi | --included | --include \
1088 | --includ | --inclu | --incl | --inc)
1089 ac_prev=includedir ;;
1090 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001092 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001093
1094 -infodir | --infodir | --infodi | --infod | --info | --inf)
1095 ac_prev=infodir ;;
1096 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001097 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001098
1099 -libdir | --libdir | --libdi | --libd)
1100 ac_prev=libdir ;;
1101 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001102 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001103
1104 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105 | --libexe | --libex | --libe)
1106 ac_prev=libexecdir ;;
1107 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001109 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001110
Theodore Ts'oe1052142006-10-21 21:46:47 -04001111 -localedir | --localedir | --localedi | --localed | --locale)
1112 ac_prev=localedir ;;
1113 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114 localedir=$ac_optarg ;;
1115
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001116 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001117 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001118 ac_prev=localstatedir ;;
1119 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001120 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001121 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001122
1123 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124 ac_prev=mandir ;;
1125 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001126 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001127
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001128 -nfp | --nfp | --nf)
1129 # Obsolete; use --without-fp.
1130 with_fp=no ;;
1131
1132 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001133 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001134 no_create=yes ;;
1135
1136 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138 no_recursion=yes ;;
1139
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001140 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142 | --oldin | --oldi | --old | --ol | --o)
1143 ac_prev=oldincludedir ;;
1144 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001147 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001148
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001149 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150 ac_prev=prefix ;;
1151 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001152 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001153
1154 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1155 | --program-pre | --program-pr | --program-p)
1156 ac_prev=program_prefix ;;
1157 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1158 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001159 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001160
1161 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1162 | --program-suf | --program-su | --program-s)
1163 ac_prev=program_suffix ;;
1164 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1165 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001166 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001167
1168 -program-transform-name | --program-transform-name \
1169 | --program-transform-nam | --program-transform-na \
1170 | --program-transform-n | --program-transform- \
1171 | --program-transform | --program-transfor \
1172 | --program-transfo | --program-transf \
1173 | --program-trans | --program-tran \
1174 | --progr-tra | --program-tr | --program-t)
1175 ac_prev=program_transform_name ;;
1176 -program-transform-name=* | --program-transform-name=* \
1177 | --program-transform-nam=* | --program-transform-na=* \
1178 | --program-transform-n=* | --program-transform-=* \
1179 | --program-transform=* | --program-transfor=* \
1180 | --program-transfo=* | --program-transf=* \
1181 | --program-trans=* | --program-tran=* \
1182 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001183 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001184
Theodore Ts'oe1052142006-10-21 21:46:47 -04001185 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186 ac_prev=pdfdir ;;
1187 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188 pdfdir=$ac_optarg ;;
1189
1190 -psdir | --psdir | --psdi | --psd | --ps)
1191 ac_prev=psdir ;;
1192 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193 psdir=$ac_optarg ;;
1194
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196 | -silent | --silent | --silen | --sile | --sil)
1197 silent=yes ;;
1198
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001199 -runstatedir | --runstatedir | --runstatedi | --runstated \
1200 | --runstate | --runstat | --runsta | --runst | --runs \
1201 | --run | --ru | --r)
1202 ac_prev=runstatedir ;;
1203 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1204 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1205 | --run=* | --ru=* | --r=*)
1206 runstatedir=$ac_optarg ;;
1207
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209 ac_prev=sbindir ;;
1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001212 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001213
1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216 | --sharedst | --shareds | --shared | --share | --shar \
1217 | --sha | --sh)
1218 ac_prev=sharedstatedir ;;
1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001223 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001224
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001225 -site | --site | --sit)
1226 ac_prev=site ;;
1227 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001228 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001229
1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231 ac_prev=srcdir ;;
1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001233 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001234
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236 | --syscon | --sysco | --sysc | --sys | --sy)
1237 ac_prev=sysconfdir ;;
1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001240 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001241
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001242 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001243 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001245 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001246
1247 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248 verbose=yes ;;
1249
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001250 -version | --version | --versio | --versi | --vers | -V)
1251 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001252
1253 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001255 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001257 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1261 *"
1262"with_$ac_useropt"
1263"*) ;;
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1266 esac
1267 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001268
1269 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001271 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001273 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1277 *"
1278"with_$ac_useropt"
1279"*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001284
1285 --x)
1286 # Obsolete; use --with-x.
1287 with_x=yes ;;
1288
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001294 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001295
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001301 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001302
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001303 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001305 ;;
1306
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001307 *=*)
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001310 case $ac_envvar in #(
1311 '' | [0-9]* | *[!_$as_cr_alnum]* )
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001312 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001313 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001314 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001315 export $ac_envvar ;;
1316
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001317 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001318 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001323 ;;
1324
1325 esac
1326done
1327
1328if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001330 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001331fi
1332
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001333if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1335 no) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001336 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 esac
1339fi
1340
1341# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001342for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001345 libdir localedir mandir runstatedir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001346do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001347 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001348 # Remove trailing slashes.
1349 case $ac_val in
1350 */ )
1351 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\$ac_val;;
1353 esac
1354 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001355 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001358 esac
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001359 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001360done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001361
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001362# There might be people who depend on the old broken behavior: `$host'
1363# used to hold the argument of --host etc.
1364# FIXME: To remove some day.
1365build=$build_alias
1366host=$host_alias
1367target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001368
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001369# FIXME: To remove some day.
1370if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001373 elif test "x$build_alias" != "x$host_alias"; then
1374 cross_compiling=yes
1375 fi
1376fi
1377
1378ac_tool_prefix=
1379test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381test "$silent" = yes && exec 6>/dev/null
1382
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001383
Theodore Ts'oe1052142006-10-21 21:46:47 -04001384ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385ac_ls_di=`ls -di .` &&
1386ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001387 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001389 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001390
1391
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001392# Find the source files, if location was not specified.
1393if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001395 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001396 ac_confdir=`$as_dirname -- "$as_myself" ||
1397$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)[^/].*/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\).*/{
1415 s//\1/
1416 q
1417 }
1418 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001419 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001420 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001421 srcdir=..
1422 fi
1423else
1424 ac_srcdir_defaulted=no
1425fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001426if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001428 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001429fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001430ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431ac_abs_confdir=`(
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001433 pwd)`
1434# When building in place, set srcdir=.
1435if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 srcdir=.
1437fi
1438# Remove unnecessary trailing slashes from srcdir.
1439# Double slashes in file names in object file debugging info
1440# mess up M-x gdb in Emacs.
1441case $srcdir in
1442*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443esac
1444for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001451#
1452# Report the --help message.
1453#
1454if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1457 cat <<_ACEOF
1458\`configure' configures this package to adapt to many kinds of systems.
1459
1460Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463VAR=VALUE. See below for descriptions of some of the useful variables.
1464
1465Defaults for the options are specified in brackets.
1466
1467Configuration:
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001472 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001478Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001480 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001482 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001483
1484By default, \`make install' will install all the files in
1485\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487for instance \`--prefix=\$HOME'.
1488
1489For better control, use the options below.
1490
1491Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001498 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001512_ACEOF
1513
1514 cat <<\_ACEOF
1515
1516System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519_ACEOF
1520fi
1521
1522if test -n "$ac_init_help"; then
1523
1524 cat <<\_ACEOF
1525
1526Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001527 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001528 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1529 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001530 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001531 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001532 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001533
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001534 --enable-symlink-build use symlinks while building instead of hard links
1535 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001536 --enable-elf-shlibs select ELF shared libraries
1537 --enable-bsd-shlibs select BSD shared libraries
1538 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001539 --enable-gcov build for coverage testing using gcov
Theodore Ts'ofd1677e2016-05-21 23:51:19 -04001540 --enable-hardening build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001541 --enable-jbd-debug enable journal debugging
1542 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001543 --disable-testio-debug disable the use of the test I/O manager for debugging
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001544 --enable-libuuid build and use private uuid library
1545 --enable-libblkid build and use private blkid library
Theodore Ts'o3df60142013-06-16 16:14:40 -04001546 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001547 --disable-debugfs disable support of debugfs program
1548 --disable-imager disable support of e2image program
1549 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001550 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001551 --enable-fsck build fsck wrapper program
1552 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001553 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001554 --disable-uuidd disable building the uuid daemon
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001555 --disable-mmp disable support mmp, Multi Mount Protection
Theodore Ts'o749f0712016-05-29 20:48:54 -04001556 --disable-tdb disable tdb support
Tony Breeds1625bf42012-07-30 14:44:12 -04001557 --disable-bmap-stats disable collection of bitmap stats.
1558 --enable-bmap-stats-ops enable collection of additional bitmap stats
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001559 --disable-nls do not use Native Language Support
Theodore Ts'o93613952014-07-03 23:44:13 -04001560 --enable-threads={posix|solaris|pth|windows}
1561 specify multithreading API
1562 --disable-threads build without multithread safety
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001563 --disable-rpath do not hardcode runtime library paths
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001564 --disable-fuse2fs do not build fuse2fs
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001565
1566Optional Packages:
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001569 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001570 --with-cc no longer supported, use CC= instead
1571 --with-ccopts no longer supported, use CFLAGS= instead
1572 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001573 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
Theodore Ts'o93613952014-07-03 23:44:13 -04001574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1576 --without-libpth-prefix don't search for libpth in includedir and libdir
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001577 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1578 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1579 --with-included-gettext use the GNU gettext library included here
1580 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1581 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001582 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001583
1584Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001589 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001590 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001591 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001592 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001593 PKG_CONFIG path to pkg-config utility
Theodore Ts'o93613952014-07-03 23:44:13 -04001594 PKG_CONFIG_PATH
1595 directories to add to pkg-config's search path
1596 PKG_CONFIG_LIBDIR
1597 path overriding pkg-config's built-in search path
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001598
1599Use these variables to override the choices made by `configure' or to help
1600it to find libraries and programs with nonstandard names/locations.
1601
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001602Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001603_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001604ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001605fi
1606
1607if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001613 ac_builddir=.
1614
Theodore Ts'oe1052142006-10-21 21:46:47 -04001615case "$ac_dir" in
1616.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001619 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 esac ;;
1625esac
1626ac_abs_top_builddir=$ac_pwd
1627ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628# for backward compatibility:
1629ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001630
1631case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001632 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001633 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001637 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1640 *) # Relative name.
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001644esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001645ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001646
Theodore Ts'oe1052142006-10-21 21:46:47 -04001647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001655 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001657 fi || ac_status=$?
1658 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001659 done
1660fi
1661
Theodore Ts'oe1052142006-10-21 21:46:47 -04001662test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001663if $ac_init_version; then
1664 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001665configure
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001666generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001667
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001668Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001669This configure script is free software; the Free Software Foundation
1670gives unlimited permission to copy, distribute and modify it.
1671_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001672 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001673fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001674
1675## ------------------------ ##
1676## Autoconf initialization. ##
1677## ------------------------ ##
1678
1679# ac_fn_c_try_compile LINENO
1680# --------------------------
1681# Try to compile conftest.$ac_ext, and return whether this succeeded.
1682ac_fn_c_try_compile ()
1683{
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext
1686 if { { ac_try="$ac_compile"
1687case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_compile") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest.$ac_objext; then :
1705 ac_retval=0
1706else
1707 $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=1
1711fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001713 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001714
1715} # ac_fn_c_try_compile
1716
1717# ac_fn_c_try_link LINENO
1718# -----------------------
1719# Try to link conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_c_try_link ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext conftest$ac_exeext
1724 if { { ac_try="$ac_link"
1725case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_link") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest$ac_exeext && {
1743 test "$cross_compiling" = yes ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001744 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001745 }; then :
1746 ac_retval=0
1747else
1748 $as_echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752fi
1753 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1754 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1755 # interfere with the next link command; also delete a directory that is
1756 # left behind by Apple's compiler. We do this before executing the actions.
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001759 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001760
1761} # ac_fn_c_try_link
1762
1763# ac_fn_c_try_cpp LINENO
1764# ----------------------
1765# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_cpp ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_cpp conftest.$ac_ext"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001784 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 }; then :
1788 ac_retval=0
1789else
1790 $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001796 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001797
1798} # ac_fn_c_try_cpp
1799
1800# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1801# -------------------------------------------------------
1802# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1803# the include files in INCLUDES and setting the cache variable VAR
1804# accordingly.
1805ac_fn_c_check_header_mongrel ()
1806{
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001808 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001811if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001812 $as_echo_n "(cached) " >&6
1813fi
1814eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816$as_echo "$ac_res" >&6; }
1817else
1818 # Is the header compilable?
1819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1820$as_echo_n "checking $2 usability... " >&6; }
1821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822/* end confdefs.h. */
1823$4
1824#include <$2>
1825_ACEOF
1826if ac_fn_c_try_compile "$LINENO"; then :
1827 ac_header_compiler=yes
1828else
1829 ac_header_compiler=no
1830fi
1831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1833$as_echo "$ac_header_compiler" >&6; }
1834
1835# Is the header present?
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1837$as_echo_n "checking $2 presence... " >&6; }
1838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839/* end confdefs.h. */
1840#include <$2>
1841_ACEOF
1842if ac_fn_c_try_cpp "$LINENO"; then :
1843 ac_header_preproc=yes
1844else
1845 ac_header_preproc=no
1846fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001847rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1849$as_echo "$ac_header_preproc" >&6; }
1850
1851# So? What about this header?
1852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1853 yes:no: )
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1855$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 ;;
1859 no:yes:* )
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1861$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1863$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1865$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1867$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 ;;
1871esac
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001874if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001875 $as_echo_n "(cached) " >&6
1876else
1877 eval "$3=\$ac_header_compiler"
1878fi
1879eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881$as_echo "$ac_res" >&6; }
1882fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001884
1885} # ac_fn_c_check_header_mongrel
1886
Theodore Ts'o93613952014-07-03 23:44:13 -04001887# ac_fn_c_try_run LINENO
1888# ----------------------
1889# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1890# that executables *can* be run.
1891ac_fn_c_try_run ()
1892{
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_link"
1895case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898esac
1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900$as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>&5
1902 ac_status=$?
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1905 { { case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908esac
1909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910$as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_try") 2>&5
1912 ac_status=$?
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; }; }; then :
1915 ac_retval=0
1916else
1917 $as_echo "$as_me: program exited with status $ac_status" >&5
1918 $as_echo "$as_me: failed program was:" >&5
1919sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 ac_retval=$ac_status
1922fi
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status $ac_retval
1926
1927} # ac_fn_c_try_run
1928
1929# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1930# -------------------------------------------------------
1931# Tests whether HEADER exists and can be compiled using the include files in
1932# INCLUDES, setting the cache variable VAR accordingly.
1933ac_fn_c_check_header_compile ()
1934{
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937$as_echo_n "checking for $2... " >&6; }
1938if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1940else
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942/* end confdefs.h. */
1943$4
1944#include <$2>
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947 eval "$3=yes"
1948else
1949 eval "$3=no"
1950fi
1951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952fi
1953eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955$as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957
1958} # ac_fn_c_check_header_compile
1959
1960# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1961# -------------------------------------------
1962# Tests whether TYPE exists after having included INCLUDES, setting cache
1963# variable VAR accordingly.
1964ac_fn_c_check_type ()
1965{
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968$as_echo_n "checking for $2... " >&6; }
1969if eval \${$3+:} false; then :
1970 $as_echo_n "(cached) " >&6
1971else
1972 eval "$3=no"
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974/* end confdefs.h. */
1975$4
1976int
1977main ()
1978{
1979if (sizeof ($2))
1980 return 0;
1981 ;
1982 return 0;
1983}
1984_ACEOF
1985if ac_fn_c_try_compile "$LINENO"; then :
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h. */
1988$4
1989int
1990main ()
1991{
1992if (sizeof (($2)))
1993 return 0;
1994 ;
1995 return 0;
1996}
1997_ACEOF
1998if ac_fn_c_try_compile "$LINENO"; then :
1999
2000else
2001 eval "$3=yes"
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004fi
2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006fi
2007eval ac_res=\$$3
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009$as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011
2012} # ac_fn_c_check_type
2013
2014# ac_fn_c_check_func LINENO FUNC VAR
2015# ----------------------------------
2016# Tests whether FUNC exists, setting the cache variable VAR accordingly
2017ac_fn_c_check_func ()
2018{
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021$as_echo_n "checking for $2... " >&6; }
2022if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2024else
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026/* end confdefs.h. */
2027/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2029#define $2 innocuous_$2
2030
2031/* System header to define __stub macros and hopefully few prototypes,
2032 which can conflict with char $2 (); below.
2033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2034 <limits.h> exists even on freestanding compilers. */
2035
2036#ifdef __STDC__
2037# include <limits.h>
2038#else
2039# include <assert.h>
2040#endif
2041
2042#undef $2
2043
2044/* Override any GCC internal prototype to avoid an error.
2045 Use char because int might match the return type of a GCC
2046 builtin and then its argument prototype would still apply. */
2047#ifdef __cplusplus
2048extern "C"
2049#endif
2050char $2 ();
2051/* The GNU C library defines this for functions which it implements
2052 to always fail with ENOSYS. Some functions are actually named
2053 something starting with __ and the normal name is an alias. */
2054#if defined __stub_$2 || defined __stub___$2
2055choke me
2056#endif
2057
2058int
2059main ()
2060{
2061return $2 ();
2062 ;
2063 return 0;
2064}
2065_ACEOF
2066if ac_fn_c_try_link "$LINENO"; then :
2067 eval "$3=yes"
2068else
2069 eval "$3=no"
2070fi
2071rm -f core conftest.err conftest.$ac_objext \
2072 conftest$ac_exeext conftest.$ac_ext
2073fi
2074eval ac_res=\$$3
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076$as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079} # ac_fn_c_check_func
2080
2081# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2082# ---------------------------------------------
2083# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2084# accordingly.
2085ac_fn_c_check_decl ()
2086{
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 as_decl_name=`echo $2|sed 's/ *(.*//'`
2089 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2091$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2092if eval \${$3+:} false; then :
2093 $as_echo_n "(cached) " >&6
2094else
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096/* end confdefs.h. */
2097$4
2098int
2099main ()
2100{
2101#ifndef $as_decl_name
2102#ifdef __cplusplus
2103 (void) $as_decl_use;
2104#else
2105 (void) $as_decl_name;
2106#endif
2107#endif
2108
2109 ;
2110 return 0;
2111}
2112_ACEOF
2113if ac_fn_c_try_compile "$LINENO"; then :
2114 eval "$3=yes"
2115else
2116 eval "$3=no"
2117fi
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119fi
2120eval ac_res=\$$3
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122$as_echo "$ac_res" >&6; }
2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124
2125} # ac_fn_c_check_decl
2126
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002127# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2128# --------------------------------------------
2129# Tries to find the compile-time value of EXPR in a program that includes
2130# INCLUDES, setting VAR accordingly. Returns whether the value could be
2131# computed
2132ac_fn_c_compute_int ()
2133{
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 if test "$cross_compiling" = yes; then
2136 # Depending upon the size, compute the lo and hi bounds.
2137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138/* end confdefs.h. */
2139$4
2140int
2141main ()
2142{
2143static int test_array [1 - 2 * !(($2) >= 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002144test_array [0] = 0;
2145return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002146
2147 ;
2148 return 0;
2149}
2150_ACEOF
2151if ac_fn_c_try_compile "$LINENO"; then :
2152 ac_lo=0 ac_mid=0
2153 while :; do
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155/* end confdefs.h. */
2156$4
2157int
2158main ()
2159{
2160static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002161test_array [0] = 0;
2162return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002163
2164 ;
2165 return 0;
2166}
2167_ACEOF
2168if ac_fn_c_try_compile "$LINENO"; then :
2169 ac_hi=$ac_mid; break
2170else
2171 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2172 if test $ac_lo -le $ac_mid; then
2173 ac_lo= ac_hi=
2174 break
2175 fi
2176 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2177fi
2178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 done
2180else
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182/* end confdefs.h. */
2183$4
2184int
2185main ()
2186{
2187static int test_array [1 - 2 * !(($2) < 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002188test_array [0] = 0;
2189return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002190
2191 ;
2192 return 0;
2193}
2194_ACEOF
2195if ac_fn_c_try_compile "$LINENO"; then :
2196 ac_hi=-1 ac_mid=-1
2197 while :; do
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h. */
2200$4
2201int
2202main ()
2203{
2204static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002205test_array [0] = 0;
2206return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002207
2208 ;
2209 return 0;
2210}
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_lo=$ac_mid; break
2214else
2215 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2216 if test $ac_mid -le $ac_hi; then
2217 ac_lo= ac_hi=
2218 break
2219 fi
2220 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 done
2224else
2225 ac_lo= ac_hi=
2226fi
2227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228fi
2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230# Binary search between lo and hi bounds.
2231while test "x$ac_lo" != "x$ac_hi"; do
2232 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234/* end confdefs.h. */
2235$4
2236int
2237main ()
2238{
2239static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002240test_array [0] = 0;
2241return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002242
2243 ;
2244 return 0;
2245}
2246_ACEOF
2247if ac_fn_c_try_compile "$LINENO"; then :
2248 ac_hi=$ac_mid
2249else
2250 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2251fi
2252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253done
2254case $ac_lo in #((
2255?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2256'') ac_retval=1 ;;
2257esac
2258 else
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260/* end confdefs.h. */
2261$4
2262static long int longval () { return $2; }
2263static unsigned long int ulongval () { return $2; }
2264#include <stdio.h>
2265#include <stdlib.h>
2266int
2267main ()
2268{
2269
2270 FILE *f = fopen ("conftest.val", "w");
2271 if (! f)
2272 return 1;
2273 if (($2) < 0)
2274 {
2275 long int i = longval ();
2276 if (i != ($2))
2277 return 1;
2278 fprintf (f, "%ld", i);
2279 }
2280 else
2281 {
2282 unsigned long int i = ulongval ();
2283 if (i != ($2))
2284 return 1;
2285 fprintf (f, "%lu", i);
2286 }
2287 /* Do not output a trailing newline, as this causes \r\n confusion
2288 on some platforms. */
2289 return ferror (f) || fclose (f) != 0;
2290
2291 ;
2292 return 0;
2293}
2294_ACEOF
2295if ac_fn_c_try_run "$LINENO"; then :
2296 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2297else
2298 ac_retval=1
2299fi
2300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2301 conftest.$ac_objext conftest.beam conftest.$ac_ext
2302rm -f conftest.val
2303
2304 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002306 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002307
2308} # ac_fn_c_compute_int
2309
2310# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2311# ----------------------------------------------------
2312# Tries to find if the field MEMBER exists in type AGGR, after including
2313# INCLUDES, setting cache variable VAR accordingly.
2314ac_fn_c_check_member ()
2315{
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2318$as_echo_n "checking for $2.$3... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002319if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002320 $as_echo_n "(cached) " >&6
2321else
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323/* end confdefs.h. */
2324$5
2325int
2326main ()
2327{
2328static $2 ac_aggr;
2329if (ac_aggr.$3)
2330return 0;
2331 ;
2332 return 0;
2333}
2334_ACEOF
2335if ac_fn_c_try_compile "$LINENO"; then :
2336 eval "$4=yes"
2337else
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339/* end confdefs.h. */
2340$5
2341int
2342main ()
2343{
2344static $2 ac_aggr;
2345if (sizeof ac_aggr.$3)
2346return 0;
2347 ;
2348 return 0;
2349}
2350_ACEOF
2351if ac_fn_c_try_compile "$LINENO"; then :
2352 eval "$4=yes"
2353else
2354 eval "$4=no"
2355fi
2356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357fi
2358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359fi
2360eval ac_res=\$$4
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002364
2365} # ac_fn_c_check_member
Theodore Ts'oe1052142006-10-21 21:46:47 -04002366cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002367This file contains any messages produced by compilers while
2368running configure, to aid debugging if configure makes a mistake.
2369
2370It was created by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002371generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002372
2373 $ $0 $@
2374
2375_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002376exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002377{
2378cat <<_ASUNAME
2379## --------- ##
2380## Platform. ##
2381## --------- ##
2382
2383hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2384uname -m = `(uname -m) 2>/dev/null || echo unknown`
2385uname -r = `(uname -r) 2>/dev/null || echo unknown`
2386uname -s = `(uname -s) 2>/dev/null || echo unknown`
2387uname -v = `(uname -v) 2>/dev/null || echo unknown`
2388
2389/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2390/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2391
2392/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2393/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2394/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002395/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002396/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2397/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2398/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2399
2400_ASUNAME
2401
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002407 $as_echo "PATH: $as_dir"
2408 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002409IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002410
2411} >&5
2412
2413cat >&5 <<_ACEOF
2414
2415
2416## ----------- ##
2417## Core tests. ##
2418## ----------- ##
2419
2420_ACEOF
2421
2422
2423# Keep a trace of the command line.
2424# Strip out --no-create and --no-recursion so they do not pile up.
2425# Strip out --silent because we don't want to record it for future runs.
2426# Also quote any args containing shell meta-characters.
2427# Make two passes to allow for proper duplicate-argument suppression.
2428ac_configure_args=
2429ac_configure_args0=
2430ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002431ac_must_keep_next=false
2432for ac_pass in 1 2
2433do
2434 for ac_arg
2435 do
2436 case $ac_arg in
2437 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2439 | -silent | --silent | --silen | --sile | --sil)
2440 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002441 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002442 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002443 esac
2444 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002445 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002446 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002447 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002448 if test $ac_must_keep_next = true; then
2449 ac_must_keep_next=false # Got value, back to normal.
2450 else
2451 case $ac_arg in
2452 *=* | --config-cache | -C | -disable-* | --disable-* \
2453 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2454 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2455 | -with-* | --with-* | -without-* | --without-* | --x)
2456 case "$ac_configure_args0 " in
2457 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2458 esac
2459 ;;
2460 -* ) ac_must_keep_next=true ;;
2461 esac
2462 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002463 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002464 ;;
2465 esac
2466 done
2467done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002468{ ac_configure_args0=; unset ac_configure_args0;}
2469{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002470
2471# When interrupted or exit'd, cleanup temporary files, and complete
2472# config.log. We remove comments because anyway the quotes in there
2473# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002474# WARNING: Use '\'' to represent an apostrophe within the trap.
2475# 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 -05002476trap 'exit_status=$?
2477 # Save into config.log some information that might help in debugging.
2478 {
2479 echo
2480
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002481 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002482## Cache variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002483## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002484 echo
2485 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002486(
2487 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2488 eval ac_val=\$$ac_var
2489 case $ac_val in #(
2490 *${as_nl}*)
2491 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002492 *_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 +01002493$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002494 esac
2495 case $ac_var in #(
2496 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002497 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002498 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002499 esac ;;
2500 esac
2501 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002502 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002503 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2504 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002505 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002506 "s/'\''/'\''\\\\'\'''\''/g;
2507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2508 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002509 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002510 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002511 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002512 esac |
2513 sort
2514)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002515 echo
2516
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002517 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002518## Output variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002519## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002520 echo
2521 for ac_var in $ac_subst_vars
2522 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002523 eval ac_val=\$$ac_var
2524 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002525 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002526 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002527 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002528 done | sort
2529 echo
2530
2531 if test -n "$ac_subst_files"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002532 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002533## File substitutions. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002534## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002535 echo
2536 for ac_var in $ac_subst_files
2537 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002538 eval ac_val=\$$ac_var
2539 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002540 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002541 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002542 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002543 done | sort
2544 echo
2545 fi
2546
2547 if test -s confdefs.h; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002548 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002549## confdefs.h. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002550## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002551 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002552 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002553 echo
2554 fi
2555 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002556 $as_echo "$as_me: caught signal $ac_signal"
2557 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002558 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002559 rm -f core *.core core.conftest.* &&
2560 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002561 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002562' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002563for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002564 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002565done
2566ac_signal=0
2567
2568# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002569rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002570
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002571$as_echo "/* confdefs.h */" > confdefs.h
2572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002573# Predefined preprocessor variables.
2574
2575cat >>confdefs.h <<_ACEOF
2576#define PACKAGE_NAME "$PACKAGE_NAME"
2577_ACEOF
2578
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002579cat >>confdefs.h <<_ACEOF
2580#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2581_ACEOF
2582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002583cat >>confdefs.h <<_ACEOF
2584#define PACKAGE_VERSION "$PACKAGE_VERSION"
2585_ACEOF
2586
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002587cat >>confdefs.h <<_ACEOF
2588#define PACKAGE_STRING "$PACKAGE_STRING"
2589_ACEOF
2590
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002591cat >>confdefs.h <<_ACEOF
2592#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2593_ACEOF
2594
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002595cat >>confdefs.h <<_ACEOF
2596#define PACKAGE_URL "$PACKAGE_URL"
2597_ACEOF
2598
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002599
2600# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002601# Prefer an explicitly selected file to automatically selected ones.
2602ac_site_file1=NONE
2603ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002604if test -n "$CONFIG_SITE"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002605 # We do not want a PATH search for config.site.
2606 case $CONFIG_SITE in #((
2607 -*) ac_site_file1=./$CONFIG_SITE;;
2608 */*) ac_site_file1=$CONFIG_SITE;;
2609 *) ac_site_file1=./$CONFIG_SITE;;
2610 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002611elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002612 ac_site_file1=$prefix/share/config.site
2613 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002614else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002615 ac_site_file1=$ac_default_prefix/share/config.site
2616 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002617fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002618for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002619do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002620 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002621 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002622 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002623$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002624 sed 's/^/| /' "$ac_site_file" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002625 . "$ac_site_file" \
2626 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2628as_fn_error $? "failed to load site script $ac_site_file
2629See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002630 fi
2631done
2632
2633if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002634 # Some versions of bash will fail to source /dev/null (special files
2635 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2636 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002637 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002638$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002639 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002640 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2641 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002642 esac
2643 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002644else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002645 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002646$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002647 >$cache_file
2648fi
2649
Theodore Ts'o93613952014-07-03 23:44:13 -04002650gt_needs="$gt_needs "
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002651as_fn_append ac_header_list " stdlib.h"
2652as_fn_append ac_header_list " unistd.h"
2653as_fn_append ac_header_list " sys/param.h"
Theodore Ts'o93613952014-07-03 23:44:13 -04002654as_fn_append ac_func_list " symlink"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002655# Check that the precious variables saved in the cache have kept the same
2656# value.
2657ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002658for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002659 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2660 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002661 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2662 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002663 case $ac_old_set,$ac_new_set in
2664 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002665 { $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 +01002666$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 -05002667 ac_cache_corrupted=: ;;
2668 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002669 { $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 +01002670$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002671 ac_cache_corrupted=: ;;
2672 ,);;
2673 *)
2674 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002675 # differences in whitespace do not lead to failure.
2676 ac_old_val_w=`echo x $ac_old_val`
2677 ac_new_val_w=`echo x $ac_new_val`
2678 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002679 { $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 +01002680$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2681 ac_cache_corrupted=:
2682 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002683 { $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 +01002684$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2685 eval $ac_var=\$ac_old_val
2686 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002687 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002688$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002689 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002690$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002691 fi;;
2692 esac
2693 # Pass precious variables to config.status.
2694 if test "$ac_new_set" = set; then
2695 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002696 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002697 *) ac_arg=$ac_var=$ac_new_val ;;
2698 esac
2699 case " $ac_configure_args " in
2700 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002701 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002702 esac
2703 fi
2704done
2705if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002708 { $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 +01002709$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002710 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002711fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002712## -------------------- ##
2713## Main body of script. ##
2714## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002715
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002716ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002717ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002721
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002722
2723
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002724ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002725for ac_dir in config "$srcdir"/config; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002726 if 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/install.sh"; then
2731 ac_aux_dir=$ac_dir
2732 ac_install_sh="$ac_aux_dir/install.sh -c"
2733 break
2734 elif test -f "$ac_dir/shtool"; then
2735 ac_aux_dir=$ac_dir
2736 ac_install_sh="$ac_aux_dir/shtool install -c"
2737 break
2738 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002739done
2740if test -z "$ac_aux_dir"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002741 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 +00002742fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002743
2744# These three variables are undocumented and unsupported,
2745# and are intended to be withdrawn in a future Autoconf release.
2746# They can cause serious problems if a builder's source tree is in a directory
2747# whose full name contains unusual characters.
2748ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2749ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2750ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2751
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002752
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002753ac_config_headers="$ac_config_headers lib/config.h"
2754
2755
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002756MCONFIG=./MCONFIG
2757
Theodore Ts'o74becf31997-04-26 14:37:06 +00002758BINARY_TYPE=bin
2759E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2760 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2761DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2762 | tr \" " "`
Theodore Ts'o2ab53822016-03-15 01:10:29 -04002763E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
Theodore Ts'o74becf31997-04-26 14:37:06 +00002764MONTH=`echo $DATE | awk -F- '{print $2}'`
2765YEAR=`echo $DATE | awk -F- '{print $3}'`
2766
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002767if expr $YEAR ">" 1900 > /dev/null ; then
2768 E2FSPROGS_YEAR=$YEAR
2769elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002770 E2FSPROGS_YEAR=19$YEAR
2771else
2772 E2FSPROGS_YEAR=20$YEAR
2773fi
2774
2775case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002776Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2777Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2778Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2779Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2780May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2781Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2782Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2783Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2784Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2785Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2786Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2787Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002788*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002789$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002790esac
2791
Andreas Dilger927566a2006-11-12 19:41:25 -05002792base_ver=`echo $E2FSPROGS_VERSION | \
2793 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002794
2795date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2796
2797case $E2FSPROGS_VERSION in
2798*-WIP|pre-*)
Theodore Ts'o2ab53822016-03-15 01:10:29 -04002799 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
Andreas Dilger927566a2006-11-12 19:41:25 -05002800 ;;
2801*)
2802 E2FSPROGS_PKGVER="$base_ver"
2803 ;;
2804esac
2805
2806unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002807{ $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 +01002808$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002810$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002811
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002812
2813
2814
Andreas Dilger927566a2006-11-12 19:41:25 -05002815
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002816WITH_DIET_LIBC=
2817
2818# Check whether --with-diet-libc was given.
2819if test "${with_diet_libc+set}" = set; then :
2820 withval=$with_diet_libc; CC="diet cc -nostdinc"
2821WITH_DIET_LIBC=yes
2822if test -z "$LIBS"
2823then
2824 LIBS="-lcompat"
2825else
2826 LIBS="$LIBS -lcompat"
2827fi
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2829$as_echo "CC=$CC" >&6; }
2830fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002831# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002832$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002833 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002834
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002836$as_echo_n "checking build system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002837if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002838 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002839else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002840 ac_build_alias=$build_alias
2841test "x$ac_build_alias" = x &&
2842 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2843test "x$ac_build_alias" = x &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002844 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002845ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002846 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002847
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002848fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002850$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002851case $ac_cv_build in
2852*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002853*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002854esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002855build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002856ac_save_IFS=$IFS; IFS='-'
2857set x $ac_cv_build
2858shift
2859build_cpu=$1
2860build_vendor=$2
2861shift; shift
2862# Remember, the first character of IFS is used to create $*,
2863# except with old shells:
2864build_os=$*
2865IFS=$ac_save_IFS
2866case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002867
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002868
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002870$as_echo_n "checking host system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002871if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002872 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002873else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002874 if test "x$host_alias" = x; then
2875 ac_cv_host=$ac_cv_build
2876else
2877 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002878 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002879fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002880
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002881fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002883$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002884case $ac_cv_host in
2885*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002886*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002887esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002888host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002889ac_save_IFS=$IFS; IFS='-'
2890set x $ac_cv_host
2891shift
2892host_cpu=$1
2893host_vendor=$2
2894shift; shift
2895# Remember, the first character of IFS is used to create $*,
2896# except with old shells:
2897host_os=$*
2898IFS=$ac_save_IFS
2899case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002900
2901
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002902DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002903ac_ext=c
2904ac_cpp='$CPP $CPPFLAGS'
2905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2910set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002912$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002913if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002914 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002915else
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2918else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002924 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002926 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002928 break 2
2929 fi
2930done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002931 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002932IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002933
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002934fi
2935fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002936CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002937if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002939$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002940else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002942$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002943fi
2944
Theodore Ts'oe1052142006-10-21 21:46:47 -04002945
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002946fi
2947if test -z "$ac_cv_prog_CC"; then
2948 ac_ct_CC=$CC
2949 # Extract the first word of "gcc", so it can be a program name with args.
2950set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002952$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002953if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002954 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002955else
2956 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958else
2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960for as_dir in $PATH
2961do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002964 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002966 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002968 break 2
2969 fi
2970done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002971 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002972IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002973
2974fi
2975fi
2976ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002979$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002980else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002982$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002983fi
2984
Theodore Ts'oe1052142006-10-21 21:46:47 -04002985 if test "x$ac_ct_CC" = x; then
2986 CC=""
2987 else
2988 case $cross_compiling:$ac_tool_warned in
2989yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002990{ $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 +01002991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002992ac_tool_warned=yes ;;
2993esac
2994 CC=$ac_ct_CC
2995 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002996else
2997 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002998fi
2999
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003000if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003001 if test -n "$ac_tool_prefix"; then
3002 # 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 -05003003set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003005$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003006if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003007 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003008else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003017 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003019 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003021 break 2
3022 fi
3023done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003024 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003025IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003026
3027fi
3028fi
3029CC=$ac_cv_prog_CC
3030if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003032$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003033else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003035$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003036fi
3037
Theodore Ts'oe1052142006-10-21 21:46:47 -04003038
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003039 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003040fi
3041if test -z "$CC"; then
3042 # Extract the first word of "cc", so it can be a program name with args.
3043set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003045$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003046if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003047 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003048else
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3051else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003052 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003058 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3061 ac_prog_rejected=yes
3062 continue
3063 fi
3064 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003066 break 2
3067 fi
3068done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003069 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003070IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003071
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003072if test $ac_prog_rejected = yes; then
3073 # We found a bogon in the path, so make sure we never use it.
3074 set dummy $ac_cv_prog_CC
3075 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003076 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003077 # We chose a different compiler from the bogus one.
3078 # However, it has the same basename, so the bogon will be chosen
3079 # first if we set CC to just the basename; use the full file name.
3080 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003081 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003082 fi
3083fi
3084fi
3085fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003086CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003087if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003089$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003090else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003092$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003093fi
3094
Theodore Ts'oe1052142006-10-21 21:46:47 -04003095
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003096fi
3097if test -z "$CC"; then
3098 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003099 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003100 do
3101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3102set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003104$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003105if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003106 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003107else
3108 if test -n "$CC"; then
3109 ac_cv_prog_CC="$CC" # Let the user override the test.
3110else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003116 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003118 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003120 break 2
3121 fi
3122done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003123 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003124IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003125
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003126fi
3127fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003128CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003129if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003131$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003132else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003134$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003135fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003136
Theodore Ts'oe1052142006-10-21 21:46:47 -04003137
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003138 test -n "$CC" && break
3139 done
3140fi
3141if test -z "$CC"; then
3142 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003143 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003144do
3145 # Extract the first word of "$ac_prog", so it can be a program name with args.
3146set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003148$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003149if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003150 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003151else
3152 if test -n "$ac_ct_CC"; then
3153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3154else
3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156for as_dir in $PATH
3157do
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003160 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003162 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003164 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003165 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003166done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003167 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003168IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003169
3170fi
3171fi
3172ac_ct_CC=$ac_cv_prog_ac_ct_CC
3173if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003175$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003176else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003178$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003179fi
3180
Theodore Ts'oe1052142006-10-21 21:46:47 -04003181
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003182 test -n "$ac_ct_CC" && break
3183done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003184
Theodore Ts'oe1052142006-10-21 21:46:47 -04003185 if test "x$ac_ct_CC" = x; then
3186 CC=""
3187 else
3188 case $cross_compiling:$ac_tool_warned in
3189yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003190{ $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 +01003191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003192ac_tool_warned=yes ;;
3193esac
3194 CC=$ac_ct_CC
3195 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003196fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003197
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003198fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003199
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003200
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003201test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003203as_fn_error $? "no acceptable C compiler found in \$PATH
3204See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003205
3206# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003207$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003208set X $ac_compile
3209ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003210for ac_option in --version -v -V -qversion; do
3211 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003212case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217$as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003219 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003220 if test -s conftest.err; then
3221 sed '10a\
3222... rest of stderr output deleted ...
3223 10q' conftest.err >conftest.er1
3224 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003225 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003226 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }
3229done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003230
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003232/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003233
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003234int
3235main ()
3236{
3237
3238 ;
3239 return 0;
3240}
3241_ACEOF
3242ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003243ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003244# Try to create an executable without -o first, disregard a.out.
3245# It will help us diagnose broken compilers, and finding out an intuition
3246# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3248$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003249ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3250
3251# The possible output files:
3252ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3253
Theodore Ts'oe1052142006-10-21 21:46:47 -04003254ac_rmfiles=
3255for ac_file in $ac_files
3256do
3257 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003259 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3260 esac
3261done
3262rm -f $ac_rmfiles
3263
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003264if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003265case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003271 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003272 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003275 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3276# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3277# in a Makefile. We should not override ac_cv_exeext if it was cached,
3278# so that the user can short-circuit this test for compilers unknown to
3279# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003280for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003281do
3282 test -f "$ac_file" || continue
3283 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003285 ;;
3286 [ab].out )
3287 # We found the default executable, but exeext='' is most
3288 # certainly right.
3289 break;;
3290 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003291 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003292 then :; else
3293 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294 fi
3295 # We set ac_cv_exeext here because the later test for it is not
3296 # safe: cross compilers may not add the suffix if given an `-o'
3297 # argument, so we may need to know it at that point already.
3298 # Even if this section looks crufty: it has the advantage of
3299 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003300 break;;
3301 * )
3302 break;;
3303 esac
3304done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003305test "$ac_cv_exeext" = no && ac_cv_exeext=
3306
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003307else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003308 ac_file=''
3309fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003310if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003314sed 's/^/| /' conftest.$ac_ext >&5
3315
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003316{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003318as_fn_error 77 "C compiler cannot create executables
3319See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003320else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003323fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3325$as_echo_n "checking for C compiler default output file name... " >&6; }
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3327$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003328ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003329
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003330rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003331ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003333$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003334if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003335case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003341 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003342 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003345 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3346# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3347# work properly (i.e., refer to `conftest.exe'), while it won't with
3348# `rm'.
3349for ac_file in conftest.exe conftest conftest.*; do
3350 test -f "$ac_file" || continue
3351 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003353 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003354 break;;
3355 * ) break;;
3356 esac
3357done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003358else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003361as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3362See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003363fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003364rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003366$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003367
3368rm -f conftest.$ac_ext
3369EXEEXT=$ac_cv_exeext
3370ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372/* end confdefs.h. */
3373#include <stdio.h>
3374int
3375main ()
3376{
3377FILE *f = fopen ("conftest.out", "w");
3378 return ferror (f) || fclose (f) != 0;
3379
3380 ;
3381 return 0;
3382}
3383_ACEOF
3384ac_clean_files="$ac_clean_files conftest.out"
3385# Check that the compiler produces executables we can run. If not, either
3386# the compiler is broken, or we cross compile.
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3388$as_echo_n "checking whether we are cross compiling... " >&6; }
3389if test "$cross_compiling" != yes; then
3390 { { ac_try="$ac_link"
3391case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394esac
3395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396$as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_link") 2>&5
3398 ac_status=$?
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }
3401 if { ac_try='./conftest$ac_cv_exeext'
3402 { { case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405esac
3406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407$as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_try") 2>&5
3409 ac_status=$?
3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411 test $ac_status = 0; }; }; then
3412 cross_compiling=no
3413 else
3414 if test "$cross_compiling" = maybe; then
3415 cross_compiling=yes
3416 else
3417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003419as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003420If you meant to cross compile, use \`--host'.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003421See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003422 fi
3423 fi
3424fi
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3426$as_echo "$cross_compiling" >&6; }
3427
3428rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3429ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003431$as_echo_n "checking for suffix of object files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003432if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003433 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003434else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003436/* end confdefs.h. */
3437
3438int
3439main ()
3440{
3441
3442 ;
3443 return 0;
3444}
3445_ACEOF
3446rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003447if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003448case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003454 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003455 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003458 for ac_file in conftest.o conftest.obj conftest.*; do
3459 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003460 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003462 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3463 break;;
3464 esac
3465done
3466else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003467 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003468sed 's/^/| /' conftest.$ac_ext >&5
3469
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003470{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003472as_fn_error $? "cannot compute suffix of object files: cannot compile
3473See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003474fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003475rm -f conftest.$ac_cv_objext conftest.$ac_ext
3476fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003478$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003479OBJEXT=$ac_cv_objext
3480ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003481{ $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 +01003482$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003483if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003484 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003485else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003487/* end confdefs.h. */
3488
3489int
3490main ()
3491{
3492#ifndef __GNUC__
3493 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003494#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003495
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003496 ;
3497 return 0;
3498}
3499_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003500if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003501 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003502else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003503 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003504fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003506ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003507
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003508fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003510$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3511if test $ac_compiler_gnu = yes; then
3512 GCC=yes
3513else
3514 GCC=
3515fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003516ac_test_CFLAGS=${CFLAGS+set}
3517ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003519$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003520if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003521 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003522else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003523 ac_save_c_werror_flag=$ac_c_werror_flag
3524 ac_c_werror_flag=yes
3525 ac_cv_prog_cc_g=no
3526 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003528/* end confdefs.h. */
3529
3530int
3531main ()
3532{
3533
3534 ;
3535 return 0;
3536}
3537_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003538if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003539 ac_cv_prog_cc_g=yes
3540else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003541 CFLAGS=""
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003543/* end confdefs.h. */
3544
3545int
3546main ()
3547{
3548
3549 ;
3550 return 0;
3551}
3552_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003553if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003554
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003555else
3556 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003557 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003559/* end confdefs.h. */
3560
3561int
3562main ()
3563{
3564
3565 ;
3566 return 0;
3567}
3568_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003569if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003570 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003571fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003573fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_c_werror_flag=$ac_save_c_werror_flag
3578fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003580$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003581if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003582 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003583elif test $ac_cv_prog_cc_g = yes; then
3584 if test "$GCC" = yes; then
3585 CFLAGS="-g -O2"
3586 else
3587 CFLAGS="-g"
3588 fi
3589else
3590 if test "$GCC" = yes; then
3591 CFLAGS="-O2"
3592 else
3593 CFLAGS=
3594 fi
3595fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003597$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003598if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003599 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003600else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003601 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003602ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003604/* end confdefs.h. */
3605#include <stdarg.h>
3606#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003607struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003608/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3609struct buf { int x; };
3610FILE * (*rcsopen) (struct buf *, struct stat *, int);
3611static char *e (p, i)
3612 char **p;
3613 int i;
3614{
3615 return p[i];
3616}
3617static char *f (char * (*g) (char **, int), char **p, ...)
3618{
3619 char *s;
3620 va_list v;
3621 va_start (v,p);
3622 s = g (p, va_arg (v,int));
3623 va_end (v);
3624 return s;
3625}
3626
3627/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3628 function prototypes and stuff, but not '\xHH' hex character constants.
3629 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003630 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003631 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3632 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003633 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003634int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3635
Theodore Ts'oe1052142006-10-21 21:46:47 -04003636/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3637 inside strings and character constants. */
3638#define FOO(x) 'x'
3639int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3640
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003641int test (int i, double x);
3642struct s1 {int (*f) (int a);};
3643struct s2 {int (*f) (double a);};
3644int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3645int argc;
3646char **argv;
3647int
3648main ()
3649{
3650return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3651 ;
3652 return 0;
3653}
3654_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003655for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3656 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003657do
3658 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003659 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003660 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003661fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003662rm -f core conftest.err conftest.$ac_objext
3663 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003664done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003665rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003666CC=$ac_save_CC
3667
3668fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003669# AC_CACHE_VAL
3670case "x$ac_cv_prog_cc_c89" in
3671 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003673$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003674 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003676$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003677 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003678 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003680$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003681esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003682if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003683
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003684fi
3685
3686ac_ext=c
3687ac_cpp='$CPP $CPPFLAGS'
3688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691
3692
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3694$as_echo_n "checking for dlopen in -ldl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003695if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003696 $as_echo_n "(cached) " >&6
3697else
3698 ac_check_lib_save_LIBS=$LIBS
3699LIBS="-ldl $LIBS"
3700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701/* end confdefs.h. */
3702
3703/* Override any GCC internal prototype to avoid an error.
3704 Use char because int might match the return type of a GCC
3705 builtin and then its argument prototype would still apply. */
3706#ifdef __cplusplus
3707extern "C"
3708#endif
3709char dlopen ();
3710int
3711main ()
3712{
3713return dlopen ();
3714 ;
3715 return 0;
3716}
3717_ACEOF
3718if ac_fn_c_try_link "$LINENO"; then :
3719 ac_cv_lib_dl_dlopen=yes
3720else
3721 ac_cv_lib_dl_dlopen=no
3722fi
3723rm -f core conftest.err conftest.$ac_objext \
3724 conftest$ac_exeext conftest.$ac_ext
3725LIBS=$ac_check_lib_save_LIBS
3726fi
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3728$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003729if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003730 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003731
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003732$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3733
3734fi
3735
3736
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003737
3738# Check whether --with-cc was given.
3739if test "${with_cc+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003740 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003741fi
3742
3743
3744# Check whether --with-ccopts was given.
3745if test "${with_ccopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003746 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003747fi
3748
3749
3750# Check whether --with-ldopts was given.
3751if test "${with_ldopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003752 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003753fi
3754
3755ac_ext=c
3756ac_cpp='$CPP $CPPFLAGS'
3757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760if test -n "$ac_tool_prefix"; then
3761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3762set dummy ${ac_tool_prefix}gcc; ac_word=$2
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003765if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003766 $as_echo_n "(cached) " >&6
3767else
3768 if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3770else
3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH
3773do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003778 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3781 fi
3782done
3783 done
3784IFS=$as_save_IFS
3785
3786fi
3787fi
3788CC=$ac_cv_prog_CC
3789if test -n "$CC"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3791$as_echo "$CC" >&6; }
3792else
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794$as_echo "no" >&6; }
3795fi
3796
3797
3798fi
3799if test -z "$ac_cv_prog_CC"; then
3800 ac_ct_CC=$CC
3801 # Extract the first word of "gcc", so it can be a program name with args.
3802set dummy gcc; ac_word=$2
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003805if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003806 $as_echo_n "(cached) " >&6
3807else
3808 if test -n "$ac_ct_CC"; then
3809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3810else
3811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812for as_dir in $PATH
3813do
3814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003818 ac_cv_prog_ac_ct_CC="gcc"
3819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 break 2
3821 fi
3822done
3823 done
3824IFS=$as_save_IFS
3825
3826fi
3827fi
3828ac_ct_CC=$ac_cv_prog_ac_ct_CC
3829if test -n "$ac_ct_CC"; then
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3831$as_echo "$ac_ct_CC" >&6; }
3832else
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834$as_echo "no" >&6; }
3835fi
3836
3837 if test "x$ac_ct_CC" = x; then
3838 CC=""
3839 else
3840 case $cross_compiling:$ac_tool_warned in
3841yes:)
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3844ac_tool_warned=yes ;;
3845esac
3846 CC=$ac_ct_CC
3847 fi
3848else
3849 CC="$ac_cv_prog_CC"
3850fi
3851
3852if test -z "$CC"; then
3853 if test -n "$ac_tool_prefix"; then
3854 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3855set dummy ${ac_tool_prefix}cc; ac_word=$2
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003858if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003859 $as_echo_n "(cached) " >&6
3860else
3861 if test -n "$CC"; then
3862 ac_cv_prog_CC="$CC" # Let the user override the test.
3863else
3864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH
3866do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003871 ac_cv_prog_CC="${ac_tool_prefix}cc"
3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 break 2
3874 fi
3875done
3876 done
3877IFS=$as_save_IFS
3878
3879fi
3880fi
3881CC=$ac_cv_prog_CC
3882if test -n "$CC"; then
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3884$as_echo "$CC" >&6; }
3885else
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887$as_echo "no" >&6; }
3888fi
3889
3890
3891 fi
3892fi
3893if test -z "$CC"; then
3894 # Extract the first word of "cc", so it can be a program name with args.
3895set dummy cc; ac_word=$2
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003898if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003899 $as_echo_n "(cached) " >&6
3900else
3901 if test -n "$CC"; then
3902 ac_cv_prog_CC="$CC" # Let the user override the test.
3903else
3904 ac_prog_rejected=no
3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH
3907do
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003912 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3913 ac_prog_rejected=yes
3914 continue
3915 fi
3916 ac_cv_prog_CC="cc"
3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920done
3921 done
3922IFS=$as_save_IFS
3923
3924if test $ac_prog_rejected = yes; then
3925 # We found a bogon in the path, so make sure we never use it.
3926 set dummy $ac_cv_prog_CC
3927 shift
3928 if test $# != 0; then
3929 # We chose a different compiler from the bogus one.
3930 # However, it has the same basename, so the bogon will be chosen
3931 # first if we set CC to just the basename; use the full file name.
3932 shift
3933 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3934 fi
3935fi
3936fi
3937fi
3938CC=$ac_cv_prog_CC
3939if test -n "$CC"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941$as_echo "$CC" >&6; }
3942else
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944$as_echo "no" >&6; }
3945fi
3946
3947
3948fi
3949if test -z "$CC"; then
3950 if test -n "$ac_tool_prefix"; then
3951 for ac_prog in cl.exe
3952 do
3953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3954set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003957if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003958 $as_echo_n "(cached) " >&6
3959else
3960 if test -n "$CC"; then
3961 ac_cv_prog_CC="$CC" # Let the user override the test.
3962else
3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003970 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974done
3975 done
3976IFS=$as_save_IFS
3977
3978fi
3979fi
3980CC=$ac_cv_prog_CC
3981if test -n "$CC"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3983$as_echo "$CC" >&6; }
3984else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986$as_echo "no" >&6; }
3987fi
3988
3989
3990 test -n "$CC" && break
3991 done
3992fi
3993if test -z "$CC"; then
3994 ac_ct_CC=$CC
3995 for ac_prog in cl.exe
3996do
3997 # Extract the first word of "$ac_prog", so it can be a program name with args.
3998set dummy $ac_prog; ac_word=$2
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004001if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004002 $as_echo_n "(cached) " >&6
4003else
4004 if test -n "$ac_ct_CC"; then
4005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4006else
4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH
4009do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004014 ac_cv_prog_ac_ct_CC="$ac_prog"
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 break 2
4017 fi
4018done
4019 done
4020IFS=$as_save_IFS
4021
4022fi
4023fi
4024ac_ct_CC=$ac_cv_prog_ac_ct_CC
4025if test -n "$ac_ct_CC"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4027$as_echo "$ac_ct_CC" >&6; }
4028else
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030$as_echo "no" >&6; }
4031fi
4032
4033
4034 test -n "$ac_ct_CC" && break
4035done
4036
4037 if test "x$ac_ct_CC" = x; then
4038 CC=""
4039 else
4040 case $cross_compiling:$ac_tool_warned in
4041yes:)
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4044ac_tool_warned=yes ;;
4045esac
4046 CC=$ac_ct_CC
4047 fi
4048fi
4049
4050fi
4051
4052
4053test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004055as_fn_error $? "no acceptable C compiler found in \$PATH
4056See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004057
4058# Provide some information about the compiler.
4059$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4060set X $ac_compile
4061ac_compiler=$2
4062for ac_option in --version -v -V -qversion; do
4063 { { ac_try="$ac_compiler $ac_option >&5"
4064case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067esac
4068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069$as_echo "$ac_try_echo"; } >&5
4070 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4071 ac_status=$?
4072 if test -s conftest.err; then
4073 sed '10a\
4074... rest of stderr output deleted ...
4075 10q' conftest.err >conftest.er1
4076 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004077 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004078 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4080 test $ac_status = 0; }
4081done
4082
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4084$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004085if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004086 $as_echo_n "(cached) " >&6
4087else
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089/* end confdefs.h. */
4090
4091int
4092main ()
4093{
4094#ifndef __GNUC__
4095 choke me
4096#endif
4097
4098 ;
4099 return 0;
4100}
4101_ACEOF
4102if ac_fn_c_try_compile "$LINENO"; then :
4103 ac_compiler_gnu=yes
4104else
4105 ac_compiler_gnu=no
4106fi
4107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108ac_cv_c_compiler_gnu=$ac_compiler_gnu
4109
4110fi
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4112$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4113if test $ac_compiler_gnu = yes; then
4114 GCC=yes
4115else
4116 GCC=
4117fi
4118ac_test_CFLAGS=${CFLAGS+set}
4119ac_save_CFLAGS=$CFLAGS
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4121$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004122if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004123 $as_echo_n "(cached) " >&6
4124else
4125 ac_save_c_werror_flag=$ac_c_werror_flag
4126 ac_c_werror_flag=yes
4127 ac_cv_prog_cc_g=no
4128 CFLAGS="-g"
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130/* end confdefs.h. */
4131
4132int
4133main ()
4134{
4135
4136 ;
4137 return 0;
4138}
4139_ACEOF
4140if ac_fn_c_try_compile "$LINENO"; then :
4141 ac_cv_prog_cc_g=yes
4142else
4143 CFLAGS=""
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145/* end confdefs.h. */
4146
4147int
4148main ()
4149{
4150
4151 ;
4152 return 0;
4153}
4154_ACEOF
4155if ac_fn_c_try_compile "$LINENO"; then :
4156
4157else
4158 ac_c_werror_flag=$ac_save_c_werror_flag
4159 CFLAGS="-g"
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161/* end confdefs.h. */
4162
4163int
4164main ()
4165{
4166
4167 ;
4168 return 0;
4169}
4170_ACEOF
4171if ac_fn_c_try_compile "$LINENO"; then :
4172 ac_cv_prog_cc_g=yes
4173fi
4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175fi
4176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177fi
4178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 ac_c_werror_flag=$ac_save_c_werror_flag
4180fi
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4182$as_echo "$ac_cv_prog_cc_g" >&6; }
4183if test "$ac_test_CFLAGS" = set; then
4184 CFLAGS=$ac_save_CFLAGS
4185elif test $ac_cv_prog_cc_g = yes; then
4186 if test "$GCC" = yes; then
4187 CFLAGS="-g -O2"
4188 else
4189 CFLAGS="-g"
4190 fi
4191else
4192 if test "$GCC" = yes; then
4193 CFLAGS="-O2"
4194 else
4195 CFLAGS=
4196 fi
4197fi
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4199$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004200if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004201 $as_echo_n "(cached) " >&6
4202else
4203 ac_cv_prog_cc_c89=no
4204ac_save_CC=$CC
4205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206/* end confdefs.h. */
4207#include <stdarg.h>
4208#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004209struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004210/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4211struct buf { int x; };
4212FILE * (*rcsopen) (struct buf *, struct stat *, int);
4213static char *e (p, i)
4214 char **p;
4215 int i;
4216{
4217 return p[i];
4218}
4219static char *f (char * (*g) (char **, int), char **p, ...)
4220{
4221 char *s;
4222 va_list v;
4223 va_start (v,p);
4224 s = g (p, va_arg (v,int));
4225 va_end (v);
4226 return s;
4227}
4228
4229/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4230 function prototypes and stuff, but not '\xHH' hex character constants.
4231 These don't provoke an error unfortunately, instead are silently treated
4232 as 'x'. The following induces an error, until -std is added to get
4233 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4234 array size at least. It's necessary to write '\x00'==0 to get something
4235 that's true only with -std. */
4236int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4237
4238/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4239 inside strings and character constants. */
4240#define FOO(x) 'x'
4241int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4242
4243int test (int i, double x);
4244struct s1 {int (*f) (int a);};
4245struct s2 {int (*f) (double a);};
4246int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4247int argc;
4248char **argv;
4249int
4250main ()
4251{
4252return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4253 ;
4254 return 0;
4255}
4256_ACEOF
4257for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4258 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4259do
4260 CC="$ac_save_CC $ac_arg"
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262 ac_cv_prog_cc_c89=$ac_arg
4263fi
4264rm -f core conftest.err conftest.$ac_objext
4265 test "x$ac_cv_prog_cc_c89" != "xno" && break
4266done
4267rm -f conftest.$ac_ext
4268CC=$ac_save_CC
4269
4270fi
4271# AC_CACHE_VAL
4272case "x$ac_cv_prog_cc_c89" in
4273 x)
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4275$as_echo "none needed" >&6; } ;;
4276 xno)
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4278$as_echo "unsupported" >&6; } ;;
4279 *)
4280 CC="$CC $ac_cv_prog_cc_c89"
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4282$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4283esac
4284if test "x$ac_cv_prog_cc_c89" != xno; then :
4285
4286fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004287
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004288ac_ext=c
4289ac_cpp='$CPP $CPPFLAGS'
4290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004294if test "$GCC" = yes; then
4295 RDYNAMIC="-rdynamic"
4296
4297fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004298ac_ext=c
4299ac_cpp='$CPP $CPPFLAGS'
4300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004304$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004305# On Suns, sometimes $CPP names a directory.
4306if test -n "$CPP" && test -d "$CPP"; then
4307 CPP=
4308fi
4309if test -z "$CPP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004310 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004311 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004312else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004313 # Double quotes because CPP needs to be expanded
4314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4315 do
4316 ac_preproc_ok=false
4317for ac_c_preproc_warn_flag in '' yes
4318do
4319 # Use a header file that comes with gcc, so configuring glibc
4320 # with a fresh cross-compiler works.
4321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4322 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004323 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004324 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004326/* end confdefs.h. */
4327#ifdef __STDC__
4328# include <limits.h>
4329#else
4330# include <assert.h>
4331#endif
4332 Syntax error
4333_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004334if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004335
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004336else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004337 # Broken: fails on valid input.
4338continue
4339fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004340rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004341
Theodore Ts'oe1052142006-10-21 21:46:47 -04004342 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004343 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004345/* end confdefs.h. */
4346#include <ac_nonexistent.h>
4347_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004348if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004349 # Broken: success on invalid input.
4350continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004351else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004352 # Passes both tests.
4353ac_preproc_ok=:
4354break
4355fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004356rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004357
4358done
4359# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004360rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004361if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004362 break
4363fi
4364
4365 done
4366 ac_cv_prog_CPP=$CPP
4367
4368fi
4369 CPP=$ac_cv_prog_CPP
4370else
4371 ac_cv_prog_CPP=$CPP
4372fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004374$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004375ac_preproc_ok=false
4376for ac_c_preproc_warn_flag in '' yes
4377do
4378 # Use a header file that comes with gcc, so configuring glibc
4379 # with a fresh cross-compiler works.
4380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4381 # <limits.h> exists even on freestanding compilers.
4382 # On the NeXT, cc -E runs the code through the compiler's parser,
4383 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004385/* end confdefs.h. */
4386#ifdef __STDC__
4387# include <limits.h>
4388#else
4389# include <assert.h>
4390#endif
4391 Syntax error
4392_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004393if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004394
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004395else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004396 # Broken: fails on valid input.
4397continue
4398fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004399rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004400
Theodore Ts'oe1052142006-10-21 21:46:47 -04004401 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004402 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004404/* end confdefs.h. */
4405#include <ac_nonexistent.h>
4406_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004407if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004408 # Broken: success on invalid input.
4409continue
4410else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004411 # Passes both tests.
4412ac_preproc_ok=:
4413break
4414fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004415rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004416
4417done
4418# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004419rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004420if $ac_preproc_ok; then :
4421
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004422else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004425as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4426See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004427fi
4428
4429ac_ext=c
4430ac_cpp='$CPP $CPPFLAGS'
4431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004436$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004437if test "$GCC" = yes
4438then
4439 case "$host_cpu" in
4440 alpha) addcflags="-mieee" ;;
4441 esac
4442fi
4443if test "x$addcflags" != x
4444then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004446$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004447 CFLAGS="$addcflags $CFLAGS"
4448else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004450$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004451fi
Theodore Ts'o93613952014-07-03 23:44:13 -04004452
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4454$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4455if ${ac_cv_path_GREP+:} false; then :
4456 $as_echo_n "(cached) " >&6
4457else
4458 if test -z "$GREP"; then
4459 ac_path_GREP_found=false
4460 # Loop through the user's path and test for each of PROGNAME-LIST
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_prog in grep ggrep; do
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4469 as_fn_executable_p "$ac_path_GREP" || continue
4470# Check for GNU ac_path_GREP and select it if it is found.
4471 # Check for GNU $ac_path_GREP
4472case `"$ac_path_GREP" --version 2>&1` in
4473*GNU*)
4474 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4475*)
4476 ac_count=0
4477 $as_echo_n 0123456789 >"conftest.in"
4478 while :
4479 do
4480 cat "conftest.in" "conftest.in" >"conftest.tmp"
4481 mv "conftest.tmp" "conftest.in"
4482 cp "conftest.in" "conftest.nl"
4483 $as_echo 'GREP' >> "conftest.nl"
4484 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4486 as_fn_arith $ac_count + 1 && ac_count=$as_val
4487 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4488 # Best one so far, save it but keep looking for a better one
4489 ac_cv_path_GREP="$ac_path_GREP"
4490 ac_path_GREP_max=$ac_count
4491 fi
4492 # 10*(2^10) chars as input seems more than enough
4493 test $ac_count -gt 10 && break
4494 done
4495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4496esac
4497
4498 $ac_path_GREP_found && break 3
4499 done
4500 done
4501 done
4502IFS=$as_save_IFS
4503 if test -z "$ac_cv_path_GREP"; then
4504 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4505 fi
4506else
4507 ac_cv_path_GREP=$GREP
4508fi
4509
4510fi
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4512$as_echo "$ac_cv_path_GREP" >&6; }
4513 GREP="$ac_cv_path_GREP"
4514
4515
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4517$as_echo_n "checking for egrep... " >&6; }
4518if ${ac_cv_path_EGREP+:} false; then :
4519 $as_echo_n "(cached) " >&6
4520else
4521 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4522 then ac_cv_path_EGREP="$GREP -E"
4523 else
4524 if test -z "$EGREP"; then
4525 ac_path_EGREP_found=false
4526 # Loop through the user's path and test for each of PROGNAME-LIST
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4529do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_prog in egrep; do
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4535 as_fn_executable_p "$ac_path_EGREP" || continue
4536# Check for GNU ac_path_EGREP and select it if it is found.
4537 # Check for GNU $ac_path_EGREP
4538case `"$ac_path_EGREP" --version 2>&1` in
4539*GNU*)
4540 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4541*)
4542 ac_count=0
4543 $as_echo_n 0123456789 >"conftest.in"
4544 while :
4545 do
4546 cat "conftest.in" "conftest.in" >"conftest.tmp"
4547 mv "conftest.tmp" "conftest.in"
4548 cp "conftest.in" "conftest.nl"
4549 $as_echo 'EGREP' >> "conftest.nl"
4550 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4552 as_fn_arith $ac_count + 1 && ac_count=$as_val
4553 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4554 # Best one so far, save it but keep looking for a better one
4555 ac_cv_path_EGREP="$ac_path_EGREP"
4556 ac_path_EGREP_max=$ac_count
4557 fi
4558 # 10*(2^10) chars as input seems more than enough
4559 test $ac_count -gt 10 && break
4560 done
4561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4562esac
4563
4564 $ac_path_EGREP_found && break 3
4565 done
4566 done
4567 done
4568IFS=$as_save_IFS
4569 if test -z "$ac_cv_path_EGREP"; then
4570 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4571 fi
4572else
4573 ac_cv_path_EGREP=$EGREP
4574fi
4575
4576 fi
4577fi
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4579$as_echo "$ac_cv_path_EGREP" >&6; }
4580 EGREP="$ac_cv_path_EGREP"
4581
4582
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4584$as_echo_n "checking for ANSI C header files... " >&6; }
4585if ${ac_cv_header_stdc+:} false; then :
4586 $as_echo_n "(cached) " >&6
4587else
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589/* end confdefs.h. */
4590#include <stdlib.h>
4591#include <stdarg.h>
4592#include <string.h>
4593#include <float.h>
4594
4595int
4596main ()
4597{
4598
4599 ;
4600 return 0;
4601}
4602_ACEOF
4603if ac_fn_c_try_compile "$LINENO"; then :
4604 ac_cv_header_stdc=yes
4605else
4606 ac_cv_header_stdc=no
4607fi
4608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609
4610if test $ac_cv_header_stdc = yes; then
4611 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613/* end confdefs.h. */
4614#include <string.h>
4615
4616_ACEOF
4617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4618 $EGREP "memchr" >/dev/null 2>&1; then :
4619
4620else
4621 ac_cv_header_stdc=no
4622fi
4623rm -f conftest*
4624
4625fi
4626
4627if test $ac_cv_header_stdc = yes; then
4628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630/* end confdefs.h. */
4631#include <stdlib.h>
4632
4633_ACEOF
4634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4635 $EGREP "free" >/dev/null 2>&1; then :
4636
4637else
4638 ac_cv_header_stdc=no
4639fi
4640rm -f conftest*
4641
4642fi
4643
4644if test $ac_cv_header_stdc = yes; then
4645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4646 if test "$cross_compiling" = yes; then :
4647 :
4648else
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650/* end confdefs.h. */
4651#include <ctype.h>
4652#include <stdlib.h>
4653#if ((' ' & 0x0FF) == 0x020)
4654# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4655# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4656#else
4657# define ISLOWER(c) \
4658 (('a' <= (c) && (c) <= 'i') \
4659 || ('j' <= (c) && (c) <= 'r') \
4660 || ('s' <= (c) && (c) <= 'z'))
4661# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4662#endif
4663
4664#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4665int
4666main ()
4667{
4668 int i;
4669 for (i = 0; i < 256; i++)
4670 if (XOR (islower (i), ISLOWER (i))
4671 || toupper (i) != TOUPPER (i))
4672 return 2;
4673 return 0;
4674}
4675_ACEOF
4676if ac_fn_c_try_run "$LINENO"; then :
4677
4678else
4679 ac_cv_header_stdc=no
4680fi
4681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4682 conftest.$ac_objext conftest.beam conftest.$ac_ext
4683fi
4684
4685fi
4686fi
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4688$as_echo "$ac_cv_header_stdc" >&6; }
4689if test $ac_cv_header_stdc = yes; then
4690
4691$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4692
4693fi
4694
4695# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4696for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4697 inttypes.h stdint.h unistd.h
4698do :
4699 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4700ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4701"
4702if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4703 cat >>confdefs.h <<_ACEOF
4704#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4705_ACEOF
4706
4707fi
4708
4709done
4710
4711
4712
4713 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4714if test "x$ac_cv_header_minix_config_h" = xyes; then :
4715 MINIX=yes
4716else
4717 MINIX=
4718fi
4719
4720
4721 if test "$MINIX" = yes; then
4722
4723$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4724
4725
4726$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4727
4728
4729$as_echo "#define _MINIX 1" >>confdefs.h
4730
4731 fi
4732
4733
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4735$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4736if ${ac_cv_safe_to_define___extensions__+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738else
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740/* end confdefs.h. */
4741
4742# define __EXTENSIONS__ 1
4743 $ac_includes_default
4744int
4745main ()
4746{
4747
4748 ;
4749 return 0;
4750}
4751_ACEOF
4752if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_safe_to_define___extensions__=yes
4754else
4755 ac_cv_safe_to_define___extensions__=no
4756fi
4757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758fi
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4760$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4761 test $ac_cv_safe_to_define___extensions__ = yes &&
4762 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4763
4764 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4765
4766 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4767
4768 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4769
4770 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4771
4772
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004773LIB_EXT=.a
4774STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004775PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004776
Theodore Ts'oe1052142006-10-21 21:46:47 -04004777# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004778if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004779 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004780else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004781 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004782fi
4783# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004784if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004785 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004786then
4787 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004789$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004790else
4791 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004793$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004794fi
4795
4796else
4797 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004799$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004800
Theodore Ts'oe1052142006-10-21 21:46:47 -04004801fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004802
Theodore Ts'oe1052142006-10-21 21:46:47 -04004803
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004804# Check whether --enable-symlink-install was given.
4805if test "${enable_symlink_install+set}" = set; then :
4806 enableval=$enable_symlink_install; if test "$enableval" = "no"
4807then
4808 LINK_INSTALL_FLAGS=-f
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4810$as_echo "Disabling symlinks for install" >&6; }
4811else
4812 LINK_INSTALL_FLAGS=-sf
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4814$as_echo "Enabling symlinks for install" >&6; }
4815fi
4816
4817else
4818 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4820$as_echo "Disabling symlinks for install by default" >&6; }
4821
4822fi
4823
4824
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004825relative_symlink_defined=
4826# Check whether --enable-relative-symlinks was given.
4827if test "${enable_relative_symlinks+set}" = set; then :
4828 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004829then
4830 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004831 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4833$as_echo "Disabling relative symlinks for install" >&6; }
4834else
4835 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004836 relative_symlink_defined=yes
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4838$as_echo "Enabling relative symlinks for install" >&6; }
4839fi
4840fi
4841
4842# Check whether --enable-symlink-relative-symlinks was given.
4843if test "${enable_symlink_relative_symlinks+set}" = set; then :
4844 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4845then
4846 SYMLINK_RELATIVE=yes
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4848$as_echo "Disabling relative symlinks for install" >&6; }
4849else
4850 SYMLINK_RELATIVE=--relative
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4852$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004853fi
4854
4855else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004856 if test -z "$relative_symlink_defined"
4857then
4858 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4860$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004861fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004862
4863fi
4864
4865
4866# Check whether --enable-symlink-build was given.
4867if test "${enable_symlink_build+set}" = set; then :
4868 enableval=$enable_symlink_build; if test "$enableval" = "no"
4869then
4870 LINK_BUILD_FLAGS=
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4872$as_echo "Disabling symlinks for build" >&6; }
4873else
4874 LINK_BUILD_FLAGS=-s
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4876$as_echo "Enabling symlinks for build" >&6; }
4877fi
4878
4879else
4880 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4882$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004883
4884fi
4885
4886
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004887# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004888if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004889 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4890then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004892$as_echo "Disabling verbose make commands" >&6; }
4893 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004894 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004895 Q=@
4896else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004898$as_echo "Enabling verbose make commands" >&6; }
4899 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004900 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004901 Q=
4902fi
4903
4904else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004906$as_echo "Disabling verbose make commands" >&6; }
4907E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004908ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004909Q=@
4910
4911fi
4912
4913
4914
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004915
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004916E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004917LDFLAG_DYNAMIC=
4918PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004919# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004920if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004921 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004922then
4923 ELF_CMT=#
4924 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004926$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004927else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004928 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004929 ELF_CMT=
4930 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004931 case "$host_os" in
4932 solaris2.*)
4933 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4934 ;;
4935 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004936 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004937 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004938 PRIVATE_LIBS_CMT=#
4939 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004941$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004942fi
4943
4944else
4945 MAKEFILE_ELF=/dev/null
4946ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004948$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004949
Theodore Ts'oe1052142006-10-21 21:46:47 -04004950fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004951
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004952
Theodore Ts'oe1052142006-10-21 21:46:47 -04004953
4954# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004955if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004956 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004957then
4958 BSDLIB_CMT=#
4959 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004961$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004962else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004963 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004964 BSDLIB_CMT=
4965 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004966 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004967 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004968 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004969 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4970 LIB_EXT=.dylib
4971 ;;
4972 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004974$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004975fi
4976
4977else
4978 MAKEFILE_BSDLIB=/dev/null
4979BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004981$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004982
Theodore Ts'oe1052142006-10-21 21:46:47 -04004983fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004984
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004985
Theodore Ts'oe1052142006-10-21 21:46:47 -04004986
4987# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004988if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004989 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004990then
4991 PROFILE_CMT=#
4992 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004994$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004995else
4996 PROFILE_CMT=
4997 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4998 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005000$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005001fi
5002
5003else
5004 PROFILE_CMT=#
5005MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005007$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005008
Theodore Ts'oe1052142006-10-21 21:46:47 -04005009fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005010
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005011
Theodore Ts'oe1052142006-10-21 21:46:47 -04005012
Theodore Ts'ofedfb272014-02-23 00:17:09 -05005013# Check whether --enable-gcov was given.
5014if test "${enable_gcov+set}" = set; then :
5015 enableval=$enable_gcov; if test "$enableval" = "yes"
5016then
5017 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5018 LDFLAGS="-fprofile-arcs -ftest-coverage"
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5020$as_echo "Enabling gcov support" >&6; }
5021fi
5022
5023fi
5024
Theodore Ts'ofd1677e2016-05-21 23:51:19 -04005025CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5026CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5027LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5028LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5029# Check whether --enable-hardening was given.
5030if test "${enable_hardening+set}" = set; then :
5031 enableval=$enable_hardening; if test "$enableval" = "yes"
5032then
5033 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5034 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5035 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5036 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5037 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5038 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5039 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5040 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5042$as_echo "Enabling hardening support" >&6; }
5043fi
5044
5045fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005046
5047
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005048
Theodore Ts'oe1052142006-10-21 21:46:47 -04005049
Theodore Ts'o55da9872008-09-02 23:12:38 -04005050
5051
Theodore Ts'oe1052142006-10-21 21:46:47 -04005052# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005053if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005054 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005055then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005057$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005058else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005059
5060$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005061
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005063$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005064fi
5065
5066else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005068$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005069
Theodore Ts'oe1052142006-10-21 21:46:47 -04005070fi
5071
5072# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005073if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005074 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005075then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005077$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005078else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005079
5080$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005081
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005083$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005084fi
5085
5086else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005088$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005089
Theodore Ts'oe1052142006-10-21 21:46:47 -04005090fi
5091
5092# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005093if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005094 enableval=$enable_testio_debug;
5095if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005096then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005098$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04005099 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005100else
Theodore Ts'oaf773652008-09-01 11:27:27 -04005101 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005102 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005103
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005105$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005106fi
5107
5108else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005110$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005111$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04005112
5113TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005114
Theodore Ts'oe1052142006-10-21 21:46:47 -04005115fi
5116
Theodore Ts'oaf773652008-09-01 11:27:27 -04005117
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005118
5119
Theodore Ts'o93613952014-07-03 23:44:13 -04005120
5121
5122
5123
5124
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005125if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005126 if test -n "$ac_tool_prefix"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005127 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5128set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005130$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005131if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005132 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005133else
5134 case $PKG_CONFIG in
5135 [\\/]* | ?:[\\/]*)
5136 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5137 ;;
5138 *)
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140for as_dir in $PATH
5141do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005144 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005146 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005148 break 2
5149 fi
5150done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005151 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005152IFS=$as_save_IFS
5153
5154 ;;
5155esac
5156fi
5157PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5158if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005160$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005161else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005163$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005164fi
5165
5166
5167fi
5168if test -z "$ac_cv_path_PKG_CONFIG"; then
5169 ac_pt_PKG_CONFIG=$PKG_CONFIG
5170 # Extract the first word of "pkg-config", so it can be a program name with args.
5171set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005173$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005174if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005175 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005176else
5177 case $ac_pt_PKG_CONFIG in
5178 [\\/]* | ?:[\\/]*)
5179 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5180 ;;
5181 *)
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005187 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005189 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005191 break 2
5192 fi
5193done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005194 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005195IFS=$as_save_IFS
5196
5197 ;;
5198esac
5199fi
5200ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5201if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005203$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005204else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005206$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005207fi
5208
5209 if test "x$ac_pt_PKG_CONFIG" = x; then
5210 PKG_CONFIG=""
5211 else
5212 case $cross_compiling:$ac_tool_warned in
5213yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005214{ $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 +01005215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005216ac_tool_warned=yes ;;
5217esac
5218 PKG_CONFIG=$ac_pt_PKG_CONFIG
5219 fi
5220else
5221 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5222fi
5223
5224fi
5225if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005226 _pkg_min_version=0.9.0
5227 { $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 +01005228$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005229 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005231$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005232 else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005234$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005235 PKG_CONFIG=""
5236 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005237fi
5238LIBUUID=
5239DEPLIBUUID=
5240STATIC_LIBUUID=
5241DEPSTATIC_LIBUUID=
5242PROFILED_LIBUUID=
5243DEPPROFILED_LIBUUID=
5244UUID_CMT=
5245# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005246if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005247 enableval=$enable_libuuid; if test "$enableval" = "no"
5248then
5249 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005250 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005251 fi
5252
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005254$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005255if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005256 $as_echo_n "(cached) " >&6
5257else
5258 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005259LIBS="-luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005261/* end confdefs.h. */
5262
5263/* Override any GCC internal prototype to avoid an error.
5264 Use char because int might match the return type of a GCC
5265 builtin and then its argument prototype would still apply. */
5266#ifdef __cplusplus
5267extern "C"
5268#endif
5269char uuid_generate ();
5270int
5271main ()
5272{
5273return uuid_generate ();
5274 ;
5275 return 0;
5276}
5277_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005278if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005279 ac_cv_lib_uuid_uuid_generate=yes
5280else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005281 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005282fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005283rm -f core conftest.err conftest.$ac_objext \
5284 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005285LIBS=$ac_check_lib_save_LIBS
5286fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005288$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005289if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005290 LIBUUID=`$PKG_CONFIG --libs uuid`;
5291 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5292else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005293 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005294fi
5295
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005296 PROFILED_LIBUUID=$LIBUUID
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005297 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005299$as_echo "Disabling private uuid library" >&6; }
5300else
5301 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5302 DEPLIBUUID=$LIBUUID
5303 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5304 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5305 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5306 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005308$as_echo "Enabling private uuid library" >&6; }
5309fi
5310
5311else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005312 if test -n "$PKG_CONFIG"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5314$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5315if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317else
5318 ac_check_lib_save_LIBS=$LIBS
5319LIBS="-luuid $LIBS"
5320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321/* end confdefs.h. */
5322
5323/* Override any GCC internal prototype to avoid an error.
5324 Use char because int might match the return type of a GCC
5325 builtin and then its argument prototype would still apply. */
5326#ifdef __cplusplus
5327extern "C"
5328#endif
5329char uuid_generate ();
5330int
5331main ()
5332{
5333return uuid_generate ();
5334 ;
5335 return 0;
5336}
5337_ACEOF
5338if ac_fn_c_try_link "$LINENO"; then :
5339 ac_cv_lib_uuid_uuid_generate=yes
5340else
5341 ac_cv_lib_uuid_uuid_generate=no
5342fi
5343rm -f core conftest.err conftest.$ac_objext \
5344 conftest$ac_exeext conftest.$ac_ext
5345LIBS=$ac_check_lib_save_LIBS
5346fi
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5348$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5349if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5350 LIBUUID=`$PKG_CONFIG --libs uuid`;
5351 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5352fi
5353
5354fi
5355if test -n "$LIBUUID"; then
5356 PROFILED_LIBUUID=$LIBUUID
5357 UUID_CMT=#
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5359$as_echo "Using system uuid by default" >&6; }
5360else
5361 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5362 DEPLIBUUID=$LIBUUID
5363 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5364 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5365 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5366 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005368$as_echo "Enabling private uuid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005369fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005370
5371fi
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
Theodore Ts'o93613952014-07-03 23:44:13 -04005382
5383
5384
5385
5386
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005387if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005388 if test -n "$ac_tool_prefix"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005389 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5390set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005392$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005393if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005394 $as_echo_n "(cached) " >&6
5395else
5396 case $PKG_CONFIG in
5397 [\\/]* | ?:[\\/]*)
5398 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5399 ;;
5400 *)
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402for as_dir in $PATH
5403do
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005406 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005408 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005410 break 2
5411 fi
5412done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005413 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005414IFS=$as_save_IFS
5415
5416 ;;
5417esac
5418fi
5419PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5420if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005422$as_echo "$PKG_CONFIG" >&6; }
5423else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005425$as_echo "no" >&6; }
5426fi
5427
5428
5429fi
5430if test -z "$ac_cv_path_PKG_CONFIG"; then
5431 ac_pt_PKG_CONFIG=$PKG_CONFIG
5432 # Extract the first word of "pkg-config", so it can be a program name with args.
5433set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005435$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005436if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005437 $as_echo_n "(cached) " >&6
5438else
5439 case $ac_pt_PKG_CONFIG in
5440 [\\/]* | ?:[\\/]*)
5441 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5442 ;;
5443 *)
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005449 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005451 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005453 break 2
5454 fi
5455done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005456 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005457IFS=$as_save_IFS
5458
5459 ;;
5460esac
5461fi
5462ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5463if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005465$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5466else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005468$as_echo "no" >&6; }
5469fi
5470
5471 if test "x$ac_pt_PKG_CONFIG" = x; then
5472 PKG_CONFIG=""
5473 else
5474 case $cross_compiling:$ac_tool_warned in
5475yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005476{ $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 +01005477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5478ac_tool_warned=yes ;;
5479esac
5480 PKG_CONFIG=$ac_pt_PKG_CONFIG
5481 fi
5482else
5483 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5484fi
5485
5486fi
5487if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005488 _pkg_min_version=0.9.0
5489 { $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 +01005490$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005491 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005493$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005494 else
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005496$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005497 PKG_CONFIG=""
5498 fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005499fi
5500LIBBLKID=
5501DEPLIBBLKID=
5502STATIC_LIBBLKID=
5503DEPSTATIC_LIBBLKID=
5504PROFILED_LIBBLKID=
5505DEPPROFILED_LIBBLKID=
5506BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005507
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005508# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005509if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005510 enableval=$enable_libblkid; if test "$enableval" = "no"
5511then
5512 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005513 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005514 fi
5515
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005517$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005518if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005519 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005520else
5521 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005522LIBS="-lblkid -luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005524/* end confdefs.h. */
5525
5526/* Override any GCC internal prototype to avoid an error.
5527 Use char because int might match the return type of a GCC
5528 builtin and then its argument prototype would still apply. */
5529#ifdef __cplusplus
5530extern "C"
5531#endif
5532char blkid_get_cache ();
5533int
5534main ()
5535{
5536return blkid_get_cache ();
5537 ;
5538 return 0;
5539}
5540_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005541if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005542 ac_cv_lib_blkid_blkid_get_cache=yes
5543else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005544 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005545fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005546rm -f core conftest.err conftest.$ac_objext \
5547 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005548LIBS=$ac_check_lib_save_LIBS
5549fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005551$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005552if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005553 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5554 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5555else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005556 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005557fi
5558
5559 BLKID_CMT=#
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005560 PROFILED_LIBBLKID=$LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005562$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005563else
5564 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5565 DEPLIBBLKID=$LIBBLKID
5566 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5567 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5568 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5569 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005570 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005571
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005573$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005574fi
5575
5576else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005577 if test -n "$PKG_CONFIG"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5579$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5580if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582else
5583 ac_check_lib_save_LIBS=$LIBS
5584LIBS="-lblkid $LIBS"
5585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586/* end confdefs.h. */
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005587
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005588/* Override any GCC internal prototype to avoid an error.
5589 Use char because int might match the return type of a GCC
5590 builtin and then its argument prototype would still apply. */
5591#ifdef __cplusplus
5592extern "C"
5593#endif
5594char blkid_get_cache ();
5595int
5596main ()
5597{
5598return blkid_get_cache ();
5599 ;
5600 return 0;
5601}
5602_ACEOF
5603if ac_fn_c_try_link "$LINENO"; then :
5604 ac_cv_lib_blkid_blkid_get_cache=yes
5605else
5606 ac_cv_lib_blkid_blkid_get_cache=no
5607fi
5608rm -f core conftest.err conftest.$ac_objext \
5609 conftest$ac_exeext conftest.$ac_ext
5610LIBS=$ac_check_lib_save_LIBS
5611fi
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5613$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5614if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5615 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5616 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5617fi
5618
5619fi
5620if test -n "$LIBBLKID"; then
5621 BLKID_CMT=#
5622 PROFILED_LIBBLKID=$LIBBLKID
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5624$as_echo "Using system blkid library by default" >&6; }
5625else
5626 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5627 DEPLIBBLKID=$LIBBLKID
5628 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5629 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5630 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5631 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5632 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5633
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005635$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005636fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005637
5638fi
5639
5640
5641
5642
5643
5644
5645
5646
Theodore Ts'o3df60142013-06-16 16:14:40 -04005647
5648# Check whether --enable-backtrace was given.
5649if test "${enable_backtrace+set}" = set; then :
5650 enableval=$enable_backtrace; if test "$enableval" = "no"
5651then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5653$as_echo "Disabling use of backtrace" >&6; }
5654 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5655
5656else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5658$as_echo "Enabling use of backtrace" >&6; }
5659fi
5660
5661else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5663$as_echo "Enabling use of backtrace by default" >&6; }
5664
5665fi
5666
Theodore Ts'oe1052142006-10-21 21:46:47 -04005667# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005668if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005669 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005670then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005672$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005673 DEBUGFS_CMT="#"
5674else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005675 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005677$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005678fi
5679
5680else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005682$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005683DEBUGFS_CMT=
5684
Theodore Ts'oe1052142006-10-21 21:46:47 -04005685fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005686
Theodore Ts'oe1052142006-10-21 21:46:47 -04005687
5688# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005689if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005690 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005691then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005693$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005694 IMAGER_CMT="#"
5695else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005696 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005698$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005699fi
5700
5701else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005703$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005704IMAGER_CMT=
5705
Theodore Ts'oe1052142006-10-21 21:46:47 -04005706fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005707
Theodore Ts'oe1052142006-10-21 21:46:47 -04005708
5709# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005710if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005711 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005712then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005714$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005715 RESIZER_CMT="#"
5716else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005717 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005719$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005720fi
5721
5722else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005724$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005725RESIZER_CMT=
5726
Theodore Ts'oe1052142006-10-21 21:46:47 -04005727fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005728
Theodore Ts'oe1052142006-10-21 21:46:47 -04005729
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005730# Check whether --enable-defrag was given.
5731if test "${enable_defrag+set}" = set; then :
5732 enableval=$enable_defrag; if test "$enableval" = "no"
5733then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5735$as_echo "Disabling e4defrag support" >&6; }
5736 DEFRAG_CMT="#"
5737else
5738 DEFRAG_CMT=
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5740$as_echo "Enabling e4defrag support" >&6; }
5741fi
5742
5743else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005744 if test -z "$WITH_DIET_LIBC"
5745then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005747$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005748 DEFRAG_CMT=
5749else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5751$as_echo "Disabling e4defrag support by default" >&6; }
5752 DEFRAG_CMT="#"
5753fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005754
5755fi
5756
5757
Theodore Ts'oe1052142006-10-21 21:46:47 -04005758# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005759if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005760 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005761then
5762 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005764$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005765else
5766 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005768$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005769fi
5770
5771else
5772 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005773 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005774 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005776$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005777 ;;
5778 *)
5779 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005781$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005782esac
5783
Theodore Ts'oe1052142006-10-21 21:46:47 -04005784fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005785
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005786
Theodore Ts'oe1052142006-10-21 21:46:47 -04005787
5788# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005789if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005790 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005791then
5792 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005794$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005795else
5796 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005798$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005799fi
5800
5801else
5802 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005804$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005805
Theodore Ts'oe1052142006-10-21 21:46:47 -04005806fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005807
5808
Theodore Ts'oe1052142006-10-21 21:46:47 -04005809
Theodore Ts'o32493942007-12-31 10:45:01 -05005810# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005811if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005812 enableval=$enable_tls; if test "$enableval" = "no"
5813then
5814 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005816$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005817else
5818 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005820$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005821fi
5822
5823else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005824 if test -n "$WITH_DIET_LIBC"
5825then
5826 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005827 { $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 +01005828$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005829else
5830 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005832$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005833fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005834
5835fi
5836
5837if test "$try_tls" = "yes"
5838then
5839
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005841$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005842 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005843 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005844else
5845
5846 ax_tls_keywords="__thread __declspec(thread) none"
5847 for ax_tls_keyword in $ax_tls_keywords; do
5848 case $ax_tls_keyword in
5849 none) ac_cv_tls=none ; break ;;
5850 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005852/* end confdefs.h. */
5853#include <stdlib.h>
5854 static void
5855 foo(void) {
5856 static $ax_tls_keyword int bar;
5857 exit(1);
5858 }
5859int
5860main ()
5861{
5862
5863 ;
5864 return 0;
5865}
5866_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005867if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005868 ac_cv_tls=$ax_tls_keyword ; break
5869else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005870 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005871
5872fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 esac
5875 done
5876
5877fi
5878
5879
5880 if test "$ac_cv_tls" != "none"; then
5881
5882cat >>confdefs.h <<_ACEOF
5883#define TLS $ac_cv_tls
5884_ACEOF
5885
5886 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005888$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005889
5890fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005891
Theodore Ts'o5610f992007-12-31 11:16:56 -05005892# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005893if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005894 enableval=$enable_uuidd; if test "$enableval" = "no"
5895then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005897$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005898 UUIDD_CMT="#"
5899else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005900 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005901
5902 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005904$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005905fi
5906
5907else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005908 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005909
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005910if test -z "$UUID_CMT"
5911then
5912 UUIDD_CMT=""
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005914$as_echo "Building uuidd by default" >&6; }
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005915else
5916 UUIDD_CMT="#"
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5918$as_echo "Disabling uuidd by default" >&6; }
5919fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005920
5921fi
5922
5923
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005924
5925# Check whether --enable-mmp was given.
5926if test "${enable_mmp+set}" = set; then :
5927 enableval=$enable_mmp; if test "$enableval" = "no"
5928then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5930$as_echo "Disabling mmp support" >&6; }
5931else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5933$as_echo "Enabling mmp support" >&6; }
5934 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5935
5936fi
5937
5938else
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5940$as_echo "Enabling mmp support by default" >&6; }
5941$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5942
5943
5944fi
5945
Tony Breeds1625bf42012-07-30 14:44:12 -04005946
Theodore Ts'o749f0712016-05-29 20:48:54 -04005947# Check whether --enable-tdb was given.
5948if test "${enable_tdb+set}" = set; then :
5949 enableval=$enable_tdb; if test "$enableval" = "no"
5950then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5952$as_echo "Disabling tdb support" >&6; }
5953 TDB_CMT="#"
5954 TDB_MAN_COMMENT='.\"'
5955else
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5957$as_echo "Enabling tdb support" >&6; }
5958 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5959
5960 TDB_CMT=""
5961 TDB_MAN_COMMENT=""
5962fi
5963
5964else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5966$as_echo "Enabling mmp support by default" >&6; }
5967$as_echo "#define CONFIG_TDB 1" >>confdefs.h
5968
5969TDB_CMT=""
5970TDB_MAN_COMMENT=""
5971
5972fi
5973
5974
5975
5976
Tony Breeds1625bf42012-07-30 14:44:12 -04005977# Check whether --enable-bmap-stats was given.
5978if test "${enable_bmap_stats+set}" = set; then :
5979 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5980then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5982$as_echo "Disabling bitmap statistics support" >&6; }
5983else
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5985$as_echo "Enabling bitmap statistics support" >&6; }
5986 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5987
5988fi
5989
5990else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5992$as_echo "Enabling bitmap statistics support by default" >&6; }
5993$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5994
5995
5996fi
5997
5998
5999# Check whether --enable-bmap-stats-ops was given.
6000if test "${enable_bmap_stats_ops+set}" = set; then :
6001 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6002then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6004$as_echo "Disabling additional bitmap statistics" >&6; }
6005else
6006 if test "x${enable_bmap_stats}" = "xno"; then :
6007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6009as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6010See \`config.log' for more details" "$LINENO" 5; }
6011fi
6012
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6014$as_echo "Enabling additional bitmap statistics" >&6; }
6015 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6016
6017fi
6018
6019else
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6021$as_echo "Disabling additional bitmap statistics by default" >&6; }
6022
6023fi
6024
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00006025MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6026
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006027GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006028PACKAGE=e2fsprogs
6029VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006030VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006031
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006032cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006033#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006034_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006035
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006036
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006037cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006038#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006039_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006040
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006041
6042
6043
6044
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006046$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6047set x ${MAKE-make}
6048ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006049if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006050 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006051else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006052 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006053SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006054all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04006055 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006056_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006057# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04006058case `${MAKE-make} -f conftest.make 2>/dev/null` in
6059 *@@@%%%=?*=@@@%%%*)
6060 eval ac_cv_prog_make_${ac_make}_set=yes;;
6061 *)
6062 eval ac_cv_prog_make_${ac_make}_set=no;;
6063esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006064rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006065fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006066if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006068$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006069 SET_MAKE=
6070else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006072$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006073 SET_MAKE="MAKE=${MAKE-make}"
6074fi
6075
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006076# Find a good install program. We prefer a C program (faster),
6077# so one script is as good as another. But avoid the broken or
6078# incompatible versions:
6079# SysV /etc/install, /usr/sbin/install
6080# SunOS /usr/etc/install
6081# IRIX /sbin/install
6082# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006083# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006084# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6085# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6086# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006087# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006088# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006089# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006091$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006092if test -z "$INSTALL"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006093if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006094 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006095else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097for as_dir in $PATH
6098do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006101 # Account for people who put trailing slashes in PATH elements.
6102case $as_dir/ in #((
6103 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006104 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006105 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006106 /usr/ucb/* ) ;;
6107 *)
6108 # OSF1 and SCO ODT 3.0 have their own names for install.
6109 # Don't use installbsd from OSF since it installs stuff as root
6110 # by default.
6111 for ac_prog in ginstall scoinst install; do
6112 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006113 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006114 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006115 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006116 # AIX install. It has an incompatible calling convention.
6117 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006118 elif test $ac_prog = install &&
6119 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6120 # program-specific install script used by HP pwplus--don't use.
6121 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006122 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006123 rm -rf conftest.one conftest.two conftest.dir
6124 echo one > conftest.one
6125 echo two > conftest.two
6126 mkdir conftest.dir
6127 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6128 test -s conftest.one && test -s conftest.two &&
6129 test -s conftest.dir/conftest.one &&
6130 test -s conftest.dir/conftest.two
6131 then
6132 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6133 break 3
6134 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006135 fi
6136 fi
6137 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006138 done
6139 ;;
6140esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006141
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006142 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006143IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006144
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006145rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006146
6147fi
6148 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006149 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006150 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04006151 # As a last resort, use the slow shell script. Don't cache a
6152 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006153 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04006154 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006155 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006156 fi
6157fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006159$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006160
6161# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6162# It thinks the first close brace ends the variable substitution.
6163test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6164
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006165test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006166
6167test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6168
Theodore Ts'o93613952014-07-03 23:44:13 -04006169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6170$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6171if test -z "$MKDIR_P"; then
6172 if ${ac_cv_path_mkdir+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6177do
6178 IFS=$as_save_IFS
6179 test -z "$as_dir" && as_dir=.
6180 for ac_prog in mkdir gmkdir; do
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6183 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6184 'mkdir (GNU coreutils) '* | \
6185 'mkdir (coreutils) '* | \
6186 'mkdir (fileutils) '4.1*)
6187 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6188 break 3;;
6189 esac
6190 done
6191 done
6192 done
6193IFS=$as_save_IFS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006194
Theodore Ts'o93613952014-07-03 23:44:13 -04006195fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006196
Theodore Ts'o93613952014-07-03 23:44:13 -04006197 test -d ./--version && rmdir ./--version
6198 if test "${ac_cv_path_mkdir+set}" = set; then
6199 MKDIR_P="$ac_cv_path_mkdir -p"
6200 else
6201 # As a last resort, use the slow shell script. Don't cache a
6202 # value for MKDIR_P within a source directory, because that will
6203 # break other packages using the cache if that directory is
6204 # removed, or if the value is a relative name.
6205 MKDIR_P="$ac_install_sh -d"
6206 fi
6207fi
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6209$as_echo "$MKDIR_P" >&6; }
6210
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6212$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6213if ${ac_cv_path_SED+:} false; then :
6214 $as_echo_n "(cached) " >&6
6215else
6216 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6217 for ac_i in 1 2 3 4 5 6 7; do
6218 ac_script="$ac_script$as_nl$ac_script"
6219 done
6220 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6221 { ac_script=; unset ac_script;}
6222 if test -z "$SED"; then
6223 ac_path_SED_found=false
6224 # Loop through the user's path and test for each of PROGNAME-LIST
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226for as_dir in $PATH
6227do
6228 IFS=$as_save_IFS
6229 test -z "$as_dir" && as_dir=.
6230 for ac_prog in sed gsed; do
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6233 as_fn_executable_p "$ac_path_SED" || continue
6234# Check for GNU ac_path_SED and select it if it is found.
6235 # Check for GNU $ac_path_SED
6236case `"$ac_path_SED" --version 2>&1` in
6237*GNU*)
6238 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6239*)
6240 ac_count=0
6241 $as_echo_n 0123456789 >"conftest.in"
6242 while :
6243 do
6244 cat "conftest.in" "conftest.in" >"conftest.tmp"
6245 mv "conftest.tmp" "conftest.in"
6246 cp "conftest.in" "conftest.nl"
6247 $as_echo '' >> "conftest.nl"
6248 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6250 as_fn_arith $ac_count + 1 && ac_count=$as_val
6251 if test $ac_count -gt ${ac_path_SED_max-0}; then
6252 # Best one so far, save it but keep looking for a better one
6253 ac_cv_path_SED="$ac_path_SED"
6254 ac_path_SED_max=$ac_count
6255 fi
6256 # 10*(2^10) chars as input seems more than enough
6257 test $ac_count -gt 10 && break
6258 done
6259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6260esac
6261
6262 $ac_path_SED_found && break 3
6263 done
6264 done
6265 done
6266IFS=$as_save_IFS
6267 if test -z "$ac_cv_path_SED"; then
6268 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6269 fi
6270else
6271 ac_cv_path_SED=$SED
6272fi
6273
6274fi
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6276$as_echo "$ac_cv_path_SED" >&6; }
6277 SED="$ac_cv_path_SED"
6278 rm -f conftest.sed
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006279
6280
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006282$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006283 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006284if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006285 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006286else
6287 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04006288fi
6289
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006291$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006292
6293
6294
6295
Theodore Ts'o93613952014-07-03 23:44:13 -04006296 GETTEXT_MACRO_VERSION=0.18
6297
6298
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006299
6300
6301# Prepare PATH_SEPARATOR.
6302# The user is always right.
6303if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006304 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6305 # contains only /bin. Note that ksh looks also at the FPATH variable,
6306 # so we have to set that as well for the test.
6307 PATH_SEPARATOR=:
6308 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6309 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6310 || PATH_SEPARATOR=';'
6311 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006312fi
6313
6314# Find out how to test for executable files. Don't use a zero-byte file,
6315# as systems may use methods other than mode bits to determine executability.
6316cat >conf$$.file <<_ASEOF
6317#! /bin/sh
6318exit 0
6319_ASEOF
6320chmod +x conf$$.file
6321if test -x conf$$.file >/dev/null 2>&1; then
6322 ac_executable_p="test -x"
6323else
6324 ac_executable_p="test -f"
6325fi
6326rm -f conf$$.file
6327
6328# Extract the first word of "msgfmt", so it can be a program name with args.
6329set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006331$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006332if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006333 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006334else
6335 case "$MSGFMT" in
6336 [\\/]* | ?:[\\/]*)
6337 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6338 ;;
6339 *)
6340 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6341 for ac_dir in $PATH; do
6342 IFS="$ac_save_IFS"
6343 test -z "$ac_dir" && ac_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006346 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6347 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006348 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6349 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6350 break 2
6351 fi
6352 fi
6353 done
6354 done
6355 IFS="$ac_save_IFS"
6356 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6357 ;;
6358esac
6359fi
6360MSGFMT="$ac_cv_path_MSGFMT"
6361if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006363$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006364else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006366$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006367fi
6368
6369 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6370set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006372$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006373if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006374 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006375else
6376 case $GMSGFMT in
6377 [\\/]* | ?:[\\/]*)
6378 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6379 ;;
6380 *)
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382for as_dir in $PATH
6383do
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006386 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006388 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006390 break 2
6391 fi
6392done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006393 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006394IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006395
6396 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6397 ;;
6398esac
6399fi
6400GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006401if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006403$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006404else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006406$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006407fi
6408
6409
6410
Theodore Ts'o93613952014-07-03 23:44:13 -04006411 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6412 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6413 *) MSGFMT_015=$MSGFMT ;;
6414 esac
6415
6416 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6417 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6418 *) GMSGFMT_015=$GMSGFMT ;;
6419 esac
6420
6421
Theodore Ts'oe1052142006-10-21 21:46:47 -04006422
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006423# Prepare PATH_SEPARATOR.
6424# The user is always right.
6425if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006426 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6427 # contains only /bin. Note that ksh looks also at the FPATH variable,
6428 # so we have to set that as well for the test.
6429 PATH_SEPARATOR=:
6430 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6431 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6432 || PATH_SEPARATOR=';'
6433 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006434fi
6435
6436# Find out how to test for executable files. Don't use a zero-byte file,
6437# as systems may use methods other than mode bits to determine executability.
6438cat >conf$$.file <<_ASEOF
6439#! /bin/sh
6440exit 0
6441_ASEOF
6442chmod +x conf$$.file
6443if test -x conf$$.file >/dev/null 2>&1; then
6444 ac_executable_p="test -x"
6445else
6446 ac_executable_p="test -f"
6447fi
6448rm -f conf$$.file
6449
6450# Extract the first word of "xgettext", so it can be a program name with args.
6451set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006453$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006454if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006455 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006456else
6457 case "$XGETTEXT" in
6458 [\\/]* | ?:[\\/]*)
6459 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6460 ;;
6461 *)
6462 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6463 for ac_dir in $PATH; do
6464 IFS="$ac_save_IFS"
6465 test -z "$ac_dir" && ac_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006468 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6469 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 -05006470 (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
6471 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6472 break 2
6473 fi
6474 fi
6475 done
6476 done
6477 IFS="$ac_save_IFS"
6478 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6479 ;;
6480esac
6481fi
6482XGETTEXT="$ac_cv_path_XGETTEXT"
6483if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006485$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006486else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006488$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006489fi
6490
6491 rm -f messages.po
6492
Theodore Ts'o93613952014-07-03 23:44:13 -04006493 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6494 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6495 *) XGETTEXT_015=$XGETTEXT ;;
6496 esac
6497
6498
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006499
6500# Prepare PATH_SEPARATOR.
6501# The user is always right.
6502if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006503 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6504 # contains only /bin. Note that ksh looks also at the FPATH variable,
6505 # so we have to set that as well for the test.
6506 PATH_SEPARATOR=:
6507 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6508 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6509 || PATH_SEPARATOR=';'
6510 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006511fi
6512
6513# Find out how to test for executable files. Don't use a zero-byte file,
6514# as systems may use methods other than mode bits to determine executability.
6515cat >conf$$.file <<_ASEOF
6516#! /bin/sh
6517exit 0
6518_ASEOF
6519chmod +x conf$$.file
6520if test -x conf$$.file >/dev/null 2>&1; then
6521 ac_executable_p="test -x"
6522else
6523 ac_executable_p="test -f"
6524fi
6525rm -f conf$$.file
6526
6527# Extract the first word of "msgmerge", so it can be a program name with args.
6528set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006530$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006531if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006532 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006533else
6534 case "$MSGMERGE" in
6535 [\\/]* | ?:[\\/]*)
6536 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6537 ;;
6538 *)
6539 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6540 for ac_dir in $PATH; do
6541 IFS="$ac_save_IFS"
6542 test -z "$ac_dir" && ac_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006545 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6546 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006547 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6548 break 2
6549 fi
6550 fi
6551 done
6552 done
6553 IFS="$ac_save_IFS"
6554 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6555 ;;
6556esac
6557fi
6558MSGMERGE="$ac_cv_path_MSGMERGE"
6559if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006561$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006562else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006564$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006565fi
6566
6567
Theodore Ts'o93613952014-07-03 23:44:13 -04006568 test -n "$localedir" || localedir='${datadir}/locale'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006569
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006570
Theodore Ts'o93613952014-07-03 23:44:13 -04006571 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6572
6573
6574 ac_config_commands="$ac_config_commands po-directories"
6575
6576
6577
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6579$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6580if ${ac_cv_gnu_library_2+:} false; then :
6581 $as_echo_n "(cached) " >&6
6582else
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584/* end confdefs.h. */
6585
6586#include <features.h>
6587#ifdef __GNU_LIBRARY__
6588 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6589 Lucky GNU user
6590 #endif
6591#endif
6592
6593_ACEOF
6594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6595 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6596 ac_cv_gnu_library_2=yes
6597else
6598 ac_cv_gnu_library_2=no
6599fi
6600rm -f conftest*
6601
6602
6603
6604fi
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6606$as_echo "$ac_cv_gnu_library_2" >&6; }
6607
6608 GLIBC2="$ac_cv_gnu_library_2"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006609
6610
6611if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6613set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006615$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006616if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006617 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006618else
6619 if test -n "$RANLIB"; then
6620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6621else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623for as_dir in $PATH
6624do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006627 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006631 break 2
6632 fi
6633done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006634 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006635IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006636
6637fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006638fi
6639RANLIB=$ac_cv_prog_RANLIB
6640if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006642$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006643else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006645$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006646fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006647
Theodore Ts'oe1052142006-10-21 21:46:47 -04006648
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006649fi
6650if test -z "$ac_cv_prog_RANLIB"; then
6651 ac_ct_RANLIB=$RANLIB
6652 # Extract the first word of "ranlib", so it can be a program name with args.
6653set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006655$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006656if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006657 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006658else
6659 if test -n "$ac_ct_RANLIB"; then
6660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6661else
6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663for as_dir in $PATH
6664do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006667 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006669 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006671 break 2
6672 fi
6673done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006674 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006675IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006676
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677fi
6678fi
6679ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6680if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006682$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006683else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006685$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006686fi
6687
Theodore Ts'oe1052142006-10-21 21:46:47 -04006688 if test "x$ac_ct_RANLIB" = x; then
6689 RANLIB=":"
6690 else
6691 case $cross_compiling:$ac_tool_warned in
6692yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006693{ $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 +01006694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006695ac_tool_warned=yes ;;
6696esac
6697 RANLIB=$ac_ct_RANLIB
6698 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006699else
6700 RANLIB="$ac_cv_prog_RANLIB"
6701fi
6702
6703
Theodore Ts'o93613952014-07-03 23:44:13 -04006704
6705 CFLAG_VISIBILITY=
6706 HAVE_VISIBILITY=0
6707 if test -n "$GCC"; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6709$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6710 if ${gl_cv_cc_vis_werror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006711 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006712else
Theodore Ts'o93613952014-07-03 23:44:13 -04006713
6714 gl_save_CFLAGS="$CFLAGS"
6715 CFLAGS="$CFLAGS -Werror"
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006717/* end confdefs.h. */
6718
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006719int
6720main ()
6721{
Theodore Ts'o93613952014-07-03 23:44:13 -04006722
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006723 ;
6724 return 0;
6725}
6726_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04006727if ac_fn_c_try_compile "$LINENO"; then :
6728 gl_cv_cc_vis_werror=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006729else
Theodore Ts'o93613952014-07-03 23:44:13 -04006730 gl_cv_cc_vis_werror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006731fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 CFLAGS="$gl_save_CFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006734fi
6735
Theodore Ts'o93613952014-07-03 23:44:13 -04006736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6737$as_echo "$gl_cv_cc_vis_werror" >&6; }
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6739$as_echo_n "checking for simple visibility declarations... " >&6; }
6740 if ${gl_cv_cc_visibility+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006741 $as_echo_n "(cached) " >&6
6742else
Theodore Ts'o93613952014-07-03 23:44:13 -04006743
6744 gl_save_CFLAGS="$CFLAGS"
6745 CFLAGS="$CFLAGS -fvisibility=hidden"
6746 if test $gl_cv_cc_vis_werror = yes; then
6747 CFLAGS="$CFLAGS -Werror"
6748 fi
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750/* end confdefs.h. */
6751extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6752 extern __attribute__((__visibility__("default"))) int exportedvar;
6753 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6754 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6755 void dummyfunc (void) {}
6756
6757int
6758main ()
6759{
6760
6761 ;
6762 return 0;
6763}
6764_ACEOF
6765if ac_fn_c_try_compile "$LINENO"; then :
6766 gl_cv_cc_visibility=yes
6767else
6768 gl_cv_cc_visibility=no
6769fi
6770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 CFLAGS="$gl_save_CFLAGS"
6772fi
6773
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6775$as_echo "$gl_cv_cc_visibility" >&6; }
6776 if test $gl_cv_cc_visibility = yes; then
6777 CFLAG_VISIBILITY="-fvisibility=hidden"
6778 HAVE_VISIBILITY=1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006779 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006780 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006781
6782
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006783
Theodore Ts'o93613952014-07-03 23:44:13 -04006784cat >>confdefs.h <<_ACEOF
6785#define HAVE_VISIBILITY $HAVE_VISIBILITY
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006786_ACEOF
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006787
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006788
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006790$as_echo_n "checking for inline... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006791if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006792 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006793else
6794 ac_cv_c_inline=no
6795for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006797/* end confdefs.h. */
6798#ifndef __cplusplus
6799typedef int foo_t;
6800static $ac_kw foo_t static_foo () {return 0; }
6801$ac_kw foo_t foo () {return 0; }
6802#endif
6803
6804_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006805if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006806 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006807fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006810done
6811
6812fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006814$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006815
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006816case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006817 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006818 *)
6819 case $ac_cv_c_inline in
6820 no) ac_val=;;
6821 *) ac_val=$ac_cv_c_inline;;
6822 esac
6823 cat >>confdefs.h <<_ACEOF
6824#ifndef __cplusplus
6825#define inline $ac_val
6826#endif
6827_ACEOF
6828 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006829esac
6830
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006831ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006832if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006833
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006834else
6835
6836cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006837#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006838_ACEOF
6839
6840fi
6841
6842
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006844$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04006845if ${gl_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006846 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006847else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006849/* end confdefs.h. */
6850#include <sys/types.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04006851 #include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006852int
6853main ()
6854{
Theodore Ts'o93613952014-07-03 23:44:13 -04006855uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006856 ;
6857 return 0;
6858}
6859_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006860if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04006861 gl_cv_header_stdint_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006862else
Theodore Ts'o93613952014-07-03 23:44:13 -04006863 gl_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006864fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006866fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6868$as_echo "$gl_cv_header_stdint_h" >&6; }
6869 if test $gl_cv_header_stdint_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006870
6871cat >>confdefs.h <<_ACEOF
6872#define HAVE_STDINT_H_WITH_UINTMAX 1
6873_ACEOF
6874
6875 fi
6876
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006877# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6878# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006880$as_echo_n "checking for working alloca.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006881if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006882 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006883else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006885/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006886#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006887int
6888main ()
6889{
6890char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006891 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006892 ;
6893 return 0;
6894}
6895_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006896if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006897 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006898else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006899 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006900fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006901rm -f core conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006903fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006905$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006906if test $ac_cv_working_alloca_h = yes; then
6907
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006908$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006909
6910fi
6911
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006913$as_echo_n "checking for alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006914if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006915 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006916else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006918/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006919#ifdef __GNUC__
6920# define alloca __builtin_alloca
6921#else
6922# ifdef _MSC_VER
6923# include <malloc.h>
6924# define alloca _alloca
6925# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006926# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006927# include <alloca.h>
6928# else
6929# ifdef _AIX
6930 #pragma alloca
6931# else
6932# ifndef alloca /* predefined by HP cc +Olibcalls */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006933void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006934# endif
6935# endif
6936# endif
6937# endif
6938#endif
6939
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006940int
6941main ()
6942{
6943char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006944 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006945 ;
6946 return 0;
6947}
6948_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006949if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006950 ac_cv_func_alloca_works=yes
6951else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006952 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006953fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006954rm -f core conftest.err conftest.$ac_objext \
6955 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006956fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006958$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006959
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006960if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006961
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006962$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006963
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006964else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006965 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6966# that cause trouble. Some versions do not even contain alloca or
6967# contain a buggy version. If you still want to use their alloca,
6968# use ar to extract alloca.o from them instead of compiling alloca.c.
6969
Theodore Ts'oe1052142006-10-21 21:46:47 -04006970ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006971
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006972$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006973
6974
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006976$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006977if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006978 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006979else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006981/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006982#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006983webecray
6984#else
6985wenotbecray
6986#endif
6987
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006988_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006990 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006991 ac_cv_os_cray=yes
6992else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006993 ac_cv_os_cray=no
6994fi
6995rm -f conftest*
6996
6997fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006999$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007000if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007001 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007003ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007004if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007005
7006cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007007#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007008_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007009
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007010 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007011fi
7012
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007013 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007014fi
7015
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007017$as_echo_n "checking stack direction for C alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007018if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007019 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007020else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007021 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007022 ac_cv_c_stack_direction=0
7023else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007025/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007026$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007027int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007028find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007029{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007030 int dir, dummy = 0;
7031 if (! addr)
7032 addr = &dummy;
7033 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7034 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7035 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007036}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007037
7038int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007039main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007040{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007041 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007042}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007043_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007044if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007045 ac_cv_c_stack_direction=1
7046else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007047 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007048fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007049rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7050 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007051fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007052
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007053fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007055$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007056cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007057#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007058_ACEOF
7059
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007060
7061fi
7062
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007063
7064
7065
7066 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007067do :
7068 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007069ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7070"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007071if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007072 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007073#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007074_ACEOF
7075
7076fi
7077
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007078done
7079
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007080
7081
7082
7083
7084
7085
7086
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007087for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007088do :
7089 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007090if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007091 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007092#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007093_ACEOF
7094
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007095fi
7096done
7097
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007099$as_echo_n "checking for working mmap... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007100if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007101 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007102else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007103 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007104 ac_cv_func_mmap_fixed_mapped=no
7105else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007107/* end confdefs.h. */
7108$ac_includes_default
7109/* malloc might have been renamed as rpl_malloc. */
7110#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007111
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007112/* Thanks to Mike Haertel and Jim Avera for this test.
7113 Here is a matrix of mmap possibilities:
7114 mmap private not fixed
7115 mmap private fixed at somewhere currently unmapped
7116 mmap private fixed at somewhere already mapped
7117 mmap shared not fixed
7118 mmap shared fixed at somewhere currently unmapped
7119 mmap shared fixed at somewhere already mapped
7120 For private mappings, we should verify that changes cannot be read()
7121 back from the file, nor mmap's back from the file at a different
7122 address. (There have been systems where private was not correctly
7123 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007124 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007125 like early versions of FreeBSD and possibly contemporary NetBSD.)
7126 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007127 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007128
7129 Grep wants private fixed already mapped.
7130 The main things grep needs to know about mmap are:
7131 * does it exist and is it safe to write into the mmap'd area
7132 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007133
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007134#include <fcntl.h>
7135#include <sys/mman.h>
7136
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007137#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007138char *malloc ();
7139#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007140
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007141/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007142#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007143# ifdef _SC_PAGESIZE
7144# define getpagesize() sysconf(_SC_PAGESIZE)
7145# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007146# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007147# include <sys/param.h>
7148# ifdef EXEC_PAGESIZE
7149# define getpagesize() EXEC_PAGESIZE
7150# else /* no EXEC_PAGESIZE */
7151# ifdef NBPG
7152# define getpagesize() NBPG * CLSIZE
7153# ifndef CLSIZE
7154# define CLSIZE 1
7155# endif /* no CLSIZE */
7156# else /* no NBPG */
7157# ifdef NBPC
7158# define getpagesize() NBPC
7159# else /* no NBPC */
7160# ifdef PAGESIZE
7161# define getpagesize() PAGESIZE
7162# endif /* PAGESIZE */
7163# endif /* no NBPC */
7164# endif /* no NBPG */
7165# endif /* no EXEC_PAGESIZE */
7166# else /* no HAVE_SYS_PARAM_H */
7167# define getpagesize() 8192 /* punt totally */
7168# endif /* no HAVE_SYS_PARAM_H */
7169# endif /* no _SC_PAGESIZE */
7170
7171#endif /* no HAVE_GETPAGESIZE */
7172
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007173int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007174main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007175{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007176 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007177 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007178 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007179 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007180
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007181 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007182
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007183 /* First, make a file with some known garbage in it. */
7184 data = (char *) malloc (pagesize);
7185 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007186 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007187 for (i = 0; i < pagesize; ++i)
7188 *(data + i) = rand ();
7189 umask (0);
7190 fd = creat ("conftest.mmap", 0600);
7191 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007192 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007193 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007194 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007195 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007196
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007197 /* Next, check that the tail of a page is zero-filled. File must have
7198 non-zero length, otherwise we risk SIGBUS for entire page. */
7199 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7200 if (fd2 < 0)
7201 return 4;
7202 cdata2 = "";
7203 if (write (fd2, cdata2, 1) != 1)
7204 return 5;
7205 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7206 if (data2 == MAP_FAILED)
7207 return 6;
7208 for (i = 0; i < pagesize; ++i)
7209 if (*(data2 + i))
7210 return 7;
7211 close (fd2);
7212 if (munmap (data2, pagesize))
7213 return 8;
7214
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007215 /* Next, try to mmap the file at a fixed address which already has
7216 something else allocated at it. If we can, also make sure that
7217 we see the same garbage. */
7218 fd = open ("conftest.mmap", O_RDWR);
7219 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007220 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007221 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7222 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007223 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007224 for (i = 0; i < pagesize; ++i)
7225 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007226 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007227
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007228 /* Finally, make sure that changes to the mapped area do not
7229 percolate back to the file as seen by read(). (This is a bug on
7230 some variants of i386 svr4.0.) */
7231 for (i = 0; i < pagesize; ++i)
7232 *(data2 + i) = *(data2 + i) + 1;
7233 data3 = (char *) malloc (pagesize);
7234 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007235 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007236 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007237 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007238 for (i = 0; i < pagesize; ++i)
7239 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007240 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007241 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007242 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007243}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007244_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007245if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007246 ac_cv_func_mmap_fixed_mapped=yes
7247else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007248 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007249fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7251 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007252fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007253
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007254fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007256$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007257if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007258
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007259$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007260
7261fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007262rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007263
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007264
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007265
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007267$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007268if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007269 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007270else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007271
Theodore Ts'o93613952014-07-03 23:44:13 -04007272 gt_cv_int_divbyzero_sigfpe=
7273 case "$host_os" in
7274 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7275 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7276 # compiling. If we were to perform the real test, 1 Crash Report
7277 # dialog window would pop up.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007278 case "$host_cpu" in
Theodore Ts'o93613952014-07-03 23:44:13 -04007279 i[34567]86 | x86_64)
7280 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007281 esac
Theodore Ts'o93613952014-07-03 23:44:13 -04007282 ;;
7283 esac
7284 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7285 if test "$cross_compiling" = yes; then :
7286
7287 # Guess based on the CPU.
7288 case "$host_cpu" in
7289 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7290 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7291 *)
7292 gt_cv_int_divbyzero_sigfpe="guessing no";;
7293 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007294
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007295else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007297/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007298
7299#include <stdlib.h>
7300#include <signal.h>
7301
7302static void
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007303sigfpe_handler (int sig)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007304{
7305 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7306 exit (sig != SIGFPE);
7307}
7308
7309int x = 1;
7310int y = 0;
7311int z;
7312int nan;
7313
7314int main ()
7315{
7316 signal (SIGFPE, sigfpe_handler);
7317/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7318#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7319 signal (SIGTRAP, sigfpe_handler);
7320#endif
7321/* Linux/SPARC yields signal SIGILL. */
7322#if defined (__sparc__) && defined (__linux__)
7323 signal (SIGILL, sigfpe_handler);
7324#endif
7325
7326 z = x / y;
7327 nan = y / y;
Theodore Ts'o93613952014-07-03 23:44:13 -04007328 exit (2);
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007329}
7330
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007331_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007332if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007333 gt_cv_int_divbyzero_sigfpe=yes
7334else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007335 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007336fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7338 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007339fi
7340
Theodore Ts'o93613952014-07-03 23:44:13 -04007341 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007342
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007343fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007345$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007346 case "$gt_cv_int_divbyzero_sigfpe" in
7347 *yes) value=1;;
7348 *) value=0;;
7349 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007350
7351cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007352#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007353_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007354
7355
7356
Theodore Ts'o93613952014-07-03 23:44:13 -04007357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7358$as_echo_n "checking for inttypes.h... " >&6; }
7359if ${gl_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007360 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007361else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007363/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007364
7365#include <sys/types.h>
7366#include <inttypes.h>
7367
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007368int
7369main ()
7370{
Theodore Ts'o93613952014-07-03 23:44:13 -04007371uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007372 ;
7373 return 0;
7374}
7375_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04007376if ac_fn_c_try_compile "$LINENO"; then :
7377 gl_cv_header_inttypes_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007378else
Theodore Ts'o93613952014-07-03 23:44:13 -04007379 gl_cv_header_inttypes_h=no
7380fi
7381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382fi
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7384$as_echo "$gl_cv_header_inttypes_h" >&6; }
7385 if test $gl_cv_header_inttypes_h = yes; then
7386
7387cat >>confdefs.h <<_ACEOF
7388#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7389_ACEOF
7390
7391 fi
7392
7393
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7395$as_echo_n "checking for unsigned long long int... " >&6; }
7396if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7397 $as_echo_n "(cached) " >&6
7398else
7399 ac_cv_type_unsigned_long_long_int=yes
7400 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402/* end confdefs.h. */
7403
7404 /* For now, do not test the preprocessor; as of 2007 there are too many
7405 implementations with broken preprocessors. Perhaps this can
7406 be revisited in 2012. In the meantime, code should not expect
7407 #if to work with literals wider than 32 bits. */
7408 /* Test literals. */
7409 long long int ll = 9223372036854775807ll;
7410 long long int nll = -9223372036854775807LL;
7411 unsigned long long int ull = 18446744073709551615ULL;
7412 /* Test constant expressions. */
7413 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7414 ? 1 : -1)];
7415 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7416 ? 1 : -1)];
7417 int i = 63;
7418int
7419main ()
7420{
7421/* Test availability of runtime routines for shift and division. */
7422 long long int llmax = 9223372036854775807ll;
7423 unsigned long long int ullmax = 18446744073709551615ull;
7424 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7425 | (llmax / ll) | (llmax % ll)
7426 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7427 | (ullmax / ull) | (ullmax % ull));
7428 ;
7429 return 0;
7430}
7431
7432_ACEOF
7433if ac_fn_c_try_link "$LINENO"; then :
7434
7435else
7436 ac_cv_type_unsigned_long_long_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007437fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007438rm -f core conftest.err conftest.$ac_objext \
7439 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -04007440 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007441fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7443$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7444 if test $ac_cv_type_unsigned_long_long_int = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007445
Theodore Ts'o93613952014-07-03 23:44:13 -04007446$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007447
7448 fi
7449
7450
7451
7452
Theodore Ts'o93613952014-07-03 23:44:13 -04007453 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007454
Theodore Ts'o93613952014-07-03 23:44:13 -04007455 test $ac_cv_type_unsigned_long_long_int = yes \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007456 && ac_type='unsigned long long' \
7457 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007458
7459cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007460#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007461_ACEOF
7462
7463 else
7464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007465$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007466
7467 fi
7468
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007469
Theodore Ts'o93613952014-07-03 23:44:13 -04007470 for ac_header in inttypes.h
7471do :
7472 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7473if test "x$ac_cv_header_inttypes_h" = xyes; then :
7474 cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007475#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007476_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007477
Theodore Ts'o93613952014-07-03 23:44:13 -04007478fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007479
Theodore Ts'o93613952014-07-03 23:44:13 -04007480done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007481
Theodore Ts'o93613952014-07-03 23:44:13 -04007482 if test $ac_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007483 { $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 +01007484$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007485if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007486 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007487else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007488
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007490/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007491
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007492#include <inttypes.h>
7493#ifdef PRId32
7494char *p = PRId32;
7495#endif
7496
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007497int
7498main ()
7499{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007500
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007501 ;
7502 return 0;
7503}
7504_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007505if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007506 gt_cv_inttypes_pri_broken=no
7507else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007508 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007509fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007511
7512fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007514$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007515 fi
7516 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007517
7518cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007519#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007520_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007521
Theodore Ts'o93613952014-07-03 23:44:13 -04007522 PRI_MACROS_BROKEN=1
7523 else
7524 PRI_MACROS_BROKEN=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007525 fi
7526
7527
7528
Theodore Ts'o93613952014-07-03 23:44:13 -04007529
7530
7531
7532
7533 # Check whether --enable-threads was given.
7534if test "${enable_threads+set}" = set; then :
7535 enableval=$enable_threads; gl_use_threads=$enableval
7536else
7537 if test -n "$gl_use_threads_default"; then
7538 gl_use_threads="$gl_use_threads_default"
7539 else
7540 case "$host_os" in
7541 osf*) gl_use_threads=no ;;
7542 cygwin*)
7543 case `uname -r` in
7544 1.[0-5].*) gl_use_threads=no ;;
7545 *) gl_use_threads=yes ;;
7546 esac
7547 ;;
7548 *) gl_use_threads=yes ;;
7549 esac
7550 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007551
7552fi
7553
Theodore Ts'o93613952014-07-03 23:44:13 -04007554 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7555 # For using <pthread.h>:
7556 case "$host_os" in
7557 osf*)
7558 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7559 # groks <pthread.h>. cc also understands the flag -pthread, but
7560 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7561 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7562 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7563 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7564 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7565 ;;
7566 esac
7567 # Some systems optimize for single-threaded programs by default, and
7568 # need special flags to disable these optimizations. For example, the
7569 # definition of 'errno' in <errno.h>.
7570 case "$host_os" in
7571 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7572 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7573 esac
7574 fi
7575
7576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007577
7578
7579
7580 if test "X$prefix" = "XNONE"; then
7581 acl_final_prefix="$ac_default_prefix"
7582 else
7583 acl_final_prefix="$prefix"
7584 fi
7585 if test "X$exec_prefix" = "XNONE"; then
7586 acl_final_exec_prefix='${prefix}'
7587 else
7588 acl_final_exec_prefix="$exec_prefix"
7589 fi
7590 acl_save_prefix="$prefix"
7591 prefix="$acl_final_prefix"
7592 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7593 prefix="$acl_save_prefix"
7594
7595
Theodore Ts'o93613952014-07-03 23:44:13 -04007596
Theodore Ts'oe1052142006-10-21 21:46:47 -04007597# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007598if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007599 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007600else
7601 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007602fi
7603
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007604# Prepare PATH_SEPARATOR.
7605# The user is always right.
7606if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007607 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7608 # contains only /bin. Note that ksh looks also at the FPATH variable,
7609 # so we have to set that as well for the test.
7610 PATH_SEPARATOR=:
7611 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7612 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7613 || PATH_SEPARATOR=';'
7614 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007615fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007616
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007617ac_prog=ld
7618if test "$GCC" = yes; then
7619 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o93613952014-07-03 23:44:13 -04007620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7621$as_echo_n "checking for ld used by $CC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007622 case $host in
7623 *-*-mingw*)
7624 # gcc leaves a trailing carriage return which upsets mingw
7625 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7626 *)
7627 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7628 esac
7629 case $ac_prog in
7630 # Accept absolute paths.
Theodore Ts'o93613952014-07-03 23:44:13 -04007631 [\\/]* | ?:[\\/]*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007632 re_direlt='/[^/][^/]*/\.\./'
Theodore Ts'o93613952014-07-03 23:44:13 -04007633 # Canonicalize the pathname of ld
7634 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7635 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7636 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007637 done
7638 test -z "$LD" && LD="$ac_prog"
7639 ;;
7640 "")
7641 # If it fails, then pretend we aren't using GCC.
7642 ac_prog=ld
7643 ;;
7644 *)
7645 # If it is relative, then search for the first ld in PATH.
7646 with_gnu_ld=unknown
7647 ;;
7648 esac
7649elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007651$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007652else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007654$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007655fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007656if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007657 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007658else
7659 if test -z "$LD"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007660 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007661 for ac_dir in $PATH; do
Theodore Ts'o93613952014-07-03 23:44:13 -04007662 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007663 test -z "$ac_dir" && ac_dir=.
7664 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7665 acl_cv_path_LD="$ac_dir/$ac_prog"
7666 # Check to see if the program is GNU ld. I'd rather use --version,
Theodore Ts'o93613952014-07-03 23:44:13 -04007667 # but apparently some variants of GNU ld only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007668 # Break only if it was the GNU/non-GNU ld that we prefer.
Theodore Ts'o93613952014-07-03 23:44:13 -04007669 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007670 *GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007671 test "$with_gnu_ld" != no && break
7672 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007673 *)
Theodore Ts'o93613952014-07-03 23:44:13 -04007674 test "$with_gnu_ld" != yes && break
7675 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007676 esac
7677 fi
7678 done
Theodore Ts'o93613952014-07-03 23:44:13 -04007679 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007680else
7681 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7682fi
7683fi
7684
7685LD="$acl_cv_path_LD"
7686if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007688$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007689else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007691$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007692fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007693test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007695$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007696if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007697 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007698else
Theodore Ts'o93613952014-07-03 23:44:13 -04007699 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007700case `$LD -v 2>&1 </dev/null` in
7701*GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007702 acl_cv_prog_gnu_ld=yes
7703 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007704*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007705 acl_cv_prog_gnu_ld=no
7706 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007707esac
7708fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007710$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007711with_gnu_ld=$acl_cv_prog_gnu_ld
7712
7713
7714
Theodore Ts'o93613952014-07-03 23:44:13 -04007715
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007717$as_echo_n "checking for shared library run path origin... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007718if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007719 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007720else
7721
7722 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7723 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7724 . ./conftest.sh
7725 rm -f ./conftest.sh
7726 acl_cv_rpath=done
7727
7728fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007730$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007731 wl="$acl_cv_wl"
Theodore Ts'o93613952014-07-03 23:44:13 -04007732 acl_libext="$acl_cv_libext"
7733 acl_shlibext="$acl_cv_shlibext"
7734 acl_libname_spec="$acl_cv_libname_spec"
7735 acl_library_names_spec="$acl_cv_library_names_spec"
7736 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7737 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7738 acl_hardcode_direct="$acl_cv_hardcode_direct"
7739 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007740 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007741if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007742 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007743else
7744 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007745fi
7746
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007747
7748
7749
Theodore Ts'o93613952014-07-03 23:44:13 -04007750 acl_libdirstem=lib
7751 acl_libdirstem2=
7752 case "$host_os" in
7753 solaris*)
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7755$as_echo_n "checking for 64-bit host... " >&6; }
7756if ${gl_cv_solaris_64bit+:} false; then :
7757 $as_echo_n "(cached) " >&6
7758else
7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760/* end confdefs.h. */
7761
7762#ifdef _LP64
7763sixtyfour bits
7764#endif
7765
7766_ACEOF
7767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7768 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7769 gl_cv_solaris_64bit=yes
7770else
7771 gl_cv_solaris_64bit=no
7772fi
7773rm -f conftest*
7774
7775
7776fi
7777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7778$as_echo "$gl_cv_solaris_64bit" >&6; }
7779 if test $gl_cv_solaris_64bit = yes; then
7780 acl_libdirstem=lib/64
7781 case "$host_cpu" in
7782 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7783 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7784 esac
7785 fi
7786 ;;
7787 *)
7788 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7789 if test -n "$searchpath"; then
7790 acl_save_IFS="${IFS= }"; IFS=":"
7791 for searchdir in $searchpath; do
7792 if test -d "$searchdir"; then
7793 case "$searchdir" in
7794 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7795 */../ | */.. )
7796 # Better ignore directories of this form. They are misleading.
7797 ;;
7798 *) searchdir=`cd "$searchdir" && pwd`
7799 case "$searchdir" in
7800 */lib64 ) acl_libdirstem=lib64 ;;
7801 esac ;;
7802 esac
7803 fi
7804 done
7805 IFS="$acl_save_IFS"
7806 fi
7807 ;;
7808 esac
7809 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7810
7811
7812
7813 gl_threads_api=none
7814 LIBTHREAD=
7815 LTLIBTHREAD=
7816 LIBMULTITHREAD=
7817 LTLIBMULTITHREAD=
7818 if test "$gl_use_threads" != no; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7820$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7821if ${gl_cv_have_weak+:} false; then :
7822 $as_echo_n "(cached) " >&6
7823else
7824 gl_cv_have_weak=no
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826/* end confdefs.h. */
7827extern void xyzzy ();
7828#pragma weak xyzzy
7829int
7830main ()
7831{
7832xyzzy();
7833 ;
7834 return 0;
7835}
7836_ACEOF
7837if ac_fn_c_try_link "$LINENO"; then :
7838 gl_cv_have_weak=maybe
7839fi
7840rm -f core conftest.err conftest.$ac_objext \
7841 conftest$ac_exeext conftest.$ac_ext
7842 if test $gl_cv_have_weak = maybe; then
7843 if test "$cross_compiling" = yes; then :
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845/* end confdefs.h. */
7846#ifdef __ELF__
7847 Extensible Linking Format
7848 #endif
7849
7850_ACEOF
7851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7852 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7853 gl_cv_have_weak="guessing yes"
7854else
7855 gl_cv_have_weak="guessing no"
7856fi
7857rm -f conftest*
7858
7859
7860else
7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862/* end confdefs.h. */
7863
7864#include <stdio.h>
7865#pragma weak fputs
7866int main ()
7867{
7868 return (fputs == NULL);
7869}
7870_ACEOF
7871if ac_fn_c_try_run "$LINENO"; then :
7872 gl_cv_have_weak=yes
7873else
7874 gl_cv_have_weak=no
7875fi
7876rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7877 conftest.$ac_objext conftest.beam conftest.$ac_ext
7878fi
7879
7880 fi
7881
7882fi
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7884$as_echo "$gl_cv_have_weak" >&6; }
7885 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7886 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7887 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7888 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7889if test "x$ac_cv_header_pthread_h" = xyes; then :
7890 gl_have_pthread_h=yes
7891else
7892 gl_have_pthread_h=no
7893fi
7894
7895
7896 if test "$gl_have_pthread_h" = yes; then
7897 # Other possible tests:
7898 # -lpthreads (FSU threads, PCthreads)
7899 # -lgthreads
7900 gl_have_pthread=
7901 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7902 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7903 # the second one only in libpthread, and lock.c needs it.
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h. */
7906#include <pthread.h>
7907int
7908main ()
7909{
7910pthread_mutex_lock((pthread_mutex_t*)0);
7911 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7912 ;
7913 return 0;
7914}
7915_ACEOF
7916if ac_fn_c_try_link "$LINENO"; then :
7917 gl_have_pthread=yes
7918fi
7919rm -f core conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
7921 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7922 # since it is defined as a macro on OSF/1.)
7923 if test -n "$gl_have_pthread"; then
7924 # The program links fine without libpthread. But it may actually
7925 # need to link with libpthread in order to create multiple threads.
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7927$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7928if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7929 $as_echo_n "(cached) " >&6
7930else
7931 ac_check_lib_save_LIBS=$LIBS
7932LIBS="-lpthread $LIBS"
7933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934/* end confdefs.h. */
7935
7936/* Override any GCC internal prototype to avoid an error.
7937 Use char because int might match the return type of a GCC
7938 builtin and then its argument prototype would still apply. */
7939#ifdef __cplusplus
7940extern "C"
7941#endif
7942char pthread_kill ();
7943int
7944main ()
7945{
7946return pthread_kill ();
7947 ;
7948 return 0;
7949}
7950_ACEOF
7951if ac_fn_c_try_link "$LINENO"; then :
7952 ac_cv_lib_pthread_pthread_kill=yes
7953else
7954 ac_cv_lib_pthread_pthread_kill=no
7955fi
7956rm -f core conftest.err conftest.$ac_objext \
7957 conftest$ac_exeext conftest.$ac_ext
7958LIBS=$ac_check_lib_save_LIBS
7959fi
7960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7961$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7962if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7963 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7964 # On Solaris and HP-UX, most pthread functions exist also in libc.
7965 # Therefore pthread_in_use() needs to actually try to create a
7966 # thread: pthread_create from libc will fail, whereas
7967 # pthread_create will actually create a thread.
7968 case "$host_os" in
7969 solaris* | hpux*)
7970
7971$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7972
7973 esac
7974
7975fi
7976
7977 else
7978 # Some library is needed. Try libpthread and libc_r.
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7980$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7981if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983else
7984 ac_check_lib_save_LIBS=$LIBS
7985LIBS="-lpthread $LIBS"
7986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987/* end confdefs.h. */
7988
7989/* Override any GCC internal prototype to avoid an error.
7990 Use char because int might match the return type of a GCC
7991 builtin and then its argument prototype would still apply. */
7992#ifdef __cplusplus
7993extern "C"
7994#endif
7995char pthread_kill ();
7996int
7997main ()
7998{
7999return pthread_kill ();
8000 ;
8001 return 0;
8002}
8003_ACEOF
8004if ac_fn_c_try_link "$LINENO"; then :
8005 ac_cv_lib_pthread_pthread_kill=yes
8006else
8007 ac_cv_lib_pthread_pthread_kill=no
8008fi
8009rm -f core conftest.err conftest.$ac_objext \
8010 conftest$ac_exeext conftest.$ac_ext
8011LIBS=$ac_check_lib_save_LIBS
8012fi
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8014$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8015if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8016 gl_have_pthread=yes
8017 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8018 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8019fi
8020
8021 if test -z "$gl_have_pthread"; then
8022 # For FreeBSD 4.
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8024$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8025if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8026 $as_echo_n "(cached) " >&6
8027else
8028 ac_check_lib_save_LIBS=$LIBS
8029LIBS="-lc_r $LIBS"
8030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031/* end confdefs.h. */
8032
8033/* Override any GCC internal prototype to avoid an error.
8034 Use char because int might match the return type of a GCC
8035 builtin and then its argument prototype would still apply. */
8036#ifdef __cplusplus
8037extern "C"
8038#endif
8039char pthread_kill ();
8040int
8041main ()
8042{
8043return pthread_kill ();
8044 ;
8045 return 0;
8046}
8047_ACEOF
8048if ac_fn_c_try_link "$LINENO"; then :
8049 ac_cv_lib_c_r_pthread_kill=yes
8050else
8051 ac_cv_lib_c_r_pthread_kill=no
8052fi
8053rm -f core conftest.err conftest.$ac_objext \
8054 conftest$ac_exeext conftest.$ac_ext
8055LIBS=$ac_check_lib_save_LIBS
8056fi
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8058$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8059if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8060 gl_have_pthread=yes
8061 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8062 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8063fi
8064
8065 fi
8066 fi
8067 if test -n "$gl_have_pthread"; then
8068 gl_threads_api=posix
8069
8070$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8071
8072 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8073 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8074
8075$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8076
8077 LIBTHREAD=
8078 LTLIBTHREAD=
8079 fi
8080 fi
8081 fi
8082 fi
8083 fi
8084 if test -z "$gl_have_pthread"; then
8085 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8086 gl_have_solaristhread=
8087 gl_save_LIBS="$LIBS"
8088 LIBS="$LIBS -lthread"
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090/* end confdefs.h. */
8091
8092#include <thread.h>
8093#include <synch.h>
8094
8095int
8096main ()
8097{
8098thr_self();
8099 ;
8100 return 0;
8101}
8102_ACEOF
8103if ac_fn_c_try_link "$LINENO"; then :
8104 gl_have_solaristhread=yes
8105fi
8106rm -f core conftest.err conftest.$ac_objext \
8107 conftest$ac_exeext conftest.$ac_ext
8108 LIBS="$gl_save_LIBS"
8109 if test -n "$gl_have_solaristhread"; then
8110 gl_threads_api=solaris
8111 LIBTHREAD=-lthread
8112 LTLIBTHREAD=-lthread
8113 LIBMULTITHREAD="$LIBTHREAD"
8114 LTLIBMULTITHREAD="$LTLIBTHREAD"
8115
8116$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8117
8118 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8119
8120$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8121
8122 LIBTHREAD=
8123 LTLIBTHREAD=
8124 fi
8125 fi
8126 fi
8127 fi
8128 if test "$gl_use_threads" = pth; then
8129 gl_save_CPPFLAGS="$CPPFLAGS"
8130
8131
8132
8133
8134
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8136$as_echo_n "checking how to link with libpth... " >&6; }
8137if ${ac_cv_libpth_libs+:} false; then :
8138 $as_echo_n "(cached) " >&6
8139else
8140
8141
8142
8143
8144
8145
8146
8147
8148 use_additional=yes
8149
8150 acl_save_prefix="$prefix"
8151 prefix="$acl_final_prefix"
8152 acl_save_exec_prefix="$exec_prefix"
8153 exec_prefix="$acl_final_exec_prefix"
8154
8155 eval additional_includedir=\"$includedir\"
8156 eval additional_libdir=\"$libdir\"
8157
8158 exec_prefix="$acl_save_exec_prefix"
8159 prefix="$acl_save_prefix"
8160
8161
8162# Check whether --with-libpth-prefix was given.
8163if test "${with_libpth_prefix+set}" = set; then :
8164 withval=$with_libpth_prefix;
8165 if test "X$withval" = "Xno"; then
8166 use_additional=no
8167 else
8168 if test "X$withval" = "X"; then
8169
8170 acl_save_prefix="$prefix"
8171 prefix="$acl_final_prefix"
8172 acl_save_exec_prefix="$exec_prefix"
8173 exec_prefix="$acl_final_exec_prefix"
8174
8175 eval additional_includedir=\"$includedir\"
8176 eval additional_libdir=\"$libdir\"
8177
8178 exec_prefix="$acl_save_exec_prefix"
8179 prefix="$acl_save_prefix"
8180
8181 else
8182 additional_includedir="$withval/include"
8183 additional_libdir="$withval/$acl_libdirstem"
8184 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8185 && ! test -d "$withval/$acl_libdirstem"; then
8186 additional_libdir="$withval/$acl_libdirstem2"
8187 fi
8188 fi
8189 fi
8190
8191fi
8192
8193 LIBPTH=
8194 LTLIBPTH=
8195 INCPTH=
8196 LIBPTH_PREFIX=
8197 HAVE_LIBPTH=
8198 rpathdirs=
8199 ltrpathdirs=
8200 names_already_handled=
8201 names_next_round='pth '
8202 while test -n "$names_next_round"; do
8203 names_this_round="$names_next_round"
8204 names_next_round=
8205 for name in $names_this_round; do
8206 already_handled=
8207 for n in $names_already_handled; do
8208 if test "$n" = "$name"; then
8209 already_handled=yes
8210 break
8211 fi
8212 done
8213 if test -z "$already_handled"; then
8214 names_already_handled="$names_already_handled $name"
8215 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8216 eval value=\"\$HAVE_LIB$uppername\"
8217 if test -n "$value"; then
8218 if test "$value" = yes; then
8219 eval value=\"\$LIB$uppername\"
8220 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8221 eval value=\"\$LTLIB$uppername\"
8222 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8223 else
8224 :
8225 fi
8226 else
8227 found_dir=
8228 found_la=
8229 found_so=
8230 found_a=
8231 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8232 if test -n "$acl_shlibext"; then
8233 shrext=".$acl_shlibext" # typically: shrext=.so
8234 else
8235 shrext=
8236 fi
8237 if test $use_additional = yes; then
8238 dir="$additional_libdir"
8239 if test -n "$acl_shlibext"; then
8240 if test -f "$dir/$libname$shrext"; then
8241 found_dir="$dir"
8242 found_so="$dir/$libname$shrext"
8243 else
8244 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8245 ver=`(cd "$dir" && \
8246 for f in "$libname$shrext".*; do echo "$f"; done \
8247 | sed -e "s,^$libname$shrext\\\\.,," \
8248 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8249 | sed 1q ) 2>/dev/null`
8250 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8251 found_dir="$dir"
8252 found_so="$dir/$libname$shrext.$ver"
8253 fi
8254 else
8255 eval library_names=\"$acl_library_names_spec\"
8256 for f in $library_names; do
8257 if test -f "$dir/$f"; then
8258 found_dir="$dir"
8259 found_so="$dir/$f"
8260 break
8261 fi
8262 done
8263 fi
8264 fi
8265 fi
8266 if test "X$found_dir" = "X"; then
8267 if test -f "$dir/$libname.$acl_libext"; then
8268 found_dir="$dir"
8269 found_a="$dir/$libname.$acl_libext"
8270 fi
8271 fi
8272 if test "X$found_dir" != "X"; then
8273 if test -f "$dir/$libname.la"; then
8274 found_la="$dir/$libname.la"
8275 fi
8276 fi
8277 fi
8278 if test "X$found_dir" = "X"; then
8279 for x in $LDFLAGS $LTLIBPTH; do
8280
8281 acl_save_prefix="$prefix"
8282 prefix="$acl_final_prefix"
8283 acl_save_exec_prefix="$exec_prefix"
8284 exec_prefix="$acl_final_exec_prefix"
8285 eval x=\"$x\"
8286 exec_prefix="$acl_save_exec_prefix"
8287 prefix="$acl_save_prefix"
8288
8289 case "$x" in
8290 -L*)
8291 dir=`echo "X$x" | sed -e 's/^X-L//'`
8292 if test -n "$acl_shlibext"; then
8293 if test -f "$dir/$libname$shrext"; then
8294 found_dir="$dir"
8295 found_so="$dir/$libname$shrext"
8296 else
8297 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8298 ver=`(cd "$dir" && \
8299 for f in "$libname$shrext".*; do echo "$f"; done \
8300 | sed -e "s,^$libname$shrext\\\\.,," \
8301 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8302 | sed 1q ) 2>/dev/null`
8303 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8304 found_dir="$dir"
8305 found_so="$dir/$libname$shrext.$ver"
8306 fi
8307 else
8308 eval library_names=\"$acl_library_names_spec\"
8309 for f in $library_names; do
8310 if test -f "$dir/$f"; then
8311 found_dir="$dir"
8312 found_so="$dir/$f"
8313 break
8314 fi
8315 done
8316 fi
8317 fi
8318 fi
8319 if test "X$found_dir" = "X"; then
8320 if test -f "$dir/$libname.$acl_libext"; then
8321 found_dir="$dir"
8322 found_a="$dir/$libname.$acl_libext"
8323 fi
8324 fi
8325 if test "X$found_dir" != "X"; then
8326 if test -f "$dir/$libname.la"; then
8327 found_la="$dir/$libname.la"
8328 fi
8329 fi
8330 ;;
8331 esac
8332 if test "X$found_dir" != "X"; then
8333 break
8334 fi
8335 done
8336 fi
8337 if test "X$found_dir" != "X"; then
8338 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8339 if test "X$found_so" != "X"; then
8340 if test "$enable_rpath" = no \
8341 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8342 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8343 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8344 else
8345 haveit=
8346 for x in $ltrpathdirs; do
8347 if test "X$x" = "X$found_dir"; then
8348 haveit=yes
8349 break
8350 fi
8351 done
8352 if test -z "$haveit"; then
8353 ltrpathdirs="$ltrpathdirs $found_dir"
8354 fi
8355 if test "$acl_hardcode_direct" = yes; then
8356 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8357 else
8358 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8359 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8360 haveit=
8361 for x in $rpathdirs; do
8362 if test "X$x" = "X$found_dir"; then
8363 haveit=yes
8364 break
8365 fi
8366 done
8367 if test -z "$haveit"; then
8368 rpathdirs="$rpathdirs $found_dir"
8369 fi
8370 else
8371 haveit=
8372 for x in $LDFLAGS $LIBPTH; do
8373
8374 acl_save_prefix="$prefix"
8375 prefix="$acl_final_prefix"
8376 acl_save_exec_prefix="$exec_prefix"
8377 exec_prefix="$acl_final_exec_prefix"
8378 eval x=\"$x\"
8379 exec_prefix="$acl_save_exec_prefix"
8380 prefix="$acl_save_prefix"
8381
8382 if test "X$x" = "X-L$found_dir"; then
8383 haveit=yes
8384 break
8385 fi
8386 done
8387 if test -z "$haveit"; then
8388 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8389 fi
8390 if test "$acl_hardcode_minus_L" != no; then
8391 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8392 else
8393 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8394 fi
8395 fi
8396 fi
8397 fi
8398 else
8399 if test "X$found_a" != "X"; then
8400 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8401 else
8402 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8403 fi
8404 fi
8405 additional_includedir=
8406 case "$found_dir" in
8407 */$acl_libdirstem | */$acl_libdirstem/)
8408 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8409 if test "$name" = 'pth'; then
8410 LIBPTH_PREFIX="$basedir"
8411 fi
8412 additional_includedir="$basedir/include"
8413 ;;
8414 */$acl_libdirstem2 | */$acl_libdirstem2/)
8415 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8416 if test "$name" = 'pth'; then
8417 LIBPTH_PREFIX="$basedir"
8418 fi
8419 additional_includedir="$basedir/include"
8420 ;;
8421 esac
8422 if test "X$additional_includedir" != "X"; then
8423 if test "X$additional_includedir" != "X/usr/include"; then
8424 haveit=
8425 if test "X$additional_includedir" = "X/usr/local/include"; then
8426 if test -n "$GCC"; then
8427 case $host_os in
8428 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8429 esac
8430 fi
8431 fi
8432 if test -z "$haveit"; then
8433 for x in $CPPFLAGS $INCPTH; do
8434
8435 acl_save_prefix="$prefix"
8436 prefix="$acl_final_prefix"
8437 acl_save_exec_prefix="$exec_prefix"
8438 exec_prefix="$acl_final_exec_prefix"
8439 eval x=\"$x\"
8440 exec_prefix="$acl_save_exec_prefix"
8441 prefix="$acl_save_prefix"
8442
8443 if test "X$x" = "X-I$additional_includedir"; then
8444 haveit=yes
8445 break
8446 fi
8447 done
8448 if test -z "$haveit"; then
8449 if test -d "$additional_includedir"; then
8450 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8451 fi
8452 fi
8453 fi
8454 fi
8455 fi
8456 if test -n "$found_la"; then
8457 save_libdir="$libdir"
8458 case "$found_la" in
8459 */* | *\\*) . "$found_la" ;;
8460 *) . "./$found_la" ;;
8461 esac
8462 libdir="$save_libdir"
8463 for dep in $dependency_libs; do
8464 case "$dep" in
8465 -L*)
8466 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8467 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8468 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8469 haveit=
8470 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8471 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8472 if test -n "$GCC"; then
8473 case $host_os in
8474 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8475 esac
8476 fi
8477 fi
8478 if test -z "$haveit"; then
8479 haveit=
8480 for x in $LDFLAGS $LIBPTH; do
8481
8482 acl_save_prefix="$prefix"
8483 prefix="$acl_final_prefix"
8484 acl_save_exec_prefix="$exec_prefix"
8485 exec_prefix="$acl_final_exec_prefix"
8486 eval x=\"$x\"
8487 exec_prefix="$acl_save_exec_prefix"
8488 prefix="$acl_save_prefix"
8489
8490 if test "X$x" = "X-L$additional_libdir"; then
8491 haveit=yes
8492 break
8493 fi
8494 done
8495 if test -z "$haveit"; then
8496 if test -d "$additional_libdir"; then
8497 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8498 fi
8499 fi
8500 haveit=
8501 for x in $LDFLAGS $LTLIBPTH; do
8502
8503 acl_save_prefix="$prefix"
8504 prefix="$acl_final_prefix"
8505 acl_save_exec_prefix="$exec_prefix"
8506 exec_prefix="$acl_final_exec_prefix"
8507 eval x=\"$x\"
8508 exec_prefix="$acl_save_exec_prefix"
8509 prefix="$acl_save_prefix"
8510
8511 if test "X$x" = "X-L$additional_libdir"; then
8512 haveit=yes
8513 break
8514 fi
8515 done
8516 if test -z "$haveit"; then
8517 if test -d "$additional_libdir"; then
8518 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8519 fi
8520 fi
8521 fi
8522 fi
8523 ;;
8524 -R*)
8525 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8526 if test "$enable_rpath" != no; then
8527 haveit=
8528 for x in $rpathdirs; do
8529 if test "X$x" = "X$dir"; then
8530 haveit=yes
8531 break
8532 fi
8533 done
8534 if test -z "$haveit"; then
8535 rpathdirs="$rpathdirs $dir"
8536 fi
8537 haveit=
8538 for x in $ltrpathdirs; do
8539 if test "X$x" = "X$dir"; then
8540 haveit=yes
8541 break
8542 fi
8543 done
8544 if test -z "$haveit"; then
8545 ltrpathdirs="$ltrpathdirs $dir"
8546 fi
8547 fi
8548 ;;
8549 -l*)
8550 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8551 ;;
8552 *.la)
8553 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8554 ;;
8555 *)
8556 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8557 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8558 ;;
8559 esac
8560 done
8561 fi
8562 else
8563 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8564 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8565 fi
8566 fi
8567 fi
8568 done
8569 done
8570 if test "X$rpathdirs" != "X"; then
8571 if test -n "$acl_hardcode_libdir_separator"; then
8572 alldirs=
8573 for found_dir in $rpathdirs; do
8574 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8575 done
8576 acl_save_libdir="$libdir"
8577 libdir="$alldirs"
8578 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8579 libdir="$acl_save_libdir"
8580 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8581 else
8582 for found_dir in $rpathdirs; do
8583 acl_save_libdir="$libdir"
8584 libdir="$found_dir"
8585 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8586 libdir="$acl_save_libdir"
8587 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8588 done
8589 fi
8590 fi
8591 if test "X$ltrpathdirs" != "X"; then
8592 for found_dir in $ltrpathdirs; do
8593 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8594 done
8595 fi
8596
8597
8598
8599
8600
8601
8602 ac_cv_libpth_libs="$LIBPTH"
8603 ac_cv_libpth_ltlibs="$LTLIBPTH"
8604 ac_cv_libpth_cppflags="$INCPTH"
8605 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8606
8607fi
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8609$as_echo "$ac_cv_libpth_libs" >&6; }
8610 LIBPTH="$ac_cv_libpth_libs"
8611 LTLIBPTH="$ac_cv_libpth_ltlibs"
8612 INCPTH="$ac_cv_libpth_cppflags"
8613 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8614
8615 for element in $INCPTH; do
8616 haveit=
8617 for x in $CPPFLAGS; do
8618
8619 acl_save_prefix="$prefix"
8620 prefix="$acl_final_prefix"
8621 acl_save_exec_prefix="$exec_prefix"
8622 exec_prefix="$acl_final_exec_prefix"
8623 eval x=\"$x\"
8624 exec_prefix="$acl_save_exec_prefix"
8625 prefix="$acl_save_prefix"
8626
8627 if test "X$x" = "X$element"; then
8628 haveit=yes
8629 break
8630 fi
8631 done
8632 if test -z "$haveit"; then
8633 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8634 fi
8635 done
8636
8637
8638
8639
8640 HAVE_LIBPTH=yes
8641
8642
8643
8644 gl_have_pth=
8645 gl_save_LIBS="$LIBS"
8646 LIBS="$LIBS $LIBPTH"
8647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648/* end confdefs.h. */
8649#include <pth.h>
8650int
8651main ()
8652{
8653pth_self();
8654 ;
8655 return 0;
8656}
8657_ACEOF
8658if ac_fn_c_try_link "$LINENO"; then :
8659 gl_have_pth=yes
8660fi
8661rm -f core conftest.err conftest.$ac_objext \
8662 conftest$ac_exeext conftest.$ac_ext
8663 LIBS="$gl_save_LIBS"
8664 if test -n "$gl_have_pth"; then
8665 gl_threads_api=pth
8666 LIBTHREAD="$LIBPTH"
8667 LTLIBTHREAD="$LTLIBPTH"
8668 LIBMULTITHREAD="$LIBTHREAD"
8669 LTLIBMULTITHREAD="$LTLIBTHREAD"
8670
8671$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8672
8673 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8674 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8675
8676$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8677
8678 LIBTHREAD=
8679 LTLIBTHREAD=
8680 fi
8681 fi
8682 else
8683 CPPFLAGS="$gl_save_CPPFLAGS"
8684 fi
8685 fi
8686 if test -z "$gl_have_pthread"; then
8687 case "$gl_use_threads" in
8688 yes | windows | win32) # The 'win32' is for backward compatibility.
8689 if { case "$host_os" in
8690 mingw*) true;;
8691 *) false;;
8692 esac
8693 }; then
8694 gl_threads_api=windows
8695
8696$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8697
8698 fi
8699 ;;
8700 esac
8701 fi
8702 fi
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8704$as_echo_n "checking for multithread API to use... " >&6; }
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8706$as_echo "$gl_threads_api" >&6; }
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718 if test "$gl_threads_api" = posix; then
8719 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8720 # pthread_rwlock_* functions.
8721 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8722"
8723if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8724
8725$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8726
8727fi
8728
8729 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731/* end confdefs.h. */
8732
8733 #include <pthread.h>
8734int
8735main ()
8736{
8737
8738#if __FreeBSD__ == 4
8739error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8740#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8741 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8742error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8743#else
8744int x = (int)PTHREAD_MUTEX_RECURSIVE;
8745return !x;
8746#endif
8747
8748 ;
8749 return 0;
8750}
8751_ACEOF
8752if ac_fn_c_try_compile "$LINENO"; then :
8753
8754$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8755
8756fi
8757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758 fi
8759 :
8760
8761
8762
8763
8764
8765
8766
8767
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008768
8769
8770
8771
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008772 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008773
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008774 acl_save_prefix="$prefix"
8775 prefix="$acl_final_prefix"
8776 acl_save_exec_prefix="$exec_prefix"
8777 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008778
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008779 eval additional_includedir=\"$includedir\"
8780 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008781
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008782 exec_prefix="$acl_save_exec_prefix"
8783 prefix="$acl_save_prefix"
8784
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008785
Theodore Ts'oe1052142006-10-21 21:46:47 -04008786# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008787if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008788 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008789 if test "X$withval" = "Xno"; then
8790 use_additional=no
8791 else
8792 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008793
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008794 acl_save_prefix="$prefix"
8795 prefix="$acl_final_prefix"
8796 acl_save_exec_prefix="$exec_prefix"
8797 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008798
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008799 eval additional_includedir=\"$includedir\"
8800 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008801
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008802 exec_prefix="$acl_save_exec_prefix"
8803 prefix="$acl_save_prefix"
8804
8805 else
8806 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -04008807 additional_libdir="$withval/$acl_libdirstem"
8808 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8809 && ! test -d "$withval/$acl_libdirstem"; then
8810 additional_libdir="$withval/$acl_libdirstem2"
8811 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008812 fi
8813 fi
8814
Theodore Ts'oe1052142006-10-21 21:46:47 -04008815fi
8816
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008817 LIBICONV=
8818 LTLIBICONV=
8819 INCICONV=
Theodore Ts'o93613952014-07-03 23:44:13 -04008820 LIBICONV_PREFIX=
8821 HAVE_LIBICONV=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008822 rpathdirs=
8823 ltrpathdirs=
8824 names_already_handled=
8825 names_next_round='iconv '
8826 while test -n "$names_next_round"; do
8827 names_this_round="$names_next_round"
8828 names_next_round=
8829 for name in $names_this_round; do
8830 already_handled=
8831 for n in $names_already_handled; do
8832 if test "$n" = "$name"; then
8833 already_handled=yes
8834 break
8835 fi
8836 done
8837 if test -z "$already_handled"; then
8838 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -04008839 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008840 eval value=\"\$HAVE_LIB$uppername\"
8841 if test -n "$value"; then
8842 if test "$value" = yes; then
8843 eval value=\"\$LIB$uppername\"
8844 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8845 eval value=\"\$LTLIB$uppername\"
8846 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8847 else
8848 :
8849 fi
8850 else
8851 found_dir=
8852 found_la=
8853 found_so=
8854 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -04008855 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8856 if test -n "$acl_shlibext"; then
8857 shrext=".$acl_shlibext" # typically: shrext=.so
8858 else
8859 shrext=
8860 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008861 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008862 dir="$additional_libdir"
8863 if test -n "$acl_shlibext"; then
8864 if test -f "$dir/$libname$shrext"; then
8865 found_dir="$dir"
8866 found_so="$dir/$libname$shrext"
8867 else
8868 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8869 ver=`(cd "$dir" && \
8870 for f in "$libname$shrext".*; do echo "$f"; done \
8871 | sed -e "s,^$libname$shrext\\\\.,," \
8872 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8873 | sed 1q ) 2>/dev/null`
8874 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8875 found_dir="$dir"
8876 found_so="$dir/$libname$shrext.$ver"
8877 fi
8878 else
8879 eval library_names=\"$acl_library_names_spec\"
8880 for f in $library_names; do
8881 if test -f "$dir/$f"; then
8882 found_dir="$dir"
8883 found_so="$dir/$f"
8884 break
8885 fi
8886 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008887 fi
8888 fi
8889 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008890 if test "X$found_dir" = "X"; then
8891 if test -f "$dir/$libname.$acl_libext"; then
8892 found_dir="$dir"
8893 found_a="$dir/$libname.$acl_libext"
8894 fi
8895 fi
8896 if test "X$found_dir" != "X"; then
8897 if test -f "$dir/$libname.la"; then
8898 found_la="$dir/$libname.la"
8899 fi
8900 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008901 fi
8902 if test "X$found_dir" = "X"; then
8903 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008904
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008905 acl_save_prefix="$prefix"
8906 prefix="$acl_final_prefix"
8907 acl_save_exec_prefix="$exec_prefix"
8908 exec_prefix="$acl_final_exec_prefix"
8909 eval x=\"$x\"
8910 exec_prefix="$acl_save_exec_prefix"
8911 prefix="$acl_save_prefix"
8912
8913 case "$x" in
8914 -L*)
8915 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04008916 if test -n "$acl_shlibext"; then
8917 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008918 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04008919 found_so="$dir/$libname$shrext"
8920 else
8921 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8922 ver=`(cd "$dir" && \
8923 for f in "$libname$shrext".*; do echo "$f"; done \
8924 | sed -e "s,^$libname$shrext\\\\.,," \
8925 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8926 | sed 1q ) 2>/dev/null`
8927 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8928 found_dir="$dir"
8929 found_so="$dir/$libname$shrext.$ver"
8930 fi
8931 else
8932 eval library_names=\"$acl_library_names_spec\"
8933 for f in $library_names; do
8934 if test -f "$dir/$f"; then
8935 found_dir="$dir"
8936 found_so="$dir/$f"
8937 break
8938 fi
8939 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008940 fi
8941 fi
8942 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008943 if test "X$found_dir" = "X"; then
8944 if test -f "$dir/$libname.$acl_libext"; then
8945 found_dir="$dir"
8946 found_a="$dir/$libname.$acl_libext"
8947 fi
8948 fi
8949 if test "X$found_dir" != "X"; then
8950 if test -f "$dir/$libname.la"; then
8951 found_la="$dir/$libname.la"
8952 fi
8953 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008954 ;;
8955 esac
8956 if test "X$found_dir" != "X"; then
8957 break
8958 fi
8959 done
8960 fi
8961 if test "X$found_dir" != "X"; then
8962 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8963 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008964 if test "$enable_rpath" = no \
8965 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8966 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008967 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8968 else
8969 haveit=
8970 for x in $ltrpathdirs; do
8971 if test "X$x" = "X$found_dir"; then
8972 haveit=yes
8973 break
8974 fi
8975 done
8976 if test -z "$haveit"; then
8977 ltrpathdirs="$ltrpathdirs $found_dir"
8978 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008979 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008980 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8981 else
Theodore Ts'o93613952014-07-03 23:44:13 -04008982 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008983 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8984 haveit=
8985 for x in $rpathdirs; do
8986 if test "X$x" = "X$found_dir"; then
8987 haveit=yes
8988 break
8989 fi
8990 done
8991 if test -z "$haveit"; then
8992 rpathdirs="$rpathdirs $found_dir"
8993 fi
8994 else
8995 haveit=
8996 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008997
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008998 acl_save_prefix="$prefix"
8999 prefix="$acl_final_prefix"
9000 acl_save_exec_prefix="$exec_prefix"
9001 exec_prefix="$acl_final_exec_prefix"
9002 eval x=\"$x\"
9003 exec_prefix="$acl_save_exec_prefix"
9004 prefix="$acl_save_prefix"
9005
9006 if test "X$x" = "X-L$found_dir"; then
9007 haveit=yes
9008 break
9009 fi
9010 done
9011 if test -z "$haveit"; then
9012 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9013 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009014 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009015 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9016 else
9017 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9018 fi
9019 fi
9020 fi
9021 fi
9022 else
9023 if test "X$found_a" != "X"; then
9024 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9025 else
9026 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9027 fi
9028 fi
9029 additional_includedir=
9030 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -04009031 */$acl_libdirstem | */$acl_libdirstem/)
9032 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9033 if test "$name" = 'iconv'; then
9034 LIBICONV_PREFIX="$basedir"
9035 fi
9036 additional_includedir="$basedir/include"
9037 ;;
9038 */$acl_libdirstem2 | */$acl_libdirstem2/)
9039 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9040 if test "$name" = 'iconv'; then
9041 LIBICONV_PREFIX="$basedir"
9042 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009043 additional_includedir="$basedir/include"
9044 ;;
9045 esac
9046 if test "X$additional_includedir" != "X"; then
9047 if test "X$additional_includedir" != "X/usr/include"; then
9048 haveit=
9049 if test "X$additional_includedir" = "X/usr/local/include"; then
9050 if test -n "$GCC"; then
9051 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009052 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009053 esac
9054 fi
9055 fi
9056 if test -z "$haveit"; then
9057 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009058
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009059 acl_save_prefix="$prefix"
9060 prefix="$acl_final_prefix"
9061 acl_save_exec_prefix="$exec_prefix"
9062 exec_prefix="$acl_final_exec_prefix"
9063 eval x=\"$x\"
9064 exec_prefix="$acl_save_exec_prefix"
9065 prefix="$acl_save_prefix"
9066
9067 if test "X$x" = "X-I$additional_includedir"; then
9068 haveit=yes
9069 break
9070 fi
9071 done
9072 if test -z "$haveit"; then
9073 if test -d "$additional_includedir"; then
9074 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9075 fi
9076 fi
9077 fi
9078 fi
9079 fi
9080 if test -n "$found_la"; then
9081 save_libdir="$libdir"
9082 case "$found_la" in
9083 */* | *\\*) . "$found_la" ;;
9084 *) . "./$found_la" ;;
9085 esac
9086 libdir="$save_libdir"
9087 for dep in $dependency_libs; do
9088 case "$dep" in
9089 -L*)
9090 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009091 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9092 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009093 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -04009094 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9095 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009096 if test -n "$GCC"; then
9097 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009098 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009099 esac
9100 fi
9101 fi
9102 if test -z "$haveit"; then
9103 haveit=
9104 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009105
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009106 acl_save_prefix="$prefix"
9107 prefix="$acl_final_prefix"
9108 acl_save_exec_prefix="$exec_prefix"
9109 exec_prefix="$acl_final_exec_prefix"
9110 eval x=\"$x\"
9111 exec_prefix="$acl_save_exec_prefix"
9112 prefix="$acl_save_prefix"
9113
9114 if test "X$x" = "X-L$additional_libdir"; then
9115 haveit=yes
9116 break
9117 fi
9118 done
9119 if test -z "$haveit"; then
9120 if test -d "$additional_libdir"; then
9121 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9122 fi
9123 fi
9124 haveit=
9125 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009126
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009127 acl_save_prefix="$prefix"
9128 prefix="$acl_final_prefix"
9129 acl_save_exec_prefix="$exec_prefix"
9130 exec_prefix="$acl_final_exec_prefix"
9131 eval x=\"$x\"
9132 exec_prefix="$acl_save_exec_prefix"
9133 prefix="$acl_save_prefix"
9134
9135 if test "X$x" = "X-L$additional_libdir"; then
9136 haveit=yes
9137 break
9138 fi
9139 done
9140 if test -z "$haveit"; then
9141 if test -d "$additional_libdir"; then
9142 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9143 fi
9144 fi
9145 fi
9146 fi
9147 ;;
9148 -R*)
9149 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9150 if test "$enable_rpath" != no; then
9151 haveit=
9152 for x in $rpathdirs; do
9153 if test "X$x" = "X$dir"; then
9154 haveit=yes
9155 break
9156 fi
9157 done
9158 if test -z "$haveit"; then
9159 rpathdirs="$rpathdirs $dir"
9160 fi
9161 haveit=
9162 for x in $ltrpathdirs; do
9163 if test "X$x" = "X$dir"; then
9164 haveit=yes
9165 break
9166 fi
9167 done
9168 if test -z "$haveit"; then
9169 ltrpathdirs="$ltrpathdirs $dir"
9170 fi
9171 fi
9172 ;;
9173 -l*)
9174 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9175 ;;
9176 *.la)
9177 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9178 ;;
9179 *)
9180 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9181 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9182 ;;
9183 esac
9184 done
9185 fi
9186 else
9187 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9188 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9189 fi
9190 fi
9191 fi
9192 done
9193 done
9194 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009195 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009196 alldirs=
9197 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -04009198 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009199 done
9200 acl_save_libdir="$libdir"
9201 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -04009202 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009203 libdir="$acl_save_libdir"
9204 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9205 else
9206 for found_dir in $rpathdirs; do
9207 acl_save_libdir="$libdir"
9208 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04009209 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009210 libdir="$acl_save_libdir"
9211 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9212 done
9213 fi
9214 fi
9215 if test "X$ltrpathdirs" != "X"; then
9216 for found_dir in $ltrpathdirs; do
9217 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9218 done
9219 fi
9220
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009221
9222
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009223
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009224
9225
9226
9227
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009228
9229
9230
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009231
9232 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009233
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009234 for element in $INCICONV; do
9235 haveit=
9236 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009237
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009238 acl_save_prefix="$prefix"
9239 prefix="$acl_final_prefix"
9240 acl_save_exec_prefix="$exec_prefix"
9241 exec_prefix="$acl_final_exec_prefix"
9242 eval x=\"$x\"
9243 exec_prefix="$acl_save_exec_prefix"
9244 prefix="$acl_save_prefix"
9245
9246 if test "X$x" = "X$element"; then
9247 haveit=yes
9248 break
9249 fi
9250 done
9251 if test -z "$haveit"; then
9252 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9253 fi
9254 done
9255
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009256
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009258$as_echo_n "checking for iconv... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009259if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009260 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009261else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009262
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009263 am_cv_func_iconv="no, consider installing GNU libiconv"
9264 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009266/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009267
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009268#include <stdlib.h>
9269#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009270
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009271int
9272main ()
9273{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009274iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009275 iconv(cd,NULL,NULL,NULL,NULL);
9276 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009277 ;
9278 return 0;
9279}
9280_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009281if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009282 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009283fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009284rm -f core conftest.err conftest.$ac_objext \
9285 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009286 if test "$am_cv_func_iconv" != yes; then
9287 am_save_LIBS="$LIBS"
9288 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009290/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009291
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009292#include <stdlib.h>
9293#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009294
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009295int
9296main ()
9297{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009298iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009299 iconv(cd,NULL,NULL,NULL,NULL);
9300 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009301 ;
9302 return 0;
9303}
9304_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009305if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009306 am_cv_lib_iconv=yes
9307 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009308fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009309rm -f core conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009311 LIBS="$am_save_LIBS"
9312 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009313
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009314fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009316$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009317 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9319$as_echo_n "checking for working iconv... " >&6; }
9320if ${am_cv_func_iconv_works+:} false; then :
9321 $as_echo_n "(cached) " >&6
9322else
9323
9324 am_save_LIBS="$LIBS"
9325 if test $am_cv_lib_iconv = yes; then
9326 LIBS="$LIBS $LIBICONV"
9327 fi
9328 if test "$cross_compiling" = yes; then :
9329
9330 case "$host_os" in
9331 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9332 *) am_cv_func_iconv_works="guessing yes" ;;
9333 esac
9334
9335else
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337/* end confdefs.h. */
9338
9339#include <iconv.h>
9340#include <string.h>
9341int main ()
9342{
9343 int result = 0;
9344 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9345 returns. */
9346 {
9347 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9348 if (cd_utf8_to_88591 != (iconv_t)(-1))
9349 {
9350 static const char input[] = "\342\202\254"; /* EURO SIGN */
9351 char buf[10];
9352 const char *inptr = input;
9353 size_t inbytesleft = strlen (input);
9354 char *outptr = buf;
9355 size_t outbytesleft = sizeof (buf);
9356 size_t res = iconv (cd_utf8_to_88591,
9357 (char **) &inptr, &inbytesleft,
9358 &outptr, &outbytesleft);
9359 if (res == 0)
9360 result |= 1;
9361 iconv_close (cd_utf8_to_88591);
9362 }
9363 }
9364 /* Test against Solaris 10 bug: Failures are not distinguishable from
9365 successful returns. */
9366 {
9367 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9368 if (cd_ascii_to_88591 != (iconv_t)(-1))
9369 {
9370 static const char input[] = "\263";
9371 char buf[10];
9372 const char *inptr = input;
9373 size_t inbytesleft = strlen (input);
9374 char *outptr = buf;
9375 size_t outbytesleft = sizeof (buf);
9376 size_t res = iconv (cd_ascii_to_88591,
9377 (char **) &inptr, &inbytesleft,
9378 &outptr, &outbytesleft);
9379 if (res == 0)
9380 result |= 2;
9381 iconv_close (cd_ascii_to_88591);
9382 }
9383 }
9384 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9385 {
9386 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9387 if (cd_88591_to_utf8 != (iconv_t)(-1))
9388 {
9389 static const char input[] = "\304";
9390 static char buf[2] = { (char)0xDE, (char)0xAD };
9391 const char *inptr = input;
9392 size_t inbytesleft = 1;
9393 char *outptr = buf;
9394 size_t outbytesleft = 1;
9395 size_t res = iconv (cd_88591_to_utf8,
9396 (char **) &inptr, &inbytesleft,
9397 &outptr, &outbytesleft);
9398 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9399 result |= 4;
9400 iconv_close (cd_88591_to_utf8);
9401 }
9402 }
9403#if 0 /* This bug could be worked around by the caller. */
9404 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9405 {
9406 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9407 if (cd_88591_to_utf8 != (iconv_t)(-1))
9408 {
9409 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9410 char buf[50];
9411 const char *inptr = input;
9412 size_t inbytesleft = strlen (input);
9413 char *outptr = buf;
9414 size_t outbytesleft = sizeof (buf);
9415 size_t res = iconv (cd_88591_to_utf8,
9416 (char **) &inptr, &inbytesleft,
9417 &outptr, &outbytesleft);
9418 if ((int)res > 0)
9419 result |= 8;
9420 iconv_close (cd_88591_to_utf8);
9421 }
9422 }
9423#endif
9424 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9425 provided. */
9426 if (/* Try standardized names. */
9427 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9428 /* Try IRIX, OSF/1 names. */
9429 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9430 /* Try AIX names. */
9431 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9432 /* Try HP-UX names. */
9433 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9434 result |= 16;
9435 return result;
9436}
9437_ACEOF
9438if ac_fn_c_try_run "$LINENO"; then :
9439 am_cv_func_iconv_works=yes
9440else
9441 am_cv_func_iconv_works=no
9442fi
9443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9444 conftest.$ac_objext conftest.beam conftest.$ac_ext
9445fi
9446
9447 LIBS="$am_save_LIBS"
9448
9449fi
9450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9451$as_echo "$am_cv_func_iconv_works" >&6; }
9452 case "$am_cv_func_iconv_works" in
9453 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9454 *) am_func_iconv=yes ;;
9455 esac
9456 else
9457 am_func_iconv=no am_cv_lib_iconv=no
9458 fi
9459 if test "$am_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009460
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009461$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009462
9463 fi
9464 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009466$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009468$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009469 else
9470 CPPFLAGS="$am_save_CPPFLAGS"
9471 LIBICONV=
9472 LTLIBICONV=
9473 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009474
9475
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009476
9477 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009479$as_echo_n "checking for iconv declaration... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009480 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009481 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009482else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009483
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009485/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009486
9487#include <stdlib.h>
9488#include <iconv.h>
9489extern
9490#ifdef __cplusplus
9491"C"
9492#endif
Theodore Ts'o93613952014-07-03 23:44:13 -04009493#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009494size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9495#else
9496size_t iconv();
9497#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009498
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009499int
9500main ()
9501{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009502
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009503 ;
9504 return 0;
9505}
9506_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009507if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009508 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009509else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009510 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009511fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009513 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 +00009514fi
9515
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009516 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009517 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9518 $am_cv_proto_iconv" >&5
9519$as_echo "
9520 $am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009521
9522cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009523#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009524_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009525
Theodore Ts'o93613952014-07-03 23:44:13 -04009526
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009527 fi
9528
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009529
Theodore Ts'o93613952014-07-03 23:44:13 -04009530
9531
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009533/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009534int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009535int
9536main ()
9537{
Theodore Ts'o93613952014-07-03 23:44:13 -04009538
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009539 ;
9540 return 0;
9541}
9542_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009543if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04009544
9545$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9546
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009547fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009548rm -f core conftest.err conftest.$ac_objext \
9549 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009550
Theodore Ts'o93613952014-07-03 23:44:13 -04009551 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9552do :
9553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9554ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9555if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9556 cat >>confdefs.h <<_ACEOF
9557#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009558_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04009559
9560fi
9561
9562done
9563
9564 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9565 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9566 argz_stringify argz_next __fsetlocking
9567do :
9568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9569ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9570if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9571 cat >>confdefs.h <<_ACEOF
9572#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9573_ACEOF
9574
9575fi
9576done
9577
9578
9579 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9580"
9581if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9582 ac_have_decl=1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009583else
Theodore Ts'o93613952014-07-03 23:44:13 -04009584 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009585fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009586
9587cat >>confdefs.h <<_ACEOF
9588#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9589_ACEOF
9590ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9591"
9592if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9593 ac_have_decl=1
9594else
9595 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009596fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009597
Theodore Ts'o93613952014-07-03 23:44:13 -04009598cat >>confdefs.h <<_ACEOF
9599#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9600_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009601
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009602
Theodore Ts'o93613952014-07-03 23:44:13 -04009603
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009604
9605 for ac_prog in bison
9606do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009607 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009608set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009610$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009611if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009612 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009613else
9614 if test -n "$INTLBISON"; then
9615 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9616else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9618for as_dir in $PATH
9619do
9620 IFS=$as_save_IFS
9621 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009622 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009624 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009626 break 2
9627 fi
9628done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009629 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009630IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009631
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009632fi
9633fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009634INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009635if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009637$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009638else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009640$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009641fi
9642
Theodore Ts'oe1052142006-10-21 21:46:47 -04009643
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009644 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009645done
9646
9647 if test -z "$INTLBISON"; then
9648 ac_verc_fail=yes
9649 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009651$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009652 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9653 case $ac_prog_version in
9654 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9655 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9656 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9657 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9658 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009660$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009661 fi
9662 if test $ac_verc_fail = yes; then
9663 INTLBISON=:
9664 fi
9665
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009666
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009667
Theodore Ts'o93613952014-07-03 23:44:13 -04009668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9669$as_echo_n "checking for long long int... " >&6; }
9670if ${ac_cv_type_long_long_int+:} false; then :
9671 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009672else
Theodore Ts'o93613952014-07-03 23:44:13 -04009673 ac_cv_type_long_long_int=yes
9674 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9675 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9676 if test $ac_cv_type_long_long_int = yes; then
9677 if test "$cross_compiling" = yes; then :
9678 :
9679else
9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681/* end confdefs.h. */
9682#include <limits.h>
9683 #ifndef LLONG_MAX
9684 # define HALF \
9685 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9686 # define LLONG_MAX (HALF - 1 + HALF)
9687 #endif
9688int
9689main ()
9690{
9691long long int n = 1;
9692 int i;
9693 for (i = 0; ; i++)
9694 {
9695 long long int m = n << i;
9696 if (m >> i != n)
9697 return 1;
9698 if (LLONG_MAX / 2 < m)
9699 break;
9700 }
9701 return 0;
9702 ;
9703 return 0;
9704}
9705_ACEOF
9706if ac_fn_c_try_run "$LINENO"; then :
9707
9708else
9709 ac_cv_type_long_long_int=no
9710fi
9711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9712 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009713fi
9714
Theodore Ts'o93613952014-07-03 23:44:13 -04009715 fi
9716 fi
9717fi
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9719$as_echo "$ac_cv_type_long_long_int" >&6; }
9720 if test $ac_cv_type_long_long_int = yes; then
9721
9722$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9723
9724 fi
9725
9726
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9728$as_echo_n "checking for wchar_t... " >&6; }
9729if ${gt_cv_c_wchar_t+:} false; then :
9730 $as_echo_n "(cached) " >&6
9731else
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733/* end confdefs.h. */
9734#include <stddef.h>
9735 wchar_t foo = (wchar_t)'\0';
9736int
9737main ()
9738{
9739
9740 ;
9741 return 0;
9742}
9743_ACEOF
9744if ac_fn_c_try_compile "$LINENO"; then :
9745 gt_cv_c_wchar_t=yes
9746else
9747 gt_cv_c_wchar_t=no
9748fi
9749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9750fi
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9752$as_echo "$gt_cv_c_wchar_t" >&6; }
9753 if test $gt_cv_c_wchar_t = yes; then
9754
9755$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9756
9757 fi
9758
9759
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9761$as_echo_n "checking for wint_t... " >&6; }
9762if ${gt_cv_c_wint_t+:} false; then :
9763 $as_echo_n "(cached) " >&6
9764else
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766/* end confdefs.h. */
9767
9768/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9769 <wchar.h>.
9770 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9771 before <wchar.h>. */
9772#include <stddef.h>
9773#include <stdio.h>
9774#include <time.h>
9775#include <wchar.h>
9776 wint_t foo = (wchar_t)'\0';
9777int
9778main ()
9779{
9780
9781 ;
9782 return 0;
9783}
9784_ACEOF
9785if ac_fn_c_try_compile "$LINENO"; then :
9786 gt_cv_c_wint_t=yes
9787else
9788 gt_cv_c_wint_t=no
9789fi
9790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9791fi
9792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9793$as_echo "$gt_cv_c_wint_t" >&6; }
9794 if test $gt_cv_c_wint_t = yes; then
9795
9796$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9797
9798 fi
9799
9800
9801
9802
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9804$as_echo_n "checking for intmax_t... " >&6; }
9805if ${gt_cv_c_intmax_t+:} false; then :
9806 $as_echo_n "(cached) " >&6
9807else
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809/* end confdefs.h. */
9810
9811#include <stddef.h>
9812#include <stdlib.h>
9813#if HAVE_STDINT_H_WITH_UINTMAX
9814#include <stdint.h>
9815#endif
9816#if HAVE_INTTYPES_H_WITH_UINTMAX
9817#include <inttypes.h>
9818#endif
9819
9820int
9821main ()
9822{
9823intmax_t x = -1;
9824 return !x;
9825 ;
9826 return 0;
9827}
9828_ACEOF
9829if ac_fn_c_try_compile "$LINENO"; then :
9830 gt_cv_c_intmax_t=yes
9831else
9832 gt_cv_c_intmax_t=no
9833fi
9834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9835fi
9836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9837$as_echo "$gt_cv_c_intmax_t" >&6; }
9838 if test $gt_cv_c_intmax_t = yes; then
9839
9840$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9841
9842 fi
9843
9844
9845
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9847$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9848if ${gt_cv_func_printf_posix+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850else
9851
9852 if test "$cross_compiling" = yes; then :
9853
9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855/* end confdefs.h. */
9856
9857#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9858 notposix
9859#endif
9860
9861_ACEOF
9862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9863 $EGREP "notposix" >/dev/null 2>&1; then :
9864 gt_cv_func_printf_posix="guessing no"
9865else
9866 gt_cv_func_printf_posix="guessing yes"
9867fi
9868rm -f conftest*
9869
9870
9871else
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873/* end confdefs.h. */
9874
9875#include <stdio.h>
9876#include <string.h>
9877/* The string "%2$d %1$d", with dollar characters protected from the shell's
9878 dollar expansion (possibly an autoconf bug). */
9879static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9880static char buf[100];
9881int main ()
9882{
9883 sprintf (buf, format, 33, 55);
9884 return (strcmp (buf, "55 33") != 0);
9885}
9886_ACEOF
9887if ac_fn_c_try_run "$LINENO"; then :
9888 gt_cv_func_printf_posix=yes
9889else
9890 gt_cv_func_printf_posix=no
9891fi
9892rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9893 conftest.$ac_objext conftest.beam conftest.$ac_ext
9894fi
9895
9896
9897fi
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9899$as_echo "$gt_cv_func_printf_posix" >&6; }
9900 case $gt_cv_func_printf_posix in
9901 *yes)
9902
9903$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9904
9905 ;;
9906 esac
9907
9908
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9910$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9911if ${ac_cv_gnu_library_2_1+:} false; then :
9912 $as_echo_n "(cached) " >&6
9913else
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915/* end confdefs.h. */
9916
9917#include <features.h>
9918#ifdef __GNU_LIBRARY__
9919 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9920 Lucky GNU user
9921 #endif
9922#endif
9923#ifdef __UCLIBC__
9924 Lucky user
9925#endif
9926
9927_ACEOF
9928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9929 $EGREP "Lucky" >/dev/null 2>&1; then :
9930 ac_cv_gnu_library_2_1=yes
9931else
9932 ac_cv_gnu_library_2_1=no
9933fi
9934rm -f conftest*
9935
9936
9937
9938fi
9939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9940$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9941
9942 GLIBC21="$ac_cv_gnu_library_2_1"
9943
9944
9945
9946 for ac_header in stdint.h
9947do :
9948 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9949if test "x$ac_cv_header_stdint_h" = xyes; then :
9950 cat >>confdefs.h <<_ACEOF
9951#define HAVE_STDINT_H 1
9952_ACEOF
9953
9954fi
9955
9956done
9957
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9959$as_echo_n "checking for SIZE_MAX... " >&6; }
9960if ${gl_cv_size_max+:} false; then :
9961 $as_echo_n "(cached) " >&6
9962else
9963
9964 gl_cv_size_max=
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966/* end confdefs.h. */
9967
9968#include <limits.h>
9969#if HAVE_STDINT_H
9970#include <stdint.h>
9971#endif
9972#ifdef SIZE_MAX
9973Found it
9974#endif
9975
9976_ACEOF
9977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9978 $EGREP "Found it" >/dev/null 2>&1; then :
9979 gl_cv_size_max=yes
9980fi
9981rm -f conftest*
9982
9983 if test -z "$gl_cv_size_max"; then
9984 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9985#include <limits.h>"; then :
9986
9987else
9988 size_t_bits_minus_1=
9989fi
9990
9991 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9992
9993else
9994 fits_in_uint=
9995fi
9996
9997 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9998 if test $fits_in_uint = 1; then
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000/* end confdefs.h. */
10001#include <stddef.h>
10002 extern size_t foo;
10003 extern unsigned long foo;
10004
10005int
10006main ()
10007{
10008
10009 ;
10010 return 0;
10011}
10012_ACEOF
10013if ac_fn_c_try_compile "$LINENO"; then :
10014 fits_in_uint=0
10015fi
10016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017 fi
10018 if test $fits_in_uint = 1; then
10019 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10020 else
10021 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10022 fi
10023 else
10024 gl_cv_size_max='((size_t)~(size_t)0)'
10025 fi
10026 fi
10027
10028fi
10029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10030$as_echo "$gl_cv_size_max" >&6; }
10031 if test "$gl_cv_size_max" != yes; then
10032
10033cat >>confdefs.h <<_ACEOF
10034#define SIZE_MAX $gl_cv_size_max
10035_ACEOF
10036
10037 fi
10038
10039
10040
10041
10042 for ac_header in stdint.h
10043do :
10044 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10045if test "x$ac_cv_header_stdint_h" = xyes; then :
10046 cat >>confdefs.h <<_ACEOF
10047#define HAVE_STDINT_H 1
10048_ACEOF
10049
10050fi
10051
10052done
10053
10054
10055
10056
10057
10058 for ac_func in $ac_func_list
10059do :
10060 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10061ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10062if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10063 cat >>confdefs.h <<_ACEOF
10064#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10065_ACEOF
10066
10067fi
10068done
10069
10070
10071
10072
10073
10074
10075
10076
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10078$as_echo_n "checking for working fcntl.h... " >&6; }
10079if ${gl_cv_header_working_fcntl_h+:} false; then :
10080 $as_echo_n "(cached) " >&6
10081else
10082 if test "$cross_compiling" = yes; then :
10083 gl_cv_header_working_fcntl_h=cross-compiling
10084else
10085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086/* end confdefs.h. */
10087#include <sys/types.h>
10088 #include <sys/stat.h>
10089 #if HAVE_UNISTD_H
10090 # include <unistd.h>
10091 #else /* on Windows with MSVC */
10092 # include <io.h>
10093 # include <stdlib.h>
10094 # defined sleep(n) _sleep ((n) * 1000)
10095 #endif
10096 #include <fcntl.h>
10097 #ifndef O_NOATIME
10098 #define O_NOATIME 0
10099 #endif
10100 #ifndef O_NOFOLLOW
10101 #define O_NOFOLLOW 0
10102 #endif
10103 static int const constants[] =
10104 {
10105 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10106 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10107 };
10108
10109int
10110main ()
10111{
10112
10113 int result = !constants;
10114 #if HAVE_SYMLINK
10115 {
10116 static char const sym[] = "conftest.sym";
10117 if (symlink ("/dev/null", sym) != 0)
10118 result |= 2;
10119 else
10120 {
10121 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10122 if (fd >= 0)
10123 {
10124 close (fd);
10125 result |= 4;
10126 }
10127 }
10128 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10129 result |= 2;
10130 else
10131 {
10132 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10133 if (fd >= 0)
10134 {
10135 close (fd);
10136 result |= 4;
10137 }
10138 }
10139 unlink (sym);
10140 }
10141 #endif
10142 {
10143 static char const file[] = "confdefs.h";
10144 int fd = open (file, O_RDONLY | O_NOATIME);
10145 if (fd < 0)
10146 result |= 8;
10147 else
10148 {
10149 struct stat st0;
10150 if (fstat (fd, &st0) != 0)
10151 result |= 16;
10152 else
10153 {
10154 char c;
10155 sleep (1);
10156 if (read (fd, &c, 1) != 1)
10157 result |= 24;
10158 else
10159 {
10160 if (close (fd) != 0)
10161 result |= 32;
10162 else
10163 {
10164 struct stat st1;
10165 if (stat (file, &st1) != 0)
10166 result |= 40;
10167 else
10168 if (st0.st_atime != st1.st_atime)
10169 result |= 64;
10170 }
10171 }
10172 }
10173 }
10174 }
10175 return result;
10176 ;
10177 return 0;
10178}
10179_ACEOF
10180if ac_fn_c_try_run "$LINENO"; then :
10181 gl_cv_header_working_fcntl_h=yes
10182else
10183 case $? in #(
10184 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10185 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10186 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10187 *) gl_cv_header_working_fcntl_h='no';;
10188 esac
10189fi
10190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10191 conftest.$ac_objext conftest.beam conftest.$ac_ext
10192fi
10193
10194fi
10195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10196$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10197
10198 case $gl_cv_header_working_fcntl_h in #(
10199 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10200 *) ac_val=1;;
10201 esac
10202
10203cat >>confdefs.h <<_ACEOF
10204#define HAVE_WORKING_O_NOATIME $ac_val
10205_ACEOF
10206
10207
10208 case $gl_cv_header_working_fcntl_h in #(
10209 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10210 *) ac_val=1;;
10211 esac
10212
10213cat >>confdefs.h <<_ACEOF
10214#define HAVE_WORKING_O_NOFOLLOW $ac_val
10215_ACEOF
10216
10217
10218
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10220$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10221if ${gt_cv_func_CFPreferencesCopyAppValue+:} 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/CFPreferences.h>
10229int
10230main ()
10231{
10232CFPreferencesCopyAppValue(NULL, NULL)
10233 ;
10234 return 0;
10235}
10236_ACEOF
10237if ac_fn_c_try_link "$LINENO"; then :
10238 gt_cv_func_CFPreferencesCopyAppValue=yes
10239else
10240 gt_cv_func_CFPreferencesCopyAppValue=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_CFPreferencesCopyAppValue" >&5
10247$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10248 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10249
10250$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10251
10252 fi
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10254$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10255if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10256 $as_echo_n "(cached) " >&6
10257else
10258 gt_save_LIBS="$LIBS"
10259 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261/* end confdefs.h. */
10262#include <CoreFoundation/CFLocale.h>
10263int
10264main ()
10265{
10266CFLocaleCopyCurrent();
10267 ;
10268 return 0;
10269}
10270_ACEOF
10271if ac_fn_c_try_link "$LINENO"; then :
10272 gt_cv_func_CFLocaleCopyCurrent=yes
10273else
10274 gt_cv_func_CFLocaleCopyCurrent=no
10275fi
10276rm -f core conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10278 LIBS="$gt_save_LIBS"
10279fi
10280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10281$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10282 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10283
10284$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10285
10286 fi
10287 INTL_MACOSX_LIBS=
10288 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10289 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10290 fi
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301 case "$enable_silent_rules" in
10302 yes) INTL_DEFAULT_VERBOSITY=0;;
10303 no) INTL_DEFAULT_VERBOSITY=1;;
10304 *) INTL_DEFAULT_VERBOSITY=1;;
10305 esac
10306
10307
10308 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10309if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10310
10311else
10312
10313$as_echo "#define ptrdiff_t long" >>confdefs.h
10314
10315
10316fi
10317
10318 for ac_header in features.h stddef.h stdlib.h string.h
10319do :
10320 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10321ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10322if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10323 cat >>confdefs.h <<_ACEOF
10324#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10325_ACEOF
10326
10327fi
10328
10329done
10330
10331 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10332 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10333do :
10334 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10335ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10336if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10337 cat >>confdefs.h <<_ACEOF
10338#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10339_ACEOF
10340
10341fi
10342done
10343
10344
10345 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10346"
10347if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10348 ac_have_decl=1
10349else
10350 ac_have_decl=0
10351fi
10352
10353cat >>confdefs.h <<_ACEOF
10354#define HAVE_DECL__SNPRINTF $ac_have_decl
10355_ACEOF
10356ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10357"
10358if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10359 ac_have_decl=1
10360else
10361 ac_have_decl=0
10362fi
10363
10364cat >>confdefs.h <<_ACEOF
10365#define HAVE_DECL__SNWPRINTF $ac_have_decl
10366_ACEOF
10367
10368
10369 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10370"
10371if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10372 ac_have_decl=1
10373else
10374 ac_have_decl=0
10375fi
10376
10377cat >>confdefs.h <<_ACEOF
10378#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10379_ACEOF
10380
10381
10382 case $gt_cv_func_printf_posix in
10383 *yes) HAVE_POSIX_PRINTF=1 ;;
10384 *) HAVE_POSIX_PRINTF=0 ;;
10385 esac
10386
10387 if test "$ac_cv_func_asprintf" = yes; then
10388 HAVE_ASPRINTF=1
10389 else
10390 HAVE_ASPRINTF=0
10391 fi
10392
10393 if test "$ac_cv_func_snprintf" = yes; then
10394 HAVE_SNPRINTF=1
10395 else
10396 HAVE_SNPRINTF=0
10397 fi
10398
10399 if test "$ac_cv_func_newlocale" = yes; then
10400 HAVE_NEWLOCALE=1
10401 else
10402 HAVE_NEWLOCALE=0
10403 fi
10404
10405 if test "$ac_cv_func_wprintf" = yes; then
10406 HAVE_WPRINTF=1
10407 else
10408 HAVE_WPRINTF=0
10409 fi
10410
10411
10412
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10414$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10415if ${am_cv_langinfo_codeset+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417else
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419/* end confdefs.h. */
10420#include <langinfo.h>
10421int
10422main ()
10423{
10424char* cs = nl_langinfo(CODESET); return !cs;
10425 ;
10426 return 0;
10427}
10428_ACEOF
10429if ac_fn_c_try_link "$LINENO"; then :
10430 am_cv_langinfo_codeset=yes
10431else
10432 am_cv_langinfo_codeset=no
10433fi
10434rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10436
10437fi
10438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10439$as_echo "$am_cv_langinfo_codeset" >&6; }
10440 if test $am_cv_langinfo_codeset = yes; then
10441
10442$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10443
10444 fi
10445
10446
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10448$as_echo_n "checking for LC_MESSAGES... " >&6; }
10449if ${gt_cv_val_LC_MESSAGES+:} false; then :
10450 $as_echo_n "(cached) " >&6
10451else
10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453/* end confdefs.h. */
10454#include <locale.h>
10455int
10456main ()
10457{
10458return LC_MESSAGES
10459 ;
10460 return 0;
10461}
10462_ACEOF
10463if ac_fn_c_try_link "$LINENO"; then :
10464 gt_cv_val_LC_MESSAGES=yes
10465else
10466 gt_cv_val_LC_MESSAGES=no
10467fi
10468rm -f core conftest.err conftest.$ac_objext \
10469 conftest$ac_exeext conftest.$ac_ext
10470fi
10471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10472$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10473 if test $gt_cv_val_LC_MESSAGES = yes; then
10474
10475$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10476
10477 fi
10478
10479
10480 if test "$enable_shared" = yes; then
10481 case "$host_os" in
10482 mingw* | cygwin*) is_woe32dll=yes ;;
10483 *) is_woe32dll=no ;;
10484 esac
10485 else
10486 is_woe32dll=no
10487 fi
10488 WOE32DLL=$is_woe32dll
10489
10490
10491 case "$host_os" in
10492 mingw* | cygwin*) is_woe32=yes ;;
10493 *) is_woe32=no ;;
10494 esac
10495 WOE32=$is_woe32
10496
10497 if test $WOE32 = yes; then
10498 if test -n "$ac_tool_prefix"; then
10499 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10500set dummy ${ac_tool_prefix}windres; ac_word=$2
10501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10502$as_echo_n "checking for $ac_word... " >&6; }
10503if ${ac_cv_prog_WINDRES+:} false; then :
10504 $as_echo_n "(cached) " >&6
10505else
10506 if test -n "$WINDRES"; then
10507 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10508else
10509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510for as_dir in $PATH
10511do
10512 IFS=$as_save_IFS
10513 test -z "$as_dir" && as_dir=.
10514 for ac_exec_ext in '' $ac_executable_extensions; do
10515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10516 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10518 break 2
10519 fi
10520done
10521 done
10522IFS=$as_save_IFS
10523
10524fi
10525fi
10526WINDRES=$ac_cv_prog_WINDRES
10527if test -n "$WINDRES"; then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10529$as_echo "$WINDRES" >&6; }
10530else
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532$as_echo "no" >&6; }
10533fi
10534
10535
10536fi
10537if test -z "$ac_cv_prog_WINDRES"; then
10538 ac_ct_WINDRES=$WINDRES
10539 # Extract the first word of "windres", so it can be a program name with args.
10540set dummy windres; ac_word=$2
10541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542$as_echo_n "checking for $ac_word... " >&6; }
10543if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10544 $as_echo_n "(cached) " >&6
10545else
10546 if test -n "$ac_ct_WINDRES"; then
10547 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10548else
10549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10550for as_dir in $PATH
10551do
10552 IFS=$as_save_IFS
10553 test -z "$as_dir" && as_dir=.
10554 for ac_exec_ext in '' $ac_executable_extensions; do
10555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10556 ac_cv_prog_ac_ct_WINDRES="windres"
10557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10558 break 2
10559 fi
10560done
10561 done
10562IFS=$as_save_IFS
10563
10564fi
10565fi
10566ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10567if test -n "$ac_ct_WINDRES"; then
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10569$as_echo "$ac_ct_WINDRES" >&6; }
10570else
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572$as_echo "no" >&6; }
10573fi
10574
10575 if test "x$ac_ct_WINDRES" = x; then
10576 WINDRES=""
10577 else
10578 case $cross_compiling:$ac_tool_warned in
10579yes:)
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10582ac_tool_warned=yes ;;
10583esac
10584 WINDRES=$ac_ct_WINDRES
10585 fi
10586else
10587 WINDRES="$ac_cv_prog_WINDRES"
10588fi
10589
10590 fi
10591
10592 case "$host_os" in
10593 hpux*) LTLIBC="" ;;
10594 *) LTLIBC="-lc" ;;
10595 esac
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10624$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10625if ${gt_cv_func_CFPreferencesCopyAppValue+:} 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/CFPreferences.h>
10633int
10634main ()
10635{
10636CFPreferencesCopyAppValue(NULL, NULL)
10637 ;
10638 return 0;
10639}
10640_ACEOF
10641if ac_fn_c_try_link "$LINENO"; then :
10642 gt_cv_func_CFPreferencesCopyAppValue=yes
10643else
10644 gt_cv_func_CFPreferencesCopyAppValue=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_CFPreferencesCopyAppValue" >&5
10651$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10652 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10653
10654$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10655
10656 fi
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10658$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10659if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10660 $as_echo_n "(cached) " >&6
10661else
10662 gt_save_LIBS="$LIBS"
10663 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665/* end confdefs.h. */
10666#include <CoreFoundation/CFLocale.h>
10667int
10668main ()
10669{
10670CFLocaleCopyCurrent();
10671 ;
10672 return 0;
10673}
10674_ACEOF
10675if ac_fn_c_try_link "$LINENO"; then :
10676 gt_cv_func_CFLocaleCopyCurrent=yes
10677else
10678 gt_cv_func_CFLocaleCopyCurrent=no
10679fi
10680rm -f core conftest.err conftest.$ac_objext \
10681 conftest$ac_exeext conftest.$ac_ext
10682 LIBS="$gt_save_LIBS"
10683fi
10684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10685$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10686 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10687
10688$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10689
10690 fi
10691 INTL_MACOSX_LIBS=
10692 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10693 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10694 fi
10695
10696
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010697
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010698
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010699
10700
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010701 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010702 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010703
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010704 LIBINTL=
10705 LTLIBINTL=
10706 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010707
Theodore Ts'o93613952014-07-03 23:44:13 -040010708 case " $gt_needs " in
10709 *" need-formatstring-macros "*) gt_api_version=3 ;;
10710 *" need-ngettext "*) gt_api_version=2 ;;
10711 *) gt_api_version=1 ;;
10712 esac
10713 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10714 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10715
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010716 if test "$USE_NLS" = "yes"; then
10717 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010718
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010720$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010721
Theodore Ts'oe1052142006-10-21 21:46:47 -040010722# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010723if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010724 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010725else
10726 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010727fi
10728
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010730$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010731
10732 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10733 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010734
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010735
Theodore Ts'o93613952014-07-03 23:44:13 -040010736 if test $gt_api_version -ge 3; then
10737 gt_revision_test_code='
10738#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10739#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10740#endif
10741typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10742'
10743 else
10744 gt_revision_test_code=
10745 fi
10746 if test $gt_api_version -ge 2; then
10747 gt_expression_test_code=' + * ngettext ("", "", 0)'
10748 else
10749 gt_expression_test_code=
10750 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010751
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010753$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040010754if eval \${$gt_func_gnugettext_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010755 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010756else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010758/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040010759
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010760#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040010761$gt_revision_test_code
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010762extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010763extern int *_nl_domain_bindings;
Theodore Ts'o93613952014-07-03 23:44:13 -040010764
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010765int
10766main ()
10767{
Theodore Ts'o93613952014-07-03 23:44:13 -040010768
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010769bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040010770return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10771
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010772 ;
10773 return 0;
10774}
10775_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010776if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040010777 eval "$gt_func_gnugettext_libc=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010778else
Theodore Ts'o93613952014-07-03 23:44:13 -040010779 eval "$gt_func_gnugettext_libc=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010780fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010781rm -f core conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010783fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010784eval ac_res=\$$gt_func_gnugettext_libc
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10786$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010787
Theodore Ts'o93613952014-07-03 23:44:13 -040010788 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10789
10790
10791
10792
10793
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010794
10795
10796
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010797 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010798
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010799 acl_save_prefix="$prefix"
10800 prefix="$acl_final_prefix"
10801 acl_save_exec_prefix="$exec_prefix"
10802 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010803
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010804 eval additional_includedir=\"$includedir\"
10805 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010806
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010807 exec_prefix="$acl_save_exec_prefix"
10808 prefix="$acl_save_prefix"
10809
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010810
Theodore Ts'oe1052142006-10-21 21:46:47 -040010811# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010812if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010813 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010814 if test "X$withval" = "Xno"; then
10815 use_additional=no
10816 else
10817 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010818
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010819 acl_save_prefix="$prefix"
10820 prefix="$acl_final_prefix"
10821 acl_save_exec_prefix="$exec_prefix"
10822 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010823
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010824 eval additional_includedir=\"$includedir\"
10825 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010826
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010827 exec_prefix="$acl_save_exec_prefix"
10828 prefix="$acl_save_prefix"
10829
10830 else
10831 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -040010832 additional_libdir="$withval/$acl_libdirstem"
10833 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10834 && ! test -d "$withval/$acl_libdirstem"; then
10835 additional_libdir="$withval/$acl_libdirstem2"
10836 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010837 fi
10838 fi
10839
Theodore Ts'oe1052142006-10-21 21:46:47 -040010840fi
10841
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010842 LIBINTL=
10843 LTLIBINTL=
10844 INCINTL=
Theodore Ts'o93613952014-07-03 23:44:13 -040010845 LIBINTL_PREFIX=
10846 HAVE_LIBINTL=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010847 rpathdirs=
10848 ltrpathdirs=
10849 names_already_handled=
10850 names_next_round='intl '
10851 while test -n "$names_next_round"; do
10852 names_this_round="$names_next_round"
10853 names_next_round=
10854 for name in $names_this_round; do
10855 already_handled=
10856 for n in $names_already_handled; do
10857 if test "$n" = "$name"; then
10858 already_handled=yes
10859 break
10860 fi
10861 done
10862 if test -z "$already_handled"; then
10863 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -040010864 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010865 eval value=\"\$HAVE_LIB$uppername\"
10866 if test -n "$value"; then
10867 if test "$value" = yes; then
10868 eval value=\"\$LIB$uppername\"
10869 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10870 eval value=\"\$LTLIB$uppername\"
10871 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10872 else
10873 :
10874 fi
10875 else
10876 found_dir=
10877 found_la=
10878 found_so=
10879 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -040010880 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10881 if test -n "$acl_shlibext"; then
10882 shrext=".$acl_shlibext" # typically: shrext=.so
10883 else
10884 shrext=
10885 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010886 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010887 dir="$additional_libdir"
10888 if test -n "$acl_shlibext"; then
10889 if test -f "$dir/$libname$shrext"; then
10890 found_dir="$dir"
10891 found_so="$dir/$libname$shrext"
10892 else
10893 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10894 ver=`(cd "$dir" && \
10895 for f in "$libname$shrext".*; do echo "$f"; done \
10896 | sed -e "s,^$libname$shrext\\\\.,," \
10897 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10898 | sed 1q ) 2>/dev/null`
10899 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10900 found_dir="$dir"
10901 found_so="$dir/$libname$shrext.$ver"
10902 fi
10903 else
10904 eval library_names=\"$acl_library_names_spec\"
10905 for f in $library_names; do
10906 if test -f "$dir/$f"; then
10907 found_dir="$dir"
10908 found_so="$dir/$f"
10909 break
10910 fi
10911 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010912 fi
10913 fi
10914 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010915 if test "X$found_dir" = "X"; then
10916 if test -f "$dir/$libname.$acl_libext"; then
10917 found_dir="$dir"
10918 found_a="$dir/$libname.$acl_libext"
10919 fi
10920 fi
10921 if test "X$found_dir" != "X"; then
10922 if test -f "$dir/$libname.la"; then
10923 found_la="$dir/$libname.la"
10924 fi
10925 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010926 fi
10927 if test "X$found_dir" = "X"; then
10928 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010929
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010930 acl_save_prefix="$prefix"
10931 prefix="$acl_final_prefix"
10932 acl_save_exec_prefix="$exec_prefix"
10933 exec_prefix="$acl_final_exec_prefix"
10934 eval x=\"$x\"
10935 exec_prefix="$acl_save_exec_prefix"
10936 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010937
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010938 case "$x" in
10939 -L*)
10940 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040010941 if test -n "$acl_shlibext"; then
10942 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010943 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040010944 found_so="$dir/$libname$shrext"
10945 else
10946 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10947 ver=`(cd "$dir" && \
10948 for f in "$libname$shrext".*; do echo "$f"; done \
10949 | sed -e "s,^$libname$shrext\\\\.,," \
10950 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10951 | sed 1q ) 2>/dev/null`
10952 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10953 found_dir="$dir"
10954 found_so="$dir/$libname$shrext.$ver"
10955 fi
10956 else
10957 eval library_names=\"$acl_library_names_spec\"
10958 for f in $library_names; do
10959 if test -f "$dir/$f"; then
10960 found_dir="$dir"
10961 found_so="$dir/$f"
10962 break
10963 fi
10964 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010965 fi
10966 fi
10967 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010968 if test "X$found_dir" = "X"; then
10969 if test -f "$dir/$libname.$acl_libext"; then
10970 found_dir="$dir"
10971 found_a="$dir/$libname.$acl_libext"
10972 fi
10973 fi
10974 if test "X$found_dir" != "X"; then
10975 if test -f "$dir/$libname.la"; then
10976 found_la="$dir/$libname.la"
10977 fi
10978 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010979 ;;
10980 esac
10981 if test "X$found_dir" != "X"; then
10982 break
10983 fi
10984 done
10985 fi
10986 if test "X$found_dir" != "X"; then
10987 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10988 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010989 if test "$enable_rpath" = no \
10990 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10991 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010992 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10993 else
10994 haveit=
10995 for x in $ltrpathdirs; do
10996 if test "X$x" = "X$found_dir"; then
10997 haveit=yes
10998 break
10999 fi
11000 done
11001 if test -z "$haveit"; then
11002 ltrpathdirs="$ltrpathdirs $found_dir"
11003 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011004 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011005 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11006 else
Theodore Ts'o93613952014-07-03 23:44:13 -040011007 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011008 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11009 haveit=
11010 for x in $rpathdirs; do
11011 if test "X$x" = "X$found_dir"; then
11012 haveit=yes
11013 break
11014 fi
11015 done
11016 if test -z "$haveit"; then
11017 rpathdirs="$rpathdirs $found_dir"
11018 fi
11019 else
11020 haveit=
11021 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011022
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011023 acl_save_prefix="$prefix"
11024 prefix="$acl_final_prefix"
11025 acl_save_exec_prefix="$exec_prefix"
11026 exec_prefix="$acl_final_exec_prefix"
11027 eval x=\"$x\"
11028 exec_prefix="$acl_save_exec_prefix"
11029 prefix="$acl_save_prefix"
11030
11031 if test "X$x" = "X-L$found_dir"; then
11032 haveit=yes
11033 break
11034 fi
11035 done
11036 if test -z "$haveit"; then
11037 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11038 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011039 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011040 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11041 else
11042 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11043 fi
11044 fi
11045 fi
11046 fi
11047 else
11048 if test "X$found_a" != "X"; then
11049 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11050 else
11051 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11052 fi
11053 fi
11054 additional_includedir=
11055 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -040011056 */$acl_libdirstem | */$acl_libdirstem/)
11057 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11058 if test "$name" = 'intl'; then
11059 LIBINTL_PREFIX="$basedir"
11060 fi
11061 additional_includedir="$basedir/include"
11062 ;;
11063 */$acl_libdirstem2 | */$acl_libdirstem2/)
11064 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11065 if test "$name" = 'intl'; then
11066 LIBINTL_PREFIX="$basedir"
11067 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011068 additional_includedir="$basedir/include"
11069 ;;
11070 esac
11071 if test "X$additional_includedir" != "X"; then
11072 if test "X$additional_includedir" != "X/usr/include"; then
11073 haveit=
11074 if test "X$additional_includedir" = "X/usr/local/include"; then
11075 if test -n "$GCC"; then
11076 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011077 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011078 esac
11079 fi
11080 fi
11081 if test -z "$haveit"; then
11082 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011083
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011084 acl_save_prefix="$prefix"
11085 prefix="$acl_final_prefix"
11086 acl_save_exec_prefix="$exec_prefix"
11087 exec_prefix="$acl_final_exec_prefix"
11088 eval x=\"$x\"
11089 exec_prefix="$acl_save_exec_prefix"
11090 prefix="$acl_save_prefix"
11091
11092 if test "X$x" = "X-I$additional_includedir"; then
11093 haveit=yes
11094 break
11095 fi
11096 done
11097 if test -z "$haveit"; then
11098 if test -d "$additional_includedir"; then
11099 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11100 fi
11101 fi
11102 fi
11103 fi
11104 fi
11105 if test -n "$found_la"; then
11106 save_libdir="$libdir"
11107 case "$found_la" in
11108 */* | *\\*) . "$found_la" ;;
11109 *) . "./$found_la" ;;
11110 esac
11111 libdir="$save_libdir"
11112 for dep in $dependency_libs; do
11113 case "$dep" in
11114 -L*)
11115 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040011116 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11117 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011118 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -040011119 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11120 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011121 if test -n "$GCC"; then
11122 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011123 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011124 esac
11125 fi
11126 fi
11127 if test -z "$haveit"; then
11128 haveit=
11129 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011130
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011131 acl_save_prefix="$prefix"
11132 prefix="$acl_final_prefix"
11133 acl_save_exec_prefix="$exec_prefix"
11134 exec_prefix="$acl_final_exec_prefix"
11135 eval x=\"$x\"
11136 exec_prefix="$acl_save_exec_prefix"
11137 prefix="$acl_save_prefix"
11138
11139 if test "X$x" = "X-L$additional_libdir"; then
11140 haveit=yes
11141 break
11142 fi
11143 done
11144 if test -z "$haveit"; then
11145 if test -d "$additional_libdir"; then
11146 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11147 fi
11148 fi
11149 haveit=
11150 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011151
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011152 acl_save_prefix="$prefix"
11153 prefix="$acl_final_prefix"
11154 acl_save_exec_prefix="$exec_prefix"
11155 exec_prefix="$acl_final_exec_prefix"
11156 eval x=\"$x\"
11157 exec_prefix="$acl_save_exec_prefix"
11158 prefix="$acl_save_prefix"
11159
11160 if test "X$x" = "X-L$additional_libdir"; then
11161 haveit=yes
11162 break
11163 fi
11164 done
11165 if test -z "$haveit"; then
11166 if test -d "$additional_libdir"; then
11167 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11168 fi
11169 fi
11170 fi
11171 fi
11172 ;;
11173 -R*)
11174 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11175 if test "$enable_rpath" != no; then
11176 haveit=
11177 for x in $rpathdirs; do
11178 if test "X$x" = "X$dir"; then
11179 haveit=yes
11180 break
11181 fi
11182 done
11183 if test -z "$haveit"; then
11184 rpathdirs="$rpathdirs $dir"
11185 fi
11186 haveit=
11187 for x in $ltrpathdirs; do
11188 if test "X$x" = "X$dir"; then
11189 haveit=yes
11190 break
11191 fi
11192 done
11193 if test -z "$haveit"; then
11194 ltrpathdirs="$ltrpathdirs $dir"
11195 fi
11196 fi
11197 ;;
11198 -l*)
11199 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11200 ;;
11201 *.la)
11202 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11203 ;;
11204 *)
11205 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11206 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11207 ;;
11208 esac
11209 done
11210 fi
11211 else
11212 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11213 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11214 fi
11215 fi
11216 fi
11217 done
11218 done
11219 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011220 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011221 alldirs=
11222 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -040011223 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011224 done
11225 acl_save_libdir="$libdir"
11226 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -040011227 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011228 libdir="$acl_save_libdir"
11229 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11230 else
11231 for found_dir in $rpathdirs; do
11232 acl_save_libdir="$libdir"
11233 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040011234 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011235 libdir="$acl_save_libdir"
11236 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11237 done
11238 fi
11239 fi
11240 if test "X$ltrpathdirs" != "X"; then
11241 for found_dir in $ltrpathdirs; do
11242 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11243 done
11244 fi
11245
Theodore Ts'o93613952014-07-03 23:44:13 -040011246
11247
11248
11249
11250
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011252$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040011253if eval \${$gt_func_gnugettext_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011254 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011255else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011256 gt_save_CPPFLAGS="$CPPFLAGS"
11257 CPPFLAGS="$CPPFLAGS $INCINTL"
11258 gt_save_LIBS="$LIBS"
11259 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011261/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011262
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011263#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011264$gt_revision_test_code
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011265extern int _nl_msg_cat_cntr;
11266extern
11267#ifdef __cplusplus
11268"C"
11269#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011270const char *_nl_expand_alias (const char *);
11271
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011272int
11273main ()
11274{
Theodore Ts'o93613952014-07-03 23:44:13 -040011275
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011276bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011277return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11278
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011279 ;
11280 return 0;
11281}
11282_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011283if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040011284 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011285else
Theodore Ts'o93613952014-07-03 23:44:13 -040011286 eval "$gt_func_gnugettext_libintl=no"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011287fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011288rm -f core conftest.err conftest.$ac_objext \
11289 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -040011290 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011291 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011293/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011294
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011295#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011296$gt_revision_test_code
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011297extern int _nl_msg_cat_cntr;
11298extern
11299#ifdef __cplusplus
11300"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011301#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011302const char *_nl_expand_alias (const char *);
11303
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011304int
11305main ()
11306{
Theodore Ts'o93613952014-07-03 23:44:13 -040011307
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011308bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011309return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11310
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011311 ;
11312 return 0;
11313}
11314_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011315if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011316 LIBINTL="$LIBINTL $LIBICONV"
Theodore Ts'o93613952014-07-03 23:44:13 -040011317 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11318 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011319
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011320fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011321rm -f core conftest.err conftest.$ac_objext \
11322 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011323 fi
11324 CPPFLAGS="$gt_save_CPPFLAGS"
11325 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011326fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011327eval ac_res=\$$gt_func_gnugettext_libintl
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11329$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011330 fi
11331
Theodore Ts'o93613952014-07-03 23:44:13 -040011332 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11333 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011334 && test "$PACKAGE" != gettext-runtime \
11335 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011336 gt_use_preinstalled_gnugettext=yes
11337 else
11338 LIBINTL=
11339 LTLIBINTL=
11340 INCINTL=
11341 fi
11342
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011343
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011344 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11345 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011346 fi
11347 fi
11348
11349 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011350 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011351 USE_INCLUDED_LIBINTL=yes
Theodore Ts'o93613952014-07-03 23:44:13 -040011352 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11353 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011354 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011355 fi
11356
Theodore Ts'o93613952014-07-03 23:44:13 -040011357 CATOBJEXT=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011358 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11359 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11360 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011361 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011362
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011363
Theodore Ts'o93613952014-07-03 23:44:13 -040011364 if test -n "$INTL_MACOSX_LIBS"; then
11365 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11366 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11367 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11368 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11369 fi
11370 fi
11371
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011372 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11373 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011374
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011375$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011376
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011377 else
11378 USE_NLS=no
11379 fi
11380 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011381
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011383$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011385$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011386 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011388$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011389 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011390 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011391 gt_source="external libintl"
11392 else
11393 gt_source="libc"
11394 fi
11395 else
11396 gt_source="included intl directory"
11397 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011399$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011400 fi
11401
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011402 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011403
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011404 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011405 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011407$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011409$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011410
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011411 for element in $INCINTL; do
11412 haveit=
11413 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011414
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011415 acl_save_prefix="$prefix"
11416 prefix="$acl_final_prefix"
11417 acl_save_exec_prefix="$exec_prefix"
11418 exec_prefix="$acl_final_exec_prefix"
11419 eval x=\"$x\"
11420 exec_prefix="$acl_save_exec_prefix"
11421 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011422
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011423 if test "X$x" = "X$element"; then
11424 haveit=yes
11425 break
11426 fi
11427 done
11428 if test -z "$haveit"; then
11429 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11430 fi
11431 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011432
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011433 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011434
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011435
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011436$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011437
11438
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011439$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011440
11441 fi
11442
11443 POSUB=po
11444 fi
11445
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011446
11447 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011448 BUILD_INCLUDED_LIBINTL=yes
11449 fi
11450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011451
11452
11453
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011454
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011455 nls_cv_header_intl=
11456 nls_cv_header_libgt=
11457
11458 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011459
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011460
11461 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011462
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011463
11464 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011465
11466
Theodore Ts'o93613952014-07-03 23:44:13 -040011467 INTLOBJS=
11468 if test "$USE_INCLUDED_LIBINTL" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011469 INTLOBJS="\$(GETTOBJS)"
11470 fi
11471
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011472
11473 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011474
11475
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011476
11477 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011478
11479
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011480
11481
11482
11483
11484
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011486$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11487set x ${MAKE-make}
11488ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011489if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011490 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011491else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011492 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011493SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011494all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011495 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011496_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011497# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011498case `${MAKE-make} -f conftest.make 2>/dev/null` in
11499 *@@@%%%=?*=@@@%%%*)
11500 eval ac_cv_prog_make_${ac_make}_set=yes;;
11501 *)
11502 eval ac_cv_prog_make_${ac_make}_set=no;;
11503esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011504rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011505fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011506if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011508$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011509 SET_MAKE=
11510else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011512$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011513 SET_MAKE="MAKE=${MAKE-make}"
11514fi
11515
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011517$as_echo_n "checking for GNU make... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011518if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011519 $as_echo_n "(cached) " >&6
11520else
11521 _cv_gnu_make_command='' ;
11522 for a in "$MAKE" make gmake gnumake ; do
11523 if test -z "$a" ; then continue ; fi ;
11524 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11525 _cv_gnu_make_command=$a ;
11526 break;
11527 fi
11528 done ;
11529
11530fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011532$as_echo "$_cv_gnu_make_command" >&6; } ;
11533 if test "x$_cv_gnu_make_command" != "x" ; then
11534 ifGNUmake='' ;
11535 ifNotGNUmake='#' ;
11536 else
11537 ifGNUmake='#' ;
11538 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011540$as_echo "\"Not found\"" >&6; };
11541 fi
11542
11543
11544
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011545# Extract the first word of "ln", so it can be a program name with args.
11546set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011548$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011549if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011550 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011551else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011552 case $LN in
11553 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011554 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11555 ;;
11556 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558for as_dir in $PATH
11559do
11560 IFS=$as_save_IFS
11561 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011562 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011564 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011566 break 2
11567 fi
11568done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011569 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011570IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011571
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011572 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11573 ;;
11574esac
11575fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011576LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011577if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011579$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011580else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011582$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011583fi
11584
Theodore Ts'oe1052142006-10-21 21:46:47 -040011585
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011587$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011588LN_S=$as_ln_s
11589if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011591$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011592else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011594$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011595fi
11596
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011597# Extract the first word of "mv", so it can be a program name with args.
11598set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011600$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011601if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011602 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011603else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011604 case $MV in
11605 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011606 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11607 ;;
11608 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11610for as_dir in $PATH
11611do
11612 IFS=$as_save_IFS
11613 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011614 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011616 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011618 break 2
11619 fi
11620done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011621 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011622IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011623
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011624 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11625 ;;
11626esac
11627fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011628MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011629if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011631$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011632else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011634$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011635fi
11636
Theodore Ts'oe1052142006-10-21 21:46:47 -040011637
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011638# Extract the first word of "cp", so it can be a program name with args.
11639set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011641$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011642if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011643 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011644else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011645 case $CP in
11646 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011647 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11648 ;;
11649 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651for as_dir in $PATH
11652do
11653 IFS=$as_save_IFS
11654 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011655 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011657 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011659 break 2
11660 fi
11661done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011662 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011663IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011664
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011665 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11666 ;;
11667esac
11668fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011669CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011670if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011672$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011673else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011675$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011676fi
11677
Theodore Ts'oe1052142006-10-21 21:46:47 -040011678
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011679# Extract the first word of "rm", so it can be a program name with args.
11680set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011682$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011683if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011684 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011685else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011686 case $RM in
11687 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011688 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11689 ;;
11690 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692for as_dir in $PATH
11693do
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011696 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011698 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011700 break 2
11701 fi
11702done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011703 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011704IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011705
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011706 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11707 ;;
11708esac
11709fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011710RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011711if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011713$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011714else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011716$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011717fi
11718
Theodore Ts'oe1052142006-10-21 21:46:47 -040011719
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011720# Extract the first word of "chmod", so it can be a program name with args.
11721set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011723$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011724if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011725 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011726else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011727 case $CHMOD in
11728 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011729 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11730 ;;
11731 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733for as_dir in $PATH
11734do
11735 IFS=$as_save_IFS
11736 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011737 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011739 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011741 break 2
11742 fi
11743done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011744 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011745IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011746
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011747 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11748 ;;
11749esac
11750fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011751CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011752if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011754$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011755else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011757$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011758fi
11759
Theodore Ts'oe1052142006-10-21 21:46:47 -040011760
Theodore Ts'o32237012005-01-17 19:13:39 -050011761for ac_prog in gawk mawk nawk awk
11762do
11763 # Extract the first word of "$ac_prog", so it can be a program name with args.
11764set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011766$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011767if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011768 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011769else
Theodore Ts'o32237012005-01-17 19:13:39 -050011770 if test -n "$AWK"; then
11771 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11772else
11773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011774for as_dir in $PATH
11775do
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011778 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011780 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011782 break 2
11783 fi
11784done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011785 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011786IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011787
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011788fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011789fi
11790AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011791if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011793$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011794else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011796$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011797fi
11798
Theodore Ts'oe1052142006-10-21 21:46:47 -040011799
Theodore Ts'o32237012005-01-17 19:13:39 -050011800 test -n "$AWK" && break
11801done
11802
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011804$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011805if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011806 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011807else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011808 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11809 then ac_cv_path_EGREP="$GREP -E"
11810 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011811 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011812 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011813 # Loop through the user's path and test for each of PROGNAME-LIST
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011815for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11816do
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011819 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011820 for ac_exec_ext in '' $ac_executable_extensions; do
11821 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011822 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011823# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011824 # Check for GNU $ac_path_EGREP
11825case `"$ac_path_EGREP" --version 2>&1` in
11826*GNU*)
11827 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11828*)
11829 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011830 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011831 while :
11832 do
11833 cat "conftest.in" "conftest.in" >"conftest.tmp"
11834 mv "conftest.tmp" "conftest.in"
11835 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011836 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011837 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011839 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -040011840 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11841 # Best one so far, save it but keep looking for a better one
11842 ac_cv_path_EGREP="$ac_path_EGREP"
11843 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011844 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011845 # 10*(2^10) chars as input seems more than enough
11846 test $ac_count -gt 10 && break
11847 done
11848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11849esac
11850
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011851 $ac_path_EGREP_found && break 3
11852 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011853 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011854 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011855IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011856 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011857 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 +010011858 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011859else
11860 ac_cv_path_EGREP=$EGREP
11861fi
11862
Theodore Ts'oe1052142006-10-21 21:46:47 -040011863 fi
11864fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011866$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011867 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011868
11869
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011870# Extract the first word of "sed", so it can be a program name with args.
11871set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011873$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011874if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011875 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011876else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011877 case $SED in
11878 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011879 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11880 ;;
11881 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883for as_dir in $PATH
11884do
11885 IFS=$as_save_IFS
11886 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011887 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011889 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011891 break 2
11892 fi
11893done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011894 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011895IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011896
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011897 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11898 ;;
11899esac
11900fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011901SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011902if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011904$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011905else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011907$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011908fi
11909
Theodore Ts'oe1052142006-10-21 21:46:47 -040011910
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011911# Extract the first word of "perl", so it can be a program name with args.
11912set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011914$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011915if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011916 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011917else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011918 case $PERL in
11919 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011920 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11921 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011922 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924for as_dir in $PATH
11925do
11926 IFS=$as_save_IFS
11927 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011928 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011930 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011932 break 2
11933 fi
11934done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011935 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011936IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011937
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011938 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11939 ;;
11940esac
11941fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011942PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011943if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011945$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011946else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011948$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011949fi
11950
Theodore Ts'oe1052142006-10-21 21:46:47 -040011951
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011952# Extract the first word of "ldconfig", so it can be a program name with args.
11953set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011955$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011956if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011957 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011958else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011959 case $LDCONFIG in
11960 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011961 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11962 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011963 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11965for as_dir in $PATH
11966do
11967 IFS=$as_save_IFS
11968 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011969 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011971 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011973 break 2
11974 fi
11975done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011976 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011977IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011978
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011979 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11980 ;;
11981esac
11982fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011983LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011984if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011986$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011987else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011989$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011990fi
11991
Theodore Ts'oe1052142006-10-21 21:46:47 -040011992
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011993if test -n "$ac_tool_prefix"; then
11994 # 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 +000011995set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011997$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011998if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011999 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012000else
12001 if test -n "$AR"; then
12002 ac_cv_prog_AR="$AR" # Let the user override the test.
12003else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12005for as_dir in $PATH
12006do
12007 IFS=$as_save_IFS
12008 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012009 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012011 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012013 break 2
12014 fi
12015done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012016 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012017IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012018
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012019fi
12020fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012021AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012022if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012024$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012025else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012027$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012028fi
12029
Theodore Ts'oe1052142006-10-21 21:46:47 -040012030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012031fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012032if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012033 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012034 # Extract the first word of "ar", so it can be a program name with args.
12035set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012037$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012038if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012039 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012040else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012041 if test -n "$ac_ct_AR"; then
12042 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012043else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045for as_dir in $PATH
12046do
12047 IFS=$as_save_IFS
12048 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012049 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012051 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012053 break 2
12054 fi
12055done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012056 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012057IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012058
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012059fi
12060fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012061ac_ct_AR=$ac_cv_prog_ac_ct_AR
12062if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012064$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012065else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012067$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012068fi
12069
Theodore Ts'oe1052142006-10-21 21:46:47 -040012070 if test "x$ac_ct_AR" = x; then
12071 AR="ar"
12072 else
12073 case $cross_compiling:$ac_tool_warned in
12074yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012075{ $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 +010012076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012077ac_tool_warned=yes ;;
12078esac
12079 AR=$ac_ct_AR
12080 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012081else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012082 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012083fi
12084
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012085if test -n "$ac_tool_prefix"; then
12086 # 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 +000012087set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012089$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012090if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012091 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012092else
12093 if test -n "$RANLIB"; then
12094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12095else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12097for as_dir in $PATH
12098do
12099 IFS=$as_save_IFS
12100 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012101 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012105 break 2
12106 fi
12107done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012108 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012109IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012110
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012111fi
12112fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012113RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012114if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012116$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012117else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012119$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012120fi
12121
Theodore Ts'oe1052142006-10-21 21:46:47 -040012122
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012123fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012124if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012125 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012126 # Extract the first word of "ranlib", so it can be a program name with args.
12127set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012129$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012130if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012131 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012132else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012133 if test -n "$ac_ct_RANLIB"; then
12134 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012135else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137for as_dir in $PATH
12138do
12139 IFS=$as_save_IFS
12140 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012141 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012143 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012145 break 2
12146 fi
12147done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012148 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012149IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012150
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012151fi
12152fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012153ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12154if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012156$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012157else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012159$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012160fi
12161
Theodore Ts'oe1052142006-10-21 21:46:47 -040012162 if test "x$ac_ct_RANLIB" = x; then
12163 RANLIB=":"
12164 else
12165 case $cross_compiling:$ac_tool_warned in
12166yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012167{ $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 +010012168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012169ac_tool_warned=yes ;;
12170esac
12171 RANLIB=$ac_ct_RANLIB
12172 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012173else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012174 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012175fi
12176
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012177if test -n "$ac_tool_prefix"; then
12178 # 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 +000012179set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012181$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012182if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012183 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012184else
12185 if test -n "$STRIP"; then
12186 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12187else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189for as_dir in $PATH
12190do
12191 IFS=$as_save_IFS
12192 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012193 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012195 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012197 break 2
12198 fi
12199done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012200 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012201IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012202
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012203fi
12204fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012205STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012206if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012208$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012209else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012211$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012212fi
12213
Theodore Ts'oe1052142006-10-21 21:46:47 -040012214
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012215fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012216if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012217 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012218 # Extract the first word of "strip", so it can be a program name with args.
12219set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012221$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012222if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012223 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012224else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012225 if test -n "$ac_ct_STRIP"; then
12226 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012227else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229for as_dir in $PATH
12230do
12231 IFS=$as_save_IFS
12232 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012233 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012235 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012237 break 2
12238 fi
12239done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012240 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012241IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012242
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012243fi
12244fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012245ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12246if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012248$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012249else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012251$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012252fi
12253
Theodore Ts'oe1052142006-10-21 21:46:47 -040012254 if test "x$ac_ct_STRIP" = x; then
12255 STRIP=":"
12256 else
12257 case $cross_compiling:$ac_tool_warned in
12258yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012259{ $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 +010012260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012261ac_tool_warned=yes ;;
12262esac
12263 STRIP=$ac_ct_STRIP
12264 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012265else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012266 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012267fi
12268
Manish Katiyar7321d942008-04-14 17:20:03 +053012269# Extract the first word of "makeinfo", so it can be a program name with args.
12270set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012272$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012273if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012274 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012275else
12276 if test -n "$MAKEINFO"; then
12277 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12278else
12279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280for as_dir in $PATH
12281do
12282 IFS=$as_save_IFS
12283 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012284 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053012286 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012288 break 2
12289 fi
12290done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012291 done
Manish Katiyar7321d942008-04-14 17:20:03 +053012292IFS=$as_save_IFS
12293
12294fi
12295fi
12296MAKEINFO=$ac_cv_prog_MAKEINFO
12297if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012299$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012300else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012302$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012303fi
12304
12305
12306if test "_$MAKEINFO" = "_"; then
12307 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12308else
12309 case "$MAKEINFO" in
12310 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012312*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012313$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012314*** Makeinfo is missing. Info documentation will not be built." >&2;}
12315 ;;
12316 *)
12317 ;;
12318 esac
12319fi
12320
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012321
Theodore Ts'o6c133521999-07-03 20:37:03 +000012322# See if we need a separate native compiler.
12323if test $cross_compiling = no; then
12324 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012325
Theodore Ts'o6c133521999-07-03 20:37:03 +000012326else
12327 for ac_prog in gcc cc
12328do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012329 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012330set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012332$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012333if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012334 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012335else
12336 if test -n "$BUILD_CC"; then
12337 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12338else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012341do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012342 IFS=$as_save_IFS
12343 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012344 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012346 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012348 break 2
12349 fi
12350done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012351 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012352IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012353
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012354fi
12355fi
12356BUILD_CC=$ac_cv_prog_BUILD_CC
12357if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012359$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012360else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012362$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012363fi
12364
Theodore Ts'oe1052142006-10-21 21:46:47 -040012365
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012366 test -n "$BUILD_CC" && break
12367done
12368
12369fi
Theodore Ts'o74f2c4a2015-06-19 19:28:25 -040012370for 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 -050012371do :
12372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12373ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012374if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012375 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012376#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012377_ACEOF
12378
12379fi
12380
12381done
12382
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012383for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012384do :
12385 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012386#if HAVE_SYS_TYPES_H
12387#include <sys/types.h>
12388#endif
12389#if HAVE_SYS_SOCKET
12390#include <sys/socket.h>
12391#endif
12392
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012393"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012394if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012395 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012396#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012397_ACEOF
12398
12399fi
12400
12401done
12402
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012403for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012404do :
12405 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012406if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012407 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012408#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012409_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012410
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012411ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012412if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012413
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012414$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012415
12416fi
12417
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012418fi
12419done
12420
12421
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012422ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12423"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012424if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012425
12426$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012427
12428fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012429
Theodore Ts'o28739272014-01-03 00:26:43 -050012430ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12431if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12432
12433cat >>confdefs.h <<_ACEOF
12434#define HAVE_STRUCT_STAT_ST_ATIM 1
12435_ACEOF
12436
12437
12438fi
12439
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012440ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12441"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012442if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012443
12444$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012445
Theodore Ts'offf45482003-04-13 00:44:19 -040012446fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012447
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012448ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12449"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012450if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012451
12452$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012453
12454fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012455
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012456ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012457 #define _LARGEFILE64_SOURCE
12458 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012459"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012460if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012461
12462$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012463
12464fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012465
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012466# The cast to long int works around a bug in the HP C Compiler
12467# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12468# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12469# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012471$as_echo_n "checking size of short... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012472if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012473 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012474else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012475 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 -050012476
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012477else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012478 if test "$ac_cv_type_short" = yes; then
12479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012481as_fn_error 77 "cannot compute sizeof (short)
12482See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012483 else
12484 ac_cv_sizeof_short=0
12485 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012486fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012487
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012488fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012490$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012491
12492
12493
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012494cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012495#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012496_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012497
12498
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012499# The cast to long int works around a bug in the HP C Compiler
12500# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12501# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12502# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012504$as_echo_n "checking size of int... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012505if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012506 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012507else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012508 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 -050012509
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012510else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012511 if test "$ac_cv_type_int" = yes; then
12512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012514as_fn_error 77 "cannot compute sizeof (int)
12515See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012516 else
12517 ac_cv_sizeof_int=0
12518 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012519fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012521fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012523$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012524
12525
12526
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012527cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012528#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012529_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012530
12531
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012532# The cast to long int works around a bug in the HP C Compiler
12533# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12534# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12535# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012537$as_echo_n "checking size of long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012538if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012539 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012540else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012541 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 -050012542
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012543else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012544 if test "$ac_cv_type_long" = yes; then
12545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012547as_fn_error 77 "cannot compute sizeof (long)
12548See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012549 else
12550 ac_cv_sizeof_long=0
12551 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012552fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012553
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012554fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012556$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012557
12558
12559
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012560cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012561#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012562_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012563
12564
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012565# The cast to long int works around a bug in the HP C Compiler
12566# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12567# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12568# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012570$as_echo_n "checking size of long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012571if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012572 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012573else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012574 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 -050012575
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012576else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012577 if test "$ac_cv_type_long_long" = yes; then
12578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012580as_fn_error 77 "cannot compute sizeof (long long)
12581See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012582 else
12583 ac_cv_sizeof_long_long=0
12584 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012585fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012586
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012587fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012589$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012590
12591
12592
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012593cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012594#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012595_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012596
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012597
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012598# The cast to long int works around a bug in the HP C Compiler
12599# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12600# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12601# This bug is HP SR number 8606223364.
12602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12603$as_echo_n "checking size of off_t... " >&6; }
12604if ${ac_cv_sizeof_off_t+:} false; then :
12605 $as_echo_n "(cached) " >&6
12606else
12607 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12608
12609else
12610 if test "$ac_cv_type_off_t" = yes; then
12611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12613as_fn_error 77 "cannot compute sizeof (off_t)
12614See \`config.log' for more details" "$LINENO" 5; }
12615 else
12616 ac_cv_sizeof_off_t=0
12617 fi
12618fi
12619
12620fi
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12622$as_echo "$ac_cv_sizeof_off_t" >&6; }
12623
12624
12625
12626cat >>confdefs.h <<_ACEOF
12627#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12628_ACEOF
12629
12630
Theodore Ts'o2dd680f2016-05-29 01:07:40 -040012631# The cast to long int works around a bug in the HP C Compiler
12632# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12633# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12634# This bug is HP SR number 8606223364.
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12636$as_echo_n "checking size of time_t... " >&6; }
12637if ${ac_cv_sizeof_time_t+:} false; then :
12638 $as_echo_n "(cached) " >&6
12639else
12640 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12641
12642else
12643 if test "$ac_cv_type_time_t" = yes; then
12644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12646as_fn_error 77 "cannot compute sizeof (time_t)
12647See \`config.log' for more details" "$LINENO" 5; }
12648 else
12649 ac_cv_sizeof_time_t=0
12650 fi
12651fi
12652
12653fi
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12655$as_echo "$ac_cv_sizeof_time_t" >&6; }
12656
12657
12658
12659cat >>confdefs.h <<_ACEOF
12660#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12661_ACEOF
12662
12663
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012664SIZEOF_SHORT=$ac_cv_sizeof_short
12665SIZEOF_INT=$ac_cv_sizeof_int
12666SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012667SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012668SIZEOF_OFF_T=$ac_cv_sizeof_off_t
Theodore Ts'o2dd680f2016-05-29 01:07:40 -040012669SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12670
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012671
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012672
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012673
12674
12675
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012677$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012678if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012679 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012680else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012681 ac_cv_c_bigendian=unknown
12682 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012684/* end confdefs.h. */
12685#ifndef __APPLE_CC__
12686 not a universal capable compiler
12687 #endif
12688 typedef int dummy;
12689
12690_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012691if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012692
12693 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012694 # there are at least two -arch flags with different values.
12695 ac_arch=
12696 ac_prev=
12697 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12698 if test -n "$ac_prev"; then
12699 case $ac_word in
12700 i?86 | x86_64 | ppc | ppc64)
12701 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12702 ac_arch=$ac_word
12703 else
12704 ac_cv_c_bigendian=universal
12705 break
12706 fi
12707 ;;
12708 esac
12709 ac_prev=
12710 elif test "x$ac_word" = "x-arch"; then
12711 ac_prev=arch
12712 fi
12713 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012714fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716 if test $ac_cv_c_bigendian = unknown; then
12717 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012719/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012720#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012721 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012722
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012723int
12724main ()
12725{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012726#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12727 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12728 && LITTLE_ENDIAN)
12729 bogus endian macros
12730 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012731
12732 ;
12733 return 0;
12734}
12735_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012736if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012737 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012739/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012740#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012741 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012742
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012743int
12744main ()
12745{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012746#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012747 not big endian
12748 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012749
12750 ;
12751 return 0;
12752}
12753_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012754if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012755 ac_cv_c_bigendian=yes
12756else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012757 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012758fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012760fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12762 fi
12763 if test $ac_cv_c_bigendian = unknown; then
12764 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012766/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012767#include <limits.h>
12768
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012769int
12770main ()
12771{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012772#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12773 bogus endian macros
12774 #endif
12775
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012776 ;
12777 return 0;
12778}
12779_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012780if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012781 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012783/* end confdefs.h. */
12784#include <limits.h>
12785
12786int
12787main ()
12788{
12789#ifndef _BIG_ENDIAN
12790 not big endian
12791 #endif
12792
12793 ;
12794 return 0;
12795}
12796_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012797if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012798 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012799else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012800 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012801fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012803fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12805 fi
12806 if test $ac_cv_c_bigendian = unknown; then
12807 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012808 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012809 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012811/* end confdefs.h. */
12812short int ascii_mm[] =
12813 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12814 short int ascii_ii[] =
12815 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12816 int use_ascii (int i) {
12817 return ascii_mm[i] + ascii_ii[i];
12818 }
12819 short int ebcdic_ii[] =
12820 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12821 short int ebcdic_mm[] =
12822 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12823 int use_ebcdic (int i) {
12824 return ebcdic_mm[i] + ebcdic_ii[i];
12825 }
12826 extern int foo;
12827
12828int
12829main ()
12830{
12831return use_ascii (foo) == use_ebcdic (foo);
12832 ;
12833 return 0;
12834}
12835_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012836if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012837 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12838 ac_cv_c_bigendian=yes
12839 fi
12840 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12841 if test "$ac_cv_c_bigendian" = unknown; then
12842 ac_cv_c_bigendian=no
12843 else
12844 # finding both strings is unlikely to happen, but who knows?
12845 ac_cv_c_bigendian=unknown
12846 fi
12847 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012848fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012850else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012852/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012853$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012854int
12855main ()
12856{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012857
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012858 /* Are we little or big endian? From Harbison&Steele. */
12859 union
12860 {
12861 long int l;
12862 char c[sizeof (long int)];
12863 } u;
12864 u.l = 1;
12865 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012866
12867 ;
12868 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012869}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012870_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012871if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012872 ac_cv_c_bigendian=no
12873else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012874 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012875fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012876rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12877 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012878fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012879
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012880 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012881fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012883$as_echo "$ac_cv_c_bigendian" >&6; }
12884 case $ac_cv_c_bigendian in #(
12885 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012886 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012887;; #(
12888 no)
12889 ;; #(
12890 universal)
12891
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012892$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012893
12894 ;; #(
12895 *)
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012896 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012897 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012898 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012899
Chen Qi91f04682014-05-05 21:08:42 -040012900if test $cross_compiling = no; then
12901 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12902else
12903 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12904fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040012905ASM_TYPES_HEADER=./asm_types.h
12906
Theodore Ts'o488c75a2008-06-07 08:55:21 -040012907echo "/* These defines are needed for the public ext2fs.h header file */" \
12908 > public_config.h
12909if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12910 uniq tmp_config.$$ >> public_config.h
12911else
12912 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12913fi
12914if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12915 uniq tmp_config.$$ >> public_config.h
12916else
12917 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12918fi
12919rm -f tmp_config.$$
12920PUBLIC_CONFIG_HEADER=./public_config.h
12921
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012922for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012923do :
12924 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012925if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012926 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012927#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012928_ACEOF
12929
12930fi
12931
Theodore Ts'o0c193f82003-08-01 14:26:23 -040012932done
12933
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012934ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012935if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012936
12937cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012938#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012939_ACEOF
12940
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012941
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012942fi
12943
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012944{ $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 +010012945$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012946if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012947 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012948else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012950/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012951#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012952int
12953main ()
12954{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012955struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012956 ;
12957 return 0;
12958}
12959_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012960if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012961 e2fsprogs_cv_struct_st_flags=yes
12962else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012963 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012964fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12966fi
12967
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012969$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012970if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012972$as_echo_n "checking whether st_flags field is useful... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012973 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012974 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012975else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012977/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012978#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012979int
12980main ()
12981{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012982struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012983 ;
12984 return 0;
12985}
12986_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012987if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012988 e2fsprogs_cv_struct_st_flags_immut=yes
12989else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012990 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012991fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993fi
12994
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012996$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012997 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012998
12999$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013000
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013001 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013002fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013003ac_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 -050013004 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013005"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013006if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013007
13008cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013009#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013010_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013011
13012fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013013
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013014if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013016$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013017if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013018 $as_echo_n "(cached) " >&6
13019else
13020 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013022/* end confdefs.h. */
13023
13024/* Override any GCC internal prototype to avoid an error.
13025 Use char because int might match the return type of a GCC
13026 builtin and then its argument prototype would still apply. */
13027#ifdef __cplusplus
13028extern "C"
13029#endif
13030char blkid_probe_all ();
13031int
13032main ()
13033{
13034return blkid_probe_all ();
13035 ;
13036 return 0;
13037}
13038_ACEOF
13039for ac_lib in '' blkid; do
13040 if test -z "$ac_lib"; then
13041 ac_res="none required"
13042 else
13043 ac_res=-l$ac_lib
13044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13045 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013046 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013047 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013048fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013049rm -f core conftest.err conftest.$ac_objext \
13050 conftest$ac_exeext
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013051 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013052 break
13053fi
13054done
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013055if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013056
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013057else
13058 ac_cv_search_blkid_probe_all=no
13059fi
13060rm conftest.$ac_ext
13061LIBS=$ac_func_search_save_LIBS
13062fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013064$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13065ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013066if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013067 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13068
13069fi
13070
13071fi
Theodore Ts'o74f2c4a2015-06-19 19:28:25 -040013072for 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 -050013073do :
13074 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13075ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013076if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013077 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013078#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013079_ACEOF
13080
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013081fi
13082done
13083
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013084SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013086$as_echo_n "checking for socket in -lsocket... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013087if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013088 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013089else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013090 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013091LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013093/* end confdefs.h. */
13094
Theodore Ts'oe1052142006-10-21 21:46:47 -040013095/* Override any GCC internal prototype to avoid an error.
13096 Use char because int might match the return type of a GCC
13097 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013098#ifdef __cplusplus
13099extern "C"
13100#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013101char socket ();
13102int
13103main ()
13104{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013105return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013106 ;
13107 return 0;
13108}
13109_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013110if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013111 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013112else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013113 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013114fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013115rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013117LIBS=$ac_check_lib_save_LIBS
13118fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013120$as_echo "$ac_cv_lib_socket_socket" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013121if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013122 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013123fi
13124
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013125
Darrick J. Wongb291c112014-09-13 15:12:46 -070013126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13127$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13128if ${ac_cv_lib_magic_magic_file+:} false; then :
13129 $as_echo_n "(cached) " >&6
13130else
13131 ac_check_lib_save_LIBS=$LIBS
13132LIBS="-lmagic $LIBS"
13133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134/* end confdefs.h. */
13135
13136/* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply. */
13139#ifdef __cplusplus
13140extern "C"
13141#endif
13142char magic_file ();
13143int
13144main ()
13145{
13146return magic_file ();
13147 ;
13148 return 0;
13149}
13150_ACEOF
13151if ac_fn_c_try_link "$LINENO"; then :
13152 ac_cv_lib_magic_magic_file=yes
13153else
13154 ac_cv_lib_magic_magic_file=no
13155fi
13156rm -f core conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
13158LIBS=$ac_check_lib_save_LIBS
13159fi
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13161$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13162if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13163 MAGIC_LIB=-lmagic
13164for ac_header in magic.h
13165do :
13166 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13167if test "x$ac_cv_header_magic_h" = xyes; then :
13168 cat >>confdefs.h <<_ACEOF
13169#define HAVE_MAGIC_H 1
13170_ACEOF
13171
13172fi
13173
13174done
13175
13176fi
13177
Theodore Ts'od2e3c0d2014-09-21 01:25:58 -040013178if test "$ac_cv_lib_dl_dlopen" = yes ; then
13179 MAGIC_LIB=$DLOPEN_LIB
13180fi
Darrick J. Wongb291c112014-09-13 15:12:46 -070013181
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -070013182FUSE_CMT=
13183FUSE_LIB=
13184# Check whether --enable-fuse2fs was given.
13185if test "${enable_fuse2fs+set}" = set; then :
13186 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13187then
13188 FUSE_CMT="#"
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13190$as_echo "Disabling fuse2fs" >&6; }
13191else
13192 for ac_header in pthread.h fuse.h
13193do :
13194 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13195ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13196#define FUSE_USE_VERSION 29
13197"
13198if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13199 cat >>confdefs.h <<_ACEOF
13200#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13201_ACEOF
13202
13203else
13204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13206as_fn_error $? "Cannot find fuse2fs headers.
13207See \`config.log' for more details" "$LINENO" 5; }
13208fi
13209
13210done
13211
13212
13213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214/* end confdefs.h. */
13215#define FUSE_USE_VERSION 29
13216#ifdef __linux__
13217#include <linux/fs.h>
13218#include <linux/falloc.h>
13219#include <linux/xattr.h>
13220#endif
13221
13222int
13223main ()
13224{
13225
13226 ;
13227 return 0;
13228}
13229_ACEOF
13230if ac_fn_c_try_cpp "$LINENO"; then :
13231
13232else
13233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13235as_fn_error $? "Cannot find fuse2fs Linux headers.
13236See \`config.log' for more details" "$LINENO" 5; }
13237fi
13238rm -f conftest.err conftest.i conftest.$ac_ext
13239
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13241$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13242if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13243 $as_echo_n "(cached) " >&6
13244else
13245 ac_check_lib_save_LIBS=$LIBS
13246LIBS="-losxfuse $LIBS"
13247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248/* end confdefs.h. */
13249
13250/* Override any GCC internal prototype to avoid an error.
13251 Use char because int might match the return type of a GCC
13252 builtin and then its argument prototype would still apply. */
13253#ifdef __cplusplus
13254extern "C"
13255#endif
13256char fuse_main ();
13257int
13258main ()
13259{
13260return fuse_main ();
13261 ;
13262 return 0;
13263}
13264_ACEOF
13265if ac_fn_c_try_link "$LINENO"; then :
13266 ac_cv_lib_osxfuse_fuse_main=yes
13267else
13268 ac_cv_lib_osxfuse_fuse_main=no
13269fi
13270rm -f core conftest.err conftest.$ac_objext \
13271 conftest$ac_exeext conftest.$ac_ext
13272LIBS=$ac_check_lib_save_LIBS
13273fi
13274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13275$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13276if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13277 FUSE_LIB=-losxfuse
13278else
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13280$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13281if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13282 $as_echo_n "(cached) " >&6
13283else
13284 ac_check_lib_save_LIBS=$LIBS
13285LIBS="-lfuse $LIBS"
13286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287/* end confdefs.h. */
13288
13289/* Override any GCC internal prototype to avoid an error.
13290 Use char because int might match the return type of a GCC
13291 builtin and then its argument prototype would still apply. */
13292#ifdef __cplusplus
13293extern "C"
13294#endif
13295char fuse_main ();
13296int
13297main ()
13298{
13299return fuse_main ();
13300 ;
13301 return 0;
13302}
13303_ACEOF
13304if ac_fn_c_try_link "$LINENO"; then :
13305 ac_cv_lib_fuse_fuse_main=yes
13306else
13307 ac_cv_lib_fuse_fuse_main=no
13308fi
13309rm -f core conftest.err conftest.$ac_objext \
13310 conftest$ac_exeext conftest.$ac_ext
13311LIBS=$ac_check_lib_save_LIBS
13312fi
13313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13314$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13315if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13316 FUSE_LIB=-lfuse
13317else
13318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13320as_fn_error $? "Cannot find fuse library.
13321See \`config.log' for more details" "$LINENO" 5; }
13322fi
13323
13324fi
13325
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13327$as_echo "Enabling fuse2fs" >&6; }
13328fi
13329
13330else
13331 for ac_header in pthread.h fuse.h
13332do :
13333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13334ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13335#define FUSE_USE_VERSION 29
13336#ifdef __linux__
13337# include <linux/fs.h>
13338# include <linux/falloc.h>
13339# include <linux/xattr.h>
13340#endif
13341"
13342if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13343 cat >>confdefs.h <<_ACEOF
13344#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13345_ACEOF
13346
13347else
13348 FUSE_CMT="#"
13349fi
13350
13351done
13352
13353if test -z "$FUSE_CMT"
13354then
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13356$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13357if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13358 $as_echo_n "(cached) " >&6
13359else
13360 ac_check_lib_save_LIBS=$LIBS
13361LIBS="-losxfuse $LIBS"
13362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363/* end confdefs.h. */
13364
13365/* Override any GCC internal prototype to avoid an error.
13366 Use char because int might match the return type of a GCC
13367 builtin and then its argument prototype would still apply. */
13368#ifdef __cplusplus
13369extern "C"
13370#endif
13371char fuse_main ();
13372int
13373main ()
13374{
13375return fuse_main ();
13376 ;
13377 return 0;
13378}
13379_ACEOF
13380if ac_fn_c_try_link "$LINENO"; then :
13381 ac_cv_lib_osxfuse_fuse_main=yes
13382else
13383 ac_cv_lib_osxfuse_fuse_main=no
13384fi
13385rm -f core conftest.err conftest.$ac_objext \
13386 conftest$ac_exeext conftest.$ac_ext
13387LIBS=$ac_check_lib_save_LIBS
13388fi
13389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13390$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13391if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13392 FUSE_LIB=-losxfuse
13393else
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13395$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13396if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13397 $as_echo_n "(cached) " >&6
13398else
13399 ac_check_lib_save_LIBS=$LIBS
13400LIBS="-lfuse $LIBS"
13401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13402/* end confdefs.h. */
13403
13404/* Override any GCC internal prototype to avoid an error.
13405 Use char because int might match the return type of a GCC
13406 builtin and then its argument prototype would still apply. */
13407#ifdef __cplusplus
13408extern "C"
13409#endif
13410char fuse_main ();
13411int
13412main ()
13413{
13414return fuse_main ();
13415 ;
13416 return 0;
13417}
13418_ACEOF
13419if ac_fn_c_try_link "$LINENO"; then :
13420 ac_cv_lib_fuse_fuse_main=yes
13421else
13422 ac_cv_lib_fuse_fuse_main=no
13423fi
13424rm -f core conftest.err conftest.$ac_objext \
13425 conftest$ac_exeext conftest.$ac_ext
13426LIBS=$ac_check_lib_save_LIBS
13427fi
13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13429$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13430if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13431 FUSE_LIB=-lfuse
13432else
13433 FUSE_CMT="#"
13434fi
13435
13436fi
13437
13438fi
13439if test -z "$FUSE_CMT"
13440then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13442$as_echo "Enabling fuse2fs by default." >&6; }
13443fi
13444
13445fi
13446
13447
13448
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013450$as_echo_n "checking for optreset... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013451if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013452 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013453else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013455/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013456#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013457
13458_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013460 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013461 ac_cv_have_optreset=yes
13462else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013463 ac_cv_have_optreset=no
13464fi
13465rm -f conftest*
13466
13467fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013469$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013470if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013471
13472$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013473
13474fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013475
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013476SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013477ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013478if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013479
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013480else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013482$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013483if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013484 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013485else
13486 ac_check_lib_save_LIBS=$LIBS
13487LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013489/* end confdefs.h. */
13490
13491/* Override any GCC internal prototype to avoid an error.
13492 Use char because int might match the return type of a GCC
13493 builtin and then its argument prototype would still apply. */
13494#ifdef __cplusplus
13495extern "C"
13496#endif
13497char sem_init ();
13498int
13499main ()
13500{
13501return sem_init ();
13502 ;
13503 return 0;
13504}
13505_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013506if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013507 ac_cv_lib_pthread_sem_init=yes
13508else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013509 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013510fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013511rm -f core conftest.err conftest.$ac_objext \
13512 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013513LIBS=$ac_check_lib_save_LIBS
13514fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013516$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013517if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013518 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013519
13520 SEM_INIT_LIB=-lpthread
13521else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013523$as_echo_n "checking for sem_init in -lrt... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013524if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013525 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013526else
13527 ac_check_lib_save_LIBS=$LIBS
13528LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013530/* end confdefs.h. */
13531
13532/* Override any GCC internal prototype to avoid an error.
13533 Use char because int might match the return type of a GCC
13534 builtin and then its argument prototype would still apply. */
13535#ifdef __cplusplus
13536extern "C"
13537#endif
13538char sem_init ();
13539int
13540main ()
13541{
13542return sem_init ();
13543 ;
13544 return 0;
13545}
13546_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013547if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013548 ac_cv_lib_rt_sem_init=yes
13549else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013550 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013551fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013552rm -f core conftest.err conftest.$ac_objext \
13553 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013554LIBS=$ac_check_lib_save_LIBS
13555fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013557$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013558if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013559 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013560
13561 SEM_INIT_LIB=-lrt
13562else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013564$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013565if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013566 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013567else
13568 ac_check_lib_save_LIBS=$LIBS
13569LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013571/* end confdefs.h. */
13572
13573/* Override any GCC internal prototype to avoid an error.
13574 Use char because int might match the return type of a GCC
13575 builtin and then its argument prototype would still apply. */
13576#ifdef __cplusplus
13577extern "C"
13578#endif
13579char sem_init ();
13580int
13581main ()
13582{
13583return sem_init ();
13584 ;
13585 return 0;
13586}
13587_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013588if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013589 ac_cv_lib_posix4_sem_init=yes
13590else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013591 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013592fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013593rm -f core conftest.err conftest.$ac_objext \
13594 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013595LIBS=$ac_check_lib_save_LIBS
13596fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013598$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013599if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013600 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013601
13602 SEM_INIT_LIB=-lposix4
13603fi
13604
13605fi
13606
13607fi
13608
13609fi
13610
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013612$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040013613if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013614 UNI_DIFF_OPTS=-u
13615else
13616 UNI_DIFF_OPTS=-c
13617fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013619$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013620
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013621case "$host_os" in
13622linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013623
13624$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013625
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013626 ;;
13627esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013628LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013629CYGWIN_CMT="#"
13630UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013631case "$host_os" in
13632linux*)
13633 LINUX_CMT=
13634 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040013635cygwin)
13636 CYGWIN_CMT=
13637 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013638 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013639esac
13640
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013641
13642
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013643case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013644linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013645 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13646 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013647 { $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 +010013648$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013649 fi
13650 ;;
13651esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013652case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013653linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013654 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013655 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013656 { $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 +010013657$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013658 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013660$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013661 mandir=/usr/share/man
13662 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013663 fi
13664;;
13665esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013666if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000013667 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013668 root_prefix="$ac_default_prefix"
13669 else
13670 root_prefix="$prefix"
13671 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040013672 root_bindir=$bindir
13673 root_sbindir=$sbindir
13674 root_libdir=$libdir
13675 root_sysconfdir=$sysconfdir
13676else
13677 root_bindir='${root_prefix}/bin'
13678 root_sbindir='${root_prefix}/sbin'
13679 root_libdir='${root_prefix}/lib'
13680 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013681fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013682if test "$bindir" != '${exec_prefix}/bin'; then
13683 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013685$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013686fi
13687if test "$sbindir" != '${exec_prefix}/sbin'; then
13688 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013690$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013691fi
13692if test "$libdir" != '${exec_prefix}/lib'; then
13693 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013695$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013696fi
13697if test "$sysconfdir" != '${prefix}/etc'; then
13698 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013700$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013701fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013702
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013703
13704
13705
13706
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013707
13708# Check whether --with-multiarch was given.
13709if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050013710 withval=$with_multiarch; if test "$withval" = "lib64"; then
13711 libdir=/usr/lib64
13712 root_libdir=/lib64
13713else
13714 libdir=$libdir/$withval
13715 root_libdir=$root_libdir/$withval
13716fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013717
13718fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050013719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13720$as_echo_n "checking whether we can link with -static... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013721if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013722 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000013723else
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013724 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013726/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000013727#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013728int
13729main ()
13730{
Theodore Ts'oae851481997-04-29 18:13:24 +000013731fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013732 ;
13733 return 0;
13734}
13735_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013736if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000013737 ac_cv_e2fsprogs_use_static=yes
13738else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013739 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000013740fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013741rm -f core conftest.err conftest.$ac_objext \
13742 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000013743LDFLAGS=$SAVE_LDFLAGS
13744fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013745
Theodore Ts'odefde781999-01-04 07:39:19 +000013746case "$host_os" in
13747solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013748 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000013749;;
13750esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013752$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'oae851481997-04-29 18:13:24 +000013753if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013754 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
Theodore Ts'oae851481997-04-29 18:13:24 +000013755fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013756
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013757case "$host_os" in
13758darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013760$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013761
13762$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013763
13764 ;;
13765esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013766SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13767ET_DIR=`cd ${srcdir}/lib/et; pwd`
13768
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013769
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013770if test "$cross_compiling" = yes ; then
13771 DO_TEST_SUITE=
13772else
13773 DO_TEST_SUITE=check
13774fi
13775
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013776INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13777if test -n "$CPPFLAGS" ; then
13778 INCLUDES="$INCLUDES $CPPFLAGS"
13779fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013780if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013781 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013782fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050013783if test -n "$WITH_DIET_LIBC" ; then
13784 INCLUDES="$INCLUDES -D_REENTRANT"
13785fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013786
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -040013787
13788 MKINSTALLDIRS=
13789 if test -n "$ac_aux_dir"; then
13790 case "$ac_aux_dir" in
13791 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13792 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13793 esac
13794 fi
13795 if test -z "$MKINSTALLDIRS"; then
13796 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13797 fi
13798
13799
Theodore Ts'odd947da2005-11-09 18:37:07 -040013800if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050013801 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013802 BUILD_LDFLAGS="$LDFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013803fi
13804
13805
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013806CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13807CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13808LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13809
13810
13811
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013812test -d lib || mkdir lib
13813test -d include || mkdir include
13814test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000013815test -d include/asm || mkdir include/asm
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013816if test -z "$UUID_CMT" ; then
13817 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13818 lib/uuid/uuid_types.h"
13819fi
13820if test -z "$BLKID_CMT" ; then
13821 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13822 lib/blkid/blkid_types.h"
13823fi
Theodore Ts'obff0cc92003-03-23 01:37:53 -050013824for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040013825 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013826 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13827 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'of34af412015-07-11 23:05:57 -040013828 $uuid_out_list $blkid_out_list lib/support/Makefile \
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013829 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 -050013830 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013831 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020013832 resize/Makefile doc/Makefile intl/Makefile \
13833 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013834 if test -d `dirname ${srcdir}/$i` ; then
13835 outlist="$outlist $i"
13836 fi
13837done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013838ac_config_files="$ac_config_files $outlist"
13839
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013840cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013841# This file is a shell script that caches the results of configure
13842# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013843# scripts and configure runs, see configure's option --config-cache.
13844# It is not useful on other systems. If it contains results you don't
13845# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013846#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013847# config.status only pays attention to the cache file if you give it
13848# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013849#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013850# `ac_cv_env_foo' variables (set or unset) will be overridden when
13851# loading this file, other *unset* `ac_cv_foo' will be assigned the
13852# following values.
13853
13854_ACEOF
13855
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013856# The following way of writing the cache mishandles newlines in values,
13857# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013858# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013859# Ultrix sh set writes to stderr and can't be redirected directly,
13860# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013861(
13862 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13863 eval ac_val=\$$ac_var
13864 case $ac_val in #(
13865 *${as_nl}*)
13866 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013867 *_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 +010013868$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013869 esac
13870 case $ac_var in #(
13871 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013872 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013873 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013874 esac ;;
13875 esac
13876 done
13877
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013878 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013879 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13880 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013881 # `set' does not quote correctly, so add quotes: double-quote
13882 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013883 sed -n \
13884 "s/'/'\\\\''/g;
13885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013886 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013887 *)
13888 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013890 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013891 esac |
13892 sort
13893) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013894 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040013895 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013896 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040013897 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013898 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13899 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040013900 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13901 :end' >>confcache
13902if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13903 if test -w "$cache_file"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013904 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013905 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013906$as_echo "$as_me: updating cache $cache_file" >&6;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013907 if test ! -f "$cache_file" || test -h "$cache_file"; then
13908 cat confcache >"$cache_file"
13909 else
13910 case $cache_file in #(
13911 */* | ?:*)
13912 mv -f confcache "$cache_file"$$ &&
13913 mv -f "$cache_file"$$ "$cache_file" ;; #(
13914 *)
13915 mv -f confcache "$cache_file" ;;
13916 esac
13917 fi
13918 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013919 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013920 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013921$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013922 fi
13923fi
13924rm -f confcache
13925
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013926test "x$prefix" = xNONE && prefix=$ac_default_prefix
13927# Let make expand exec_prefix.
13928test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13929
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013930DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013931
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013932ac_libobjs=
13933ac_ltlibobjs=
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013934U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013935for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13936 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013937 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013938 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040013939 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13940 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013941 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13942 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013943done
13944LIBOBJS=$ac_libobjs
13945
13946LTLIBOBJS=$ac_ltlibobjs
13947
13948
13949
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013950
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013951: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013952ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013953ac_clean_files_save=$ac_clean_files
13954ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013955{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013956$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013957as_write_fail=0
13958cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013959#! $SHELL
13960# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013961# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013962# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013963# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013964
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013965debug=false
13966ac_cs_recheck=false
13967ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013968
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013969SHELL=\${CONFIG_SHELL-$SHELL}
13970export SHELL
13971_ASEOF
13972cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13973## -------------------- ##
13974## M4sh Initialization. ##
13975## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013976
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013977# Be more Bourne compatible
13978DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013979if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013980 emulate sh
13981 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013982 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013983 # is contrary to our usage. Disable this feature.
13984 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013985 setopt NO_GLOB_SUBST
13986else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013987 case `(set -o) 2>/dev/null` in #(
13988 *posix*) :
13989 set -o posix ;; #(
13990 *) :
13991 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013992esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013993fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013994
13995
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013996as_nl='
13997'
13998export as_nl
13999# Printing a long string crashes Solaris 7 /usr/bin/printf.
14000as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14001as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14002as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014003# Prefer a ksh shell builtin over an external printf program on Solaris,
14004# but without wasting forks for bash or zsh.
14005if test -z "$BASH_VERSION$ZSH_VERSION" \
14006 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14007 as_echo='print -r --'
14008 as_echo_n='print -rn --'
14009elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014010 as_echo='printf %s\n'
14011 as_echo_n='printf %s'
14012else
14013 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14014 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14015 as_echo_n='/usr/ucb/echo -n'
14016 else
14017 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14018 as_echo_n_body='eval
14019 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014020 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014021 *"$as_nl"*)
14022 expr "X$arg" : "X\\(.*\\)$as_nl";
14023 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14024 esac;
14025 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14026 '
14027 export as_echo_n_body
14028 as_echo_n='sh -c $as_echo_n_body as_echo'
14029 fi
14030 export as_echo_body
14031 as_echo='sh -c $as_echo_body as_echo'
14032fi
14033
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014034# The user is always right.
14035if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014036 PATH_SEPARATOR=:
14037 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14038 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14039 PATH_SEPARATOR=';'
14040 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014041fi
14042
Theodore Ts'oe1052142006-10-21 21:46:47 -040014043
14044# IFS
14045# We need space, tab and new line, in precisely that order. Quoting is
14046# there to prevent editors from complaining about space-tab.
14047# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14048# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014049IFS=" "" $as_nl"
14050
14051# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014052as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014053case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014054 *[\\/]* ) as_myself=$0 ;;
14055 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014056for as_dir in $PATH
14057do
14058 IFS=$as_save_IFS
14059 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014060 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14061 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040014062IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014063
Theodore Ts'oe1052142006-10-21 21:46:47 -040014064 ;;
14065esac
14066# We did not find ourselves, most probably we were run as `sh COMMAND'
14067# in which case we are not to be found in the path.
14068if test "x$as_myself" = x; then
14069 as_myself=$0
14070fi
14071if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014072 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014073 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014074fi
14075
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014076# Unset variables that we do not need and which cause bugs (e.g. in
14077# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14078# suppresses any "Segmentation fault" message there. '((' could
14079# trigger a bug in pdksh 5.2.14.
14080for as_var in BASH_ENV ENV MAIL MAILPATH
14081do eval test x\${$as_var+set} = xset \
14082 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040014083done
14084PS1='$ '
14085PS2='> '
14086PS4='+ '
14087
14088# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014089LC_ALL=C
14090export LC_ALL
14091LANGUAGE=C
14092export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040014093
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014094# CDPATH.
14095(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14096
14097
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014098# as_fn_error STATUS ERROR [LINENO LOG_FD]
14099# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014100# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14101# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014102# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014103as_fn_error ()
14104{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014105 as_status=$1; test $as_status -eq 0 && as_status=1
14106 if test "$4"; then
14107 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14108 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014109 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014110 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014111 as_fn_exit $as_status
14112} # as_fn_error
14113
14114
14115# as_fn_set_status STATUS
14116# -----------------------
14117# Set $? to STATUS, without forking.
14118as_fn_set_status ()
14119{
14120 return $1
14121} # as_fn_set_status
14122
14123# as_fn_exit STATUS
14124# -----------------
14125# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14126as_fn_exit ()
14127{
14128 set +e
14129 as_fn_set_status $1
14130 exit $1
14131} # as_fn_exit
14132
14133# as_fn_unset VAR
14134# ---------------
14135# Portably unset VAR.
14136as_fn_unset ()
14137{
14138 { eval $1=; unset $1;}
14139}
14140as_unset=as_fn_unset
14141# as_fn_append VAR VALUE
14142# ----------------------
14143# Append the text in VALUE to the end of the definition contained in VAR. Take
14144# advantage of any shell optimizations that allow amortized linear growth over
14145# repeated appends, instead of the typical quadratic growth present in naive
14146# implementations.
14147if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14148 eval 'as_fn_append ()
14149 {
14150 eval $1+=\$2
14151 }'
14152else
14153 as_fn_append ()
14154 {
14155 eval $1=\$$1\$2
14156 }
14157fi # as_fn_append
14158
14159# as_fn_arith ARG...
14160# ------------------
14161# Perform arithmetic evaluation on the ARGs, and store the result in the
14162# global $as_val. Take advantage of shells that can avoid forks. The arguments
14163# must be portable across $(()) and expr.
14164if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14165 eval 'as_fn_arith ()
14166 {
14167 as_val=$(( $* ))
14168 }'
14169else
14170 as_fn_arith ()
14171 {
14172 as_val=`expr "$@" || test $? -eq 1`
14173 }
14174fi # as_fn_arith
14175
14176
Theodore Ts'oe1052142006-10-21 21:46:47 -040014177if expr a : '\(a\)' >/dev/null 2>&1 &&
14178 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14179 as_expr=expr
14180else
14181 as_expr=false
14182fi
14183
14184if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14185 as_basename=basename
14186else
14187 as_basename=false
14188fi
14189
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014190if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14191 as_dirname=dirname
14192else
14193 as_dirname=false
14194fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014195
Theodore Ts'oe1052142006-10-21 21:46:47 -040014196as_me=`$as_basename -- "$0" ||
14197$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14198 X"$0" : 'X\(//\)$' \| \
14199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014200$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014201 sed '/^.*\/\([^/][^/]*\)\/*$/{
14202 s//\1/
14203 q
14204 }
14205 /^X\/\(\/\/\)$/{
14206 s//\1/
14207 q
14208 }
14209 /^X\/\(\/\).*/{
14210 s//\1/
14211 q
14212 }
14213 s/.*/./; q'`
14214
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014215# Avoid depending upon Character Ranges.
14216as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14217as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14218as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14219as_cr_digits='0123456789'
14220as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040014221
14222ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014223case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014224-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014225 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014226 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014227 xy) ECHO_C='\c';;
14228 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14229 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014230 esac;;
14231*)
14232 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014233esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014234
14235rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040014236if test -d conf$$.dir; then
14237 rm -f conf$$.dir/conf$$.file
14238else
14239 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014240 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040014241fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014242if (echo >conf$$.file) 2>/dev/null; then
14243 if ln -s conf$$.file conf$$ 2>/dev/null; then
14244 as_ln_s='ln -s'
14245 # ... but there are two gotchas:
14246 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14247 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014248 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014249 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014250 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014251 elif ln conf$$.file conf$$ 2>/dev/null; then
14252 as_ln_s=ln
14253 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014254 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014255 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014256else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014257 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014258fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014259rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14260rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014261
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014262
14263# as_fn_mkdir_p
14264# -------------
14265# Create "$as_dir" as a directory, including parents if necessary.
14266as_fn_mkdir_p ()
14267{
14268
14269 case $as_dir in #(
14270 -*) as_dir=./$as_dir;;
14271 esac
14272 test -d "$as_dir" || eval $as_mkdir_p || {
14273 as_dirs=
14274 while :; do
14275 case $as_dir in #(
14276 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14277 *) as_qdir=$as_dir;;
14278 esac
14279 as_dirs="'$as_qdir' $as_dirs"
14280 as_dir=`$as_dirname -- "$as_dir" ||
14281$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14282 X"$as_dir" : 'X\(//\)[^/]' \| \
14283 X"$as_dir" : 'X\(//\)$' \| \
14284 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14285$as_echo X"$as_dir" |
14286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14287 s//\1/
14288 q
14289 }
14290 /^X\(\/\/\)[^/].*/{
14291 s//\1/
14292 q
14293 }
14294 /^X\(\/\/\)$/{
14295 s//\1/
14296 q
14297 }
14298 /^X\(\/\).*/{
14299 s//\1/
14300 q
14301 }
14302 s/.*/./; q'`
14303 test -d "$as_dir" && break
14304 done
14305 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014306 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014307
14308
14309} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014310if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014311 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014312else
14313 test -d ./-p && rmdir ./-p
14314 as_mkdir_p=false
14315fi
14316
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014317
14318# as_fn_executable_p FILE
14319# -----------------------
14320# Test if FILE is an executable regular file.
14321as_fn_executable_p ()
14322{
14323 test -f "$1" && test -x "$1"
14324} # as_fn_executable_p
14325as_test_x='test -x'
14326as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014327
14328# Sed expression to map a string onto a valid CPP name.
14329as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14330
14331# Sed expression to map a string onto a valid variable name.
14332as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14333
14334
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014335exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014336## ----------------------------------- ##
14337## Main body of $CONFIG_STATUS script. ##
14338## ----------------------------------- ##
14339_ASEOF
14340test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014341
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14343# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014344# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040014345# values after options handling.
14346ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014347This file was extended by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014348generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014349
14350 CONFIG_FILES = $CONFIG_FILES
14351 CONFIG_HEADERS = $CONFIG_HEADERS
14352 CONFIG_LINKS = $CONFIG_LINKS
14353 CONFIG_COMMANDS = $CONFIG_COMMANDS
14354 $ $0 $@
14355
Theodore Ts'oe1052142006-10-21 21:46:47 -040014356on `(hostname || uname -n) 2>/dev/null | sed 1q`
14357"
14358
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014359_ACEOF
14360
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014361case $ac_config_files in *"
14362"*) set x $ac_config_files; shift; ac_config_files=$*;;
14363esac
14364
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014365case $ac_config_headers in *"
14366"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14367esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014368
14369
14370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014371# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014372config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014373config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014374config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014375
Theodore Ts'oe1052142006-10-21 21:46:47 -040014376_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014377
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014379ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014380\`$as_me' instantiates files and other configuration actions
14381from templates according to the current configuration. Unless the files
14382and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014383
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014384Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014385
14386 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014387 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014388 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014389 -q, --quiet, --silent
14390 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014391 -d, --debug don't remove temporary files
14392 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014393 --file=FILE[:TEMPLATE]
14394 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014395 --header=FILE[:TEMPLATE]
14396 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014397
14398Configuration files:
14399$config_files
14400
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014401Configuration headers:
14402$config_headers
14403
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014404Configuration commands:
14405$config_commands
14406
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014407Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014408
Theodore Ts'oe1052142006-10-21 21:46:47 -040014409_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014411ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014412ac_cs_version="\\
14413config.status
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014414configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014415 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014416
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014417Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014418This config.status script is free software; the Free Software Foundation
14419gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040014420
14421ac_pwd='$ac_pwd'
14422srcdir='$srcdir'
14423INSTALL='$INSTALL'
Theodore Ts'o93613952014-07-03 23:44:13 -040014424MKDIR_P='$MKDIR_P'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014425AWK='$AWK'
14426test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014427_ACEOF
14428
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14430# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014431ac_need_defaults=:
14432while test $# != 0
14433do
14434 case $1 in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014435 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014436 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14437 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014438 ac_shift=:
14439 ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014440 --*=)
14441 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14442 ac_optarg=
14443 ac_shift=:
14444 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014445 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014446 ac_option=$1
14447 ac_optarg=$2
14448 ac_shift=shift
14449 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014450 esac
14451
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014452 case $ac_option in
14453 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14455 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014456 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014457 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014458 --config | --confi | --conf | --con | --co | --c )
14459 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014460 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014461 debug=: ;;
14462 --file | --fil | --fi | --f )
14463 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014464 case $ac_optarg in
14465 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014466 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014467 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014468 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014469 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014470 --header | --heade | --head | --hea )
14471 $ac_shift
14472 case $ac_optarg in
14473 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14474 esac
14475 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14476 ac_need_defaults=false;;
14477 --he | --h)
14478 # Conflict between --help and --header
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014479 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014480Try \`$0 --help' for more information.";;
14481 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014482 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14484 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14485 ac_cs_silent=: ;;
14486
14487 # This is an error.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014488 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014489Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014490
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014491 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014492 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014493
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014494 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014495 shift
14496done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014498ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014499
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014500if $ac_cs_silent; then
14501 exec 6>/dev/null
14502 ac_configure_extra_args="$ac_configure_extra_args --silent"
14503fi
14504
14505_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014507if \$ac_cs_recheck; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014508 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014509 shift
14510 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14511 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014512 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014513 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014514fi
14515
14516_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014518exec 5>>config.log
14519{
14520 echo
14521 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14522## Running $as_me. ##
14523_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014524 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014525} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014526
Theodore Ts'oe1052142006-10-21 21:46:47 -040014527_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014529#
Theodore Ts'oe1052142006-10-21 21:46:47 -040014530# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014531#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014532# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014533 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'o93613952014-07-03 23:44:13 -040014534 # from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014535 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014536 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14537 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014538
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014539
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014540_ACEOF
14541
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014543
14544# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014545for ac_config_target in $ac_config_targets
14546do
Theodore Ts'oe1052142006-10-21 21:46:47 -040014547 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014548 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'o93613952014-07-03 23:44:13 -040014549 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014550 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14551
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014552 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014553 esac
14554done
14555
Theodore Ts'oe1052142006-10-21 21:46:47 -040014556
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014557# If the user did not use the arguments to specify the items to instantiate,
14558# then the envvar interface is used. Set only those that are not.
14559# We use the long form for the default assignment because of an extremely
14560# bizarre bug on SunOS 4.1.3.
14561if $ac_need_defaults; then
14562 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014563 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014564 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14565fi
14566
14567# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040014568# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014569# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014570# Hook for its removal unless debugging.
14571# Note that there is a small window in which the directory will not be cleaned:
14572# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014573$debug ||
14574{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014575 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040014576 trap 'exit_status=$?
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014577 : "${ac_tmp:=$tmp}"
14578 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040014579' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014580 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014581}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014582# Create a (secure) tmp directory for tmp files.
14583
14584{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014585 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014586 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014587} ||
14588{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014589 tmp=./conf$$-$RANDOM
14590 (umask 077 && mkdir "$tmp")
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014591} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14592ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014593
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014594# Set up the scripts for CONFIG_FILES section.
14595# No need to generate them if there are no CONFIG_FILES.
14596# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014597if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014598
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014599if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14600 ac_cs_awk_getline=:
14601 ac_cs_awk_pipe_init=
14602 ac_cs_awk_read_file='
14603 while ((getline aline < (F[key])) > 0)
14604 print(aline)
14605 close(F[key])'
14606 ac_cs_awk_pipe_fini=
14607else
14608 ac_cs_awk_getline=false
14609 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14610 ac_cs_awk_read_file='
14611 print "|#_!!_#|"
14612 print "cat " F[key] " &&"
14613 '$ac_cs_awk_pipe_init
14614 # The final `:' finishes the AND list.
14615 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14616fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014617ac_cr=`echo X | tr X '\015'`
14618# On cygwin, bash can eat \r inside `` if the user requested igncr.
14619# But we know of no other shell where ac_cr would be empty at this
14620# point, so we can use a bashism as a fallback.
14621if test "x$ac_cr" = x; then
14622 eval ac_cr=\$\'\\r\'
14623fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014624ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14625if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014626 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014627else
14628 ac_cs_awk_cr=$ac_cr
14629fi
14630
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014631echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014632_ACEOF
14633
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014634# Create commands to substitute file output variables.
14635{
14636 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014637 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014638 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14639 echo "_ACAWK" &&
14640 echo "_ACEOF"
14641} >conf$$files.sh &&
14642. ./conf$$files.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014643 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014644rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014645
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014646{
14647 echo "cat >conf$$subs.awk <<_ACEOF" &&
14648 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14649 echo "_ACEOF"
14650} >conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14652ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014653ac_delim='%!_!# '
14654for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014655 . ./conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014657
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014658 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14659 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014660 break
14661 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014662 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014663 else
14664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014665 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014666done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014667rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014668
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014670cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014671_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014672sed -n '
14673h
14674s/^/S["/; s/!.*/"]=/
14675p
14676g
14677s/^[^!]*!//
14678:repl
14679t repl
14680s/'"$ac_delim"'$//
14681t delim
14682:nl
14683h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014684s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014685t more1
14686s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14687p
14688n
14689b repl
14690:more1
14691s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14692p
14693g
14694s/.\{148\}//
14695t nl
14696:delim
14697h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014698s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014699t more2
14700s/["\\]/\\&/g; s/^/"/; s/$/"/
14701p
14702b
14703:more2
14704s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14705p
14706g
14707s/.\{148\}//
14708t delim
14709' <conf$$subs.awk | sed '
14710/^[^""]/{
14711 N
14712 s/\n//
14713}
14714' >>$CONFIG_STATUS || ac_write_fail=1
14715rm -f conf$$subs.awk
14716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14717_ACAWK
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014718cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014719 for (key in S) S_is_set[key] = 1
14720 FS = ""
14721 \$ac_cs_awk_pipe_init
14722}
14723{
14724 line = $ 0
14725 nfields = split(line, field, "@")
14726 substed = 0
14727 len = length(field[1])
14728 for (i = 2; i < nfields; i++) {
14729 key = field[i]
14730 keylen = length(key)
14731 if (S_is_set[key]) {
14732 value = S[key]
14733 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14734 len += length(value) + length(field[++i])
14735 substed = 1
14736 } else
14737 len += 1 + keylen
14738 }
14739 if (nfields == 3 && !substed) {
14740 key = field[2]
14741 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14742 \$ac_cs_awk_read_file
14743 next
14744 }
14745 }
14746 print line
14747}
14748\$ac_cs_awk_pipe_fini
14749_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040014750_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14752if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14753 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14754else
14755 cat
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014756fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14757 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014758_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014759
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014760# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14761# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040014762# trailing colons and then remove the whole line if VPATH becomes empty
14763# (actually we leave an empty line to preserve line numbers).
14764if test "x$srcdir" = x.; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014765 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14766h
14767s///
14768s/^/:/
14769s/[ ]*$/:/
14770s/:\$(srcdir):/:/g
14771s/:\${srcdir}:/:/g
14772s/:@srcdir@:/:/g
14773s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014774s/:*$//
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014775x
14776s/\(=[ ]*\).*/\1/
14777G
14778s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014779s/^[^=]*=[ ]*$//
14780}'
14781fi
14782
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014784fi # test -n "$CONFIG_FILES"
14785
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014786# Set up the scripts for CONFIG_HEADERS section.
14787# No need to generate them if there are no CONFIG_HEADERS.
14788# This happens for instance with `./config.status Makefile'.
14789if test -n "$CONFIG_HEADERS"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014790cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014791BEGIN {
14792_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014793
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014794# Transform confdefs.h into an awk script `defines.awk', embedded as
14795# here-document in config.status, that substitutes the proper values into
14796# config.h.in to produce config.h.
14797
14798# Create a delimiter string that does not exist in confdefs.h, to ease
14799# handling of long lines.
14800ac_delim='%!_!# '
14801for ac_last_try in false false :; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014802 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14803 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014804 break
14805 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014806 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014807 else
14808 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14809 fi
14810done
14811
14812# For the awk script, D is an array of macro values keyed by name,
14813# likewise P contains macro parameters if any. Preserve backslash
14814# newline sequences.
14815
14816ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14817sed -n '
14818s/.\{148\}/&'"$ac_delim"'/g
14819t rset
14820:rset
14821s/^[ ]*#[ ]*define[ ][ ]*/ /
14822t def
14823d
14824:def
14825s/\\$//
14826t bsnl
14827s/["\\]/\\&/g
14828s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14829D["\1"]=" \3"/p
14830s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14831d
14832:bsnl
14833s/["\\]/\\&/g
14834s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14835D["\1"]=" \3\\\\\\n"\\/p
14836t cont
14837s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14838t cont
14839d
14840:cont
14841n
14842s/.\{148\}/&'"$ac_delim"'/g
14843t clear
14844:clear
14845s/\\$//
14846t bsnlc
14847s/["\\]/\\&/g; s/^/"/; s/$/"/p
14848d
14849:bsnlc
14850s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14851b cont
14852' <confdefs.h | sed '
14853s/'"$ac_delim"'/"\\\
14854"/g' >>$CONFIG_STATUS || ac_write_fail=1
14855
14856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14857 for (key in D) D_is_set[key] = 1
14858 FS = ""
14859}
14860/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14861 line = \$ 0
14862 split(line, arg, " ")
14863 if (arg[1] == "#") {
14864 defundef = arg[2]
14865 mac1 = arg[3]
14866 } else {
14867 defundef = substr(arg[1], 2)
14868 mac1 = arg[2]
14869 }
14870 split(mac1, mac2, "(") #)
14871 macro = mac2[1]
14872 prefix = substr(line, 1, index(line, defundef) - 1)
14873 if (D_is_set[macro]) {
14874 # Preserve the white space surrounding the "#".
14875 print prefix "define", macro P[macro] D[macro]
14876 next
14877 } else {
14878 # Replace #undef with comments. This is necessary, for example,
14879 # in the case of _POSIX_SOURCE, which is predefined and required
14880 # on some systems where configure will not decide to define it.
14881 if (defundef == "undef") {
14882 print "/*", prefix defundef, macro, "*/"
14883 next
14884 }
14885 }
14886}
14887{ print }
14888_ACAWK
14889_ACEOF
14890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014891 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014892fi # test -n "$CONFIG_HEADERS"
14893
14894
14895eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014896shift
14897for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040014898do
14899 case $ac_tag in
14900 :[FHLC]) ac_mode=$ac_tag; continue;;
14901 esac
14902 case $ac_mode$ac_tag in
14903 :[FHL]*:*);;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014904 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014905 :[FH]-) ac_tag=-:-;;
14906 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14907 esac
14908 ac_save_IFS=$IFS
14909 IFS=:
14910 set x $ac_tag
14911 IFS=$ac_save_IFS
14912 shift
14913 ac_file=$1
14914 shift
14915
14916 case $ac_mode in
14917 :L) ac_source=$1;;
14918 :[FH])
14919 ac_file_inputs=
14920 for ac_f
14921 do
14922 case $ac_f in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014923 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014924 *) # Look for the file first in the build tree, then in the source tree
14925 # (if the path is not absolute). The absolute path cannot be DOS-style,
14926 # because $ac_f cannot contain `:'.
14927 test -f "$ac_f" ||
14928 case $ac_f in
14929 [\\/$]*) false;;
14930 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14931 esac ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014932 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014933 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014934 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014935 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014936 done
14937
14938 # Let's still pretend it is `configure' which instantiates (i.e., don't
14939 # use $as_me), people would be surprised to read:
14940 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014941 configure_input='Generated from '`
14942 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14943 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014944 if test x"$ac_file" != x-; then
14945 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014947$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014948 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014949 # Neutralize special characters interpreted by sed in replacement strings.
14950 case $configure_input in #(
14951 *\&* | *\|* | *\\* )
14952 ac_sed_conf_input=`$as_echo "$configure_input" |
14953 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14954 *) ac_sed_conf_input=$configure_input;;
14955 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014956
14957 case $ac_tag in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014958 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14959 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014960 esac
14961 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014962 esac
14963
Theodore Ts'oe1052142006-10-21 21:46:47 -040014964 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014965$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14966 X"$ac_file" : 'X\(//\)[^/]' \| \
14967 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040014968 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014969$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14971 s//\1/
14972 q
14973 }
14974 /^X\(\/\/\)[^/].*/{
14975 s//\1/
14976 q
14977 }
14978 /^X\(\/\/\)$/{
14979 s//\1/
14980 q
14981 }
14982 /^X\(\/\).*/{
14983 s//\1/
14984 q
14985 }
14986 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014987 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014988 ac_builddir=.
14989
Theodore Ts'oe1052142006-10-21 21:46:47 -040014990case "$ac_dir" in
14991.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14992*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014993 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014994 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014995 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014996 case $ac_top_builddir_sub in
14997 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14998 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14999 esac ;;
15000esac
15001ac_abs_top_builddir=$ac_pwd
15002ac_abs_builddir=$ac_pwd$ac_dir_suffix
15003# for backward compatibility:
15004ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015005
15006case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040015007 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015008 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015009 ac_top_srcdir=$ac_top_builddir_sub
15010 ac_abs_top_srcdir=$ac_pwd ;;
15011 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015012 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015013 ac_top_srcdir=$srcdir
15014 ac_abs_top_srcdir=$srcdir ;;
15015 *) # Relative name.
15016 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15017 ac_top_srcdir=$ac_top_build_prefix$srcdir
15018 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015019esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015020ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015021
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015022
Theodore Ts'oe1052142006-10-21 21:46:47 -040015023 case $ac_mode in
15024 :F)
15025 #
15026 # CONFIG_FILE
15027 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015028
15029 case $INSTALL in
15030 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015031 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015032 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040015033 ac_MKDIR_P=$MKDIR_P
15034 case $MKDIR_P in
15035 [\\/$]* | ?:[\\/]* ) ;;
15036 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15037 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015038_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015039
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040015041# If the template does not know about datarootdir, expand it.
15042# FIXME: This hack should be removed a few years after 2.60.
15043ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015044ac_sed_dataroot='
15045/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040015046 p
15047 q
15048}
15049/@datadir@/p
15050/@docdir@/p
15051/@infodir@/p
15052/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015053/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015054case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040015055*datarootdir*) ac_datarootdir_seen=yes;;
15056*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015057 { $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 +010015058$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015059_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040015061 ac_datarootdir_hack='
15062 s&@datadir@&$datadir&g
15063 s&@docdir@&$docdir&g
15064 s&@infodir@&$infodir&g
15065 s&@localedir@&$localedir&g
15066 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015067 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015068esac
15069_ACEOF
15070
15071# Neutralize VPATH when `$srcdir' = `.'.
15072# Shell code in configure.ac might set extrasub.
15073# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15075ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015076$extrasub
15077_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015079:t
15080/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015081s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015082s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015083s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015084s&@srcdir@&$ac_srcdir&;t t
15085s&@abs_srcdir@&$ac_abs_srcdir&;t t
15086s&@top_srcdir@&$ac_top_srcdir&;t t
15087s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15088s&@builddir@&$ac_builddir&;t t
15089s&@abs_builddir@&$ac_abs_builddir&;t t
15090s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15091s&@INSTALL@&$ac_INSTALL&;t t
Theodore Ts'o93613952014-07-03 23:44:13 -040015092s&@MKDIR_P@&$ac_MKDIR_P&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015093$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015094"
15095eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15096if $ac_cs_awk_getline; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015097 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015098else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015099 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15100fi \
15101 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015102
Theodore Ts'oe1052142006-10-21 21:46:47 -040015103test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015104 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15105 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15106 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015108which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015109$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015110which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015111
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015112 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015113 case $ac_file in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015114 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15115 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015116 esac \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015118 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015119 :H)
15120 #
15121 # CONFIG_HEADER
15122 #
15123 if test x"$ac_file" != x-; then
15124 {
15125 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015126 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15127 } >"$ac_tmp/config.h" \
15128 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15129 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015130 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15131$as_echo "$as_me: $ac_file is unchanged" >&6;}
15132 else
15133 rm -f "$ac_file"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015134 mv "$ac_tmp/config.h" "$ac_file" \
15135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015136 fi
15137 else
15138 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015139 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15140 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015141 fi
15142 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015143
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015144 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015145$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015146 ;;
15147 esac
15148
15149
15150 case $ac_file$ac_mode in
Theodore Ts'o93613952014-07-03 23:44:13 -040015151 "po-directories":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015152 for ac_file in $CONFIG_FILES; do
15153 # Support "outfile[:infile[:infile...]]"
15154 case "$ac_file" in
15155 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000015156 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015157 # PO directories have a Makefile.in generated from Makefile.in.in.
15158 case "$ac_file" in */Makefile.in)
15159 # Adjust a relative srcdir.
15160 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o93613952014-07-03 23:44:13 -040015161 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015162 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15163 # In autoconf-2.13 it is called $ac_given_srcdir.
15164 # In autoconf-2.50 it is called $srcdir.
15165 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15166 case "$ac_given_srcdir" in
15167 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15168 /*) top_srcdir="$ac_given_srcdir" ;;
15169 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15170 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040015171 # Treat a directory as a PO directory if and only if it has a
15172 # POTFILES.in file. This allows packages to have multiple PO
15173 # directories under different names or in different locations.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015174 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15175 rm -f "$ac_dir/POTFILES"
15176 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
Theodore Ts'o93613952014-07-03 23:44:13 -040015177 gt_tab=`printf '\t'`
15178 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 -050015179 POMAKEFILEDEPS="POTFILES.in"
15180 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015181 # on $ac_dir but don't depend on user-specified configuration
15182 # parameters.
15183 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15184 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015185 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015186 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15187 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040015188 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15189 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015190 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015191 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15192 else
15193 # The set of available languages was given in configure.in.
Theodore Ts'o93613952014-07-03 23:44:13 -040015194 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015195 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015196 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015197 # Compute POFILES
15198 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15199 # Compute UPDATEPOFILES
15200 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15201 # Compute DUMMYPOFILES
15202 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15203 # Compute GMOFILES
15204 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015205 case "$ac_given_srcdir" in
15206 .) srcdirpre= ;;
15207 *) srcdirpre='$(srcdir)/' ;;
15208 esac
15209 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015210 UPDATEPOFILES=
15211 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015212 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015213 for lang in $ALL_LINGUAS; do
15214 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015215 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15216 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015217 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015218 done
15219 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15220 # environment variable.
15221 INST_LINGUAS=
15222 if test -n "$ALL_LINGUAS"; then
15223 for presentlang in $ALL_LINGUAS; do
15224 useit=no
15225 if test "%UNSET%" != "$LINGUAS"; then
15226 desiredlanguages="$LINGUAS"
15227 else
15228 desiredlanguages="$ALL_LINGUAS"
15229 fi
15230 for desiredlang in $desiredlanguages; do
15231 # Use the presentlang catalog if desiredlang is
15232 # a. equal to presentlang, or
15233 # b. a variant of presentlang (because in this case,
15234 # presentlang can be used as a fallback for messages
15235 # which are not translated in the desiredlang catalog).
15236 case "$desiredlang" in
15237 "$presentlang"*) useit=yes;;
15238 esac
15239 done
15240 if test $useit = yes; then
15241 INST_LINGUAS="$INST_LINGUAS $presentlang"
15242 fi
15243 done
15244 fi
15245 CATALOGS=
15246 if test -n "$INST_LINGUAS"; then
15247 for lang in $INST_LINGUAS; do
15248 CATALOGS="$CATALOGS $lang.gmo"
15249 done
15250 fi
15251 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015252 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 -040015253 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15254 if test -f "$f"; then
15255 case "$f" in
15256 *.orig | *.bak | *~) ;;
15257 *) cat "$f" >> "$ac_dir/Makefile" ;;
15258 esac
15259 fi
15260 done
15261 fi
15262 ;;
15263 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015264 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015265
Theodore Ts'oe1052142006-10-21 21:46:47 -040015266 esac
15267done # for ac_tag
15268
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015269
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015270as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015271_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015272ac_clean_files=$ac_clean_files_save
15273
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015274test $ac_write_fail = 0 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015275 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015276
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015277
15278# configure is writing to config.log, and then calls config.status.
15279# config.status does its own redirection, appending to config.log.
15280# Unfortunately, on DOS this fails, as config.log is still kept open
15281# by configure, so config.status won't be able to write to it; its
15282# output is simply discarded. So we exec the FD to /dev/null,
15283# effectively closing config.log, so it can be properly (re)opened and
15284# appended to by config.status. When coming back to configure, we
15285# need to make the FD available again.
15286if test "$no_create" != yes; then
15287 ac_cs_success=:
15288 ac_config_status_args=
15289 test "$silent" = yes &&
15290 ac_config_status_args="$ac_config_status_args --quiet"
15291 exec 5>/dev/null
15292 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15293 exec 5>>config.log
15294 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15295 # would make configure fail if this is the last instruction.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015296 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015297fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015298if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015300$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15301fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015302
Theodore Ts'oee683a12005-02-05 15:53:56 -050015303if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi