blob: 30b09496c308f8b5b5a1ab90a50bb1213c330943 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003# Generated by GNU Autoconf 2.69.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005#
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018 emulate sh
19 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040023 setopt NO_GLOB_SUBST
24else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040030esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040032
33
Scott James Remnant39fd3d42009-05-14 13:03:25 +010034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050041# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010048 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050058 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010059 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050079fi
80
Theodore Ts'oe1052142006-10-21 21:46:47 -040081
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040087IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100090as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050091case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050094for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
Theodore Ts'oe1052142006-10-21 21:46:47 -0400100IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500101
Theodore Ts'oe1052142006-10-21 21:46:47 -0400102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500111 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -0400112fi
113
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -0400121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400131
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500356
357
358} # as_fn_mkdir_p
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000407# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500408as_fn_error ()
409{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500414 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000415 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500416 as_fn_exit $as_status
417} # as_fn_error
418
Theodore Ts'oe1052142006-10-21 21:46:47 -0400419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400437
Theodore Ts'oe1052142006-10-21 21:46:47 -0400438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100442$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -0400463
464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500474 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500479 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500482 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500484 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400485 chmod +x "$as_me.lineno" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500487
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500496 # Exit status is that of the last command.
497 exit
498}
499
Theodore Ts'oe1052142006-10-21 21:46:47 -0400500ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500501case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -0400502-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500503 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -0400504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400508 esac;;
509*)
510 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500511esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500512
513rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100518 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400519fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000526 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000528 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000532 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100533 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500534else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000535 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500539
540if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500541 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559
560# Name of the host.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565#
566# Initializations.
567#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000568ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400569ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500570ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400571LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500583PACKAGE_URL=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <sys/types.h>
591#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400592#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500593# include <sys/stat.h>
594#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400595#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500596# include <stdlib.h>
597# include <stddef.h>
598#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400599# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500600# include <stdlib.h>
601# endif
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500605# include <memory.h>
606# endif
607# include <string.h>
608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500610# include <strings.h>
611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400614#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400615#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500617#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400618#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500619# include <unistd.h>
620#endif"
621
Theodore Ts'o93613952014-07-03 23:44:13 -0400622gt_needs=
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400623ac_header_list=
Theodore Ts'o93613952014-07-03 23:44:13 -0400624gl_use_threads_default=
625ac_func_list=
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100626ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400627LIBOBJS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100628BUILD_LDFLAGS
629BUILD_CFLAGS
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -0400630MKINSTALLDIRS
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400631INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100632DO_TEST_SUITE
633ET_DIR
634SS_DIR
635LDFLAG_STATIC
636root_sysconfdir
637root_libdir
638root_sbindir
639root_bindir
640root_prefix
641UNIX_CMT
642CYGWIN_CMT
643LINUX_CMT
644UNI_DIFF_OPTS
645SEM_INIT_LIB
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700646FUSE_CMT
647FUSE_LIB
Darrick J. Wongb291c112014-09-13 15:12:46 -0700648MAGIC_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100649SOCKET_LIB
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400650SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100651SIZEOF_LONG_LONG
652SIZEOF_LONG
653SIZEOF_INT
654SIZEOF_SHORT
655BUILD_CC
656MAKEINFO
657STRIP
658AR
659LDCONFIG
660PERL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100661AWK
662CHMOD
663RM
664CP
665MV
666LN_S
667LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400668ifNotGNUmake
669ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100670BINARY_TYPE
671POSUB
672LTLIBINTL
673LIBINTL
674INTLLIBS
675INTL_LIBTOOL_SUFFIX_PREFIX
676INTLOBJS
677GENCAT
678INSTOBJEXT
679DATADIRNAME
680CATOBJEXT
681USE_INCLUDED_LIBINTL
682BUILD_INCLUDED_LIBINTL
Theodore Ts'o93613952014-07-03 23:44:13 -0400683LTLIBC
684WINDRES
685WOE32
686WOE32DLL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100687HAVE_WPRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400688HAVE_NEWLOCALE
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100689HAVE_SNPRINTF
690HAVE_ASPRINTF
691HAVE_POSIX_PRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400692INTL_DEFAULT_VERBOSITY
693INTL_MACOSX_LIBS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100694GLIBC21
Theodore Ts'o93613952014-07-03 23:44:13 -0400695INTLBISON
696LTLIBICONV
697LIBICONV
698LTLIBMULTITHREAD
699LIBMULTITHREAD
700LTLIBTHREAD
701LIBTHREAD
702LIBPTH_PREFIX
703LTLIBPTH
704LIBPTH
705PRI_MACROS_BROKEN
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100706ALLOCA
Theodore Ts'o93613952014-07-03 23:44:13 -0400707HAVE_VISIBILITY
708CFLAG_VISIBILITY
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100709RANLIB
Theodore Ts'o93613952014-07-03 23:44:13 -0400710GLIBC2
711XGETTEXT_EXTRA_OPTIONS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100712MSGMERGE
Theodore Ts'o93613952014-07-03 23:44:13 -0400713XGETTEXT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100714XGETTEXT
Theodore Ts'o93613952014-07-03 23:44:13 -0400715GMSGFMT_015
716MSGFMT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100717GMSGFMT
718MSGFMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400719GETTEXT_MACRO_VERSION
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100720USE_NLS
Theodore Ts'o93613952014-07-03 23:44:13 -0400721SED
722MKDIR_P
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100723INSTALL_DATA
724INSTALL_SCRIPT
725INSTALL_PROGRAM
726SET_MAKE
727VERSION
728PACKAGE
729GETTEXT_PACKAGE
730UUIDD_CMT
731E2INITRD_MAN
732E2INITRD_PROG
733FSCK_MAN
734FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500735DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100736RESIZER_CMT
737IMAGER_CMT
738DEBUGFS_CMT
739BLKID_CMT
740DEPPROFILED_LIBBLKID
741PROFILED_LIBBLKID
742DEPSTATIC_LIBBLKID
743STATIC_LIBBLKID
744DEPLIBBLKID
745LIBBLKID
746UUID_CMT
747DEPPROFILED_LIBUUID
748PROFILED_LIBUUID
749DEPSTATIC_LIBUUID
750STATIC_LIBUUID
751DEPLIBUUID
752LIBUUID
Theodore Ts'o93613952014-07-03 23:44:13 -0400753PKG_CONFIG_LIBDIR
754PKG_CONFIG_PATH
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100755PKG_CONFIG
756TEST_IO_CMT
757PRIVATE_LIBS_CMT
758LDFLAG_DYNAMIC
759PROFILED_LIB_EXT
760STATIC_LIB_EXT
761LIB_EXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100762PROFILE_CMT
763BSDLIB_CMT
764ELF_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400765Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400766ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400767E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400768LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400769SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400770LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100771MAINTAINER_CMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400772EGREP
773GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100774CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400775RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500776DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100777OBJEXT
778EXEEXT
779ac_ct_CC
780CPPFLAGS
781LDFLAGS
782CFLAGS
783CC
784host_os
785host_vendor
786host_cpu
787host
788build_os
789build_vendor
790build_cpu
791build
792E2FSPROGS_PKGVER
793E2FSPROGS_VERSION
794E2FSPROGS_DAY
795E2FSPROGS_MONTH
796E2FSPROGS_YEAR
797target_alias
798host_alias
799build_alias
800LIBS
801ECHO_T
802ECHO_N
803ECHO_C
804DEFS
805mandir
806localedir
807libdir
808psdir
809pdfdir
810dvidir
811htmldir
812infodir
813docdir
814oldincludedir
815includedir
816localstatedir
817sharedstatedir
818sysconfdir
819datadir
820datarootdir
821libexecdir
822sbindir
823bindir
824program_transform_name
825prefix
826exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500827PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100828PACKAGE_BUGREPORT
829PACKAGE_STRING
830PACKAGE_VERSION
831PACKAGE_TARNAME
832PACKAGE_NAME
833PATH_SEPARATOR
834SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400835ac_subst_files='MCONFIG
836MAKEFILE_ELF
837MAKEFILE_BSDLIB
838MAKEFILE_PROFILE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400839MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400840ASM_TYPES_HEADER
841PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100842ac_user_opts='
843enable_option_checking
844with_diet_libc
845with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100846with_ccopts
847with_ldopts
848with_root_prefix
849enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400850enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400851enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400852enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400853enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400854enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100855enable_elf_shlibs
856enable_bsd_shlibs
857enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500858enable_gcov
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100859enable_jbd_debug
860enable_blkid_debug
861enable_testio_debug
862enable_libuuid
863enable_libblkid
Theodore Ts'o3df60142013-06-16 16:14:40 -0400864enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100865enable_debugfs
866enable_imager
867enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500868enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100869enable_fsck
870enable_e2initrd_helper
871enable_tls
872enable_uuidd
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000873enable_mmp
Tony Breeds1625bf42012-07-30 14:44:12 -0400874enable_bmap_stats
875enable_bmap_stats_ops
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100876enable_nls
Theodore Ts'o93613952014-07-03 23:44:13 -0400877enable_threads
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100878with_gnu_ld
879enable_rpath
Theodore Ts'o93613952014-07-03 23:44:13 -0400880with_libpth_prefix
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100881with_libiconv_prefix
882with_included_gettext
883with_libintl_prefix
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700884enable_fuse2fs
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400885with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100886'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400887 ac_precious_vars='build_alias
888host_alias
889target_alias
890CC
891CFLAGS
892LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400893LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400894CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400895CPP
Theodore Ts'o93613952014-07-03 23:44:13 -0400896PKG_CONFIG
897PKG_CONFIG_PATH
898PKG_CONFIG_LIBDIR'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400899
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000900
901# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500902ac_init_help=
903ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100904ac_unrecognized_opts=
905ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000906# The variables have the same names as the options, with
907# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500908cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000909exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000910no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000911no_recursion=
912prefix=NONE
913program_prefix=NONE
914program_suffix=NONE
915program_transform_name=s,x,x,
916silent=
917site=
918srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000919verbose=
920x_includes=NONE
921x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500922
923# Installation directory options.
924# These are left unexpanded so users can "make install exec_prefix=/foo"
925# and all the variables that are supposed to be based on exec_prefix
926# by default will actually change.
927# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400928# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000929bindir='${exec_prefix}/bin'
930sbindir='${exec_prefix}/sbin'
931libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400932datarootdir='${prefix}/share'
933datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000934sysconfdir='${prefix}/etc'
935sharedstatedir='${prefix}/com'
936localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000937includedir='${prefix}/include'
938oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400939docdir='${datarootdir}/doc/${PACKAGE}'
940infodir='${datarootdir}/info'
941htmldir='${docdir}'
942dvidir='${docdir}'
943pdfdir='${docdir}'
944psdir='${docdir}'
945libdir='${exec_prefix}/lib'
946localedir='${datarootdir}/locale'
947mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000948
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000949ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400950ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000951for ac_option
952do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400955 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000956 ac_prev=
957 continue
958 fi
959
Theodore Ts'oe1052142006-10-21 21:46:47 -0400960 case $ac_option in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000961 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 *=) ac_optarg= ;;
963 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400964 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000965
966 # Accept the important Cygnus configure options, so we can diagnose typos.
967
Theodore Ts'oe1052142006-10-21 21:46:47 -0400968 case $ac_dashdash$ac_option in
969 --)
970 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000971
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500975 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000976
977 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500978 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500980 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000981
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500987 cache_file=$ac_optarg ;;
988
989 --config-cache | -C)
990 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000991
Theodore Ts'oe1052142006-10-21 21:46:47 -0400992 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000993 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500995 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000996
Theodore Ts'oe1052142006-10-21 21:46:47 -0400997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1003
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001004 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001006 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001008 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1012 *"
1013"enable_$ac_useropt"
1014"*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001019
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1024
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001029
1030 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001031 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001032 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001034 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1038 *"
1039"enable_$ac_useropt"
1040"*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001045
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001053 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001054
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1058
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001065
1066 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001067 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001068 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001069 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001070
Theodore Ts'oe1052142006-10-21 21:46:47 -04001071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1076
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001082 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001083
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001087 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001088
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001092 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001093
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001099 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001100
Theodore Ts'oe1052142006-10-21 21:46:47 -04001101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1105
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001106 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001107 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001111 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001112
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001116 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001117
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1121
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001123 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001124 no_create=yes ;;
1125
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1129
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001137 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001138
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001142 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001143
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001149 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001150
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001156 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001157
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001173 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001174
Theodore Ts'oe1052142006-10-21 21:46:47 -04001175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1179
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1184
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1188
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001193 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001204 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001205
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001209 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001214 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001215
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001221 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001222
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001223 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001224 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001226 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001233
1234 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001236 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001238 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243"with_$ac_useropt"
1244"*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001249
1250 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001252 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001254 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259"with_$ac_useropt"
1260"*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001265
1266 --x)
1267 # Obsolete; use --with-x.
1268 with_x=yes ;;
1269
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001275 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001276
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001282 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001283
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001284 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001286 ;;
1287
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001288 *=*)
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001294 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001295 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001296 export $ac_envvar ;;
1297
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001298 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001299 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001304 ;;
1305
1306 esac
1307done
1308
1309if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001311 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001312fi
1313
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001314if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1316 no) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 esac
1320fi
1321
1322# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001323for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001327do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001328 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001329 # Remove trailing slashes.
1330 case $ac_val in
1331 */ )
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1334 esac
1335 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001336 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001339 esac
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001341done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001342
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001343# There might be people who depend on the old broken behavior: `$host'
1344# used to hold the argument of --host etc.
1345# FIXME: To remove some day.
1346build=$build_alias
1347host=$host_alias
1348target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001349
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001350# FIXME: To remove some day.
1351if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1356 fi
1357fi
1358
1359ac_tool_prefix=
1360test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362test "$silent" = yes && exec 6>/dev/null
1363
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001364
Theodore Ts'oe1052142006-10-21 21:46:47 -04001365ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366ac_ls_di=`ls -di .` &&
1367ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001368 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001369test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001370 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001371
1372
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001373# Find the source files, if location was not specified.
1374if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001376 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\).*/{
1396 s//\1/
1397 q
1398 }
1399 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001400 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001401 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001402 srcdir=..
1403 fi
1404else
1405 ac_srcdir_defaulted=no
1406fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001407if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001410fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001411ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412ac_abs_confdir=`(
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001414 pwd)`
1415# When building in place, set srcdir=.
1416if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1418fi
1419# Remove unnecessary trailing slashes from srcdir.
1420# Double slashes in file names in object file debugging info
1421# mess up M-x gdb in Emacs.
1422case $srcdir in
1423*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424esac
1425for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001431
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001432#
1433# Report the --help message.
1434#
1435if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439\`configure' configures this package to adapt to many kinds of systems.
1440
1441Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444VAR=VALUE. See below for descriptions of some of the useful variables.
1445
1446Defaults for the options are specified in brackets.
1447
1448Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001453 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001459Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001461 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001463 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001464
1465By default, \`make install' will install all the files in
1466\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468for instance \`--prefix=\$HOME'.
1469
1470For better control, use the options below.
1471
1472Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001492_ACEOF
1493
1494 cat <<\_ACEOF
1495
1496System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499_ACEOF
1500fi
1501
1502if test -n "$ac_init_help"; then
1503
1504 cat <<\_ACEOF
1505
1506Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001507 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001510 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001511 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001512 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001513
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001514 --enable-symlink-build use symlinks while building instead of hard links
1515 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001516 --enable-elf-shlibs select ELF shared libraries
1517 --enable-bsd-shlibs select BSD shared libraries
1518 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001519 --enable-gcov build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001520 --enable-jbd-debug enable journal debugging
1521 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001522 --disable-testio-debug disable the use of the test I/O manager for debugging
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001523 --enable-libuuid build and use private uuid library
1524 --enable-libblkid build and use private blkid library
Theodore Ts'o3df60142013-06-16 16:14:40 -04001525 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001526 --disable-debugfs disable support of debugfs program
1527 --disable-imager disable support of e2image program
1528 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001529 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001530 --enable-fsck build fsck wrapper program
1531 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001532 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001533 --disable-uuidd disable building the uuid daemon
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001534 --disable-mmp disable support mmp, Multi Mount Protection
Tony Breeds1625bf42012-07-30 14:44:12 -04001535 --disable-bmap-stats disable collection of bitmap stats.
1536 --enable-bmap-stats-ops enable collection of additional bitmap stats
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001537 --disable-nls do not use Native Language Support
Theodore Ts'o93613952014-07-03 23:44:13 -04001538 --enable-threads={posix|solaris|pth|windows}
1539 specify multithreading API
1540 --disable-threads build without multithread safety
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001541 --disable-rpath do not hardcode runtime library paths
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001542 --disable-fuse2fs do not build fuse2fs
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001543
1544Optional Packages:
1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001547 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001548 --with-cc no longer supported, use CC= instead
1549 --with-ccopts no longer supported, use CFLAGS= instead
1550 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001551 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
Theodore Ts'o93613952014-07-03 23:44:13 -04001552 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1553 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1554 --without-libpth-prefix don't search for libpth in includedir and libdir
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001555 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1556 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1557 --with-included-gettext use the GNU gettext library included here
1558 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1559 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001560 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001561
1562Some influential environment variables:
1563 CC C compiler command
1564 CFLAGS C compiler flags
1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1566 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001567 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001568 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001569 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001570 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001571 PKG_CONFIG path to pkg-config utility
Theodore Ts'o93613952014-07-03 23:44:13 -04001572 PKG_CONFIG_PATH
1573 directories to add to pkg-config's search path
1574 PKG_CONFIG_LIBDIR
1575 path overriding pkg-config's built-in search path
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001576
1577Use these variables to override the choices made by `configure' or to help
1578it to find libraries and programs with nonstandard names/locations.
1579
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001580Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001581_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001582ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001583fi
1584
1585if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001588 test -d "$ac_dir" ||
1589 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1590 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001591 ac_builddir=.
1592
Theodore Ts'oe1052142006-10-21 21:46:47 -04001593case "$ac_dir" in
1594.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001597 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 esac ;;
1603esac
1604ac_abs_top_builddir=$ac_pwd
1605ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606# for backward compatibility:
1607ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001608
1609case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001610 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001611 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001615 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1618 *) # Relative name.
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001622esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001623ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001624
Theodore Ts'oe1052142006-10-21 21:46:47 -04001625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001633 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001634 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001635 fi || ac_status=$?
1636 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001637 done
1638fi
1639
Theodore Ts'oe1052142006-10-21 21:46:47 -04001640test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001641if $ac_init_version; then
1642 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001643configure
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001644generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001645
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001646Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001647This configure script is free software; the Free Software Foundation
1648gives unlimited permission to copy, distribute and modify it.
1649_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001650 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001651fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001652
1653## ------------------------ ##
1654## Autoconf initialization. ##
1655## ------------------------ ##
1656
1657# ac_fn_c_try_compile LINENO
1658# --------------------------
1659# Try to compile conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_compile ()
1661{
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1665case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668esac
1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670$as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1683 ac_retval=0
1684else
1685 $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001691 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001692
1693} # ac_fn_c_try_compile
1694
1695# ac_fn_c_try_link LINENO
1696# -----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_link ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext conftest$ac_exeext
1702 if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest$ac_exeext && {
1721 test "$cross_compiling" = yes ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001722 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001723 }; then :
1724 ac_retval=0
1725else
1726 $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730fi
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001737 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001738
1739} # ac_fn_c_try_link
1740
1741# ac_fn_c_try_cpp LINENO
1742# ----------------------
1743# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1744ac_fn_c_try_cpp ()
1745{
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if { { ac_try="$ac_cpp conftest.$ac_ext"
1748case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001762 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 }; then :
1766 ac_retval=0
1767else
1768 $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=1
1772fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001774 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001775
1776} # ac_fn_c_try_cpp
1777
1778# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1779# -------------------------------------------------------
1780# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1781# the include files in INCLUDES and setting the cache variable VAR
1782# accordingly.
1783ac_fn_c_check_header_mongrel ()
1784{
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001786 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001789if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001790 $as_echo_n "(cached) " >&6
1791fi
1792eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794$as_echo "$ac_res" >&6; }
1795else
1796 # Is the header compilable?
1797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1798$as_echo_n "checking $2 usability... " >&6; }
1799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h. */
1801$4
1802#include <$2>
1803_ACEOF
1804if ac_fn_c_try_compile "$LINENO"; then :
1805 ac_header_compiler=yes
1806else
1807 ac_header_compiler=no
1808fi
1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1811$as_echo "$ac_header_compiler" >&6; }
1812
1813# Is the header present?
1814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1815$as_echo_n "checking $2 presence... " >&6; }
1816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h. */
1818#include <$2>
1819_ACEOF
1820if ac_fn_c_try_cpp "$LINENO"; then :
1821 ac_header_preproc=yes
1822else
1823 ac_header_preproc=no
1824fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001825rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1827$as_echo "$ac_header_preproc" >&6; }
1828
1829# So? What about this header?
1830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1831 yes:no: )
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1833$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836 ;;
1837 no:yes:* )
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1839$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1841$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1843$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1845$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848 ;;
1849esac
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001852if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001853 $as_echo_n "(cached) " >&6
1854else
1855 eval "$3=\$ac_header_compiler"
1856fi
1857eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859$as_echo "$ac_res" >&6; }
1860fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001862
1863} # ac_fn_c_check_header_mongrel
1864
Theodore Ts'o93613952014-07-03 23:44:13 -04001865# ac_fn_c_try_run LINENO
1866# ----------------------
1867# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1868# that executables *can* be run.
1869ac_fn_c_try_run ()
1870{
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_link"
1873case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876esac
1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878$as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1883 { { case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_try") 2>&5
1890 ac_status=$?
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; }; }; then :
1893 ac_retval=0
1894else
1895 $as_echo "$as_me: program exited with status $ac_status" >&5
1896 $as_echo "$as_me: failed program was:" >&5
1897sed 's/^/| /' conftest.$ac_ext >&5
1898
1899 ac_retval=$ac_status
1900fi
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1904
1905} # ac_fn_c_try_run
1906
1907# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1908# -------------------------------------------------------
1909# Tests whether HEADER exists and can be compiled using the include files in
1910# INCLUDES, setting the cache variable VAR accordingly.
1911ac_fn_c_check_header_compile ()
1912{
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915$as_echo_n "checking for $2... " >&6; }
1916if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1918else
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920/* end confdefs.h. */
1921$4
1922#include <$2>
1923_ACEOF
1924if ac_fn_c_try_compile "$LINENO"; then :
1925 eval "$3=yes"
1926else
1927 eval "$3=no"
1928fi
1929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930fi
1931eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936} # ac_fn_c_check_header_compile
1937
1938# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1939# -------------------------------------------
1940# Tests whether TYPE exists after having included INCLUDES, setting cache
1941# variable VAR accordingly.
1942ac_fn_c_check_type ()
1943{
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
1947if eval \${$3+:} false; then :
1948 $as_echo_n "(cached) " >&6
1949else
1950 eval "$3=no"
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h. */
1953$4
1954int
1955main ()
1956{
1957if (sizeof ($2))
1958 return 0;
1959 ;
1960 return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_compile "$LINENO"; then :
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h. */
1966$4
1967int
1968main ()
1969{
1970if (sizeof (($2)))
1971 return 0;
1972 ;
1973 return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
1977
1978else
1979 eval "$3=yes"
1980fi
1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984fi
1985eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987$as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990} # ac_fn_c_check_type
1991
1992# ac_fn_c_check_func LINENO FUNC VAR
1993# ----------------------------------
1994# Tests whether FUNC exists, setting the cache variable VAR accordingly
1995ac_fn_c_check_func ()
1996{
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999$as_echo_n "checking for $2... " >&6; }
2000if eval \${$3+:} false; then :
2001 $as_echo_n "(cached) " >&6
2002else
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h. */
2005/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2007#define $2 innocuous_$2
2008
2009/* System header to define __stub macros and hopefully few prototypes,
2010 which can conflict with char $2 (); below.
2011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2012 <limits.h> exists even on freestanding compilers. */
2013
2014#ifdef __STDC__
2015# include <limits.h>
2016#else
2017# include <assert.h>
2018#endif
2019
2020#undef $2
2021
2022/* Override any GCC internal prototype to avoid an error.
2023 Use char because int might match the return type of a GCC
2024 builtin and then its argument prototype would still apply. */
2025#ifdef __cplusplus
2026extern "C"
2027#endif
2028char $2 ();
2029/* The GNU C library defines this for functions which it implements
2030 to always fail with ENOSYS. Some functions are actually named
2031 something starting with __ and the normal name is an alias. */
2032#if defined __stub_$2 || defined __stub___$2
2033choke me
2034#endif
2035
2036int
2037main ()
2038{
2039return $2 ();
2040 ;
2041 return 0;
2042}
2043_ACEOF
2044if ac_fn_c_try_link "$LINENO"; then :
2045 eval "$3=yes"
2046else
2047 eval "$3=no"
2048fi
2049rm -f core conftest.err conftest.$ac_objext \
2050 conftest$ac_exeext conftest.$ac_ext
2051fi
2052eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057} # ac_fn_c_check_func
2058
2059# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2060# ---------------------------------------------
2061# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2062# accordingly.
2063ac_fn_c_check_decl ()
2064{
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 as_decl_name=`echo $2|sed 's/ *(.*//'`
2067 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2069$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2070if eval \${$3+:} false; then :
2071 $as_echo_n "(cached) " >&6
2072else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h. */
2075$4
2076int
2077main ()
2078{
2079#ifndef $as_decl_name
2080#ifdef __cplusplus
2081 (void) $as_decl_use;
2082#else
2083 (void) $as_decl_name;
2084#endif
2085#endif
2086
2087 ;
2088 return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092 eval "$3=yes"
2093else
2094 eval "$3=no"
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097fi
2098eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100$as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102
2103} # ac_fn_c_check_decl
2104
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002105# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2106# --------------------------------------------
2107# Tries to find the compile-time value of EXPR in a program that includes
2108# INCLUDES, setting VAR accordingly. Returns whether the value could be
2109# computed
2110ac_fn_c_compute_int ()
2111{
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 if test "$cross_compiling" = yes; then
2114 # Depending upon the size, compute the lo and hi bounds.
2115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116/* end confdefs.h. */
2117$4
2118int
2119main ()
2120{
2121static int test_array [1 - 2 * !(($2) >= 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002122test_array [0] = 0;
2123return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002124
2125 ;
2126 return 0;
2127}
2128_ACEOF
2129if ac_fn_c_try_compile "$LINENO"; then :
2130 ac_lo=0 ac_mid=0
2131 while :; do
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h. */
2134$4
2135int
2136main ()
2137{
2138static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002139test_array [0] = 0;
2140return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002141
2142 ;
2143 return 0;
2144}
2145_ACEOF
2146if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_hi=$ac_mid; break
2148else
2149 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2150 if test $ac_lo -le $ac_mid; then
2151 ac_lo= ac_hi=
2152 break
2153 fi
2154 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2155fi
2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 done
2158else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160/* end confdefs.h. */
2161$4
2162int
2163main ()
2164{
2165static int test_array [1 - 2 * !(($2) < 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002166test_array [0] = 0;
2167return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002168
2169 ;
2170 return 0;
2171}
2172_ACEOF
2173if ac_fn_c_try_compile "$LINENO"; then :
2174 ac_hi=-1 ac_mid=-1
2175 while :; do
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177/* end confdefs.h. */
2178$4
2179int
2180main ()
2181{
2182static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002183test_array [0] = 0;
2184return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002185
2186 ;
2187 return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_lo=$ac_mid; break
2192else
2193 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2194 if test $ac_mid -le $ac_hi; then
2195 ac_lo= ac_hi=
2196 break
2197 fi
2198 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 done
2202else
2203 ac_lo= ac_hi=
2204fi
2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208# Binary search between lo and hi bounds.
2209while test "x$ac_lo" != "x$ac_hi"; do
2210 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212/* end confdefs.h. */
2213$4
2214int
2215main ()
2216{
2217static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002218test_array [0] = 0;
2219return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002220
2221 ;
2222 return 0;
2223}
2224_ACEOF
2225if ac_fn_c_try_compile "$LINENO"; then :
2226 ac_hi=$ac_mid
2227else
2228 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2229fi
2230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231done
2232case $ac_lo in #((
2233?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2234'') ac_retval=1 ;;
2235esac
2236 else
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238/* end confdefs.h. */
2239$4
2240static long int longval () { return $2; }
2241static unsigned long int ulongval () { return $2; }
2242#include <stdio.h>
2243#include <stdlib.h>
2244int
2245main ()
2246{
2247
2248 FILE *f = fopen ("conftest.val", "w");
2249 if (! f)
2250 return 1;
2251 if (($2) < 0)
2252 {
2253 long int i = longval ();
2254 if (i != ($2))
2255 return 1;
2256 fprintf (f, "%ld", i);
2257 }
2258 else
2259 {
2260 unsigned long int i = ulongval ();
2261 if (i != ($2))
2262 return 1;
2263 fprintf (f, "%lu", i);
2264 }
2265 /* Do not output a trailing newline, as this causes \r\n confusion
2266 on some platforms. */
2267 return ferror (f) || fclose (f) != 0;
2268
2269 ;
2270 return 0;
2271}
2272_ACEOF
2273if ac_fn_c_try_run "$LINENO"; then :
2274 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2275else
2276 ac_retval=1
2277fi
2278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2279 conftest.$ac_objext conftest.beam conftest.$ac_ext
2280rm -f conftest.val
2281
2282 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002284 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002285
2286} # ac_fn_c_compute_int
2287
2288# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2289# ----------------------------------------------------
2290# Tries to find if the field MEMBER exists in type AGGR, after including
2291# INCLUDES, setting cache variable VAR accordingly.
2292ac_fn_c_check_member ()
2293{
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2296$as_echo_n "checking for $2.$3... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002297if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002298 $as_echo_n "(cached) " >&6
2299else
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301/* end confdefs.h. */
2302$5
2303int
2304main ()
2305{
2306static $2 ac_aggr;
2307if (ac_aggr.$3)
2308return 0;
2309 ;
2310 return 0;
2311}
2312_ACEOF
2313if ac_fn_c_try_compile "$LINENO"; then :
2314 eval "$4=yes"
2315else
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317/* end confdefs.h. */
2318$5
2319int
2320main ()
2321{
2322static $2 ac_aggr;
2323if (sizeof ac_aggr.$3)
2324return 0;
2325 ;
2326 return 0;
2327}
2328_ACEOF
2329if ac_fn_c_try_compile "$LINENO"; then :
2330 eval "$4=yes"
2331else
2332 eval "$4=no"
2333fi
2334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335fi
2336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337fi
2338eval ac_res=\$$4
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002342
2343} # ac_fn_c_check_member
Theodore Ts'oe1052142006-10-21 21:46:47 -04002344cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002345This file contains any messages produced by compilers while
2346running configure, to aid debugging if configure makes a mistake.
2347
2348It was created by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002349generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002350
2351 $ $0 $@
2352
2353_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002354exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002355{
2356cat <<_ASUNAME
2357## --------- ##
2358## Platform. ##
2359## --------- ##
2360
2361hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2362uname -m = `(uname -m) 2>/dev/null || echo unknown`
2363uname -r = `(uname -r) 2>/dev/null || echo unknown`
2364uname -s = `(uname -s) 2>/dev/null || echo unknown`
2365uname -v = `(uname -v) 2>/dev/null || echo unknown`
2366
2367/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2368/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2369
2370/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2371/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2372/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002373/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002374/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2375/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2376/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2377
2378_ASUNAME
2379
2380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381for as_dir in $PATH
2382do
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002385 $as_echo "PATH: $as_dir"
2386 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002387IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002388
2389} >&5
2390
2391cat >&5 <<_ACEOF
2392
2393
2394## ----------- ##
2395## Core tests. ##
2396## ----------- ##
2397
2398_ACEOF
2399
2400
2401# Keep a trace of the command line.
2402# Strip out --no-create and --no-recursion so they do not pile up.
2403# Strip out --silent because we don't want to record it for future runs.
2404# Also quote any args containing shell meta-characters.
2405# Make two passes to allow for proper duplicate-argument suppression.
2406ac_configure_args=
2407ac_configure_args0=
2408ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002409ac_must_keep_next=false
2410for ac_pass in 1 2
2411do
2412 for ac_arg
2413 do
2414 case $ac_arg in
2415 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2417 | -silent | --silent | --silen | --sile | --sil)
2418 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002419 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002420 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002421 esac
2422 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002423 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002424 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002425 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002426 if test $ac_must_keep_next = true; then
2427 ac_must_keep_next=false # Got value, back to normal.
2428 else
2429 case $ac_arg in
2430 *=* | --config-cache | -C | -disable-* | --disable-* \
2431 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2432 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2433 | -with-* | --with-* | -without-* | --without-* | --x)
2434 case "$ac_configure_args0 " in
2435 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2436 esac
2437 ;;
2438 -* ) ac_must_keep_next=true ;;
2439 esac
2440 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002441 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002442 ;;
2443 esac
2444 done
2445done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002446{ ac_configure_args0=; unset ac_configure_args0;}
2447{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002448
2449# When interrupted or exit'd, cleanup temporary files, and complete
2450# config.log. We remove comments because anyway the quotes in there
2451# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002452# WARNING: Use '\'' to represent an apostrophe within the trap.
2453# 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 -05002454trap 'exit_status=$?
2455 # Save into config.log some information that might help in debugging.
2456 {
2457 echo
2458
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002459 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002460## Cache variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002461## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002462 echo
2463 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002464(
2465 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2466 eval ac_val=\$$ac_var
2467 case $ac_val in #(
2468 *${as_nl}*)
2469 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002470 *_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 +01002471$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002472 esac
2473 case $ac_var in #(
2474 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002475 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002476 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002477 esac ;;
2478 esac
2479 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002480 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002481 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2482 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002483 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002484 "s/'\''/'\''\\\\'\'''\''/g;
2485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2486 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002487 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002488 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002489 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002490 esac |
2491 sort
2492)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002493 echo
2494
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002495 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002496## Output variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002497## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002498 echo
2499 for ac_var in $ac_subst_vars
2500 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002501 eval ac_val=\$$ac_var
2502 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002503 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002504 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002505 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002506 done | sort
2507 echo
2508
2509 if test -n "$ac_subst_files"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002510 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002511## File substitutions. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002512## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002513 echo
2514 for ac_var in $ac_subst_files
2515 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002516 eval ac_val=\$$ac_var
2517 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002518 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002519 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002520 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002521 done | sort
2522 echo
2523 fi
2524
2525 if test -s confdefs.h; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002526 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002527## confdefs.h. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002528## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002529 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002530 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002531 echo
2532 fi
2533 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002534 $as_echo "$as_me: caught signal $ac_signal"
2535 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002536 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002537 rm -f core *.core core.conftest.* &&
2538 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002539 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002540' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002541for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002542 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002543done
2544ac_signal=0
2545
2546# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002547rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002548
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002549$as_echo "/* confdefs.h */" > confdefs.h
2550
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002551# Predefined preprocessor variables.
2552
2553cat >>confdefs.h <<_ACEOF
2554#define PACKAGE_NAME "$PACKAGE_NAME"
2555_ACEOF
2556
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002557cat >>confdefs.h <<_ACEOF
2558#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2559_ACEOF
2560
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002561cat >>confdefs.h <<_ACEOF
2562#define PACKAGE_VERSION "$PACKAGE_VERSION"
2563_ACEOF
2564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002565cat >>confdefs.h <<_ACEOF
2566#define PACKAGE_STRING "$PACKAGE_STRING"
2567_ACEOF
2568
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002569cat >>confdefs.h <<_ACEOF
2570#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2571_ACEOF
2572
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002573cat >>confdefs.h <<_ACEOF
2574#define PACKAGE_URL "$PACKAGE_URL"
2575_ACEOF
2576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002577
2578# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002579# Prefer an explicitly selected file to automatically selected ones.
2580ac_site_file1=NONE
2581ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002582if test -n "$CONFIG_SITE"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002583 # We do not want a PATH search for config.site.
2584 case $CONFIG_SITE in #((
2585 -*) ac_site_file1=./$CONFIG_SITE;;
2586 */*) ac_site_file1=$CONFIG_SITE;;
2587 *) ac_site_file1=./$CONFIG_SITE;;
2588 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002589elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002590 ac_site_file1=$prefix/share/config.site
2591 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002592else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002593 ac_site_file1=$ac_default_prefix/share/config.site
2594 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002595fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002596for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002597do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002598 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002599 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002600 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002601$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002602 sed 's/^/| /' "$ac_site_file" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002603 . "$ac_site_file" \
2604 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606as_fn_error $? "failed to load site script $ac_site_file
2607See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002608 fi
2609done
2610
2611if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002612 # Some versions of bash will fail to source /dev/null (special files
2613 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2614 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002615 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002616$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002617 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002618 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2619 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002620 esac
2621 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002622else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002624$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002625 >$cache_file
2626fi
2627
Theodore Ts'o93613952014-07-03 23:44:13 -04002628gt_needs="$gt_needs "
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002629as_fn_append ac_header_list " stdlib.h"
2630as_fn_append ac_header_list " unistd.h"
2631as_fn_append ac_header_list " sys/param.h"
Theodore Ts'o93613952014-07-03 23:44:13 -04002632as_fn_append ac_func_list " symlink"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002633# Check that the precious variables saved in the cache have kept the same
2634# value.
2635ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002636for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002637 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2638 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002639 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2640 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002641 case $ac_old_set,$ac_new_set in
2642 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002643 { $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 +01002644$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 -05002645 ac_cache_corrupted=: ;;
2646 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002647 { $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 +01002648$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002649 ac_cache_corrupted=: ;;
2650 ,);;
2651 *)
2652 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002653 # differences in whitespace do not lead to failure.
2654 ac_old_val_w=`echo x $ac_old_val`
2655 ac_new_val_w=`echo x $ac_new_val`
2656 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002657 { $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 +01002658$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2659 ac_cache_corrupted=:
2660 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002661 { $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 +01002662$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2663 eval $ac_var=\$ac_old_val
2664 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002665 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002666$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002667 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002668$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002669 fi;;
2670 esac
2671 # Pass precious variables to config.status.
2672 if test "$ac_new_set" = set; then
2673 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002674 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002675 *) ac_arg=$ac_var=$ac_new_val ;;
2676 esac
2677 case " $ac_configure_args " in
2678 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002679 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002680 esac
2681 fi
2682done
2683if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002686 { $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 +01002687$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002688 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002689fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002690## -------------------- ##
2691## Main body of script. ##
2692## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002693
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002694ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002695ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002699
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002700
2701
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002702ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002703for ac_dir in config "$srcdir"/config; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002704 if test -f "$ac_dir/install-sh"; then
2705 ac_aux_dir=$ac_dir
2706 ac_install_sh="$ac_aux_dir/install-sh -c"
2707 break
2708 elif test -f "$ac_dir/install.sh"; then
2709 ac_aux_dir=$ac_dir
2710 ac_install_sh="$ac_aux_dir/install.sh -c"
2711 break
2712 elif test -f "$ac_dir/shtool"; then
2713 ac_aux_dir=$ac_dir
2714 ac_install_sh="$ac_aux_dir/shtool install -c"
2715 break
2716 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002717done
2718if test -z "$ac_aux_dir"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002719 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 +00002720fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002721
2722# These three variables are undocumented and unsupported,
2723# and are intended to be withdrawn in a future Autoconf release.
2724# They can cause serious problems if a builder's source tree is in a directory
2725# whose full name contains unusual characters.
2726ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2727ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2728ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2729
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002730
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002731ac_config_headers="$ac_config_headers lib/config.h"
2732
2733
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002734MCONFIG=./MCONFIG
2735
Theodore Ts'o74becf31997-04-26 14:37:06 +00002736BINARY_TYPE=bin
2737E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2738 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2739DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2740 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002741E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002742MONTH=`echo $DATE | awk -F- '{print $2}'`
2743YEAR=`echo $DATE | awk -F- '{print $3}'`
2744
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002745if expr $YEAR ">" 1900 > /dev/null ; then
2746 E2FSPROGS_YEAR=$YEAR
2747elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002748 E2FSPROGS_YEAR=19$YEAR
2749else
2750 E2FSPROGS_YEAR=20$YEAR
2751fi
2752
2753case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002754Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2755Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2756Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2757Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2758May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2759Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2760Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2761Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2762Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2763Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2764Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2765Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002766*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002767$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002768esac
2769
Andreas Dilger927566a2006-11-12 19:41:25 -05002770base_ver=`echo $E2FSPROGS_VERSION | \
2771 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002772
2773date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2774
2775case $E2FSPROGS_VERSION in
2776*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002777 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002778 ;;
2779*)
2780 E2FSPROGS_PKGVER="$base_ver"
2781 ;;
2782esac
2783
2784unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002785{ $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 +01002786$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002788$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002789
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002790
2791
2792
Andreas Dilger927566a2006-11-12 19:41:25 -05002793
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002794WITH_DIET_LIBC=
2795
2796# Check whether --with-diet-libc was given.
2797if test "${with_diet_libc+set}" = set; then :
2798 withval=$with_diet_libc; CC="diet cc -nostdinc"
2799WITH_DIET_LIBC=yes
2800if test -z "$LIBS"
2801then
2802 LIBS="-lcompat"
2803else
2804 LIBS="$LIBS -lcompat"
2805fi
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2807$as_echo "CC=$CC" >&6; }
2808fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002809# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002810$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002811 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002812
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002814$as_echo_n "checking build system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002815if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002816 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002817else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002818 ac_build_alias=$build_alias
2819test "x$ac_build_alias" = x &&
2820 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2821test "x$ac_build_alias" = x &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002822 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002823ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002824 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002825
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002826fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002828$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002829case $ac_cv_build in
2830*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002831*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002832esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002833build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002834ac_save_IFS=$IFS; IFS='-'
2835set x $ac_cv_build
2836shift
2837build_cpu=$1
2838build_vendor=$2
2839shift; shift
2840# Remember, the first character of IFS is used to create $*,
2841# except with old shells:
2842build_os=$*
2843IFS=$ac_save_IFS
2844case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002845
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002846
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002848$as_echo_n "checking host system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002849if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002850 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002851else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002852 if test "x$host_alias" = x; then
2853 ac_cv_host=$ac_cv_build
2854else
2855 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002856 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002857fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002858
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002859fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002861$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002862case $ac_cv_host in
2863*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002864*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002865esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002866host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002867ac_save_IFS=$IFS; IFS='-'
2868set x $ac_cv_host
2869shift
2870host_cpu=$1
2871host_vendor=$2
2872shift; shift
2873# Remember, the first character of IFS is used to create $*,
2874# except with old shells:
2875host_os=$*
2876IFS=$ac_save_IFS
2877case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002878
2879
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002880DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002881ac_ext=c
2882ac_cpp='$CPP $CPPFLAGS'
2883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2885ac_compiler_gnu=$ac_cv_c_compiler_gnu
2886if test -n "$ac_tool_prefix"; then
2887 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2888set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002890$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002891if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002892 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002893else
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2896else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002902 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002904 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002906 break 2
2907 fi
2908done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002909 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002910IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002911
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002912fi
2913fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002914CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002915if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002917$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002918else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002920$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002921fi
2922
Theodore Ts'oe1052142006-10-21 21:46:47 -04002923
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002924fi
2925if test -z "$ac_cv_prog_CC"; then
2926 ac_ct_CC=$CC
2927 # Extract the first word of "gcc", so it can be a program name with args.
2928set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002930$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002931if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002932 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002933else
2934 if test -n "$ac_ct_CC"; then
2935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2936else
2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH
2939do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002942 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002944 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002946 break 2
2947 fi
2948done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002949 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002950IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002951
2952fi
2953fi
2954ac_ct_CC=$ac_cv_prog_ac_ct_CC
2955if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002957$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002958else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002960$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002961fi
2962
Theodore Ts'oe1052142006-10-21 21:46:47 -04002963 if test "x$ac_ct_CC" = x; then
2964 CC=""
2965 else
2966 case $cross_compiling:$ac_tool_warned in
2967yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002968{ $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 +01002969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002970ac_tool_warned=yes ;;
2971esac
2972 CC=$ac_ct_CC
2973 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002974else
2975 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002976fi
2977
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002978if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002979 if test -n "$ac_tool_prefix"; then
2980 # 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 -05002981set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002983$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002984if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002985 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002986else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991for as_dir in $PATH
2992do
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002995 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002997 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002999 break 2
3000 fi
3001done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003002 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003003IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003004
3005fi
3006fi
3007CC=$ac_cv_prog_CC
3008if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003010$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003011else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003013$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003014fi
3015
Theodore Ts'oe1052142006-10-21 21:46:47 -04003016
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003017 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003018fi
3019if test -z "$CC"; then
3020 # Extract the first word of "cc", so it can be a program name with args.
3021set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003023$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003024if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003025 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003026else
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3029else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003030 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032for as_dir in $PATH
3033do
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003036 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003038 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3039 ac_prog_rejected=yes
3040 continue
3041 fi
3042 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003044 break 2
3045 fi
3046done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003047 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003048IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003049
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003050if test $ac_prog_rejected = yes; then
3051 # We found a bogon in the path, so make sure we never use it.
3052 set dummy $ac_cv_prog_CC
3053 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003054 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003055 # We chose a different compiler from the bogus one.
3056 # However, it has the same basename, so the bogon will be chosen
3057 # first if we set CC to just the basename; use the full file name.
3058 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003059 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003060 fi
3061fi
3062fi
3063fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003064CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003065if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003067$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003068else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003070$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003071fi
3072
Theodore Ts'oe1052142006-10-21 21:46:47 -04003073
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003074fi
3075if test -z "$CC"; then
3076 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003077 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003078 do
3079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3080set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003082$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003083if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003084 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003085else
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC="$CC" # Let the user override the test.
3088else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003094 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003096 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003098 break 2
3099 fi
3100done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003101 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003102IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003103
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003104fi
3105fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003106CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003107if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003109$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003110else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003112$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003113fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003114
Theodore Ts'oe1052142006-10-21 21:46:47 -04003115
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003116 test -n "$CC" && break
3117 done
3118fi
3119if test -z "$CC"; then
3120 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003121 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003122do
3123 # Extract the first word of "$ac_prog", so it can be a program name with args.
3124set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003126$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003127if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003128 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003129else
3130 if test -n "$ac_ct_CC"; then
3131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3132else
3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134for as_dir in $PATH
3135do
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003138 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003140 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003142 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003143 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003144done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003145 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003146IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003147
3148fi
3149fi
3150ac_ct_CC=$ac_cv_prog_ac_ct_CC
3151if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003153$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003154else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003156$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003157fi
3158
Theodore Ts'oe1052142006-10-21 21:46:47 -04003159
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003160 test -n "$ac_ct_CC" && break
3161done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003162
Theodore Ts'oe1052142006-10-21 21:46:47 -04003163 if test "x$ac_ct_CC" = x; then
3164 CC=""
3165 else
3166 case $cross_compiling:$ac_tool_warned in
3167yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003168{ $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 +01003169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003170ac_tool_warned=yes ;;
3171esac
3172 CC=$ac_ct_CC
3173 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003174fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003175
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003176fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003177
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003178
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003179test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003181as_fn_error $? "no acceptable C compiler found in \$PATH
3182See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003183
3184# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003185$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003186set X $ac_compile
3187ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003188for ac_option in --version -v -V -qversion; do
3189 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003190case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195$as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003197 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003198 if test -s conftest.err; then
3199 sed '10a\
3200... rest of stderr output deleted ...
3201 10q' conftest.err >conftest.er1
3202 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003203 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003204 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }
3207done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003208
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003210/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003211
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003212int
3213main ()
3214{
3215
3216 ;
3217 return 0;
3218}
3219_ACEOF
3220ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003221ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003222# Try to create an executable without -o first, disregard a.out.
3223# It will help us diagnose broken compilers, and finding out an intuition
3224# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3226$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003227ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3228
3229# The possible output files:
3230ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3231
Theodore Ts'oe1052142006-10-21 21:46:47 -04003232ac_rmfiles=
3233for ac_file in $ac_files
3234do
3235 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003237 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3238 esac
3239done
3240rm -f $ac_rmfiles
3241
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003242if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003243case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003249 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003250 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003253 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3254# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3255# in a Makefile. We should not override ac_cv_exeext if it was cached,
3256# so that the user can short-circuit this test for compilers unknown to
3257# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003258for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003259do
3260 test -f "$ac_file" || continue
3261 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003263 ;;
3264 [ab].out )
3265 # We found the default executable, but exeext='' is most
3266 # certainly right.
3267 break;;
3268 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003269 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003270 then :; else
3271 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3272 fi
3273 # We set ac_cv_exeext here because the later test for it is not
3274 # safe: cross compilers may not add the suffix if given an `-o'
3275 # argument, so we may need to know it at that point already.
3276 # Even if this section looks crufty: it has the advantage of
3277 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003278 break;;
3279 * )
3280 break;;
3281 esac
3282done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003283test "$ac_cv_exeext" = no && ac_cv_exeext=
3284
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003285else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003286 ac_file=''
3287fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003288if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290$as_echo "no" >&6; }
3291$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003292sed 's/^/| /' conftest.$ac_ext >&5
3293
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003294{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003296as_fn_error 77 "C compiler cannot create executables
3297See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003298else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3300$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003301fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3303$as_echo_n "checking for C compiler default output file name... " >&6; }
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3305$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003306ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003307
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003308rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003309ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003311$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003312if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003313case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003319 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003320 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3324# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3325# work properly (i.e., refer to `conftest.exe'), while it won't with
3326# `rm'.
3327for ac_file in conftest.exe conftest conftest.*; do
3328 test -f "$ac_file" || continue
3329 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003332 break;;
3333 * ) break;;
3334 esac
3335done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003336else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003339as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3340See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003341fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003342rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003344$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003345
3346rm -f conftest.$ac_ext
3347EXEEXT=$ac_cv_exeext
3348ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350/* end confdefs.h. */
3351#include <stdio.h>
3352int
3353main ()
3354{
3355FILE *f = fopen ("conftest.out", "w");
3356 return ferror (f) || fclose (f) != 0;
3357
3358 ;
3359 return 0;
3360}
3361_ACEOF
3362ac_clean_files="$ac_clean_files conftest.out"
3363# Check that the compiler produces executables we can run. If not, either
3364# the compiler is broken, or we cross compile.
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3366$as_echo_n "checking whether we are cross compiling... " >&6; }
3367if test "$cross_compiling" != yes; then
3368 { { ac_try="$ac_link"
3369case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372esac
3373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374$as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_link") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }
3379 if { ac_try='./conftest$ac_cv_exeext'
3380 { { case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383esac
3384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385$as_echo "$ac_try_echo"; } >&5
3386 (eval "$ac_try") 2>&5
3387 ac_status=$?
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }; }; then
3390 cross_compiling=no
3391 else
3392 if test "$cross_compiling" = maybe; then
3393 cross_compiling=yes
3394 else
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003397as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003398If you meant to cross compile, use \`--host'.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003399See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003400 fi
3401 fi
3402fi
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3404$as_echo "$cross_compiling" >&6; }
3405
3406rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3407ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003409$as_echo_n "checking for suffix of object files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003410if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003411 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003412else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003414/* end confdefs.h. */
3415
3416int
3417main ()
3418{
3419
3420 ;
3421 return 0;
3422}
3423_ACEOF
3424rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003425if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003426case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003432 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003433 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003436 for ac_file in conftest.o conftest.obj conftest.*; do
3437 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003438 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003440 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3441 break;;
3442 esac
3443done
3444else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003445 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003446sed 's/^/| /' conftest.$ac_ext >&5
3447
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003448{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003450as_fn_error $? "cannot compute suffix of object files: cannot compile
3451See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003452fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003453rm -f conftest.$ac_cv_objext conftest.$ac_ext
3454fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003456$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003457OBJEXT=$ac_cv_objext
3458ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003459{ $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 +01003460$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003461if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003462 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003463else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003465/* end confdefs.h. */
3466
3467int
3468main ()
3469{
3470#ifndef __GNUC__
3471 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003472#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003473
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003474 ;
3475 return 0;
3476}
3477_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003478if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003479 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003480else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003481 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003482fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003484ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003486fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003488$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3489if test $ac_compiler_gnu = yes; then
3490 GCC=yes
3491else
3492 GCC=
3493fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003494ac_test_CFLAGS=${CFLAGS+set}
3495ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003497$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003498if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003499 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003500else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003501 ac_save_c_werror_flag=$ac_c_werror_flag
3502 ac_c_werror_flag=yes
3503 ac_cv_prog_cc_g=no
3504 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003506/* end confdefs.h. */
3507
3508int
3509main ()
3510{
3511
3512 ;
3513 return 0;
3514}
3515_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003516if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003517 ac_cv_prog_cc_g=yes
3518else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003519 CFLAGS=""
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003521/* end confdefs.h. */
3522
3523int
3524main ()
3525{
3526
3527 ;
3528 return 0;
3529}
3530_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003531if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003532
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003533else
3534 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003535 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003537/* end confdefs.h. */
3538
3539int
3540main ()
3541{
3542
3543 ;
3544 return 0;
3545}
3546_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003547if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003548 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003549fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003551fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 ac_c_werror_flag=$ac_save_c_werror_flag
3556fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003558$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003559if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003560 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003561elif test $ac_cv_prog_cc_g = yes; then
3562 if test "$GCC" = yes; then
3563 CFLAGS="-g -O2"
3564 else
3565 CFLAGS="-g"
3566 fi
3567else
3568 if test "$GCC" = yes; then
3569 CFLAGS="-O2"
3570 else
3571 CFLAGS=
3572 fi
3573fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003575$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003576if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003577 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003578else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003579 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003580ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003582/* end confdefs.h. */
3583#include <stdarg.h>
3584#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003585struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003586/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3587struct buf { int x; };
3588FILE * (*rcsopen) (struct buf *, struct stat *, int);
3589static char *e (p, i)
3590 char **p;
3591 int i;
3592{
3593 return p[i];
3594}
3595static char *f (char * (*g) (char **, int), char **p, ...)
3596{
3597 char *s;
3598 va_list v;
3599 va_start (v,p);
3600 s = g (p, va_arg (v,int));
3601 va_end (v);
3602 return s;
3603}
3604
3605/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3606 function prototypes and stuff, but not '\xHH' hex character constants.
3607 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003608 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003609 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3610 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003611 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003612int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3613
Theodore Ts'oe1052142006-10-21 21:46:47 -04003614/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3615 inside strings and character constants. */
3616#define FOO(x) 'x'
3617int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3618
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003619int test (int i, double x);
3620struct s1 {int (*f) (int a);};
3621struct s2 {int (*f) (double a);};
3622int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3623int argc;
3624char **argv;
3625int
3626main ()
3627{
3628return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3629 ;
3630 return 0;
3631}
3632_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003633for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3634 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003635do
3636 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003637 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003638 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003639fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003640rm -f core conftest.err conftest.$ac_objext
3641 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003642done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003643rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003644CC=$ac_save_CC
3645
3646fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003647# AC_CACHE_VAL
3648case "x$ac_cv_prog_cc_c89" in
3649 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003651$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003652 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003654$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003655 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003656 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003658$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003659esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003660if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003661
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003662fi
3663
3664ac_ext=c
3665ac_cpp='$CPP $CPPFLAGS'
3666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669
3670
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3672$as_echo_n "checking for dlopen in -ldl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003673if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003674 $as_echo_n "(cached) " >&6
3675else
3676 ac_check_lib_save_LIBS=$LIBS
3677LIBS="-ldl $LIBS"
3678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679/* end confdefs.h. */
3680
3681/* Override any GCC internal prototype to avoid an error.
3682 Use char because int might match the return type of a GCC
3683 builtin and then its argument prototype would still apply. */
3684#ifdef __cplusplus
3685extern "C"
3686#endif
3687char dlopen ();
3688int
3689main ()
3690{
3691return dlopen ();
3692 ;
3693 return 0;
3694}
3695_ACEOF
3696if ac_fn_c_try_link "$LINENO"; then :
3697 ac_cv_lib_dl_dlopen=yes
3698else
3699 ac_cv_lib_dl_dlopen=no
3700fi
3701rm -f core conftest.err conftest.$ac_objext \
3702 conftest$ac_exeext conftest.$ac_ext
3703LIBS=$ac_check_lib_save_LIBS
3704fi
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3706$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003707if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003708 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003709
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003710$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3711
3712fi
3713
3714
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003715
3716# Check whether --with-cc was given.
3717if test "${with_cc+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003718 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003719fi
3720
3721
3722# Check whether --with-ccopts was given.
3723if test "${with_ccopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003724 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003725fi
3726
3727
3728# Check whether --with-ldopts was given.
3729if test "${with_ldopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003730 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003731fi
3732
3733ac_ext=c
3734ac_cpp='$CPP $CPPFLAGS'
3735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738if test -n "$ac_tool_prefix"; then
3739 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3740set dummy ${ac_tool_prefix}gcc; ac_word=$2
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003743if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003744 $as_echo_n "(cached) " >&6
3745else
3746 if test -n "$CC"; then
3747 ac_cv_prog_CC="$CC" # Let the user override the test.
3748else
3749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750for as_dir in $PATH
3751do
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003756 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760done
3761 done
3762IFS=$as_save_IFS
3763
3764fi
3765fi
3766CC=$ac_cv_prog_CC
3767if test -n "$CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3769$as_echo "$CC" >&6; }
3770else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772$as_echo "no" >&6; }
3773fi
3774
3775
3776fi
3777if test -z "$ac_cv_prog_CC"; then
3778 ac_ct_CC=$CC
3779 # Extract the first word of "gcc", so it can be a program name with args.
3780set dummy gcc; ac_word=$2
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003783if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003784 $as_echo_n "(cached) " >&6
3785else
3786 if test -n "$ac_ct_CC"; then
3787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3788else
3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790for as_dir in $PATH
3791do
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003796 ac_cv_prog_ac_ct_CC="gcc"
3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 break 2
3799 fi
3800done
3801 done
3802IFS=$as_save_IFS
3803
3804fi
3805fi
3806ac_ct_CC=$ac_cv_prog_ac_ct_CC
3807if test -n "$ac_ct_CC"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3809$as_echo "$ac_ct_CC" >&6; }
3810else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812$as_echo "no" >&6; }
3813fi
3814
3815 if test "x$ac_ct_CC" = x; then
3816 CC=""
3817 else
3818 case $cross_compiling:$ac_tool_warned in
3819yes:)
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3822ac_tool_warned=yes ;;
3823esac
3824 CC=$ac_ct_CC
3825 fi
3826else
3827 CC="$ac_cv_prog_CC"
3828fi
3829
3830if test -z "$CC"; then
3831 if test -n "$ac_tool_prefix"; then
3832 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3833set dummy ${ac_tool_prefix}cc; ac_word=$2
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003836if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003837 $as_echo_n "(cached) " >&6
3838else
3839 if test -n "$CC"; then
3840 ac_cv_prog_CC="$CC" # Let the user override the test.
3841else
3842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843for as_dir in $PATH
3844do
3845 IFS=$as_save_IFS
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003849 ac_cv_prog_CC="${ac_tool_prefix}cc"
3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 break 2
3852 fi
3853done
3854 done
3855IFS=$as_save_IFS
3856
3857fi
3858fi
3859CC=$ac_cv_prog_CC
3860if test -n "$CC"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3862$as_echo "$CC" >&6; }
3863else
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865$as_echo "no" >&6; }
3866fi
3867
3868
3869 fi
3870fi
3871if test -z "$CC"; then
3872 # Extract the first word of "cc", so it can be a program name with args.
3873set dummy cc; ac_word=$2
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003876if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003877 $as_echo_n "(cached) " >&6
3878else
3879 if test -n "$CC"; then
3880 ac_cv_prog_CC="$CC" # Let the user override the test.
3881else
3882 ac_prog_rejected=no
3883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884for as_dir in $PATH
3885do
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003890 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3891 ac_prog_rejected=yes
3892 continue
3893 fi
3894 ac_cv_prog_CC="cc"
3895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 break 2
3897 fi
3898done
3899 done
3900IFS=$as_save_IFS
3901
3902if test $ac_prog_rejected = yes; then
3903 # We found a bogon in the path, so make sure we never use it.
3904 set dummy $ac_cv_prog_CC
3905 shift
3906 if test $# != 0; then
3907 # We chose a different compiler from the bogus one.
3908 # However, it has the same basename, so the bogon will be chosen
3909 # first if we set CC to just the basename; use the full file name.
3910 shift
3911 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3912 fi
3913fi
3914fi
3915fi
3916CC=$ac_cv_prog_CC
3917if test -n "$CC"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919$as_echo "$CC" >&6; }
3920else
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922$as_echo "no" >&6; }
3923fi
3924
3925
3926fi
3927if test -z "$CC"; then
3928 if test -n "$ac_tool_prefix"; then
3929 for ac_prog in cl.exe
3930 do
3931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3932set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003935if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003936 $as_echo_n "(cached) " >&6
3937else
3938 if test -n "$CC"; then
3939 ac_cv_prog_CC="$CC" # Let the user override the test.
3940else
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003948 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952done
3953 done
3954IFS=$as_save_IFS
3955
3956fi
3957fi
3958CC=$ac_cv_prog_CC
3959if test -n "$CC"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3961$as_echo "$CC" >&6; }
3962else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964$as_echo "no" >&6; }
3965fi
3966
3967
3968 test -n "$CC" && break
3969 done
3970fi
3971if test -z "$CC"; then
3972 ac_ct_CC=$CC
3973 for ac_prog in cl.exe
3974do
3975 # Extract the first word of "$ac_prog", so it can be a program name with args.
3976set dummy $ac_prog; ac_word=$2
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003979if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003980 $as_echo_n "(cached) " >&6
3981else
3982 if test -n "$ac_ct_CC"; then
3983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3984else
3985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in $PATH
3987do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003992 ac_cv_prog_ac_ct_CC="$ac_prog"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 break 2
3995 fi
3996done
3997 done
3998IFS=$as_save_IFS
3999
4000fi
4001fi
4002ac_ct_CC=$ac_cv_prog_ac_ct_CC
4003if test -n "$ac_ct_CC"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4005$as_echo "$ac_ct_CC" >&6; }
4006else
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008$as_echo "no" >&6; }
4009fi
4010
4011
4012 test -n "$ac_ct_CC" && break
4013done
4014
4015 if test "x$ac_ct_CC" = x; then
4016 CC=""
4017 else
4018 case $cross_compiling:$ac_tool_warned in
4019yes:)
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4022ac_tool_warned=yes ;;
4023esac
4024 CC=$ac_ct_CC
4025 fi
4026fi
4027
4028fi
4029
4030
4031test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004033as_fn_error $? "no acceptable C compiler found in \$PATH
4034See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004035
4036# Provide some information about the compiler.
4037$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4038set X $ac_compile
4039ac_compiler=$2
4040for ac_option in --version -v -V -qversion; do
4041 { { ac_try="$ac_compiler $ac_option >&5"
4042case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045esac
4046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047$as_echo "$ac_try_echo"; } >&5
4048 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4049 ac_status=$?
4050 if test -s conftest.err; then
4051 sed '10a\
4052... rest of stderr output deleted ...
4053 10q' conftest.err >conftest.er1
4054 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004055 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004056 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }
4059done
4060
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4062$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004063if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004064 $as_echo_n "(cached) " >&6
4065else
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067/* end confdefs.h. */
4068
4069int
4070main ()
4071{
4072#ifndef __GNUC__
4073 choke me
4074#endif
4075
4076 ;
4077 return 0;
4078}
4079_ACEOF
4080if ac_fn_c_try_compile "$LINENO"; then :
4081 ac_compiler_gnu=yes
4082else
4083 ac_compiler_gnu=no
4084fi
4085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086ac_cv_c_compiler_gnu=$ac_compiler_gnu
4087
4088fi
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4090$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4091if test $ac_compiler_gnu = yes; then
4092 GCC=yes
4093else
4094 GCC=
4095fi
4096ac_test_CFLAGS=${CFLAGS+set}
4097ac_save_CFLAGS=$CFLAGS
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4099$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004100if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004101 $as_echo_n "(cached) " >&6
4102else
4103 ac_save_c_werror_flag=$ac_c_werror_flag
4104 ac_c_werror_flag=yes
4105 ac_cv_prog_cc_g=no
4106 CFLAGS="-g"
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108/* end confdefs.h. */
4109
4110int
4111main ()
4112{
4113
4114 ;
4115 return 0;
4116}
4117_ACEOF
4118if ac_fn_c_try_compile "$LINENO"; then :
4119 ac_cv_prog_cc_g=yes
4120else
4121 CFLAGS=""
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h. */
4124
4125int
4126main ()
4127{
4128
4129 ;
4130 return 0;
4131}
4132_ACEOF
4133if ac_fn_c_try_compile "$LINENO"; then :
4134
4135else
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4137 CFLAGS="-g"
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139/* end confdefs.h. */
4140
4141int
4142main ()
4143{
4144
4145 ;
4146 return 0;
4147}
4148_ACEOF
4149if ac_fn_c_try_compile "$LINENO"; then :
4150 ac_cv_prog_cc_g=yes
4151fi
4152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153fi
4154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155fi
4156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4158fi
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4160$as_echo "$ac_cv_prog_cc_g" >&6; }
4161if test "$ac_test_CFLAGS" = set; then
4162 CFLAGS=$ac_save_CFLAGS
4163elif test $ac_cv_prog_cc_g = yes; then
4164 if test "$GCC" = yes; then
4165 CFLAGS="-g -O2"
4166 else
4167 CFLAGS="-g"
4168 fi
4169else
4170 if test "$GCC" = yes; then
4171 CFLAGS="-O2"
4172 else
4173 CFLAGS=
4174 fi
4175fi
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4177$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004178if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004179 $as_echo_n "(cached) " >&6
4180else
4181 ac_cv_prog_cc_c89=no
4182ac_save_CC=$CC
4183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184/* end confdefs.h. */
4185#include <stdarg.h>
4186#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004187struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004188/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4189struct buf { int x; };
4190FILE * (*rcsopen) (struct buf *, struct stat *, int);
4191static char *e (p, i)
4192 char **p;
4193 int i;
4194{
4195 return p[i];
4196}
4197static char *f (char * (*g) (char **, int), char **p, ...)
4198{
4199 char *s;
4200 va_list v;
4201 va_start (v,p);
4202 s = g (p, va_arg (v,int));
4203 va_end (v);
4204 return s;
4205}
4206
4207/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4208 function prototypes and stuff, but not '\xHH' hex character constants.
4209 These don't provoke an error unfortunately, instead are silently treated
4210 as 'x'. The following induces an error, until -std is added to get
4211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4212 array size at least. It's necessary to write '\x00'==0 to get something
4213 that's true only with -std. */
4214int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4215
4216/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4217 inside strings and character constants. */
4218#define FOO(x) 'x'
4219int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4220
4221int test (int i, double x);
4222struct s1 {int (*f) (int a);};
4223struct s2 {int (*f) (double a);};
4224int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4225int argc;
4226char **argv;
4227int
4228main ()
4229{
4230return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4231 ;
4232 return 0;
4233}
4234_ACEOF
4235for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4237do
4238 CC="$ac_save_CC $ac_arg"
4239 if ac_fn_c_try_compile "$LINENO"; then :
4240 ac_cv_prog_cc_c89=$ac_arg
4241fi
4242rm -f core conftest.err conftest.$ac_objext
4243 test "x$ac_cv_prog_cc_c89" != "xno" && break
4244done
4245rm -f conftest.$ac_ext
4246CC=$ac_save_CC
4247
4248fi
4249# AC_CACHE_VAL
4250case "x$ac_cv_prog_cc_c89" in
4251 x)
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4253$as_echo "none needed" >&6; } ;;
4254 xno)
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4256$as_echo "unsupported" >&6; } ;;
4257 *)
4258 CC="$CC $ac_cv_prog_cc_c89"
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4260$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4261esac
4262if test "x$ac_cv_prog_cc_c89" != xno; then :
4263
4264fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004265
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004266ac_ext=c
4267ac_cpp='$CPP $CPPFLAGS'
4268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004272if test "$GCC" = yes; then
4273 RDYNAMIC="-rdynamic"
4274
4275fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004276ac_ext=c
4277ac_cpp='$CPP $CPPFLAGS'
4278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004282$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004283# On Suns, sometimes $CPP names a directory.
4284if test -n "$CPP" && test -d "$CPP"; then
4285 CPP=
4286fi
4287if test -z "$CPP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004288 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004289 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004290else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004291 # Double quotes because CPP needs to be expanded
4292 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4293 do
4294 ac_preproc_ok=false
4295for ac_c_preproc_warn_flag in '' yes
4296do
4297 # Use a header file that comes with gcc, so configuring glibc
4298 # with a fresh cross-compiler works.
4299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4300 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004301 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004302 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004304/* end confdefs.h. */
4305#ifdef __STDC__
4306# include <limits.h>
4307#else
4308# include <assert.h>
4309#endif
4310 Syntax error
4311_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004312if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004313
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004314else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004315 # Broken: fails on valid input.
4316continue
4317fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004318rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004319
Theodore Ts'oe1052142006-10-21 21:46:47 -04004320 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004321 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004323/* end confdefs.h. */
4324#include <ac_nonexistent.h>
4325_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004326if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004327 # Broken: success on invalid input.
4328continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004329else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004330 # Passes both tests.
4331ac_preproc_ok=:
4332break
4333fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004334rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004335
4336done
4337# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004338rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004339if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004340 break
4341fi
4342
4343 done
4344 ac_cv_prog_CPP=$CPP
4345
4346fi
4347 CPP=$ac_cv_prog_CPP
4348else
4349 ac_cv_prog_CPP=$CPP
4350fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004352$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004353ac_preproc_ok=false
4354for ac_c_preproc_warn_flag in '' yes
4355do
4356 # Use a header file that comes with gcc, so configuring glibc
4357 # with a fresh cross-compiler works.
4358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4359 # <limits.h> exists even on freestanding compilers.
4360 # On the NeXT, cc -E runs the code through the compiler's parser,
4361 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004363/* end confdefs.h. */
4364#ifdef __STDC__
4365# include <limits.h>
4366#else
4367# include <assert.h>
4368#endif
4369 Syntax error
4370_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004371if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004372
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004373else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004374 # Broken: fails on valid input.
4375continue
4376fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004377rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004378
Theodore Ts'oe1052142006-10-21 21:46:47 -04004379 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004380 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004382/* end confdefs.h. */
4383#include <ac_nonexistent.h>
4384_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004385if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004386 # Broken: success on invalid input.
4387continue
4388else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004389 # Passes both tests.
4390ac_preproc_ok=:
4391break
4392fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004393rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004394
4395done
4396# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004397rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004398if $ac_preproc_ok; then :
4399
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004400else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004403as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4404See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004405fi
4406
4407ac_ext=c
4408ac_cpp='$CPP $CPPFLAGS'
4409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004414$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004415if test "$GCC" = yes
4416then
4417 case "$host_cpu" in
4418 alpha) addcflags="-mieee" ;;
4419 esac
4420fi
4421if test "x$addcflags" != x
4422then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004424$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004425 CFLAGS="$addcflags $CFLAGS"
4426else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004428$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004429fi
Theodore Ts'o93613952014-07-03 23:44:13 -04004430
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4432$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4433if ${ac_cv_path_GREP+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435else
4436 if test -z "$GREP"; then
4437 ac_path_GREP_found=false
4438 # Loop through the user's path and test for each of PROGNAME-LIST
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4441do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_prog in grep ggrep; do
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4447 as_fn_executable_p "$ac_path_GREP" || continue
4448# Check for GNU ac_path_GREP and select it if it is found.
4449 # Check for GNU $ac_path_GREP
4450case `"$ac_path_GREP" --version 2>&1` in
4451*GNU*)
4452 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4453*)
4454 ac_count=0
4455 $as_echo_n 0123456789 >"conftest.in"
4456 while :
4457 do
4458 cat "conftest.in" "conftest.in" >"conftest.tmp"
4459 mv "conftest.tmp" "conftest.in"
4460 cp "conftest.in" "conftest.nl"
4461 $as_echo 'GREP' >> "conftest.nl"
4462 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4463 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4464 as_fn_arith $ac_count + 1 && ac_count=$as_val
4465 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4466 # Best one so far, save it but keep looking for a better one
4467 ac_cv_path_GREP="$ac_path_GREP"
4468 ac_path_GREP_max=$ac_count
4469 fi
4470 # 10*(2^10) chars as input seems more than enough
4471 test $ac_count -gt 10 && break
4472 done
4473 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4474esac
4475
4476 $ac_path_GREP_found && break 3
4477 done
4478 done
4479 done
4480IFS=$as_save_IFS
4481 if test -z "$ac_cv_path_GREP"; then
4482 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4483 fi
4484else
4485 ac_cv_path_GREP=$GREP
4486fi
4487
4488fi
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4490$as_echo "$ac_cv_path_GREP" >&6; }
4491 GREP="$ac_cv_path_GREP"
4492
4493
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4495$as_echo_n "checking for egrep... " >&6; }
4496if ${ac_cv_path_EGREP+:} false; then :
4497 $as_echo_n "(cached) " >&6
4498else
4499 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4500 then ac_cv_path_EGREP="$GREP -E"
4501 else
4502 if test -z "$EGREP"; then
4503 ac_path_EGREP_found=false
4504 # Loop through the user's path and test for each of PROGNAME-LIST
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4507do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_prog in egrep; do
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4513 as_fn_executable_p "$ac_path_EGREP" || continue
4514# Check for GNU ac_path_EGREP and select it if it is found.
4515 # Check for GNU $ac_path_EGREP
4516case `"$ac_path_EGREP" --version 2>&1` in
4517*GNU*)
4518 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4519*)
4520 ac_count=0
4521 $as_echo_n 0123456789 >"conftest.in"
4522 while :
4523 do
4524 cat "conftest.in" "conftest.in" >"conftest.tmp"
4525 mv "conftest.tmp" "conftest.in"
4526 cp "conftest.in" "conftest.nl"
4527 $as_echo 'EGREP' >> "conftest.nl"
4528 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4529 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4530 as_fn_arith $ac_count + 1 && ac_count=$as_val
4531 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4532 # Best one so far, save it but keep looking for a better one
4533 ac_cv_path_EGREP="$ac_path_EGREP"
4534 ac_path_EGREP_max=$ac_count
4535 fi
4536 # 10*(2^10) chars as input seems more than enough
4537 test $ac_count -gt 10 && break
4538 done
4539 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4540esac
4541
4542 $ac_path_EGREP_found && break 3
4543 done
4544 done
4545 done
4546IFS=$as_save_IFS
4547 if test -z "$ac_cv_path_EGREP"; then
4548 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4549 fi
4550else
4551 ac_cv_path_EGREP=$EGREP
4552fi
4553
4554 fi
4555fi
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4557$as_echo "$ac_cv_path_EGREP" >&6; }
4558 EGREP="$ac_cv_path_EGREP"
4559
4560
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4562$as_echo_n "checking for ANSI C header files... " >&6; }
4563if ${ac_cv_header_stdc+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565else
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567/* end confdefs.h. */
4568#include <stdlib.h>
4569#include <stdarg.h>
4570#include <string.h>
4571#include <float.h>
4572
4573int
4574main ()
4575{
4576
4577 ;
4578 return 0;
4579}
4580_ACEOF
4581if ac_fn_c_try_compile "$LINENO"; then :
4582 ac_cv_header_stdc=yes
4583else
4584 ac_cv_header_stdc=no
4585fi
4586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587
4588if test $ac_cv_header_stdc = yes; then
4589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591/* end confdefs.h. */
4592#include <string.h>
4593
4594_ACEOF
4595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4596 $EGREP "memchr" >/dev/null 2>&1; then :
4597
4598else
4599 ac_cv_header_stdc=no
4600fi
4601rm -f conftest*
4602
4603fi
4604
4605if test $ac_cv_header_stdc = yes; then
4606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608/* end confdefs.h. */
4609#include <stdlib.h>
4610
4611_ACEOF
4612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 $EGREP "free" >/dev/null 2>&1; then :
4614
4615else
4616 ac_cv_header_stdc=no
4617fi
4618rm -f conftest*
4619
4620fi
4621
4622if test $ac_cv_header_stdc = yes; then
4623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4624 if test "$cross_compiling" = yes; then :
4625 :
4626else
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628/* end confdefs.h. */
4629#include <ctype.h>
4630#include <stdlib.h>
4631#if ((' ' & 0x0FF) == 0x020)
4632# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4633# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4634#else
4635# define ISLOWER(c) \
4636 (('a' <= (c) && (c) <= 'i') \
4637 || ('j' <= (c) && (c) <= 'r') \
4638 || ('s' <= (c) && (c) <= 'z'))
4639# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4640#endif
4641
4642#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4643int
4644main ()
4645{
4646 int i;
4647 for (i = 0; i < 256; i++)
4648 if (XOR (islower (i), ISLOWER (i))
4649 || toupper (i) != TOUPPER (i))
4650 return 2;
4651 return 0;
4652}
4653_ACEOF
4654if ac_fn_c_try_run "$LINENO"; then :
4655
4656else
4657 ac_cv_header_stdc=no
4658fi
4659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4660 conftest.$ac_objext conftest.beam conftest.$ac_ext
4661fi
4662
4663fi
4664fi
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4666$as_echo "$ac_cv_header_stdc" >&6; }
4667if test $ac_cv_header_stdc = yes; then
4668
4669$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4670
4671fi
4672
4673# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4674for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4675 inttypes.h stdint.h unistd.h
4676do :
4677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4678ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4679"
4680if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4681 cat >>confdefs.h <<_ACEOF
4682#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4683_ACEOF
4684
4685fi
4686
4687done
4688
4689
4690
4691 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4692if test "x$ac_cv_header_minix_config_h" = xyes; then :
4693 MINIX=yes
4694else
4695 MINIX=
4696fi
4697
4698
4699 if test "$MINIX" = yes; then
4700
4701$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4702
4703
4704$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4705
4706
4707$as_echo "#define _MINIX 1" >>confdefs.h
4708
4709 fi
4710
4711
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4713$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4714if ${ac_cv_safe_to_define___extensions__+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716else
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718/* end confdefs.h. */
4719
4720# define __EXTENSIONS__ 1
4721 $ac_includes_default
4722int
4723main ()
4724{
4725
4726 ;
4727 return 0;
4728}
4729_ACEOF
4730if ac_fn_c_try_compile "$LINENO"; then :
4731 ac_cv_safe_to_define___extensions__=yes
4732else
4733 ac_cv_safe_to_define___extensions__=no
4734fi
4735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736fi
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4738$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4739 test $ac_cv_safe_to_define___extensions__ = yes &&
4740 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4741
4742 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4743
4744 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4745
4746 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4747
4748 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4749
4750
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004751LIB_EXT=.a
4752STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004753PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004754
Theodore Ts'oe1052142006-10-21 21:46:47 -04004755# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004756if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004757 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004758else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004759 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004760fi
4761# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004762if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004763 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004764then
4765 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004767$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004768else
4769 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004771$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004772fi
4773
4774else
4775 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004777$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004778
Theodore Ts'oe1052142006-10-21 21:46:47 -04004779fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004780
Theodore Ts'oe1052142006-10-21 21:46:47 -04004781
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004782# Check whether --enable-symlink-install was given.
4783if test "${enable_symlink_install+set}" = set; then :
4784 enableval=$enable_symlink_install; if test "$enableval" = "no"
4785then
4786 LINK_INSTALL_FLAGS=-f
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4788$as_echo "Disabling symlinks for install" >&6; }
4789else
4790 LINK_INSTALL_FLAGS=-sf
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4792$as_echo "Enabling symlinks for install" >&6; }
4793fi
4794
4795else
4796 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4798$as_echo "Disabling symlinks for install by default" >&6; }
4799
4800fi
4801
4802
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004803relative_symlink_defined=
4804# Check whether --enable-relative-symlinks was given.
4805if test "${enable_relative_symlinks+set}" = set; then :
4806 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004807then
4808 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004809 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4811$as_echo "Disabling relative symlinks for install" >&6; }
4812else
4813 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004814 relative_symlink_defined=yes
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4816$as_echo "Enabling relative symlinks for install" >&6; }
4817fi
4818fi
4819
4820# Check whether --enable-symlink-relative-symlinks was given.
4821if test "${enable_symlink_relative_symlinks+set}" = set; then :
4822 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4823then
4824 SYMLINK_RELATIVE=yes
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4826$as_echo "Disabling relative symlinks for install" >&6; }
4827else
4828 SYMLINK_RELATIVE=--relative
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4830$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004831fi
4832
4833else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004834 if test -z "$relative_symlink_defined"
4835then
4836 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4838$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004839fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004840
4841fi
4842
4843
4844# Check whether --enable-symlink-build was given.
4845if test "${enable_symlink_build+set}" = set; then :
4846 enableval=$enable_symlink_build; if test "$enableval" = "no"
4847then
4848 LINK_BUILD_FLAGS=
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4850$as_echo "Disabling symlinks for build" >&6; }
4851else
4852 LINK_BUILD_FLAGS=-s
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4854$as_echo "Enabling symlinks for build" >&6; }
4855fi
4856
4857else
4858 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4860$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004861
4862fi
4863
4864
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004865# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004866if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004867 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4868then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004870$as_echo "Disabling verbose make commands" >&6; }
4871 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004872 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004873 Q=@
4874else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004876$as_echo "Enabling verbose make commands" >&6; }
4877 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004878 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004879 Q=
4880fi
4881
4882else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004884$as_echo "Disabling verbose make commands" >&6; }
4885E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004886ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004887Q=@
4888
4889fi
4890
4891
4892
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004893
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004894E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004895LDFLAG_DYNAMIC=
4896PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004897# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004898if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004899 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004900then
4901 ELF_CMT=#
4902 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004904$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004905else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004906 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004907 ELF_CMT=
4908 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004909 case "$host_os" in
4910 solaris2.*)
4911 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4912 ;;
4913 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004914 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004915 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004916 PRIVATE_LIBS_CMT=#
4917 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004919$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004920fi
4921
4922else
4923 MAKEFILE_ELF=/dev/null
4924ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004926$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004927
Theodore Ts'oe1052142006-10-21 21:46:47 -04004928fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004929
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004930
Theodore Ts'oe1052142006-10-21 21:46:47 -04004931
4932# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004933if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004934 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004935then
4936 BSDLIB_CMT=#
4937 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004939$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004940else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004941 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004942 BSDLIB_CMT=
4943 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004944 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004945 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004946 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004947 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4948 LIB_EXT=.dylib
4949 ;;
4950 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004952$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004953fi
4954
4955else
4956 MAKEFILE_BSDLIB=/dev/null
4957BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004959$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004960
Theodore Ts'oe1052142006-10-21 21:46:47 -04004961fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004962
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004963
Theodore Ts'oe1052142006-10-21 21:46:47 -04004964
4965# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004966if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004967 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004968then
4969 PROFILE_CMT=#
4970 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004972$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004973else
4974 PROFILE_CMT=
4975 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4976 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004978$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004979fi
4980
4981else
4982 PROFILE_CMT=#
4983MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004985$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004986
Theodore Ts'oe1052142006-10-21 21:46:47 -04004987fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004988
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004989
Theodore Ts'oe1052142006-10-21 21:46:47 -04004990
Theodore Ts'ofedfb272014-02-23 00:17:09 -05004991# Check whether --enable-gcov was given.
4992if test "${enable_gcov+set}" = set; then :
4993 enableval=$enable_gcov; if test "$enableval" = "yes"
4994then
4995 CFLAGS="-g -fprofile-arcs -ftest-coverage"
4996 LDFLAGS="-fprofile-arcs -ftest-coverage"
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
4998$as_echo "Enabling gcov support" >&6; }
4999fi
5000
5001fi
5002
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005003
5004
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005005
Theodore Ts'oe1052142006-10-21 21:46:47 -04005006
Theodore Ts'o55da9872008-09-02 23:12:38 -04005007
5008
Theodore Ts'oe1052142006-10-21 21:46:47 -04005009# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005010if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005011 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005012then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005014$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005015else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005016
5017$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005018
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005020$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005021fi
5022
5023else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005025$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005026
Theodore Ts'oe1052142006-10-21 21:46:47 -04005027fi
5028
5029# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005030if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005031 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005032then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005034$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005035else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005036
5037$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005038
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005040$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005041fi
5042
5043else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005045$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005046
Theodore Ts'oe1052142006-10-21 21:46:47 -04005047fi
5048
5049# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005050if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005051 enableval=$enable_testio_debug;
5052if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005053then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005055$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04005056 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005057else
Theodore Ts'oaf773652008-09-01 11:27:27 -04005058 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005059 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005060
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005062$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005063fi
5064
5065else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005067$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005068$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04005069
5070TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005071
Theodore Ts'oe1052142006-10-21 21:46:47 -04005072fi
5073
Theodore Ts'oaf773652008-09-01 11:27:27 -04005074
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005075
5076
Theodore Ts'o93613952014-07-03 23:44:13 -04005077
5078
5079
5080
5081
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005082if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005083 if test -n "$ac_tool_prefix"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005084 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5085set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005087$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005088if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005089 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005090else
5091 case $PKG_CONFIG in
5092 [\\/]* | ?:[\\/]*)
5093 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5094 ;;
5095 *)
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH
5098do
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005101 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005103 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005105 break 2
5106 fi
5107done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005108 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005109IFS=$as_save_IFS
5110
5111 ;;
5112esac
5113fi
5114PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5115if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005117$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005118else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005120$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005121fi
5122
5123
5124fi
5125if test -z "$ac_cv_path_PKG_CONFIG"; then
5126 ac_pt_PKG_CONFIG=$PKG_CONFIG
5127 # Extract the first word of "pkg-config", so it can be a program name with args.
5128set dummy 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_ac_pt_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 $ac_pt_PKG_CONFIG in
5135 [\\/]* | ?:[\\/]*)
5136 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_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_ac_pt_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
5157ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5158if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005160$as_echo "$ac_pt_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 if test "x$ac_pt_PKG_CONFIG" = x; then
5167 PKG_CONFIG=""
5168 else
5169 case $cross_compiling:$ac_tool_warned in
5170yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005171{ $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 +01005172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005173ac_tool_warned=yes ;;
5174esac
5175 PKG_CONFIG=$ac_pt_PKG_CONFIG
5176 fi
5177else
5178 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5179fi
5180
5181fi
5182if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005183 _pkg_min_version=0.9.0
5184 { $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 +01005185$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005186 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005188$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005191$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005192 PKG_CONFIG=""
5193 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005194fi
5195LIBUUID=
5196DEPLIBUUID=
5197STATIC_LIBUUID=
5198DEPSTATIC_LIBUUID=
5199PROFILED_LIBUUID=
5200DEPPROFILED_LIBUUID=
5201UUID_CMT=
5202# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005203if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005204 enableval=$enable_libuuid; if test "$enableval" = "no"
5205then
5206 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005207 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005208 fi
5209
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005211$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005212if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005213 $as_echo_n "(cached) " >&6
5214else
5215 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005216LIBS="-luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005218/* end confdefs.h. */
5219
5220/* Override any GCC internal prototype to avoid an error.
5221 Use char because int might match the return type of a GCC
5222 builtin and then its argument prototype would still apply. */
5223#ifdef __cplusplus
5224extern "C"
5225#endif
5226char uuid_generate ();
5227int
5228main ()
5229{
5230return uuid_generate ();
5231 ;
5232 return 0;
5233}
5234_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005235if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005236 ac_cv_lib_uuid_uuid_generate=yes
5237else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005238 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005239fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005240rm -f core conftest.err conftest.$ac_objext \
5241 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005242LIBS=$ac_check_lib_save_LIBS
5243fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005245$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005246if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005247 LIBUUID=`$PKG_CONFIG --libs uuid`;
5248 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5249else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005250 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005251fi
5252
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005253 PROFILED_LIBUUID=$LIBUUID
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005254 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005256$as_echo "Disabling private uuid library" >&6; }
5257else
5258 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5259 DEPLIBUUID=$LIBUUID
5260 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5261 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5262 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5263 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005265$as_echo "Enabling private uuid library" >&6; }
5266fi
5267
5268else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005269 if test -n "$PKG_CONFIG"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5271$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5272if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274else
5275 ac_check_lib_save_LIBS=$LIBS
5276LIBS="-luuid $LIBS"
5277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278/* end confdefs.h. */
5279
5280/* Override any GCC internal prototype to avoid an error.
5281 Use char because int might match the return type of a GCC
5282 builtin and then its argument prototype would still apply. */
5283#ifdef __cplusplus
5284extern "C"
5285#endif
5286char uuid_generate ();
5287int
5288main ()
5289{
5290return uuid_generate ();
5291 ;
5292 return 0;
5293}
5294_ACEOF
5295if ac_fn_c_try_link "$LINENO"; then :
5296 ac_cv_lib_uuid_uuid_generate=yes
5297else
5298 ac_cv_lib_uuid_uuid_generate=no
5299fi
5300rm -f core conftest.err conftest.$ac_objext \
5301 conftest$ac_exeext conftest.$ac_ext
5302LIBS=$ac_check_lib_save_LIBS
5303fi
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5305$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5306if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5307 LIBUUID=`$PKG_CONFIG --libs uuid`;
5308 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5309fi
5310
5311fi
5312if test -n "$LIBUUID"; then
5313 PROFILED_LIBUUID=$LIBUUID
5314 UUID_CMT=#
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5316$as_echo "Using system uuid by default" >&6; }
5317else
5318 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5319 DEPLIBUUID=$LIBUUID
5320 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5321 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5322 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5323 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005325$as_echo "Enabling private uuid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005326fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005327
5328fi
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
Theodore Ts'o93613952014-07-03 23:44:13 -04005339
5340
5341
5342
5343
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005344if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005345 if test -n "$ac_tool_prefix"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005346 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5347set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005349$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005350if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005351 $as_echo_n "(cached) " >&6
5352else
5353 case $PKG_CONFIG in
5354 [\\/]* | ?:[\\/]*)
5355 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5356 ;;
5357 *)
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005363 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005365 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005367 break 2
5368 fi
5369done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005370 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005371IFS=$as_save_IFS
5372
5373 ;;
5374esac
5375fi
5376PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5377if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005379$as_echo "$PKG_CONFIG" >&6; }
5380else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005382$as_echo "no" >&6; }
5383fi
5384
5385
5386fi
5387if test -z "$ac_cv_path_PKG_CONFIG"; then
5388 ac_pt_PKG_CONFIG=$PKG_CONFIG
5389 # Extract the first word of "pkg-config", so it can be a program name with args.
5390set dummy 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_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005394 $as_echo_n "(cached) " >&6
5395else
5396 case $ac_pt_PKG_CONFIG in
5397 [\\/]* | ?:[\\/]*)
5398 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_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_ac_pt_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
5419ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5420if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005422$as_echo "$ac_pt_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 if test "x$ac_pt_PKG_CONFIG" = x; then
5429 PKG_CONFIG=""
5430 else
5431 case $cross_compiling:$ac_tool_warned in
5432yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005433{ $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 +01005434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5435ac_tool_warned=yes ;;
5436esac
5437 PKG_CONFIG=$ac_pt_PKG_CONFIG
5438 fi
5439else
5440 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5441fi
5442
5443fi
5444if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005445 _pkg_min_version=0.9.0
5446 { $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 +01005447$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005448 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005450$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005451 else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005453$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005454 PKG_CONFIG=""
5455 fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005456fi
5457LIBBLKID=
5458DEPLIBBLKID=
5459STATIC_LIBBLKID=
5460DEPSTATIC_LIBBLKID=
5461PROFILED_LIBBLKID=
5462DEPPROFILED_LIBBLKID=
5463BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005464
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005465# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005466if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005467 enableval=$enable_libblkid; if test "$enableval" = "no"
5468then
5469 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005470 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005471 fi
5472
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005474$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005475if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005476 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005477else
5478 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005479LIBS="-lblkid -luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005481/* end confdefs.h. */
5482
5483/* Override any GCC internal prototype to avoid an error.
5484 Use char because int might match the return type of a GCC
5485 builtin and then its argument prototype would still apply. */
5486#ifdef __cplusplus
5487extern "C"
5488#endif
5489char blkid_get_cache ();
5490int
5491main ()
5492{
5493return blkid_get_cache ();
5494 ;
5495 return 0;
5496}
5497_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005498if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005499 ac_cv_lib_blkid_blkid_get_cache=yes
5500else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005501 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005502fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005503rm -f core conftest.err conftest.$ac_objext \
5504 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005505LIBS=$ac_check_lib_save_LIBS
5506fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005508$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005509if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005510 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5511 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5512else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005513 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005514fi
5515
5516 BLKID_CMT=#
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005517 PROFILED_LIBBLKID=$LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005519$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005520else
5521 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5522 DEPLIBBLKID=$LIBBLKID
5523 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5524 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5525 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5526 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005527 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005528
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005530$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005531fi
5532
5533else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005534 if test -n "$PKG_CONFIG"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5536$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5537if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539else
5540 ac_check_lib_save_LIBS=$LIBS
5541LIBS="-lblkid $LIBS"
5542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543/* end confdefs.h. */
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005544
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005545/* Override any GCC internal prototype to avoid an error.
5546 Use char because int might match the return type of a GCC
5547 builtin and then its argument prototype would still apply. */
5548#ifdef __cplusplus
5549extern "C"
5550#endif
5551char blkid_get_cache ();
5552int
5553main ()
5554{
5555return blkid_get_cache ();
5556 ;
5557 return 0;
5558}
5559_ACEOF
5560if ac_fn_c_try_link "$LINENO"; then :
5561 ac_cv_lib_blkid_blkid_get_cache=yes
5562else
5563 ac_cv_lib_blkid_blkid_get_cache=no
5564fi
5565rm -f core conftest.err conftest.$ac_objext \
5566 conftest$ac_exeext conftest.$ac_ext
5567LIBS=$ac_check_lib_save_LIBS
5568fi
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5570$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5571if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5572 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5573 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5574fi
5575
5576fi
5577if test -n "$LIBBLKID"; then
5578 BLKID_CMT=#
5579 PROFILED_LIBBLKID=$LIBBLKID
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5581$as_echo "Using system blkid library by default" >&6; }
5582else
5583 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5584 DEPLIBBLKID=$LIBBLKID
5585 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5586 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5587 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5588 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5589 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005592$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005593fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005594
5595fi
5596
5597
5598
5599
5600
5601
5602
5603
Theodore Ts'o3df60142013-06-16 16:14:40 -04005604
5605# Check whether --enable-backtrace was given.
5606if test "${enable_backtrace+set}" = set; then :
5607 enableval=$enable_backtrace; if test "$enableval" = "no"
5608then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5610$as_echo "Disabling use of backtrace" >&6; }
5611 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5612
5613else
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5615$as_echo "Enabling use of backtrace" >&6; }
5616fi
5617
5618else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5620$as_echo "Enabling use of backtrace by default" >&6; }
5621
5622fi
5623
Theodore Ts'oe1052142006-10-21 21:46:47 -04005624# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005625if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005626 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005627then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005629$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005630 DEBUGFS_CMT="#"
5631else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005632 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005634$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005635fi
5636
5637else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005639$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005640DEBUGFS_CMT=
5641
Theodore Ts'oe1052142006-10-21 21:46:47 -04005642fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005643
Theodore Ts'oe1052142006-10-21 21:46:47 -04005644
5645# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005646if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005647 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005648then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005650$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005651 IMAGER_CMT="#"
5652else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005653 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005655$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005656fi
5657
5658else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005660$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005661IMAGER_CMT=
5662
Theodore Ts'oe1052142006-10-21 21:46:47 -04005663fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005664
Theodore Ts'oe1052142006-10-21 21:46:47 -04005665
5666# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005667if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005668 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005669then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005671$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005672 RESIZER_CMT="#"
5673else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005674 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005676$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005677fi
5678
5679else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005681$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005682RESIZER_CMT=
5683
Theodore Ts'oe1052142006-10-21 21:46:47 -04005684fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005685
Theodore Ts'oe1052142006-10-21 21:46:47 -04005686
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005687# Check whether --enable-defrag was given.
5688if test "${enable_defrag+set}" = set; then :
5689 enableval=$enable_defrag; if test "$enableval" = "no"
5690then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5692$as_echo "Disabling e4defrag support" >&6; }
5693 DEFRAG_CMT="#"
5694else
5695 DEFRAG_CMT=
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5697$as_echo "Enabling e4defrag support" >&6; }
5698fi
5699
5700else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005701 if test -z "$WITH_DIET_LIBC"
5702then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005704$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005705 DEFRAG_CMT=
5706else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5708$as_echo "Disabling e4defrag support by default" >&6; }
5709 DEFRAG_CMT="#"
5710fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005711
5712fi
5713
5714
Theodore Ts'oe1052142006-10-21 21:46:47 -04005715# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005716if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005717 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005718then
5719 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005721$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005722else
5723 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005725$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005726fi
5727
5728else
5729 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005730 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005731 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005733$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005734 ;;
5735 *)
5736 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005738$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005739esac
5740
Theodore Ts'oe1052142006-10-21 21:46:47 -04005741fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005742
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005743
Theodore Ts'oe1052142006-10-21 21:46:47 -04005744
5745# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005746if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005747 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005748then
5749 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005751$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005752else
5753 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005755$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005756fi
5757
5758else
5759 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005761$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005762
Theodore Ts'oe1052142006-10-21 21:46:47 -04005763fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005764
5765
Theodore Ts'oe1052142006-10-21 21:46:47 -04005766
Theodore Ts'o32493942007-12-31 10:45:01 -05005767# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005768if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005769 enableval=$enable_tls; if test "$enableval" = "no"
5770then
5771 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005773$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005774else
5775 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005777$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005778fi
5779
5780else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005781 if test -n "$WITH_DIET_LIBC"
5782then
5783 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005784 { $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 +01005785$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005786else
5787 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005789$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005790fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005791
5792fi
5793
5794if test "$try_tls" = "yes"
5795then
5796
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005798$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005799 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005800 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005801else
5802
5803 ax_tls_keywords="__thread __declspec(thread) none"
5804 for ax_tls_keyword in $ax_tls_keywords; do
5805 case $ax_tls_keyword in
5806 none) ac_cv_tls=none ; break ;;
5807 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005809/* end confdefs.h. */
5810#include <stdlib.h>
5811 static void
5812 foo(void) {
5813 static $ax_tls_keyword int bar;
5814 exit(1);
5815 }
5816int
5817main ()
5818{
5819
5820 ;
5821 return 0;
5822}
5823_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005824if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005825 ac_cv_tls=$ax_tls_keyword ; break
5826else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005827 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005828
5829fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831 esac
5832 done
5833
5834fi
5835
5836
5837 if test "$ac_cv_tls" != "none"; then
5838
5839cat >>confdefs.h <<_ACEOF
5840#define TLS $ac_cv_tls
5841_ACEOF
5842
5843 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005845$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005846
5847fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005848
Theodore Ts'o5610f992007-12-31 11:16:56 -05005849# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005850if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005851 enableval=$enable_uuidd; if test "$enableval" = "no"
5852then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005854$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005855 UUIDD_CMT="#"
5856else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005857 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005858
5859 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005861$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005862fi
5863
5864else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005865 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005866
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005867if test -z "$UUID_CMT"
5868then
5869 UUIDD_CMT=""
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005871$as_echo "Building uuidd by default" >&6; }
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005872else
5873 UUIDD_CMT="#"
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5875$as_echo "Disabling uuidd by default" >&6; }
5876fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005877
5878fi
5879
5880
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005881
5882# Check whether --enable-mmp was given.
5883if test "${enable_mmp+set}" = set; then :
5884 enableval=$enable_mmp; if test "$enableval" = "no"
5885then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5887$as_echo "Disabling mmp support" >&6; }
5888else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5890$as_echo "Enabling mmp support" >&6; }
5891 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5892
5893fi
5894
5895else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5897$as_echo "Enabling mmp support by default" >&6; }
5898$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5899
5900
5901fi
5902
Tony Breeds1625bf42012-07-30 14:44:12 -04005903
5904# Check whether --enable-bmap-stats was given.
5905if test "${enable_bmap_stats+set}" = set; then :
5906 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5907then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5909$as_echo "Disabling bitmap statistics support" >&6; }
5910else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5912$as_echo "Enabling bitmap statistics support" >&6; }
5913 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5914
5915fi
5916
5917else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5919$as_echo "Enabling bitmap statistics support by default" >&6; }
5920$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5921
5922
5923fi
5924
5925
5926# Check whether --enable-bmap-stats-ops was given.
5927if test "${enable_bmap_stats_ops+set}" = set; then :
5928 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5929then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5931$as_echo "Disabling additional bitmap statistics" >&6; }
5932else
5933 if test "x${enable_bmap_stats}" = "xno"; then :
5934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5936as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5937See \`config.log' for more details" "$LINENO" 5; }
5938fi
5939
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5941$as_echo "Enabling additional bitmap statistics" >&6; }
5942 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5943
5944fi
5945
5946else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5948$as_echo "Disabling additional bitmap statistics by default" >&6; }
5949
5950fi
5951
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005952MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5953
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005954GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005955PACKAGE=e2fsprogs
5956VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005957VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005958
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005959cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005960#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005961_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005962
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005963
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005964cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005965#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005966_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005967
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005968
5969
5970
5971
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005973$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5974set x ${MAKE-make}
5975ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005976if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005977 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005978else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005979 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005980SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005981all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005982 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005983_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005984# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005985case `${MAKE-make} -f conftest.make 2>/dev/null` in
5986 *@@@%%%=?*=@@@%%%*)
5987 eval ac_cv_prog_make_${ac_make}_set=yes;;
5988 *)
5989 eval ac_cv_prog_make_${ac_make}_set=no;;
5990esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005991rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005992fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005993if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005995$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005996 SET_MAKE=
5997else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005999$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006000 SET_MAKE="MAKE=${MAKE-make}"
6001fi
6002
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006003# Find a good install program. We prefer a C program (faster),
6004# so one script is as good as another. But avoid the broken or
6005# incompatible versions:
6006# SysV /etc/install, /usr/sbin/install
6007# SunOS /usr/etc/install
6008# IRIX /sbin/install
6009# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006010# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006011# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6012# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6013# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006014# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006015# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006016# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006018$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006019if test -z "$INSTALL"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006020if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006021 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006022else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006028 # Account for people who put trailing slashes in PATH elements.
6029case $as_dir/ in #((
6030 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006032 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006033 /usr/ucb/* ) ;;
6034 *)
6035 # OSF1 and SCO ODT 3.0 have their own names for install.
6036 # Don't use installbsd from OSF since it installs stuff as root
6037 # by default.
6038 for ac_prog in ginstall scoinst install; do
6039 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006040 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006041 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006043 # AIX install. It has an incompatible calling convention.
6044 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006045 elif test $ac_prog = install &&
6046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6047 # program-specific install script used by HP pwplus--don't use.
6048 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006049 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006050 rm -rf conftest.one conftest.two conftest.dir
6051 echo one > conftest.one
6052 echo two > conftest.two
6053 mkdir conftest.dir
6054 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6055 test -s conftest.one && test -s conftest.two &&
6056 test -s conftest.dir/conftest.one &&
6057 test -s conftest.dir/conftest.two
6058 then
6059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6060 break 3
6061 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006062 fi
6063 fi
6064 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006065 done
6066 ;;
6067esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006068
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006069 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006070IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006071
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006072rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006073
6074fi
6075 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006076 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006077 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04006078 # As a last resort, use the slow shell script. Don't cache a
6079 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006080 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04006081 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006082 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006083 fi
6084fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006086$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006087
6088# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6089# It thinks the first close brace ends the variable substitution.
6090test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6091
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006092test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006093
6094test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6095
Theodore Ts'o93613952014-07-03 23:44:13 -04006096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6097$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6098if test -z "$MKDIR_P"; then
6099 if ${ac_cv_path_mkdir+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101else
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6104do
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_prog in mkdir gmkdir; do
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6110 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6111 'mkdir (GNU coreutils) '* | \
6112 'mkdir (coreutils) '* | \
6113 'mkdir (fileutils) '4.1*)
6114 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6115 break 3;;
6116 esac
6117 done
6118 done
6119 done
6120IFS=$as_save_IFS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006121
Theodore Ts'o93613952014-07-03 23:44:13 -04006122fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006123
Theodore Ts'o93613952014-07-03 23:44:13 -04006124 test -d ./--version && rmdir ./--version
6125 if test "${ac_cv_path_mkdir+set}" = set; then
6126 MKDIR_P="$ac_cv_path_mkdir -p"
6127 else
6128 # As a last resort, use the slow shell script. Don't cache a
6129 # value for MKDIR_P within a source directory, because that will
6130 # break other packages using the cache if that directory is
6131 # removed, or if the value is a relative name.
6132 MKDIR_P="$ac_install_sh -d"
6133 fi
6134fi
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6136$as_echo "$MKDIR_P" >&6; }
6137
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6139$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6140if ${ac_cv_path_SED+:} false; then :
6141 $as_echo_n "(cached) " >&6
6142else
6143 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6144 for ac_i in 1 2 3 4 5 6 7; do
6145 ac_script="$ac_script$as_nl$ac_script"
6146 done
6147 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6148 { ac_script=; unset ac_script;}
6149 if test -z "$SED"; then
6150 ac_path_SED_found=false
6151 # Loop through the user's path and test for each of PROGNAME-LIST
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH
6154do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_prog in sed gsed; do
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6160 as_fn_executable_p "$ac_path_SED" || continue
6161# Check for GNU ac_path_SED and select it if it is found.
6162 # Check for GNU $ac_path_SED
6163case `"$ac_path_SED" --version 2>&1` in
6164*GNU*)
6165 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6166*)
6167 ac_count=0
6168 $as_echo_n 0123456789 >"conftest.in"
6169 while :
6170 do
6171 cat "conftest.in" "conftest.in" >"conftest.tmp"
6172 mv "conftest.tmp" "conftest.in"
6173 cp "conftest.in" "conftest.nl"
6174 $as_echo '' >> "conftest.nl"
6175 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6177 as_fn_arith $ac_count + 1 && ac_count=$as_val
6178 if test $ac_count -gt ${ac_path_SED_max-0}; then
6179 # Best one so far, save it but keep looking for a better one
6180 ac_cv_path_SED="$ac_path_SED"
6181 ac_path_SED_max=$ac_count
6182 fi
6183 # 10*(2^10) chars as input seems more than enough
6184 test $ac_count -gt 10 && break
6185 done
6186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6187esac
6188
6189 $ac_path_SED_found && break 3
6190 done
6191 done
6192 done
6193IFS=$as_save_IFS
6194 if test -z "$ac_cv_path_SED"; then
6195 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6196 fi
6197else
6198 ac_cv_path_SED=$SED
6199fi
6200
6201fi
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6203$as_echo "$ac_cv_path_SED" >&6; }
6204 SED="$ac_cv_path_SED"
6205 rm -f conftest.sed
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006206
6207
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006209$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006210 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006211if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006212 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006213else
6214 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04006215fi
6216
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006218$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006219
6220
6221
6222
Theodore Ts'o93613952014-07-03 23:44:13 -04006223 GETTEXT_MACRO_VERSION=0.18
6224
6225
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006226
6227
6228# Prepare PATH_SEPARATOR.
6229# The user is always right.
6230if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006231 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6232 # contains only /bin. Note that ksh looks also at the FPATH variable,
6233 # so we have to set that as well for the test.
6234 PATH_SEPARATOR=:
6235 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6236 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6237 || PATH_SEPARATOR=';'
6238 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006239fi
6240
6241# Find out how to test for executable files. Don't use a zero-byte file,
6242# as systems may use methods other than mode bits to determine executability.
6243cat >conf$$.file <<_ASEOF
6244#! /bin/sh
6245exit 0
6246_ASEOF
6247chmod +x conf$$.file
6248if test -x conf$$.file >/dev/null 2>&1; then
6249 ac_executable_p="test -x"
6250else
6251 ac_executable_p="test -f"
6252fi
6253rm -f conf$$.file
6254
6255# Extract the first word of "msgfmt", so it can be a program name with args.
6256set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006258$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006259if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006260 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006261else
6262 case "$MSGFMT" in
6263 [\\/]* | ?:[\\/]*)
6264 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6265 ;;
6266 *)
6267 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6268 for ac_dir in $PATH; do
6269 IFS="$ac_save_IFS"
6270 test -z "$ac_dir" && ac_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006273 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6274 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006275 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6276 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6277 break 2
6278 fi
6279 fi
6280 done
6281 done
6282 IFS="$ac_save_IFS"
6283 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6284 ;;
6285esac
6286fi
6287MSGFMT="$ac_cv_path_MSGFMT"
6288if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006290$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006291else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006293$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006294fi
6295
6296 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6297set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006299$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006300if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006301 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006302else
6303 case $GMSGFMT in
6304 [\\/]* | ?:[\\/]*)
6305 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6306 ;;
6307 *)
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006313 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006315 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006317 break 2
6318 fi
6319done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006320 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006321IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006322
6323 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6324 ;;
6325esac
6326fi
6327GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006328if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006330$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006331else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006333$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006334fi
6335
6336
6337
Theodore Ts'o93613952014-07-03 23:44:13 -04006338 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6339 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6340 *) MSGFMT_015=$MSGFMT ;;
6341 esac
6342
6343 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6344 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6345 *) GMSGFMT_015=$GMSGFMT ;;
6346 esac
6347
6348
Theodore Ts'oe1052142006-10-21 21:46:47 -04006349
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006350# Prepare PATH_SEPARATOR.
6351# The user is always right.
6352if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006353 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6354 # contains only /bin. Note that ksh looks also at the FPATH variable,
6355 # so we have to set that as well for the test.
6356 PATH_SEPARATOR=:
6357 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6358 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6359 || PATH_SEPARATOR=';'
6360 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006361fi
6362
6363# Find out how to test for executable files. Don't use a zero-byte file,
6364# as systems may use methods other than mode bits to determine executability.
6365cat >conf$$.file <<_ASEOF
6366#! /bin/sh
6367exit 0
6368_ASEOF
6369chmod +x conf$$.file
6370if test -x conf$$.file >/dev/null 2>&1; then
6371 ac_executable_p="test -x"
6372else
6373 ac_executable_p="test -f"
6374fi
6375rm -f conf$$.file
6376
6377# Extract the first word of "xgettext", so it can be a program name with args.
6378set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006380$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006381if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006382 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006383else
6384 case "$XGETTEXT" in
6385 [\\/]* | ?:[\\/]*)
6386 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6387 ;;
6388 *)
6389 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6390 for ac_dir in $PATH; do
6391 IFS="$ac_save_IFS"
6392 test -z "$ac_dir" && ac_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006395 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6396 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 -05006397 (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
6398 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6399 break 2
6400 fi
6401 fi
6402 done
6403 done
6404 IFS="$ac_save_IFS"
6405 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6406 ;;
6407esac
6408fi
6409XGETTEXT="$ac_cv_path_XGETTEXT"
6410if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006412$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006413else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006415$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006416fi
6417
6418 rm -f messages.po
6419
Theodore Ts'o93613952014-07-03 23:44:13 -04006420 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6421 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6422 *) XGETTEXT_015=$XGETTEXT ;;
6423 esac
6424
6425
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006426
6427# Prepare PATH_SEPARATOR.
6428# The user is always right.
6429if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006430 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6431 # contains only /bin. Note that ksh looks also at the FPATH variable,
6432 # so we have to set that as well for the test.
6433 PATH_SEPARATOR=:
6434 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6435 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6436 || PATH_SEPARATOR=';'
6437 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006438fi
6439
6440# Find out how to test for executable files. Don't use a zero-byte file,
6441# as systems may use methods other than mode bits to determine executability.
6442cat >conf$$.file <<_ASEOF
6443#! /bin/sh
6444exit 0
6445_ASEOF
6446chmod +x conf$$.file
6447if test -x conf$$.file >/dev/null 2>&1; then
6448 ac_executable_p="test -x"
6449else
6450 ac_executable_p="test -f"
6451fi
6452rm -f conf$$.file
6453
6454# Extract the first word of "msgmerge", so it can be a program name with args.
6455set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006457$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006458if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006459 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006460else
6461 case "$MSGMERGE" in
6462 [\\/]* | ?:[\\/]*)
6463 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6464 ;;
6465 *)
6466 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6467 for ac_dir in $PATH; do
6468 IFS="$ac_save_IFS"
6469 test -z "$ac_dir" && ac_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006472 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6473 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006474 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6475 break 2
6476 fi
6477 fi
6478 done
6479 done
6480 IFS="$ac_save_IFS"
6481 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6482 ;;
6483esac
6484fi
6485MSGMERGE="$ac_cv_path_MSGMERGE"
6486if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006488$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006489else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006491$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006492fi
6493
6494
Theodore Ts'o93613952014-07-03 23:44:13 -04006495 test -n "$localedir" || localedir='${datadir}/locale'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006496
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006497
Theodore Ts'o93613952014-07-03 23:44:13 -04006498 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6499
6500
6501 ac_config_commands="$ac_config_commands po-directories"
6502
6503
6504
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6506$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6507if ${ac_cv_gnu_library_2+:} false; then :
6508 $as_echo_n "(cached) " >&6
6509else
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511/* end confdefs.h. */
6512
6513#include <features.h>
6514#ifdef __GNU_LIBRARY__
6515 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6516 Lucky GNU user
6517 #endif
6518#endif
6519
6520_ACEOF
6521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6522 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6523 ac_cv_gnu_library_2=yes
6524else
6525 ac_cv_gnu_library_2=no
6526fi
6527rm -f conftest*
6528
6529
6530
6531fi
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6533$as_echo "$ac_cv_gnu_library_2" >&6; }
6534
6535 GLIBC2="$ac_cv_gnu_library_2"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006536
6537
6538if test -n "$ac_tool_prefix"; then
6539 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6540set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006542$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006543if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006544 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006545else
6546 if test -n "$RANLIB"; then
6547 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6548else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550for as_dir in $PATH
6551do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006554 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006556 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006558 break 2
6559 fi
6560done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006561 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006562IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006563
6564fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006565fi
6566RANLIB=$ac_cv_prog_RANLIB
6567if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006569$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006570else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006572$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006573fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006574
Theodore Ts'oe1052142006-10-21 21:46:47 -04006575
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006576fi
6577if test -z "$ac_cv_prog_RANLIB"; then
6578 ac_ct_RANLIB=$RANLIB
6579 # Extract the first word of "ranlib", so it can be a program name with args.
6580set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006582$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006583if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006584 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006585else
6586 if test -n "$ac_ct_RANLIB"; then
6587 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6588else
6589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590for as_dir in $PATH
6591do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006594 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006596 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006598 break 2
6599 fi
6600done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006601 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006602IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006603
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006604fi
6605fi
6606ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6607if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006609$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006610else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006612$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006613fi
6614
Theodore Ts'oe1052142006-10-21 21:46:47 -04006615 if test "x$ac_ct_RANLIB" = x; then
6616 RANLIB=":"
6617 else
6618 case $cross_compiling:$ac_tool_warned in
6619yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006620{ $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 +01006621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006622ac_tool_warned=yes ;;
6623esac
6624 RANLIB=$ac_ct_RANLIB
6625 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006626else
6627 RANLIB="$ac_cv_prog_RANLIB"
6628fi
6629
6630
Theodore Ts'o93613952014-07-03 23:44:13 -04006631
6632 CFLAG_VISIBILITY=
6633 HAVE_VISIBILITY=0
6634 if test -n "$GCC"; then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6636$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6637 if ${gl_cv_cc_vis_werror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006638 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006639else
Theodore Ts'o93613952014-07-03 23:44:13 -04006640
6641 gl_save_CFLAGS="$CFLAGS"
6642 CFLAGS="$CFLAGS -Werror"
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006644/* end confdefs.h. */
6645
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006646int
6647main ()
6648{
Theodore Ts'o93613952014-07-03 23:44:13 -04006649
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006650 ;
6651 return 0;
6652}
6653_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04006654if ac_fn_c_try_compile "$LINENO"; then :
6655 gl_cv_cc_vis_werror=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006656else
Theodore Ts'o93613952014-07-03 23:44:13 -04006657 gl_cv_cc_vis_werror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006658fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660 CFLAGS="$gl_save_CFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006661fi
6662
Theodore Ts'o93613952014-07-03 23:44:13 -04006663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6664$as_echo "$gl_cv_cc_vis_werror" >&6; }
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6666$as_echo_n "checking for simple visibility declarations... " >&6; }
6667 if ${gl_cv_cc_visibility+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006668 $as_echo_n "(cached) " >&6
6669else
Theodore Ts'o93613952014-07-03 23:44:13 -04006670
6671 gl_save_CFLAGS="$CFLAGS"
6672 CFLAGS="$CFLAGS -fvisibility=hidden"
6673 if test $gl_cv_cc_vis_werror = yes; then
6674 CFLAGS="$CFLAGS -Werror"
6675 fi
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h. */
6678extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6679 extern __attribute__((__visibility__("default"))) int exportedvar;
6680 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6681 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6682 void dummyfunc (void) {}
6683
6684int
6685main ()
6686{
6687
6688 ;
6689 return 0;
6690}
6691_ACEOF
6692if ac_fn_c_try_compile "$LINENO"; then :
6693 gl_cv_cc_visibility=yes
6694else
6695 gl_cv_cc_visibility=no
6696fi
6697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698 CFLAGS="$gl_save_CFLAGS"
6699fi
6700
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6702$as_echo "$gl_cv_cc_visibility" >&6; }
6703 if test $gl_cv_cc_visibility = yes; then
6704 CFLAG_VISIBILITY="-fvisibility=hidden"
6705 HAVE_VISIBILITY=1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006706 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006707 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006708
6709
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006710
Theodore Ts'o93613952014-07-03 23:44:13 -04006711cat >>confdefs.h <<_ACEOF
6712#define HAVE_VISIBILITY $HAVE_VISIBILITY
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006713_ACEOF
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006714
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006715
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006717$as_echo_n "checking for inline... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006718if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006719 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006720else
6721 ac_cv_c_inline=no
6722for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006724/* end confdefs.h. */
6725#ifndef __cplusplus
6726typedef int foo_t;
6727static $ac_kw foo_t static_foo () {return 0; }
6728$ac_kw foo_t foo () {return 0; }
6729#endif
6730
6731_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006732if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006733 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006734fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006737done
6738
6739fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006741$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006742
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006743case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006744 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006745 *)
6746 case $ac_cv_c_inline in
6747 no) ac_val=;;
6748 *) ac_val=$ac_cv_c_inline;;
6749 esac
6750 cat >>confdefs.h <<_ACEOF
6751#ifndef __cplusplus
6752#define inline $ac_val
6753#endif
6754_ACEOF
6755 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006756esac
6757
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006758ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006759if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006760
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006761else
6762
6763cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006764#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006765_ACEOF
6766
6767fi
6768
6769
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006771$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04006772if ${gl_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006773 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006774else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006776/* end confdefs.h. */
6777#include <sys/types.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04006778 #include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006779int
6780main ()
6781{
Theodore Ts'o93613952014-07-03 23:44:13 -04006782uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006783 ;
6784 return 0;
6785}
6786_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006787if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04006788 gl_cv_header_stdint_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006789else
Theodore Ts'o93613952014-07-03 23:44:13 -04006790 gl_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006791fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006793fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6795$as_echo "$gl_cv_header_stdint_h" >&6; }
6796 if test $gl_cv_header_stdint_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006797
6798cat >>confdefs.h <<_ACEOF
6799#define HAVE_STDINT_H_WITH_UINTMAX 1
6800_ACEOF
6801
6802 fi
6803
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006804# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6805# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006807$as_echo_n "checking for working alloca.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006808if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006809 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006810else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006812/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006813#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006814int
6815main ()
6816{
6817char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006818 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006819 ;
6820 return 0;
6821}
6822_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006823if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006824 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006825else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006826 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006827fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006828rm -f core conftest.err conftest.$ac_objext \
6829 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006830fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006832$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006833if test $ac_cv_working_alloca_h = yes; then
6834
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006835$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006836
6837fi
6838
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006840$as_echo_n "checking for alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006841if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006842 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006843else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006845/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006846#ifdef __GNUC__
6847# define alloca __builtin_alloca
6848#else
6849# ifdef _MSC_VER
6850# include <malloc.h>
6851# define alloca _alloca
6852# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006853# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006854# include <alloca.h>
6855# else
6856# ifdef _AIX
6857 #pragma alloca
6858# else
6859# ifndef alloca /* predefined by HP cc +Olibcalls */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006860void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006861# endif
6862# endif
6863# endif
6864# endif
6865#endif
6866
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006867int
6868main ()
6869{
6870char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006871 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006872 ;
6873 return 0;
6874}
6875_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006876if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006877 ac_cv_func_alloca_works=yes
6878else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006879 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006880fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006881rm -f core conftest.err conftest.$ac_objext \
6882 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006883fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006885$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006886
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006887if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006888
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006889$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006890
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006891else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006892 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6893# that cause trouble. Some versions do not even contain alloca or
6894# contain a buggy version. If you still want to use their alloca,
6895# use ar to extract alloca.o from them instead of compiling alloca.c.
6896
Theodore Ts'oe1052142006-10-21 21:46:47 -04006897ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006898
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006899$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006900
6901
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006903$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006904if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006905 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006906else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006908/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006909#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006910webecray
6911#else
6912wenotbecray
6913#endif
6914
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006915_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006917 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006918 ac_cv_os_cray=yes
6919else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006920 ac_cv_os_cray=no
6921fi
6922rm -f conftest*
6923
6924fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006926$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006927if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006928 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006930ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006931if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006932
6933cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006934#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006935_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006936
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006937 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006938fi
6939
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006940 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006941fi
6942
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006944$as_echo_n "checking stack direction for C alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006945if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006946 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006947else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006948 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006949 ac_cv_c_stack_direction=0
6950else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006952/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006953$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006954int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006955find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006956{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006957 int dir, dummy = 0;
6958 if (! addr)
6959 addr = &dummy;
6960 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6961 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6962 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006963}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006964
6965int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006966main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006967{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006968 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006969}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006970_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006971if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006972 ac_cv_c_stack_direction=1
6973else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006974 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006975fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6977 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006978fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006979
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006980fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006982$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006983cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006984#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006985_ACEOF
6986
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006987
6988fi
6989
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006990
6991
6992
6993 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006994do :
6995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006996ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6997"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006998if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006999 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007000#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007001_ACEOF
7002
7003fi
7004
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007005done
7006
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007007
7008
7009
7010
7011
7012
7013
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007014for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007015do :
7016 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007017if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007018 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007019#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007020_ACEOF
7021
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007022fi
7023done
7024
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007026$as_echo_n "checking for working mmap... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007027if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007028 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007029else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007030 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007031 ac_cv_func_mmap_fixed_mapped=no
7032else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007034/* end confdefs.h. */
7035$ac_includes_default
7036/* malloc might have been renamed as rpl_malloc. */
7037#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007038
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007039/* Thanks to Mike Haertel and Jim Avera for this test.
7040 Here is a matrix of mmap possibilities:
7041 mmap private not fixed
7042 mmap private fixed at somewhere currently unmapped
7043 mmap private fixed at somewhere already mapped
7044 mmap shared not fixed
7045 mmap shared fixed at somewhere currently unmapped
7046 mmap shared fixed at somewhere already mapped
7047 For private mappings, we should verify that changes cannot be read()
7048 back from the file, nor mmap's back from the file at a different
7049 address. (There have been systems where private was not correctly
7050 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007051 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007052 like early versions of FreeBSD and possibly contemporary NetBSD.)
7053 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007054 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007055
7056 Grep wants private fixed already mapped.
7057 The main things grep needs to know about mmap are:
7058 * does it exist and is it safe to write into the mmap'd area
7059 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007060
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007061#include <fcntl.h>
7062#include <sys/mman.h>
7063
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007064#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007065char *malloc ();
7066#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007067
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007068/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007069#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007070# ifdef _SC_PAGESIZE
7071# define getpagesize() sysconf(_SC_PAGESIZE)
7072# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007073# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007074# include <sys/param.h>
7075# ifdef EXEC_PAGESIZE
7076# define getpagesize() EXEC_PAGESIZE
7077# else /* no EXEC_PAGESIZE */
7078# ifdef NBPG
7079# define getpagesize() NBPG * CLSIZE
7080# ifndef CLSIZE
7081# define CLSIZE 1
7082# endif /* no CLSIZE */
7083# else /* no NBPG */
7084# ifdef NBPC
7085# define getpagesize() NBPC
7086# else /* no NBPC */
7087# ifdef PAGESIZE
7088# define getpagesize() PAGESIZE
7089# endif /* PAGESIZE */
7090# endif /* no NBPC */
7091# endif /* no NBPG */
7092# endif /* no EXEC_PAGESIZE */
7093# else /* no HAVE_SYS_PARAM_H */
7094# define getpagesize() 8192 /* punt totally */
7095# endif /* no HAVE_SYS_PARAM_H */
7096# endif /* no _SC_PAGESIZE */
7097
7098#endif /* no HAVE_GETPAGESIZE */
7099
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007100int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007101main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007102{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007103 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007104 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007105 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007106 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007107
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007108 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007109
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007110 /* First, make a file with some known garbage in it. */
7111 data = (char *) malloc (pagesize);
7112 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007113 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007114 for (i = 0; i < pagesize; ++i)
7115 *(data + i) = rand ();
7116 umask (0);
7117 fd = creat ("conftest.mmap", 0600);
7118 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007119 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007120 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007121 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007122 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007123
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007124 /* Next, check that the tail of a page is zero-filled. File must have
7125 non-zero length, otherwise we risk SIGBUS for entire page. */
7126 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7127 if (fd2 < 0)
7128 return 4;
7129 cdata2 = "";
7130 if (write (fd2, cdata2, 1) != 1)
7131 return 5;
7132 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7133 if (data2 == MAP_FAILED)
7134 return 6;
7135 for (i = 0; i < pagesize; ++i)
7136 if (*(data2 + i))
7137 return 7;
7138 close (fd2);
7139 if (munmap (data2, pagesize))
7140 return 8;
7141
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007142 /* Next, try to mmap the file at a fixed address which already has
7143 something else allocated at it. If we can, also make sure that
7144 we see the same garbage. */
7145 fd = open ("conftest.mmap", O_RDWR);
7146 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007147 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007148 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7149 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007150 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007151 for (i = 0; i < pagesize; ++i)
7152 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007153 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007154
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007155 /* Finally, make sure that changes to the mapped area do not
7156 percolate back to the file as seen by read(). (This is a bug on
7157 some variants of i386 svr4.0.) */
7158 for (i = 0; i < pagesize; ++i)
7159 *(data2 + i) = *(data2 + i) + 1;
7160 data3 = (char *) malloc (pagesize);
7161 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007162 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007163 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007164 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007165 for (i = 0; i < pagesize; ++i)
7166 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007167 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007168 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007169 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007170}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007171_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007172if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007173 ac_cv_func_mmap_fixed_mapped=yes
7174else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007175 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007176fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7178 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007179fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007180
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007181fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007183$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007184if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007185
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007186$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007187
7188fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007189rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007190
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007191
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007192
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007194$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007195if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007196 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007197else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007198
Theodore Ts'o93613952014-07-03 23:44:13 -04007199 gt_cv_int_divbyzero_sigfpe=
7200 case "$host_os" in
7201 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7202 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7203 # compiling. If we were to perform the real test, 1 Crash Report
7204 # dialog window would pop up.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007205 case "$host_cpu" in
Theodore Ts'o93613952014-07-03 23:44:13 -04007206 i[34567]86 | x86_64)
7207 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007208 esac
Theodore Ts'o93613952014-07-03 23:44:13 -04007209 ;;
7210 esac
7211 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7212 if test "$cross_compiling" = yes; then :
7213
7214 # Guess based on the CPU.
7215 case "$host_cpu" in
7216 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7217 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7218 *)
7219 gt_cv_int_divbyzero_sigfpe="guessing no";;
7220 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007221
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007222else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007224/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007225
7226#include <stdlib.h>
7227#include <signal.h>
7228
7229static void
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007230sigfpe_handler (int sig)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007231{
7232 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7233 exit (sig != SIGFPE);
7234}
7235
7236int x = 1;
7237int y = 0;
7238int z;
7239int nan;
7240
7241int main ()
7242{
7243 signal (SIGFPE, sigfpe_handler);
7244/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7245#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7246 signal (SIGTRAP, sigfpe_handler);
7247#endif
7248/* Linux/SPARC yields signal SIGILL. */
7249#if defined (__sparc__) && defined (__linux__)
7250 signal (SIGILL, sigfpe_handler);
7251#endif
7252
7253 z = x / y;
7254 nan = y / y;
Theodore Ts'o93613952014-07-03 23:44:13 -04007255 exit (2);
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007256}
7257
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007258_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007259if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007260 gt_cv_int_divbyzero_sigfpe=yes
7261else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007262 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007263fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7265 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007266fi
7267
Theodore Ts'o93613952014-07-03 23:44:13 -04007268 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007269
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007270fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007272$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007273 case "$gt_cv_int_divbyzero_sigfpe" in
7274 *yes) value=1;;
7275 *) value=0;;
7276 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007277
7278cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007279#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007280_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007281
7282
7283
Theodore Ts'o93613952014-07-03 23:44:13 -04007284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7285$as_echo_n "checking for inttypes.h... " >&6; }
7286if ${gl_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007287 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007288else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007290/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007291
7292#include <sys/types.h>
7293#include <inttypes.h>
7294
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007295int
7296main ()
7297{
Theodore Ts'o93613952014-07-03 23:44:13 -04007298uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007299 ;
7300 return 0;
7301}
7302_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04007303if ac_fn_c_try_compile "$LINENO"; then :
7304 gl_cv_header_inttypes_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007305else
Theodore Ts'o93613952014-07-03 23:44:13 -04007306 gl_cv_header_inttypes_h=no
7307fi
7308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309fi
7310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7311$as_echo "$gl_cv_header_inttypes_h" >&6; }
7312 if test $gl_cv_header_inttypes_h = yes; then
7313
7314cat >>confdefs.h <<_ACEOF
7315#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7316_ACEOF
7317
7318 fi
7319
7320
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7322$as_echo_n "checking for unsigned long long int... " >&6; }
7323if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7324 $as_echo_n "(cached) " >&6
7325else
7326 ac_cv_type_unsigned_long_long_int=yes
7327 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329/* end confdefs.h. */
7330
7331 /* For now, do not test the preprocessor; as of 2007 there are too many
7332 implementations with broken preprocessors. Perhaps this can
7333 be revisited in 2012. In the meantime, code should not expect
7334 #if to work with literals wider than 32 bits. */
7335 /* Test literals. */
7336 long long int ll = 9223372036854775807ll;
7337 long long int nll = -9223372036854775807LL;
7338 unsigned long long int ull = 18446744073709551615ULL;
7339 /* Test constant expressions. */
7340 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7341 ? 1 : -1)];
7342 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7343 ? 1 : -1)];
7344 int i = 63;
7345int
7346main ()
7347{
7348/* Test availability of runtime routines for shift and division. */
7349 long long int llmax = 9223372036854775807ll;
7350 unsigned long long int ullmax = 18446744073709551615ull;
7351 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7352 | (llmax / ll) | (llmax % ll)
7353 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7354 | (ullmax / ull) | (ullmax % ull));
7355 ;
7356 return 0;
7357}
7358
7359_ACEOF
7360if ac_fn_c_try_link "$LINENO"; then :
7361
7362else
7363 ac_cv_type_unsigned_long_long_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007364fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007365rm -f core conftest.err conftest.$ac_objext \
7366 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -04007367 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007368fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7370$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7371 if test $ac_cv_type_unsigned_long_long_int = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007372
Theodore Ts'o93613952014-07-03 23:44:13 -04007373$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007374
7375 fi
7376
7377
7378
7379
Theodore Ts'o93613952014-07-03 23:44:13 -04007380 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007381
Theodore Ts'o93613952014-07-03 23:44:13 -04007382 test $ac_cv_type_unsigned_long_long_int = yes \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007383 && ac_type='unsigned long long' \
7384 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007385
7386cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007387#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007388_ACEOF
7389
7390 else
7391
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007392$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007393
7394 fi
7395
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007396
Theodore Ts'o93613952014-07-03 23:44:13 -04007397 for ac_header in inttypes.h
7398do :
7399 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7400if test "x$ac_cv_header_inttypes_h" = xyes; then :
7401 cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007402#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007403_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007404
Theodore Ts'o93613952014-07-03 23:44:13 -04007405fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007406
Theodore Ts'o93613952014-07-03 23:44:13 -04007407done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007408
Theodore Ts'o93613952014-07-03 23:44:13 -04007409 if test $ac_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007410 { $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 +01007411$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007412if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007413 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007414else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007415
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007417/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007418
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007419#include <inttypes.h>
7420#ifdef PRId32
7421char *p = PRId32;
7422#endif
7423
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007424int
7425main ()
7426{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007427
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007428 ;
7429 return 0;
7430}
7431_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007432if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007433 gt_cv_inttypes_pri_broken=no
7434else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007435 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007438
7439fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007441$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007442 fi
7443 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007444
7445cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007446#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007447_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007448
Theodore Ts'o93613952014-07-03 23:44:13 -04007449 PRI_MACROS_BROKEN=1
7450 else
7451 PRI_MACROS_BROKEN=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007452 fi
7453
7454
7455
Theodore Ts'o93613952014-07-03 23:44:13 -04007456
7457
7458
7459
7460 # Check whether --enable-threads was given.
7461if test "${enable_threads+set}" = set; then :
7462 enableval=$enable_threads; gl_use_threads=$enableval
7463else
7464 if test -n "$gl_use_threads_default"; then
7465 gl_use_threads="$gl_use_threads_default"
7466 else
7467 case "$host_os" in
7468 osf*) gl_use_threads=no ;;
7469 cygwin*)
7470 case `uname -r` in
7471 1.[0-5].*) gl_use_threads=no ;;
7472 *) gl_use_threads=yes ;;
7473 esac
7474 ;;
7475 *) gl_use_threads=yes ;;
7476 esac
7477 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007478
7479fi
7480
Theodore Ts'o93613952014-07-03 23:44:13 -04007481 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7482 # For using <pthread.h>:
7483 case "$host_os" in
7484 osf*)
7485 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7486 # groks <pthread.h>. cc also understands the flag -pthread, but
7487 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7488 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7489 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7490 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7491 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7492 ;;
7493 esac
7494 # Some systems optimize for single-threaded programs by default, and
7495 # need special flags to disable these optimizations. For example, the
7496 # definition of 'errno' in <errno.h>.
7497 case "$host_os" in
7498 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7499 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7500 esac
7501 fi
7502
7503
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007504
7505
7506
7507 if test "X$prefix" = "XNONE"; then
7508 acl_final_prefix="$ac_default_prefix"
7509 else
7510 acl_final_prefix="$prefix"
7511 fi
7512 if test "X$exec_prefix" = "XNONE"; then
7513 acl_final_exec_prefix='${prefix}'
7514 else
7515 acl_final_exec_prefix="$exec_prefix"
7516 fi
7517 acl_save_prefix="$prefix"
7518 prefix="$acl_final_prefix"
7519 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7520 prefix="$acl_save_prefix"
7521
7522
Theodore Ts'o93613952014-07-03 23:44:13 -04007523
Theodore Ts'oe1052142006-10-21 21:46:47 -04007524# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007525if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007526 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007527else
7528 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007529fi
7530
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007531# Prepare PATH_SEPARATOR.
7532# The user is always right.
7533if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007534 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7535 # contains only /bin. Note that ksh looks also at the FPATH variable,
7536 # so we have to set that as well for the test.
7537 PATH_SEPARATOR=:
7538 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7539 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7540 || PATH_SEPARATOR=';'
7541 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007542fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007543
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007544ac_prog=ld
7545if test "$GCC" = yes; then
7546 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o93613952014-07-03 23:44:13 -04007547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7548$as_echo_n "checking for ld used by $CC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007549 case $host in
7550 *-*-mingw*)
7551 # gcc leaves a trailing carriage return which upsets mingw
7552 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7553 *)
7554 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7555 esac
7556 case $ac_prog in
7557 # Accept absolute paths.
Theodore Ts'o93613952014-07-03 23:44:13 -04007558 [\\/]* | ?:[\\/]*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007559 re_direlt='/[^/][^/]*/\.\./'
Theodore Ts'o93613952014-07-03 23:44:13 -04007560 # Canonicalize the pathname of ld
7561 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7562 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7563 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007564 done
7565 test -z "$LD" && LD="$ac_prog"
7566 ;;
7567 "")
7568 # If it fails, then pretend we aren't using GCC.
7569 ac_prog=ld
7570 ;;
7571 *)
7572 # If it is relative, then search for the first ld in PATH.
7573 with_gnu_ld=unknown
7574 ;;
7575 esac
7576elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007578$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007579else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007581$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007582fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007583if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007584 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007585else
7586 if test -z "$LD"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007587 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007588 for ac_dir in $PATH; do
Theodore Ts'o93613952014-07-03 23:44:13 -04007589 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007590 test -z "$ac_dir" && ac_dir=.
7591 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7592 acl_cv_path_LD="$ac_dir/$ac_prog"
7593 # Check to see if the program is GNU ld. I'd rather use --version,
Theodore Ts'o93613952014-07-03 23:44:13 -04007594 # but apparently some variants of GNU ld only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007595 # Break only if it was the GNU/non-GNU ld that we prefer.
Theodore Ts'o93613952014-07-03 23:44:13 -04007596 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007597 *GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007598 test "$with_gnu_ld" != no && break
7599 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007600 *)
Theodore Ts'o93613952014-07-03 23:44:13 -04007601 test "$with_gnu_ld" != yes && break
7602 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007603 esac
7604 fi
7605 done
Theodore Ts'o93613952014-07-03 23:44:13 -04007606 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007607else
7608 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7609fi
7610fi
7611
7612LD="$acl_cv_path_LD"
7613if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007615$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007616else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007618$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007619fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007620test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007622$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007623if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007624 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007625else
Theodore Ts'o93613952014-07-03 23:44:13 -04007626 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007627case `$LD -v 2>&1 </dev/null` in
7628*GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007629 acl_cv_prog_gnu_ld=yes
7630 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007631*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007632 acl_cv_prog_gnu_ld=no
7633 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007634esac
7635fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007637$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007638with_gnu_ld=$acl_cv_prog_gnu_ld
7639
7640
7641
Theodore Ts'o93613952014-07-03 23:44:13 -04007642
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007644$as_echo_n "checking for shared library run path origin... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007645if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007646 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007647else
7648
7649 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7650 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7651 . ./conftest.sh
7652 rm -f ./conftest.sh
7653 acl_cv_rpath=done
7654
7655fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007657$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007658 wl="$acl_cv_wl"
Theodore Ts'o93613952014-07-03 23:44:13 -04007659 acl_libext="$acl_cv_libext"
7660 acl_shlibext="$acl_cv_shlibext"
7661 acl_libname_spec="$acl_cv_libname_spec"
7662 acl_library_names_spec="$acl_cv_library_names_spec"
7663 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7664 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7665 acl_hardcode_direct="$acl_cv_hardcode_direct"
7666 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007667 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007668if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007669 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007670else
7671 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007672fi
7673
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007674
7675
7676
Theodore Ts'o93613952014-07-03 23:44:13 -04007677 acl_libdirstem=lib
7678 acl_libdirstem2=
7679 case "$host_os" in
7680 solaris*)
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7682$as_echo_n "checking for 64-bit host... " >&6; }
7683if ${gl_cv_solaris_64bit+:} false; then :
7684 $as_echo_n "(cached) " >&6
7685else
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687/* end confdefs.h. */
7688
7689#ifdef _LP64
7690sixtyfour bits
7691#endif
7692
7693_ACEOF
7694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7695 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7696 gl_cv_solaris_64bit=yes
7697else
7698 gl_cv_solaris_64bit=no
7699fi
7700rm -f conftest*
7701
7702
7703fi
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7705$as_echo "$gl_cv_solaris_64bit" >&6; }
7706 if test $gl_cv_solaris_64bit = yes; then
7707 acl_libdirstem=lib/64
7708 case "$host_cpu" in
7709 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7710 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7711 esac
7712 fi
7713 ;;
7714 *)
7715 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7716 if test -n "$searchpath"; then
7717 acl_save_IFS="${IFS= }"; IFS=":"
7718 for searchdir in $searchpath; do
7719 if test -d "$searchdir"; then
7720 case "$searchdir" in
7721 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7722 */../ | */.. )
7723 # Better ignore directories of this form. They are misleading.
7724 ;;
7725 *) searchdir=`cd "$searchdir" && pwd`
7726 case "$searchdir" in
7727 */lib64 ) acl_libdirstem=lib64 ;;
7728 esac ;;
7729 esac
7730 fi
7731 done
7732 IFS="$acl_save_IFS"
7733 fi
7734 ;;
7735 esac
7736 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7737
7738
7739
7740 gl_threads_api=none
7741 LIBTHREAD=
7742 LTLIBTHREAD=
7743 LIBMULTITHREAD=
7744 LTLIBMULTITHREAD=
7745 if test "$gl_use_threads" != no; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7747$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7748if ${gl_cv_have_weak+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750else
7751 gl_cv_have_weak=no
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753/* end confdefs.h. */
7754extern void xyzzy ();
7755#pragma weak xyzzy
7756int
7757main ()
7758{
7759xyzzy();
7760 ;
7761 return 0;
7762}
7763_ACEOF
7764if ac_fn_c_try_link "$LINENO"; then :
7765 gl_cv_have_weak=maybe
7766fi
7767rm -f core conftest.err conftest.$ac_objext \
7768 conftest$ac_exeext conftest.$ac_ext
7769 if test $gl_cv_have_weak = maybe; then
7770 if test "$cross_compiling" = yes; then :
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772/* end confdefs.h. */
7773#ifdef __ELF__
7774 Extensible Linking Format
7775 #endif
7776
7777_ACEOF
7778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7779 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7780 gl_cv_have_weak="guessing yes"
7781else
7782 gl_cv_have_weak="guessing no"
7783fi
7784rm -f conftest*
7785
7786
7787else
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789/* end confdefs.h. */
7790
7791#include <stdio.h>
7792#pragma weak fputs
7793int main ()
7794{
7795 return (fputs == NULL);
7796}
7797_ACEOF
7798if ac_fn_c_try_run "$LINENO"; then :
7799 gl_cv_have_weak=yes
7800else
7801 gl_cv_have_weak=no
7802fi
7803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7804 conftest.$ac_objext conftest.beam conftest.$ac_ext
7805fi
7806
7807 fi
7808
7809fi
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7811$as_echo "$gl_cv_have_weak" >&6; }
7812 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7813 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7814 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7815 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7816if test "x$ac_cv_header_pthread_h" = xyes; then :
7817 gl_have_pthread_h=yes
7818else
7819 gl_have_pthread_h=no
7820fi
7821
7822
7823 if test "$gl_have_pthread_h" = yes; then
7824 # Other possible tests:
7825 # -lpthreads (FSU threads, PCthreads)
7826 # -lgthreads
7827 gl_have_pthread=
7828 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7829 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7830 # the second one only in libpthread, and lock.c needs it.
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832/* end confdefs.h. */
7833#include <pthread.h>
7834int
7835main ()
7836{
7837pthread_mutex_lock((pthread_mutex_t*)0);
7838 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7839 ;
7840 return 0;
7841}
7842_ACEOF
7843if ac_fn_c_try_link "$LINENO"; then :
7844 gl_have_pthread=yes
7845fi
7846rm -f core conftest.err conftest.$ac_objext \
7847 conftest$ac_exeext conftest.$ac_ext
7848 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7849 # since it is defined as a macro on OSF/1.)
7850 if test -n "$gl_have_pthread"; then
7851 # The program links fine without libpthread. But it may actually
7852 # need to link with libpthread in order to create multiple threads.
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7854$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7855if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857else
7858 ac_check_lib_save_LIBS=$LIBS
7859LIBS="-lpthread $LIBS"
7860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861/* end confdefs.h. */
7862
7863/* Override any GCC internal prototype to avoid an error.
7864 Use char because int might match the return type of a GCC
7865 builtin and then its argument prototype would still apply. */
7866#ifdef __cplusplus
7867extern "C"
7868#endif
7869char pthread_kill ();
7870int
7871main ()
7872{
7873return pthread_kill ();
7874 ;
7875 return 0;
7876}
7877_ACEOF
7878if ac_fn_c_try_link "$LINENO"; then :
7879 ac_cv_lib_pthread_pthread_kill=yes
7880else
7881 ac_cv_lib_pthread_pthread_kill=no
7882fi
7883rm -f core conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
7885LIBS=$ac_check_lib_save_LIBS
7886fi
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7888$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7889if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7890 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7891 # On Solaris and HP-UX, most pthread functions exist also in libc.
7892 # Therefore pthread_in_use() needs to actually try to create a
7893 # thread: pthread_create from libc will fail, whereas
7894 # pthread_create will actually create a thread.
7895 case "$host_os" in
7896 solaris* | hpux*)
7897
7898$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7899
7900 esac
7901
7902fi
7903
7904 else
7905 # Some library is needed. Try libpthread and libc_r.
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7907$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7908if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7909 $as_echo_n "(cached) " >&6
7910else
7911 ac_check_lib_save_LIBS=$LIBS
7912LIBS="-lpthread $LIBS"
7913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914/* end confdefs.h. */
7915
7916/* Override any GCC internal prototype to avoid an error.
7917 Use char because int might match the return type of a GCC
7918 builtin and then its argument prototype would still apply. */
7919#ifdef __cplusplus
7920extern "C"
7921#endif
7922char pthread_kill ();
7923int
7924main ()
7925{
7926return pthread_kill ();
7927 ;
7928 return 0;
7929}
7930_ACEOF
7931if ac_fn_c_try_link "$LINENO"; then :
7932 ac_cv_lib_pthread_pthread_kill=yes
7933else
7934 ac_cv_lib_pthread_pthread_kill=no
7935fi
7936rm -f core conftest.err conftest.$ac_objext \
7937 conftest$ac_exeext conftest.$ac_ext
7938LIBS=$ac_check_lib_save_LIBS
7939fi
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7941$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7942if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7943 gl_have_pthread=yes
7944 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7945 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7946fi
7947
7948 if test -z "$gl_have_pthread"; then
7949 # For FreeBSD 4.
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
7951$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
7952if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7953 $as_echo_n "(cached) " >&6
7954else
7955 ac_check_lib_save_LIBS=$LIBS
7956LIBS="-lc_r $LIBS"
7957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958/* end confdefs.h. */
7959
7960/* Override any GCC internal prototype to avoid an error.
7961 Use char because int might match the return type of a GCC
7962 builtin and then its argument prototype would still apply. */
7963#ifdef __cplusplus
7964extern "C"
7965#endif
7966char pthread_kill ();
7967int
7968main ()
7969{
7970return pthread_kill ();
7971 ;
7972 return 0;
7973}
7974_ACEOF
7975if ac_fn_c_try_link "$LINENO"; then :
7976 ac_cv_lib_c_r_pthread_kill=yes
7977else
7978 ac_cv_lib_c_r_pthread_kill=no
7979fi
7980rm -f core conftest.err conftest.$ac_objext \
7981 conftest$ac_exeext conftest.$ac_ext
7982LIBS=$ac_check_lib_save_LIBS
7983fi
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
7985$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
7986if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
7987 gl_have_pthread=yes
7988 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
7989 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
7990fi
7991
7992 fi
7993 fi
7994 if test -n "$gl_have_pthread"; then
7995 gl_threads_api=posix
7996
7997$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
7998
7999 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8000 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8001
8002$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8003
8004 LIBTHREAD=
8005 LTLIBTHREAD=
8006 fi
8007 fi
8008 fi
8009 fi
8010 fi
8011 if test -z "$gl_have_pthread"; then
8012 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8013 gl_have_solaristhread=
8014 gl_save_LIBS="$LIBS"
8015 LIBS="$LIBS -lthread"
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017/* end confdefs.h. */
8018
8019#include <thread.h>
8020#include <synch.h>
8021
8022int
8023main ()
8024{
8025thr_self();
8026 ;
8027 return 0;
8028}
8029_ACEOF
8030if ac_fn_c_try_link "$LINENO"; then :
8031 gl_have_solaristhread=yes
8032fi
8033rm -f core conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035 LIBS="$gl_save_LIBS"
8036 if test -n "$gl_have_solaristhread"; then
8037 gl_threads_api=solaris
8038 LIBTHREAD=-lthread
8039 LTLIBTHREAD=-lthread
8040 LIBMULTITHREAD="$LIBTHREAD"
8041 LTLIBMULTITHREAD="$LTLIBTHREAD"
8042
8043$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8044
8045 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8046
8047$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8048
8049 LIBTHREAD=
8050 LTLIBTHREAD=
8051 fi
8052 fi
8053 fi
8054 fi
8055 if test "$gl_use_threads" = pth; then
8056 gl_save_CPPFLAGS="$CPPFLAGS"
8057
8058
8059
8060
8061
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8063$as_echo_n "checking how to link with libpth... " >&6; }
8064if ${ac_cv_libpth_libs+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066else
8067
8068
8069
8070
8071
8072
8073
8074
8075 use_additional=yes
8076
8077 acl_save_prefix="$prefix"
8078 prefix="$acl_final_prefix"
8079 acl_save_exec_prefix="$exec_prefix"
8080 exec_prefix="$acl_final_exec_prefix"
8081
8082 eval additional_includedir=\"$includedir\"
8083 eval additional_libdir=\"$libdir\"
8084
8085 exec_prefix="$acl_save_exec_prefix"
8086 prefix="$acl_save_prefix"
8087
8088
8089# Check whether --with-libpth-prefix was given.
8090if test "${with_libpth_prefix+set}" = set; then :
8091 withval=$with_libpth_prefix;
8092 if test "X$withval" = "Xno"; then
8093 use_additional=no
8094 else
8095 if test "X$withval" = "X"; then
8096
8097 acl_save_prefix="$prefix"
8098 prefix="$acl_final_prefix"
8099 acl_save_exec_prefix="$exec_prefix"
8100 exec_prefix="$acl_final_exec_prefix"
8101
8102 eval additional_includedir=\"$includedir\"
8103 eval additional_libdir=\"$libdir\"
8104
8105 exec_prefix="$acl_save_exec_prefix"
8106 prefix="$acl_save_prefix"
8107
8108 else
8109 additional_includedir="$withval/include"
8110 additional_libdir="$withval/$acl_libdirstem"
8111 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8112 && ! test -d "$withval/$acl_libdirstem"; then
8113 additional_libdir="$withval/$acl_libdirstem2"
8114 fi
8115 fi
8116 fi
8117
8118fi
8119
8120 LIBPTH=
8121 LTLIBPTH=
8122 INCPTH=
8123 LIBPTH_PREFIX=
8124 HAVE_LIBPTH=
8125 rpathdirs=
8126 ltrpathdirs=
8127 names_already_handled=
8128 names_next_round='pth '
8129 while test -n "$names_next_round"; do
8130 names_this_round="$names_next_round"
8131 names_next_round=
8132 for name in $names_this_round; do
8133 already_handled=
8134 for n in $names_already_handled; do
8135 if test "$n" = "$name"; then
8136 already_handled=yes
8137 break
8138 fi
8139 done
8140 if test -z "$already_handled"; then
8141 names_already_handled="$names_already_handled $name"
8142 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8143 eval value=\"\$HAVE_LIB$uppername\"
8144 if test -n "$value"; then
8145 if test "$value" = yes; then
8146 eval value=\"\$LIB$uppername\"
8147 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8148 eval value=\"\$LTLIB$uppername\"
8149 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8150 else
8151 :
8152 fi
8153 else
8154 found_dir=
8155 found_la=
8156 found_so=
8157 found_a=
8158 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8159 if test -n "$acl_shlibext"; then
8160 shrext=".$acl_shlibext" # typically: shrext=.so
8161 else
8162 shrext=
8163 fi
8164 if test $use_additional = yes; then
8165 dir="$additional_libdir"
8166 if test -n "$acl_shlibext"; then
8167 if test -f "$dir/$libname$shrext"; then
8168 found_dir="$dir"
8169 found_so="$dir/$libname$shrext"
8170 else
8171 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8172 ver=`(cd "$dir" && \
8173 for f in "$libname$shrext".*; do echo "$f"; done \
8174 | sed -e "s,^$libname$shrext\\\\.,," \
8175 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8176 | sed 1q ) 2>/dev/null`
8177 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8178 found_dir="$dir"
8179 found_so="$dir/$libname$shrext.$ver"
8180 fi
8181 else
8182 eval library_names=\"$acl_library_names_spec\"
8183 for f in $library_names; do
8184 if test -f "$dir/$f"; then
8185 found_dir="$dir"
8186 found_so="$dir/$f"
8187 break
8188 fi
8189 done
8190 fi
8191 fi
8192 fi
8193 if test "X$found_dir" = "X"; then
8194 if test -f "$dir/$libname.$acl_libext"; then
8195 found_dir="$dir"
8196 found_a="$dir/$libname.$acl_libext"
8197 fi
8198 fi
8199 if test "X$found_dir" != "X"; then
8200 if test -f "$dir/$libname.la"; then
8201 found_la="$dir/$libname.la"
8202 fi
8203 fi
8204 fi
8205 if test "X$found_dir" = "X"; then
8206 for x in $LDFLAGS $LTLIBPTH; do
8207
8208 acl_save_prefix="$prefix"
8209 prefix="$acl_final_prefix"
8210 acl_save_exec_prefix="$exec_prefix"
8211 exec_prefix="$acl_final_exec_prefix"
8212 eval x=\"$x\"
8213 exec_prefix="$acl_save_exec_prefix"
8214 prefix="$acl_save_prefix"
8215
8216 case "$x" in
8217 -L*)
8218 dir=`echo "X$x" | sed -e 's/^X-L//'`
8219 if test -n "$acl_shlibext"; then
8220 if test -f "$dir/$libname$shrext"; then
8221 found_dir="$dir"
8222 found_so="$dir/$libname$shrext"
8223 else
8224 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8225 ver=`(cd "$dir" && \
8226 for f in "$libname$shrext".*; do echo "$f"; done \
8227 | sed -e "s,^$libname$shrext\\\\.,," \
8228 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8229 | sed 1q ) 2>/dev/null`
8230 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8231 found_dir="$dir"
8232 found_so="$dir/$libname$shrext.$ver"
8233 fi
8234 else
8235 eval library_names=\"$acl_library_names_spec\"
8236 for f in $library_names; do
8237 if test -f "$dir/$f"; then
8238 found_dir="$dir"
8239 found_so="$dir/$f"
8240 break
8241 fi
8242 done
8243 fi
8244 fi
8245 fi
8246 if test "X$found_dir" = "X"; then
8247 if test -f "$dir/$libname.$acl_libext"; then
8248 found_dir="$dir"
8249 found_a="$dir/$libname.$acl_libext"
8250 fi
8251 fi
8252 if test "X$found_dir" != "X"; then
8253 if test -f "$dir/$libname.la"; then
8254 found_la="$dir/$libname.la"
8255 fi
8256 fi
8257 ;;
8258 esac
8259 if test "X$found_dir" != "X"; then
8260 break
8261 fi
8262 done
8263 fi
8264 if test "X$found_dir" != "X"; then
8265 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8266 if test "X$found_so" != "X"; then
8267 if test "$enable_rpath" = no \
8268 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8269 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8270 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8271 else
8272 haveit=
8273 for x in $ltrpathdirs; do
8274 if test "X$x" = "X$found_dir"; then
8275 haveit=yes
8276 break
8277 fi
8278 done
8279 if test -z "$haveit"; then
8280 ltrpathdirs="$ltrpathdirs $found_dir"
8281 fi
8282 if test "$acl_hardcode_direct" = yes; then
8283 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8284 else
8285 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8286 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8287 haveit=
8288 for x in $rpathdirs; do
8289 if test "X$x" = "X$found_dir"; then
8290 haveit=yes
8291 break
8292 fi
8293 done
8294 if test -z "$haveit"; then
8295 rpathdirs="$rpathdirs $found_dir"
8296 fi
8297 else
8298 haveit=
8299 for x in $LDFLAGS $LIBPTH; do
8300
8301 acl_save_prefix="$prefix"
8302 prefix="$acl_final_prefix"
8303 acl_save_exec_prefix="$exec_prefix"
8304 exec_prefix="$acl_final_exec_prefix"
8305 eval x=\"$x\"
8306 exec_prefix="$acl_save_exec_prefix"
8307 prefix="$acl_save_prefix"
8308
8309 if test "X$x" = "X-L$found_dir"; then
8310 haveit=yes
8311 break
8312 fi
8313 done
8314 if test -z "$haveit"; then
8315 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8316 fi
8317 if test "$acl_hardcode_minus_L" != no; then
8318 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8319 else
8320 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8321 fi
8322 fi
8323 fi
8324 fi
8325 else
8326 if test "X$found_a" != "X"; then
8327 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8328 else
8329 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8330 fi
8331 fi
8332 additional_includedir=
8333 case "$found_dir" in
8334 */$acl_libdirstem | */$acl_libdirstem/)
8335 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8336 if test "$name" = 'pth'; then
8337 LIBPTH_PREFIX="$basedir"
8338 fi
8339 additional_includedir="$basedir/include"
8340 ;;
8341 */$acl_libdirstem2 | */$acl_libdirstem2/)
8342 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8343 if test "$name" = 'pth'; then
8344 LIBPTH_PREFIX="$basedir"
8345 fi
8346 additional_includedir="$basedir/include"
8347 ;;
8348 esac
8349 if test "X$additional_includedir" != "X"; then
8350 if test "X$additional_includedir" != "X/usr/include"; then
8351 haveit=
8352 if test "X$additional_includedir" = "X/usr/local/include"; then
8353 if test -n "$GCC"; then
8354 case $host_os in
8355 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8356 esac
8357 fi
8358 fi
8359 if test -z "$haveit"; then
8360 for x in $CPPFLAGS $INCPTH; do
8361
8362 acl_save_prefix="$prefix"
8363 prefix="$acl_final_prefix"
8364 acl_save_exec_prefix="$exec_prefix"
8365 exec_prefix="$acl_final_exec_prefix"
8366 eval x=\"$x\"
8367 exec_prefix="$acl_save_exec_prefix"
8368 prefix="$acl_save_prefix"
8369
8370 if test "X$x" = "X-I$additional_includedir"; then
8371 haveit=yes
8372 break
8373 fi
8374 done
8375 if test -z "$haveit"; then
8376 if test -d "$additional_includedir"; then
8377 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8378 fi
8379 fi
8380 fi
8381 fi
8382 fi
8383 if test -n "$found_la"; then
8384 save_libdir="$libdir"
8385 case "$found_la" in
8386 */* | *\\*) . "$found_la" ;;
8387 *) . "./$found_la" ;;
8388 esac
8389 libdir="$save_libdir"
8390 for dep in $dependency_libs; do
8391 case "$dep" in
8392 -L*)
8393 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8394 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8395 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8396 haveit=
8397 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8398 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8399 if test -n "$GCC"; then
8400 case $host_os in
8401 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8402 esac
8403 fi
8404 fi
8405 if test -z "$haveit"; then
8406 haveit=
8407 for x in $LDFLAGS $LIBPTH; do
8408
8409 acl_save_prefix="$prefix"
8410 prefix="$acl_final_prefix"
8411 acl_save_exec_prefix="$exec_prefix"
8412 exec_prefix="$acl_final_exec_prefix"
8413 eval x=\"$x\"
8414 exec_prefix="$acl_save_exec_prefix"
8415 prefix="$acl_save_prefix"
8416
8417 if test "X$x" = "X-L$additional_libdir"; then
8418 haveit=yes
8419 break
8420 fi
8421 done
8422 if test -z "$haveit"; then
8423 if test -d "$additional_libdir"; then
8424 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8425 fi
8426 fi
8427 haveit=
8428 for x in $LDFLAGS $LTLIBPTH; do
8429
8430 acl_save_prefix="$prefix"
8431 prefix="$acl_final_prefix"
8432 acl_save_exec_prefix="$exec_prefix"
8433 exec_prefix="$acl_final_exec_prefix"
8434 eval x=\"$x\"
8435 exec_prefix="$acl_save_exec_prefix"
8436 prefix="$acl_save_prefix"
8437
8438 if test "X$x" = "X-L$additional_libdir"; then
8439 haveit=yes
8440 break
8441 fi
8442 done
8443 if test -z "$haveit"; then
8444 if test -d "$additional_libdir"; then
8445 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8446 fi
8447 fi
8448 fi
8449 fi
8450 ;;
8451 -R*)
8452 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8453 if test "$enable_rpath" != no; then
8454 haveit=
8455 for x in $rpathdirs; do
8456 if test "X$x" = "X$dir"; then
8457 haveit=yes
8458 break
8459 fi
8460 done
8461 if test -z "$haveit"; then
8462 rpathdirs="$rpathdirs $dir"
8463 fi
8464 haveit=
8465 for x in $ltrpathdirs; do
8466 if test "X$x" = "X$dir"; then
8467 haveit=yes
8468 break
8469 fi
8470 done
8471 if test -z "$haveit"; then
8472 ltrpathdirs="$ltrpathdirs $dir"
8473 fi
8474 fi
8475 ;;
8476 -l*)
8477 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8478 ;;
8479 *.la)
8480 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8481 ;;
8482 *)
8483 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8484 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8485 ;;
8486 esac
8487 done
8488 fi
8489 else
8490 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8491 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8492 fi
8493 fi
8494 fi
8495 done
8496 done
8497 if test "X$rpathdirs" != "X"; then
8498 if test -n "$acl_hardcode_libdir_separator"; then
8499 alldirs=
8500 for found_dir in $rpathdirs; do
8501 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8502 done
8503 acl_save_libdir="$libdir"
8504 libdir="$alldirs"
8505 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8506 libdir="$acl_save_libdir"
8507 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8508 else
8509 for found_dir in $rpathdirs; do
8510 acl_save_libdir="$libdir"
8511 libdir="$found_dir"
8512 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8513 libdir="$acl_save_libdir"
8514 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8515 done
8516 fi
8517 fi
8518 if test "X$ltrpathdirs" != "X"; then
8519 for found_dir in $ltrpathdirs; do
8520 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8521 done
8522 fi
8523
8524
8525
8526
8527
8528
8529 ac_cv_libpth_libs="$LIBPTH"
8530 ac_cv_libpth_ltlibs="$LTLIBPTH"
8531 ac_cv_libpth_cppflags="$INCPTH"
8532 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8533
8534fi
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8536$as_echo "$ac_cv_libpth_libs" >&6; }
8537 LIBPTH="$ac_cv_libpth_libs"
8538 LTLIBPTH="$ac_cv_libpth_ltlibs"
8539 INCPTH="$ac_cv_libpth_cppflags"
8540 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8541
8542 for element in $INCPTH; do
8543 haveit=
8544 for x in $CPPFLAGS; do
8545
8546 acl_save_prefix="$prefix"
8547 prefix="$acl_final_prefix"
8548 acl_save_exec_prefix="$exec_prefix"
8549 exec_prefix="$acl_final_exec_prefix"
8550 eval x=\"$x\"
8551 exec_prefix="$acl_save_exec_prefix"
8552 prefix="$acl_save_prefix"
8553
8554 if test "X$x" = "X$element"; then
8555 haveit=yes
8556 break
8557 fi
8558 done
8559 if test -z "$haveit"; then
8560 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8561 fi
8562 done
8563
8564
8565
8566
8567 HAVE_LIBPTH=yes
8568
8569
8570
8571 gl_have_pth=
8572 gl_save_LIBS="$LIBS"
8573 LIBS="$LIBS $LIBPTH"
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575/* end confdefs.h. */
8576#include <pth.h>
8577int
8578main ()
8579{
8580pth_self();
8581 ;
8582 return 0;
8583}
8584_ACEOF
8585if ac_fn_c_try_link "$LINENO"; then :
8586 gl_have_pth=yes
8587fi
8588rm -f core conftest.err conftest.$ac_objext \
8589 conftest$ac_exeext conftest.$ac_ext
8590 LIBS="$gl_save_LIBS"
8591 if test -n "$gl_have_pth"; then
8592 gl_threads_api=pth
8593 LIBTHREAD="$LIBPTH"
8594 LTLIBTHREAD="$LTLIBPTH"
8595 LIBMULTITHREAD="$LIBTHREAD"
8596 LTLIBMULTITHREAD="$LTLIBTHREAD"
8597
8598$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8599
8600 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8601 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8602
8603$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8604
8605 LIBTHREAD=
8606 LTLIBTHREAD=
8607 fi
8608 fi
8609 else
8610 CPPFLAGS="$gl_save_CPPFLAGS"
8611 fi
8612 fi
8613 if test -z "$gl_have_pthread"; then
8614 case "$gl_use_threads" in
8615 yes | windows | win32) # The 'win32' is for backward compatibility.
8616 if { case "$host_os" in
8617 mingw*) true;;
8618 *) false;;
8619 esac
8620 }; then
8621 gl_threads_api=windows
8622
8623$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8624
8625 fi
8626 ;;
8627 esac
8628 fi
8629 fi
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8631$as_echo_n "checking for multithread API to use... " >&6; }
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8633$as_echo "$gl_threads_api" >&6; }
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645 if test "$gl_threads_api" = posix; then
8646 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8647 # pthread_rwlock_* functions.
8648 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8649"
8650if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8651
8652$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8653
8654fi
8655
8656 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658/* end confdefs.h. */
8659
8660 #include <pthread.h>
8661int
8662main ()
8663{
8664
8665#if __FreeBSD__ == 4
8666error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8667#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8668 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8669error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8670#else
8671int x = (int)PTHREAD_MUTEX_RECURSIVE;
8672return !x;
8673#endif
8674
8675 ;
8676 return 0;
8677}
8678_ACEOF
8679if ac_fn_c_try_compile "$LINENO"; then :
8680
8681$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8682
8683fi
8684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8685 fi
8686 :
8687
8688
8689
8690
8691
8692
8693
8694
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008695
8696
8697
8698
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008699 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008700
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008701 acl_save_prefix="$prefix"
8702 prefix="$acl_final_prefix"
8703 acl_save_exec_prefix="$exec_prefix"
8704 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008705
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008706 eval additional_includedir=\"$includedir\"
8707 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008708
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008709 exec_prefix="$acl_save_exec_prefix"
8710 prefix="$acl_save_prefix"
8711
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008712
Theodore Ts'oe1052142006-10-21 21:46:47 -04008713# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008714if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008715 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008716 if test "X$withval" = "Xno"; then
8717 use_additional=no
8718 else
8719 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008720
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008721 acl_save_prefix="$prefix"
8722 prefix="$acl_final_prefix"
8723 acl_save_exec_prefix="$exec_prefix"
8724 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008725
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008726 eval additional_includedir=\"$includedir\"
8727 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008728
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008729 exec_prefix="$acl_save_exec_prefix"
8730 prefix="$acl_save_prefix"
8731
8732 else
8733 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -04008734 additional_libdir="$withval/$acl_libdirstem"
8735 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8736 && ! test -d "$withval/$acl_libdirstem"; then
8737 additional_libdir="$withval/$acl_libdirstem2"
8738 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008739 fi
8740 fi
8741
Theodore Ts'oe1052142006-10-21 21:46:47 -04008742fi
8743
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008744 LIBICONV=
8745 LTLIBICONV=
8746 INCICONV=
Theodore Ts'o93613952014-07-03 23:44:13 -04008747 LIBICONV_PREFIX=
8748 HAVE_LIBICONV=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008749 rpathdirs=
8750 ltrpathdirs=
8751 names_already_handled=
8752 names_next_round='iconv '
8753 while test -n "$names_next_round"; do
8754 names_this_round="$names_next_round"
8755 names_next_round=
8756 for name in $names_this_round; do
8757 already_handled=
8758 for n in $names_already_handled; do
8759 if test "$n" = "$name"; then
8760 already_handled=yes
8761 break
8762 fi
8763 done
8764 if test -z "$already_handled"; then
8765 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -04008766 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008767 eval value=\"\$HAVE_LIB$uppername\"
8768 if test -n "$value"; then
8769 if test "$value" = yes; then
8770 eval value=\"\$LIB$uppername\"
8771 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8772 eval value=\"\$LTLIB$uppername\"
8773 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8774 else
8775 :
8776 fi
8777 else
8778 found_dir=
8779 found_la=
8780 found_so=
8781 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -04008782 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8783 if test -n "$acl_shlibext"; then
8784 shrext=".$acl_shlibext" # typically: shrext=.so
8785 else
8786 shrext=
8787 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008788 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008789 dir="$additional_libdir"
8790 if test -n "$acl_shlibext"; then
8791 if test -f "$dir/$libname$shrext"; then
8792 found_dir="$dir"
8793 found_so="$dir/$libname$shrext"
8794 else
8795 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8796 ver=`(cd "$dir" && \
8797 for f in "$libname$shrext".*; do echo "$f"; done \
8798 | sed -e "s,^$libname$shrext\\\\.,," \
8799 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8800 | sed 1q ) 2>/dev/null`
8801 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8802 found_dir="$dir"
8803 found_so="$dir/$libname$shrext.$ver"
8804 fi
8805 else
8806 eval library_names=\"$acl_library_names_spec\"
8807 for f in $library_names; do
8808 if test -f "$dir/$f"; then
8809 found_dir="$dir"
8810 found_so="$dir/$f"
8811 break
8812 fi
8813 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008814 fi
8815 fi
8816 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008817 if test "X$found_dir" = "X"; then
8818 if test -f "$dir/$libname.$acl_libext"; then
8819 found_dir="$dir"
8820 found_a="$dir/$libname.$acl_libext"
8821 fi
8822 fi
8823 if test "X$found_dir" != "X"; then
8824 if test -f "$dir/$libname.la"; then
8825 found_la="$dir/$libname.la"
8826 fi
8827 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008828 fi
8829 if test "X$found_dir" = "X"; then
8830 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008831
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008832 acl_save_prefix="$prefix"
8833 prefix="$acl_final_prefix"
8834 acl_save_exec_prefix="$exec_prefix"
8835 exec_prefix="$acl_final_exec_prefix"
8836 eval x=\"$x\"
8837 exec_prefix="$acl_save_exec_prefix"
8838 prefix="$acl_save_prefix"
8839
8840 case "$x" in
8841 -L*)
8842 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04008843 if test -n "$acl_shlibext"; then
8844 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008845 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04008846 found_so="$dir/$libname$shrext"
8847 else
8848 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8849 ver=`(cd "$dir" && \
8850 for f in "$libname$shrext".*; do echo "$f"; done \
8851 | sed -e "s,^$libname$shrext\\\\.,," \
8852 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8853 | sed 1q ) 2>/dev/null`
8854 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8855 found_dir="$dir"
8856 found_so="$dir/$libname$shrext.$ver"
8857 fi
8858 else
8859 eval library_names=\"$acl_library_names_spec\"
8860 for f in $library_names; do
8861 if test -f "$dir/$f"; then
8862 found_dir="$dir"
8863 found_so="$dir/$f"
8864 break
8865 fi
8866 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008867 fi
8868 fi
8869 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008870 if test "X$found_dir" = "X"; then
8871 if test -f "$dir/$libname.$acl_libext"; then
8872 found_dir="$dir"
8873 found_a="$dir/$libname.$acl_libext"
8874 fi
8875 fi
8876 if test "X$found_dir" != "X"; then
8877 if test -f "$dir/$libname.la"; then
8878 found_la="$dir/$libname.la"
8879 fi
8880 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008881 ;;
8882 esac
8883 if test "X$found_dir" != "X"; then
8884 break
8885 fi
8886 done
8887 fi
8888 if test "X$found_dir" != "X"; then
8889 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8890 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008891 if test "$enable_rpath" = no \
8892 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8893 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008894 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8895 else
8896 haveit=
8897 for x in $ltrpathdirs; do
8898 if test "X$x" = "X$found_dir"; then
8899 haveit=yes
8900 break
8901 fi
8902 done
8903 if test -z "$haveit"; then
8904 ltrpathdirs="$ltrpathdirs $found_dir"
8905 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008906 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008907 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8908 else
Theodore Ts'o93613952014-07-03 23:44:13 -04008909 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008910 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8911 haveit=
8912 for x in $rpathdirs; do
8913 if test "X$x" = "X$found_dir"; then
8914 haveit=yes
8915 break
8916 fi
8917 done
8918 if test -z "$haveit"; then
8919 rpathdirs="$rpathdirs $found_dir"
8920 fi
8921 else
8922 haveit=
8923 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008924
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008925 acl_save_prefix="$prefix"
8926 prefix="$acl_final_prefix"
8927 acl_save_exec_prefix="$exec_prefix"
8928 exec_prefix="$acl_final_exec_prefix"
8929 eval x=\"$x\"
8930 exec_prefix="$acl_save_exec_prefix"
8931 prefix="$acl_save_prefix"
8932
8933 if test "X$x" = "X-L$found_dir"; then
8934 haveit=yes
8935 break
8936 fi
8937 done
8938 if test -z "$haveit"; then
8939 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8940 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008941 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8943 else
8944 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8945 fi
8946 fi
8947 fi
8948 fi
8949 else
8950 if test "X$found_a" != "X"; then
8951 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8952 else
8953 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8954 fi
8955 fi
8956 additional_includedir=
8957 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -04008958 */$acl_libdirstem | */$acl_libdirstem/)
8959 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8960 if test "$name" = 'iconv'; then
8961 LIBICONV_PREFIX="$basedir"
8962 fi
8963 additional_includedir="$basedir/include"
8964 ;;
8965 */$acl_libdirstem2 | */$acl_libdirstem2/)
8966 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8967 if test "$name" = 'iconv'; then
8968 LIBICONV_PREFIX="$basedir"
8969 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008970 additional_includedir="$basedir/include"
8971 ;;
8972 esac
8973 if test "X$additional_includedir" != "X"; then
8974 if test "X$additional_includedir" != "X/usr/include"; then
8975 haveit=
8976 if test "X$additional_includedir" = "X/usr/local/include"; then
8977 if test -n "$GCC"; then
8978 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04008979 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008980 esac
8981 fi
8982 fi
8983 if test -z "$haveit"; then
8984 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008985
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008986 acl_save_prefix="$prefix"
8987 prefix="$acl_final_prefix"
8988 acl_save_exec_prefix="$exec_prefix"
8989 exec_prefix="$acl_final_exec_prefix"
8990 eval x=\"$x\"
8991 exec_prefix="$acl_save_exec_prefix"
8992 prefix="$acl_save_prefix"
8993
8994 if test "X$x" = "X-I$additional_includedir"; then
8995 haveit=yes
8996 break
8997 fi
8998 done
8999 if test -z "$haveit"; then
9000 if test -d "$additional_includedir"; then
9001 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9002 fi
9003 fi
9004 fi
9005 fi
9006 fi
9007 if test -n "$found_la"; then
9008 save_libdir="$libdir"
9009 case "$found_la" in
9010 */* | *\\*) . "$found_la" ;;
9011 *) . "./$found_la" ;;
9012 esac
9013 libdir="$save_libdir"
9014 for dep in $dependency_libs; do
9015 case "$dep" in
9016 -L*)
9017 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009018 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9019 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009020 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -04009021 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9022 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009023 if test -n "$GCC"; then
9024 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009025 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009026 esac
9027 fi
9028 fi
9029 if test -z "$haveit"; then
9030 haveit=
9031 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009032
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009033 acl_save_prefix="$prefix"
9034 prefix="$acl_final_prefix"
9035 acl_save_exec_prefix="$exec_prefix"
9036 exec_prefix="$acl_final_exec_prefix"
9037 eval x=\"$x\"
9038 exec_prefix="$acl_save_exec_prefix"
9039 prefix="$acl_save_prefix"
9040
9041 if test "X$x" = "X-L$additional_libdir"; then
9042 haveit=yes
9043 break
9044 fi
9045 done
9046 if test -z "$haveit"; then
9047 if test -d "$additional_libdir"; then
9048 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9049 fi
9050 fi
9051 haveit=
9052 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009053
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009054 acl_save_prefix="$prefix"
9055 prefix="$acl_final_prefix"
9056 acl_save_exec_prefix="$exec_prefix"
9057 exec_prefix="$acl_final_exec_prefix"
9058 eval x=\"$x\"
9059 exec_prefix="$acl_save_exec_prefix"
9060 prefix="$acl_save_prefix"
9061
9062 if test "X$x" = "X-L$additional_libdir"; then
9063 haveit=yes
9064 break
9065 fi
9066 done
9067 if test -z "$haveit"; then
9068 if test -d "$additional_libdir"; then
9069 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9070 fi
9071 fi
9072 fi
9073 fi
9074 ;;
9075 -R*)
9076 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9077 if test "$enable_rpath" != no; then
9078 haveit=
9079 for x in $rpathdirs; do
9080 if test "X$x" = "X$dir"; then
9081 haveit=yes
9082 break
9083 fi
9084 done
9085 if test -z "$haveit"; then
9086 rpathdirs="$rpathdirs $dir"
9087 fi
9088 haveit=
9089 for x in $ltrpathdirs; do
9090 if test "X$x" = "X$dir"; then
9091 haveit=yes
9092 break
9093 fi
9094 done
9095 if test -z "$haveit"; then
9096 ltrpathdirs="$ltrpathdirs $dir"
9097 fi
9098 fi
9099 ;;
9100 -l*)
9101 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9102 ;;
9103 *.la)
9104 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9105 ;;
9106 *)
9107 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9108 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9109 ;;
9110 esac
9111 done
9112 fi
9113 else
9114 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9115 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9116 fi
9117 fi
9118 fi
9119 done
9120 done
9121 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009122 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009123 alldirs=
9124 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -04009125 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009126 done
9127 acl_save_libdir="$libdir"
9128 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -04009129 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009130 libdir="$acl_save_libdir"
9131 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9132 else
9133 for found_dir in $rpathdirs; do
9134 acl_save_libdir="$libdir"
9135 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04009136 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009137 libdir="$acl_save_libdir"
9138 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9139 done
9140 fi
9141 fi
9142 if test "X$ltrpathdirs" != "X"; then
9143 for found_dir in $ltrpathdirs; do
9144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9145 done
9146 fi
9147
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009148
9149
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009150
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009151
9152
9153
9154
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009155
9156
9157
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009158
9159 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009160
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009161 for element in $INCICONV; do
9162 haveit=
9163 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009164
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009165 acl_save_prefix="$prefix"
9166 prefix="$acl_final_prefix"
9167 acl_save_exec_prefix="$exec_prefix"
9168 exec_prefix="$acl_final_exec_prefix"
9169 eval x=\"$x\"
9170 exec_prefix="$acl_save_exec_prefix"
9171 prefix="$acl_save_prefix"
9172
9173 if test "X$x" = "X$element"; then
9174 haveit=yes
9175 break
9176 fi
9177 done
9178 if test -z "$haveit"; then
9179 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9180 fi
9181 done
9182
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009183
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009185$as_echo_n "checking for iconv... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009186if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009187 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009188else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009189
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009190 am_cv_func_iconv="no, consider installing GNU libiconv"
9191 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009193/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009194
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009195#include <stdlib.h>
9196#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009197
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009198int
9199main ()
9200{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009201iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009202 iconv(cd,NULL,NULL,NULL,NULL);
9203 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009204 ;
9205 return 0;
9206}
9207_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009208if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009209 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009210fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009211rm -f core conftest.err conftest.$ac_objext \
9212 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009213 if test "$am_cv_func_iconv" != yes; then
9214 am_save_LIBS="$LIBS"
9215 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009217/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009218
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009219#include <stdlib.h>
9220#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009221
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009222int
9223main ()
9224{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009225iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009226 iconv(cd,NULL,NULL,NULL,NULL);
9227 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009228 ;
9229 return 0;
9230}
9231_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009232if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009233 am_cv_lib_iconv=yes
9234 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009235fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009236rm -f core conftest.err conftest.$ac_objext \
9237 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009238 LIBS="$am_save_LIBS"
9239 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009240
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009241fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009243$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009244 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9246$as_echo_n "checking for working iconv... " >&6; }
9247if ${am_cv_func_iconv_works+:} false; then :
9248 $as_echo_n "(cached) " >&6
9249else
9250
9251 am_save_LIBS="$LIBS"
9252 if test $am_cv_lib_iconv = yes; then
9253 LIBS="$LIBS $LIBICONV"
9254 fi
9255 if test "$cross_compiling" = yes; then :
9256
9257 case "$host_os" in
9258 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9259 *) am_cv_func_iconv_works="guessing yes" ;;
9260 esac
9261
9262else
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264/* end confdefs.h. */
9265
9266#include <iconv.h>
9267#include <string.h>
9268int main ()
9269{
9270 int result = 0;
9271 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9272 returns. */
9273 {
9274 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9275 if (cd_utf8_to_88591 != (iconv_t)(-1))
9276 {
9277 static const char input[] = "\342\202\254"; /* EURO SIGN */
9278 char buf[10];
9279 const char *inptr = input;
9280 size_t inbytesleft = strlen (input);
9281 char *outptr = buf;
9282 size_t outbytesleft = sizeof (buf);
9283 size_t res = iconv (cd_utf8_to_88591,
9284 (char **) &inptr, &inbytesleft,
9285 &outptr, &outbytesleft);
9286 if (res == 0)
9287 result |= 1;
9288 iconv_close (cd_utf8_to_88591);
9289 }
9290 }
9291 /* Test against Solaris 10 bug: Failures are not distinguishable from
9292 successful returns. */
9293 {
9294 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9295 if (cd_ascii_to_88591 != (iconv_t)(-1))
9296 {
9297 static const char input[] = "\263";
9298 char buf[10];
9299 const char *inptr = input;
9300 size_t inbytesleft = strlen (input);
9301 char *outptr = buf;
9302 size_t outbytesleft = sizeof (buf);
9303 size_t res = iconv (cd_ascii_to_88591,
9304 (char **) &inptr, &inbytesleft,
9305 &outptr, &outbytesleft);
9306 if (res == 0)
9307 result |= 2;
9308 iconv_close (cd_ascii_to_88591);
9309 }
9310 }
9311 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9312 {
9313 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9314 if (cd_88591_to_utf8 != (iconv_t)(-1))
9315 {
9316 static const char input[] = "\304";
9317 static char buf[2] = { (char)0xDE, (char)0xAD };
9318 const char *inptr = input;
9319 size_t inbytesleft = 1;
9320 char *outptr = buf;
9321 size_t outbytesleft = 1;
9322 size_t res = iconv (cd_88591_to_utf8,
9323 (char **) &inptr, &inbytesleft,
9324 &outptr, &outbytesleft);
9325 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9326 result |= 4;
9327 iconv_close (cd_88591_to_utf8);
9328 }
9329 }
9330#if 0 /* This bug could be worked around by the caller. */
9331 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9332 {
9333 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9334 if (cd_88591_to_utf8 != (iconv_t)(-1))
9335 {
9336 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9337 char buf[50];
9338 const char *inptr = input;
9339 size_t inbytesleft = strlen (input);
9340 char *outptr = buf;
9341 size_t outbytesleft = sizeof (buf);
9342 size_t res = iconv (cd_88591_to_utf8,
9343 (char **) &inptr, &inbytesleft,
9344 &outptr, &outbytesleft);
9345 if ((int)res > 0)
9346 result |= 8;
9347 iconv_close (cd_88591_to_utf8);
9348 }
9349 }
9350#endif
9351 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9352 provided. */
9353 if (/* Try standardized names. */
9354 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9355 /* Try IRIX, OSF/1 names. */
9356 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9357 /* Try AIX names. */
9358 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9359 /* Try HP-UX names. */
9360 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9361 result |= 16;
9362 return result;
9363}
9364_ACEOF
9365if ac_fn_c_try_run "$LINENO"; then :
9366 am_cv_func_iconv_works=yes
9367else
9368 am_cv_func_iconv_works=no
9369fi
9370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9371 conftest.$ac_objext conftest.beam conftest.$ac_ext
9372fi
9373
9374 LIBS="$am_save_LIBS"
9375
9376fi
9377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9378$as_echo "$am_cv_func_iconv_works" >&6; }
9379 case "$am_cv_func_iconv_works" in
9380 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9381 *) am_func_iconv=yes ;;
9382 esac
9383 else
9384 am_func_iconv=no am_cv_lib_iconv=no
9385 fi
9386 if test "$am_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009387
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009388$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009389
9390 fi
9391 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009393$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009395$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009396 else
9397 CPPFLAGS="$am_save_CPPFLAGS"
9398 LIBICONV=
9399 LTLIBICONV=
9400 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009401
9402
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009403
9404 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009406$as_echo_n "checking for iconv declaration... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009407 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009408 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009409else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009410
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009412/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009413
9414#include <stdlib.h>
9415#include <iconv.h>
9416extern
9417#ifdef __cplusplus
9418"C"
9419#endif
Theodore Ts'o93613952014-07-03 23:44:13 -04009420#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009421size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9422#else
9423size_t iconv();
9424#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009425
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009426int
9427main ()
9428{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009429
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009430 ;
9431 return 0;
9432}
9433_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009434if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009435 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009436else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009437 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009438fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009440 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 +00009441fi
9442
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009443 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009444 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9445 $am_cv_proto_iconv" >&5
9446$as_echo "
9447 $am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009448
9449cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009450#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009451_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009452
Theodore Ts'o93613952014-07-03 23:44:13 -04009453
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009454 fi
9455
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009456
Theodore Ts'o93613952014-07-03 23:44:13 -04009457
9458
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009460/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009461int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009462int
9463main ()
9464{
Theodore Ts'o93613952014-07-03 23:44:13 -04009465
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009466 ;
9467 return 0;
9468}
9469_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009470if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04009471
9472$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9473
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009474fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009475rm -f core conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009477
Theodore Ts'o93613952014-07-03 23:44:13 -04009478 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9479do :
9480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9481ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9482if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9483 cat >>confdefs.h <<_ACEOF
9484#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009485_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04009486
9487fi
9488
9489done
9490
9491 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9492 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9493 argz_stringify argz_next __fsetlocking
9494do :
9495 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9496ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9497if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9498 cat >>confdefs.h <<_ACEOF
9499#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9500_ACEOF
9501
9502fi
9503done
9504
9505
9506 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9507"
9508if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9509 ac_have_decl=1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009510else
Theodore Ts'o93613952014-07-03 23:44:13 -04009511 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009512fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009513
9514cat >>confdefs.h <<_ACEOF
9515#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9516_ACEOF
9517ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9518"
9519if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9520 ac_have_decl=1
9521else
9522 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009523fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009524
Theodore Ts'o93613952014-07-03 23:44:13 -04009525cat >>confdefs.h <<_ACEOF
9526#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9527_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009528
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009529
Theodore Ts'o93613952014-07-03 23:44:13 -04009530
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009531
9532 for ac_prog in bison
9533do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009534 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009535set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009537$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009538if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009539 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009540else
9541 if test -n "$INTLBISON"; then
9542 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9543else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545for as_dir in $PATH
9546do
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009549 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009551 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009553 break 2
9554 fi
9555done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009556 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009557IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009558
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009559fi
9560fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009561INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009562if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009564$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009565else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009567$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009568fi
9569
Theodore Ts'oe1052142006-10-21 21:46:47 -04009570
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009571 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009572done
9573
9574 if test -z "$INTLBISON"; then
9575 ac_verc_fail=yes
9576 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009578$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009579 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9580 case $ac_prog_version in
9581 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9582 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9583 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9584 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9585 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009587$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009588 fi
9589 if test $ac_verc_fail = yes; then
9590 INTLBISON=:
9591 fi
9592
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009593
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009594
Theodore Ts'o93613952014-07-03 23:44:13 -04009595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9596$as_echo_n "checking for long long int... " >&6; }
9597if ${ac_cv_type_long_long_int+:} false; then :
9598 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009599else
Theodore Ts'o93613952014-07-03 23:44:13 -04009600 ac_cv_type_long_long_int=yes
9601 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9602 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9603 if test $ac_cv_type_long_long_int = yes; then
9604 if test "$cross_compiling" = yes; then :
9605 :
9606else
9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608/* end confdefs.h. */
9609#include <limits.h>
9610 #ifndef LLONG_MAX
9611 # define HALF \
9612 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9613 # define LLONG_MAX (HALF - 1 + HALF)
9614 #endif
9615int
9616main ()
9617{
9618long long int n = 1;
9619 int i;
9620 for (i = 0; ; i++)
9621 {
9622 long long int m = n << i;
9623 if (m >> i != n)
9624 return 1;
9625 if (LLONG_MAX / 2 < m)
9626 break;
9627 }
9628 return 0;
9629 ;
9630 return 0;
9631}
9632_ACEOF
9633if ac_fn_c_try_run "$LINENO"; then :
9634
9635else
9636 ac_cv_type_long_long_int=no
9637fi
9638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9639 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009640fi
9641
Theodore Ts'o93613952014-07-03 23:44:13 -04009642 fi
9643 fi
9644fi
9645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9646$as_echo "$ac_cv_type_long_long_int" >&6; }
9647 if test $ac_cv_type_long_long_int = yes; then
9648
9649$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9650
9651 fi
9652
9653
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9655$as_echo_n "checking for wchar_t... " >&6; }
9656if ${gt_cv_c_wchar_t+:} false; then :
9657 $as_echo_n "(cached) " >&6
9658else
9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660/* end confdefs.h. */
9661#include <stddef.h>
9662 wchar_t foo = (wchar_t)'\0';
9663int
9664main ()
9665{
9666
9667 ;
9668 return 0;
9669}
9670_ACEOF
9671if ac_fn_c_try_compile "$LINENO"; then :
9672 gt_cv_c_wchar_t=yes
9673else
9674 gt_cv_c_wchar_t=no
9675fi
9676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9677fi
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9679$as_echo "$gt_cv_c_wchar_t" >&6; }
9680 if test $gt_cv_c_wchar_t = yes; then
9681
9682$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9683
9684 fi
9685
9686
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9688$as_echo_n "checking for wint_t... " >&6; }
9689if ${gt_cv_c_wint_t+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691else
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693/* end confdefs.h. */
9694
9695/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9696 <wchar.h>.
9697 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9698 before <wchar.h>. */
9699#include <stddef.h>
9700#include <stdio.h>
9701#include <time.h>
9702#include <wchar.h>
9703 wint_t foo = (wchar_t)'\0';
9704int
9705main ()
9706{
9707
9708 ;
9709 return 0;
9710}
9711_ACEOF
9712if ac_fn_c_try_compile "$LINENO"; then :
9713 gt_cv_c_wint_t=yes
9714else
9715 gt_cv_c_wint_t=no
9716fi
9717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9718fi
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9720$as_echo "$gt_cv_c_wint_t" >&6; }
9721 if test $gt_cv_c_wint_t = yes; then
9722
9723$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9724
9725 fi
9726
9727
9728
9729
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9731$as_echo_n "checking for intmax_t... " >&6; }
9732if ${gt_cv_c_intmax_t+:} false; then :
9733 $as_echo_n "(cached) " >&6
9734else
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736/* end confdefs.h. */
9737
9738#include <stddef.h>
9739#include <stdlib.h>
9740#if HAVE_STDINT_H_WITH_UINTMAX
9741#include <stdint.h>
9742#endif
9743#if HAVE_INTTYPES_H_WITH_UINTMAX
9744#include <inttypes.h>
9745#endif
9746
9747int
9748main ()
9749{
9750intmax_t x = -1;
9751 return !x;
9752 ;
9753 return 0;
9754}
9755_ACEOF
9756if ac_fn_c_try_compile "$LINENO"; then :
9757 gt_cv_c_intmax_t=yes
9758else
9759 gt_cv_c_intmax_t=no
9760fi
9761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9762fi
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9764$as_echo "$gt_cv_c_intmax_t" >&6; }
9765 if test $gt_cv_c_intmax_t = yes; then
9766
9767$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9768
9769 fi
9770
9771
9772
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9774$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9775if ${gt_cv_func_printf_posix+:} false; then :
9776 $as_echo_n "(cached) " >&6
9777else
9778
9779 if test "$cross_compiling" = yes; then :
9780
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782/* end confdefs.h. */
9783
9784#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9785 notposix
9786#endif
9787
9788_ACEOF
9789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9790 $EGREP "notposix" >/dev/null 2>&1; then :
9791 gt_cv_func_printf_posix="guessing no"
9792else
9793 gt_cv_func_printf_posix="guessing yes"
9794fi
9795rm -f conftest*
9796
9797
9798else
9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800/* end confdefs.h. */
9801
9802#include <stdio.h>
9803#include <string.h>
9804/* The string "%2$d %1$d", with dollar characters protected from the shell's
9805 dollar expansion (possibly an autoconf bug). */
9806static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9807static char buf[100];
9808int main ()
9809{
9810 sprintf (buf, format, 33, 55);
9811 return (strcmp (buf, "55 33") != 0);
9812}
9813_ACEOF
9814if ac_fn_c_try_run "$LINENO"; then :
9815 gt_cv_func_printf_posix=yes
9816else
9817 gt_cv_func_printf_posix=no
9818fi
9819rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9820 conftest.$ac_objext conftest.beam conftest.$ac_ext
9821fi
9822
9823
9824fi
9825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9826$as_echo "$gt_cv_func_printf_posix" >&6; }
9827 case $gt_cv_func_printf_posix in
9828 *yes)
9829
9830$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9831
9832 ;;
9833 esac
9834
9835
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9837$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9838if ${ac_cv_gnu_library_2_1+:} false; then :
9839 $as_echo_n "(cached) " >&6
9840else
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842/* end confdefs.h. */
9843
9844#include <features.h>
9845#ifdef __GNU_LIBRARY__
9846 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9847 Lucky GNU user
9848 #endif
9849#endif
9850#ifdef __UCLIBC__
9851 Lucky user
9852#endif
9853
9854_ACEOF
9855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9856 $EGREP "Lucky" >/dev/null 2>&1; then :
9857 ac_cv_gnu_library_2_1=yes
9858else
9859 ac_cv_gnu_library_2_1=no
9860fi
9861rm -f conftest*
9862
9863
9864
9865fi
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9867$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9868
9869 GLIBC21="$ac_cv_gnu_library_2_1"
9870
9871
9872
9873 for ac_header in stdint.h
9874do :
9875 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9876if test "x$ac_cv_header_stdint_h" = xyes; then :
9877 cat >>confdefs.h <<_ACEOF
9878#define HAVE_STDINT_H 1
9879_ACEOF
9880
9881fi
9882
9883done
9884
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9886$as_echo_n "checking for SIZE_MAX... " >&6; }
9887if ${gl_cv_size_max+:} false; then :
9888 $as_echo_n "(cached) " >&6
9889else
9890
9891 gl_cv_size_max=
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893/* end confdefs.h. */
9894
9895#include <limits.h>
9896#if HAVE_STDINT_H
9897#include <stdint.h>
9898#endif
9899#ifdef SIZE_MAX
9900Found it
9901#endif
9902
9903_ACEOF
9904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9905 $EGREP "Found it" >/dev/null 2>&1; then :
9906 gl_cv_size_max=yes
9907fi
9908rm -f conftest*
9909
9910 if test -z "$gl_cv_size_max"; then
9911 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9912#include <limits.h>"; then :
9913
9914else
9915 size_t_bits_minus_1=
9916fi
9917
9918 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9919
9920else
9921 fits_in_uint=
9922fi
9923
9924 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9925 if test $fits_in_uint = 1; then
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927/* end confdefs.h. */
9928#include <stddef.h>
9929 extern size_t foo;
9930 extern unsigned long foo;
9931
9932int
9933main ()
9934{
9935
9936 ;
9937 return 0;
9938}
9939_ACEOF
9940if ac_fn_c_try_compile "$LINENO"; then :
9941 fits_in_uint=0
9942fi
9943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9944 fi
9945 if test $fits_in_uint = 1; then
9946 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9947 else
9948 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9949 fi
9950 else
9951 gl_cv_size_max='((size_t)~(size_t)0)'
9952 fi
9953 fi
9954
9955fi
9956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
9957$as_echo "$gl_cv_size_max" >&6; }
9958 if test "$gl_cv_size_max" != yes; then
9959
9960cat >>confdefs.h <<_ACEOF
9961#define SIZE_MAX $gl_cv_size_max
9962_ACEOF
9963
9964 fi
9965
9966
9967
9968
9969 for ac_header in stdint.h
9970do :
9971 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9972if test "x$ac_cv_header_stdint_h" = xyes; then :
9973 cat >>confdefs.h <<_ACEOF
9974#define HAVE_STDINT_H 1
9975_ACEOF
9976
9977fi
9978
9979done
9980
9981
9982
9983
9984
9985 for ac_func in $ac_func_list
9986do :
9987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9988ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9989if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9990 cat >>confdefs.h <<_ACEOF
9991#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9992_ACEOF
9993
9994fi
9995done
9996
9997
9998
9999
10000
10001
10002
10003
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10005$as_echo_n "checking for working fcntl.h... " >&6; }
10006if ${gl_cv_header_working_fcntl_h+:} false; then :
10007 $as_echo_n "(cached) " >&6
10008else
10009 if test "$cross_compiling" = yes; then :
10010 gl_cv_header_working_fcntl_h=cross-compiling
10011else
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013/* end confdefs.h. */
10014#include <sys/types.h>
10015 #include <sys/stat.h>
10016 #if HAVE_UNISTD_H
10017 # include <unistd.h>
10018 #else /* on Windows with MSVC */
10019 # include <io.h>
10020 # include <stdlib.h>
10021 # defined sleep(n) _sleep ((n) * 1000)
10022 #endif
10023 #include <fcntl.h>
10024 #ifndef O_NOATIME
10025 #define O_NOATIME 0
10026 #endif
10027 #ifndef O_NOFOLLOW
10028 #define O_NOFOLLOW 0
10029 #endif
10030 static int const constants[] =
10031 {
10032 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10033 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10034 };
10035
10036int
10037main ()
10038{
10039
10040 int result = !constants;
10041 #if HAVE_SYMLINK
10042 {
10043 static char const sym[] = "conftest.sym";
10044 if (symlink ("/dev/null", sym) != 0)
10045 result |= 2;
10046 else
10047 {
10048 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10049 if (fd >= 0)
10050 {
10051 close (fd);
10052 result |= 4;
10053 }
10054 }
10055 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10056 result |= 2;
10057 else
10058 {
10059 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10060 if (fd >= 0)
10061 {
10062 close (fd);
10063 result |= 4;
10064 }
10065 }
10066 unlink (sym);
10067 }
10068 #endif
10069 {
10070 static char const file[] = "confdefs.h";
10071 int fd = open (file, O_RDONLY | O_NOATIME);
10072 if (fd < 0)
10073 result |= 8;
10074 else
10075 {
10076 struct stat st0;
10077 if (fstat (fd, &st0) != 0)
10078 result |= 16;
10079 else
10080 {
10081 char c;
10082 sleep (1);
10083 if (read (fd, &c, 1) != 1)
10084 result |= 24;
10085 else
10086 {
10087 if (close (fd) != 0)
10088 result |= 32;
10089 else
10090 {
10091 struct stat st1;
10092 if (stat (file, &st1) != 0)
10093 result |= 40;
10094 else
10095 if (st0.st_atime != st1.st_atime)
10096 result |= 64;
10097 }
10098 }
10099 }
10100 }
10101 }
10102 return result;
10103 ;
10104 return 0;
10105}
10106_ACEOF
10107if ac_fn_c_try_run "$LINENO"; then :
10108 gl_cv_header_working_fcntl_h=yes
10109else
10110 case $? in #(
10111 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10112 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10113 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10114 *) gl_cv_header_working_fcntl_h='no';;
10115 esac
10116fi
10117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10118 conftest.$ac_objext conftest.beam conftest.$ac_ext
10119fi
10120
10121fi
10122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10123$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10124
10125 case $gl_cv_header_working_fcntl_h in #(
10126 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10127 *) ac_val=1;;
10128 esac
10129
10130cat >>confdefs.h <<_ACEOF
10131#define HAVE_WORKING_O_NOATIME $ac_val
10132_ACEOF
10133
10134
10135 case $gl_cv_header_working_fcntl_h in #(
10136 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10137 *) ac_val=1;;
10138 esac
10139
10140cat >>confdefs.h <<_ACEOF
10141#define HAVE_WORKING_O_NOFOLLOW $ac_val
10142_ACEOF
10143
10144
10145
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10147$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10148if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150else
10151 gt_save_LIBS="$LIBS"
10152 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154/* end confdefs.h. */
10155#include <CoreFoundation/CFPreferences.h>
10156int
10157main ()
10158{
10159CFPreferencesCopyAppValue(NULL, NULL)
10160 ;
10161 return 0;
10162}
10163_ACEOF
10164if ac_fn_c_try_link "$LINENO"; then :
10165 gt_cv_func_CFPreferencesCopyAppValue=yes
10166else
10167 gt_cv_func_CFPreferencesCopyAppValue=no
10168fi
10169rm -f core conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171 LIBS="$gt_save_LIBS"
10172fi
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10174$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10175 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10176
10177$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10178
10179 fi
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10181$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10182if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10183 $as_echo_n "(cached) " >&6
10184else
10185 gt_save_LIBS="$LIBS"
10186 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188/* end confdefs.h. */
10189#include <CoreFoundation/CFLocale.h>
10190int
10191main ()
10192{
10193CFLocaleCopyCurrent();
10194 ;
10195 return 0;
10196}
10197_ACEOF
10198if ac_fn_c_try_link "$LINENO"; then :
10199 gt_cv_func_CFLocaleCopyCurrent=yes
10200else
10201 gt_cv_func_CFLocaleCopyCurrent=no
10202fi
10203rm -f core conftest.err conftest.$ac_objext \
10204 conftest$ac_exeext conftest.$ac_ext
10205 LIBS="$gt_save_LIBS"
10206fi
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10208$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10209 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10210
10211$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10212
10213 fi
10214 INTL_MACOSX_LIBS=
10215 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10216 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10217 fi
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228 case "$enable_silent_rules" in
10229 yes) INTL_DEFAULT_VERBOSITY=0;;
10230 no) INTL_DEFAULT_VERBOSITY=1;;
10231 *) INTL_DEFAULT_VERBOSITY=1;;
10232 esac
10233
10234
10235 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10236if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10237
10238else
10239
10240$as_echo "#define ptrdiff_t long" >>confdefs.h
10241
10242
10243fi
10244
10245 for ac_header in features.h stddef.h stdlib.h string.h
10246do :
10247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10248ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10249if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10250 cat >>confdefs.h <<_ACEOF
10251#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10252_ACEOF
10253
10254fi
10255
10256done
10257
10258 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10259 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10260do :
10261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10262ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10263if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10264 cat >>confdefs.h <<_ACEOF
10265#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10266_ACEOF
10267
10268fi
10269done
10270
10271
10272 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10273"
10274if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10275 ac_have_decl=1
10276else
10277 ac_have_decl=0
10278fi
10279
10280cat >>confdefs.h <<_ACEOF
10281#define HAVE_DECL__SNPRINTF $ac_have_decl
10282_ACEOF
10283ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10284"
10285if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10286 ac_have_decl=1
10287else
10288 ac_have_decl=0
10289fi
10290
10291cat >>confdefs.h <<_ACEOF
10292#define HAVE_DECL__SNWPRINTF $ac_have_decl
10293_ACEOF
10294
10295
10296 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10297"
10298if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10299 ac_have_decl=1
10300else
10301 ac_have_decl=0
10302fi
10303
10304cat >>confdefs.h <<_ACEOF
10305#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10306_ACEOF
10307
10308
10309 case $gt_cv_func_printf_posix in
10310 *yes) HAVE_POSIX_PRINTF=1 ;;
10311 *) HAVE_POSIX_PRINTF=0 ;;
10312 esac
10313
10314 if test "$ac_cv_func_asprintf" = yes; then
10315 HAVE_ASPRINTF=1
10316 else
10317 HAVE_ASPRINTF=0
10318 fi
10319
10320 if test "$ac_cv_func_snprintf" = yes; then
10321 HAVE_SNPRINTF=1
10322 else
10323 HAVE_SNPRINTF=0
10324 fi
10325
10326 if test "$ac_cv_func_newlocale" = yes; then
10327 HAVE_NEWLOCALE=1
10328 else
10329 HAVE_NEWLOCALE=0
10330 fi
10331
10332 if test "$ac_cv_func_wprintf" = yes; then
10333 HAVE_WPRINTF=1
10334 else
10335 HAVE_WPRINTF=0
10336 fi
10337
10338
10339
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10341$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10342if ${am_cv_langinfo_codeset+:} false; then :
10343 $as_echo_n "(cached) " >&6
10344else
10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346/* end confdefs.h. */
10347#include <langinfo.h>
10348int
10349main ()
10350{
10351char* cs = nl_langinfo(CODESET); return !cs;
10352 ;
10353 return 0;
10354}
10355_ACEOF
10356if ac_fn_c_try_link "$LINENO"; then :
10357 am_cv_langinfo_codeset=yes
10358else
10359 am_cv_langinfo_codeset=no
10360fi
10361rm -f core conftest.err conftest.$ac_objext \
10362 conftest$ac_exeext conftest.$ac_ext
10363
10364fi
10365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10366$as_echo "$am_cv_langinfo_codeset" >&6; }
10367 if test $am_cv_langinfo_codeset = yes; then
10368
10369$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10370
10371 fi
10372
10373
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10375$as_echo_n "checking for LC_MESSAGES... " >&6; }
10376if ${gt_cv_val_LC_MESSAGES+:} false; then :
10377 $as_echo_n "(cached) " >&6
10378else
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380/* end confdefs.h. */
10381#include <locale.h>
10382int
10383main ()
10384{
10385return LC_MESSAGES
10386 ;
10387 return 0;
10388}
10389_ACEOF
10390if ac_fn_c_try_link "$LINENO"; then :
10391 gt_cv_val_LC_MESSAGES=yes
10392else
10393 gt_cv_val_LC_MESSAGES=no
10394fi
10395rm -f core conftest.err conftest.$ac_objext \
10396 conftest$ac_exeext conftest.$ac_ext
10397fi
10398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10399$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10400 if test $gt_cv_val_LC_MESSAGES = yes; then
10401
10402$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10403
10404 fi
10405
10406
10407 if test "$enable_shared" = yes; then
10408 case "$host_os" in
10409 mingw* | cygwin*) is_woe32dll=yes ;;
10410 *) is_woe32dll=no ;;
10411 esac
10412 else
10413 is_woe32dll=no
10414 fi
10415 WOE32DLL=$is_woe32dll
10416
10417
10418 case "$host_os" in
10419 mingw* | cygwin*) is_woe32=yes ;;
10420 *) is_woe32=no ;;
10421 esac
10422 WOE32=$is_woe32
10423
10424 if test $WOE32 = yes; then
10425 if test -n "$ac_tool_prefix"; then
10426 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10427set dummy ${ac_tool_prefix}windres; ac_word=$2
10428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429$as_echo_n "checking for $ac_word... " >&6; }
10430if ${ac_cv_prog_WINDRES+:} false; then :
10431 $as_echo_n "(cached) " >&6
10432else
10433 if test -n "$WINDRES"; then
10434 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10435else
10436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437for as_dir in $PATH
10438do
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10443 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10446 fi
10447done
10448 done
10449IFS=$as_save_IFS
10450
10451fi
10452fi
10453WINDRES=$ac_cv_prog_WINDRES
10454if test -n "$WINDRES"; then
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10456$as_echo "$WINDRES" >&6; }
10457else
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459$as_echo "no" >&6; }
10460fi
10461
10462
10463fi
10464if test -z "$ac_cv_prog_WINDRES"; then
10465 ac_ct_WINDRES=$WINDRES
10466 # Extract the first word of "windres", so it can be a program name with args.
10467set dummy windres; ac_word=$2
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10469$as_echo_n "checking for $ac_word... " >&6; }
10470if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10471 $as_echo_n "(cached) " >&6
10472else
10473 if test -n "$ac_ct_WINDRES"; then
10474 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10475else
10476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10477for as_dir in $PATH
10478do
10479 IFS=$as_save_IFS
10480 test -z "$as_dir" && as_dir=.
10481 for ac_exec_ext in '' $ac_executable_extensions; do
10482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10483 ac_cv_prog_ac_ct_WINDRES="windres"
10484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10485 break 2
10486 fi
10487done
10488 done
10489IFS=$as_save_IFS
10490
10491fi
10492fi
10493ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10494if test -n "$ac_ct_WINDRES"; then
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10496$as_echo "$ac_ct_WINDRES" >&6; }
10497else
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499$as_echo "no" >&6; }
10500fi
10501
10502 if test "x$ac_ct_WINDRES" = x; then
10503 WINDRES=""
10504 else
10505 case $cross_compiling:$ac_tool_warned in
10506yes:)
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10509ac_tool_warned=yes ;;
10510esac
10511 WINDRES=$ac_ct_WINDRES
10512 fi
10513else
10514 WINDRES="$ac_cv_prog_WINDRES"
10515fi
10516
10517 fi
10518
10519 case "$host_os" in
10520 hpux*) LTLIBC="" ;;
10521 *) LTLIBC="-lc" ;;
10522 esac
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10551$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10552if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10553 $as_echo_n "(cached) " >&6
10554else
10555 gt_save_LIBS="$LIBS"
10556 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558/* end confdefs.h. */
10559#include <CoreFoundation/CFPreferences.h>
10560int
10561main ()
10562{
10563CFPreferencesCopyAppValue(NULL, NULL)
10564 ;
10565 return 0;
10566}
10567_ACEOF
10568if ac_fn_c_try_link "$LINENO"; then :
10569 gt_cv_func_CFPreferencesCopyAppValue=yes
10570else
10571 gt_cv_func_CFPreferencesCopyAppValue=no
10572fi
10573rm -f core conftest.err conftest.$ac_objext \
10574 conftest$ac_exeext conftest.$ac_ext
10575 LIBS="$gt_save_LIBS"
10576fi
10577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10578$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10579 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10580
10581$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10582
10583 fi
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10585$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10586if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588else
10589 gt_save_LIBS="$LIBS"
10590 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592/* end confdefs.h. */
10593#include <CoreFoundation/CFLocale.h>
10594int
10595main ()
10596{
10597CFLocaleCopyCurrent();
10598 ;
10599 return 0;
10600}
10601_ACEOF
10602if ac_fn_c_try_link "$LINENO"; then :
10603 gt_cv_func_CFLocaleCopyCurrent=yes
10604else
10605 gt_cv_func_CFLocaleCopyCurrent=no
10606fi
10607rm -f core conftest.err conftest.$ac_objext \
10608 conftest$ac_exeext conftest.$ac_ext
10609 LIBS="$gt_save_LIBS"
10610fi
10611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10612$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10613 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10614
10615$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10616
10617 fi
10618 INTL_MACOSX_LIBS=
10619 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10620 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10621 fi
10622
10623
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010624
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010625
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010626
10627
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010628 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010629 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010630
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010631 LIBINTL=
10632 LTLIBINTL=
10633 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010634
Theodore Ts'o93613952014-07-03 23:44:13 -040010635 case " $gt_needs " in
10636 *" need-formatstring-macros "*) gt_api_version=3 ;;
10637 *" need-ngettext "*) gt_api_version=2 ;;
10638 *) gt_api_version=1 ;;
10639 esac
10640 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10641 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10642
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010643 if test "$USE_NLS" = "yes"; then
10644 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010645
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010647$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010648
Theodore Ts'oe1052142006-10-21 21:46:47 -040010649# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010650if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010651 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010652else
10653 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010654fi
10655
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010657$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010658
10659 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10660 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010661
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010662
Theodore Ts'o93613952014-07-03 23:44:13 -040010663 if test $gt_api_version -ge 3; then
10664 gt_revision_test_code='
10665#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10666#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10667#endif
10668typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10669'
10670 else
10671 gt_revision_test_code=
10672 fi
10673 if test $gt_api_version -ge 2; then
10674 gt_expression_test_code=' + * ngettext ("", "", 0)'
10675 else
10676 gt_expression_test_code=
10677 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010678
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010680$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040010681if eval \${$gt_func_gnugettext_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010682 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010683else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010685/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040010686
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010687#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040010688$gt_revision_test_code
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010689extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010690extern int *_nl_domain_bindings;
Theodore Ts'o93613952014-07-03 23:44:13 -040010691
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010692int
10693main ()
10694{
Theodore Ts'o93613952014-07-03 23:44:13 -040010695
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010696bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040010697return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10698
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010699 ;
10700 return 0;
10701}
10702_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010703if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040010704 eval "$gt_func_gnugettext_libc=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010705else
Theodore Ts'o93613952014-07-03 23:44:13 -040010706 eval "$gt_func_gnugettext_libc=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010707fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010708rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010710fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010711eval ac_res=\$$gt_func_gnugettext_libc
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10713$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010714
Theodore Ts'o93613952014-07-03 23:44:13 -040010715 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10716
10717
10718
10719
10720
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010721
10722
10723
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010724 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010725
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010726 acl_save_prefix="$prefix"
10727 prefix="$acl_final_prefix"
10728 acl_save_exec_prefix="$exec_prefix"
10729 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010730
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010731 eval additional_includedir=\"$includedir\"
10732 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010733
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010734 exec_prefix="$acl_save_exec_prefix"
10735 prefix="$acl_save_prefix"
10736
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010737
Theodore Ts'oe1052142006-10-21 21:46:47 -040010738# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010739if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010740 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010741 if test "X$withval" = "Xno"; then
10742 use_additional=no
10743 else
10744 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010745
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010746 acl_save_prefix="$prefix"
10747 prefix="$acl_final_prefix"
10748 acl_save_exec_prefix="$exec_prefix"
10749 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010750
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010751 eval additional_includedir=\"$includedir\"
10752 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010753
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010754 exec_prefix="$acl_save_exec_prefix"
10755 prefix="$acl_save_prefix"
10756
10757 else
10758 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -040010759 additional_libdir="$withval/$acl_libdirstem"
10760 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10761 && ! test -d "$withval/$acl_libdirstem"; then
10762 additional_libdir="$withval/$acl_libdirstem2"
10763 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010764 fi
10765 fi
10766
Theodore Ts'oe1052142006-10-21 21:46:47 -040010767fi
10768
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010769 LIBINTL=
10770 LTLIBINTL=
10771 INCINTL=
Theodore Ts'o93613952014-07-03 23:44:13 -040010772 LIBINTL_PREFIX=
10773 HAVE_LIBINTL=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010774 rpathdirs=
10775 ltrpathdirs=
10776 names_already_handled=
10777 names_next_round='intl '
10778 while test -n "$names_next_round"; do
10779 names_this_round="$names_next_round"
10780 names_next_round=
10781 for name in $names_this_round; do
10782 already_handled=
10783 for n in $names_already_handled; do
10784 if test "$n" = "$name"; then
10785 already_handled=yes
10786 break
10787 fi
10788 done
10789 if test -z "$already_handled"; then
10790 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -040010791 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010792 eval value=\"\$HAVE_LIB$uppername\"
10793 if test -n "$value"; then
10794 if test "$value" = yes; then
10795 eval value=\"\$LIB$uppername\"
10796 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10797 eval value=\"\$LTLIB$uppername\"
10798 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10799 else
10800 :
10801 fi
10802 else
10803 found_dir=
10804 found_la=
10805 found_so=
10806 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -040010807 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10808 if test -n "$acl_shlibext"; then
10809 shrext=".$acl_shlibext" # typically: shrext=.so
10810 else
10811 shrext=
10812 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010813 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010814 dir="$additional_libdir"
10815 if test -n "$acl_shlibext"; then
10816 if test -f "$dir/$libname$shrext"; then
10817 found_dir="$dir"
10818 found_so="$dir/$libname$shrext"
10819 else
10820 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10821 ver=`(cd "$dir" && \
10822 for f in "$libname$shrext".*; do echo "$f"; done \
10823 | sed -e "s,^$libname$shrext\\\\.,," \
10824 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10825 | sed 1q ) 2>/dev/null`
10826 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10827 found_dir="$dir"
10828 found_so="$dir/$libname$shrext.$ver"
10829 fi
10830 else
10831 eval library_names=\"$acl_library_names_spec\"
10832 for f in $library_names; do
10833 if test -f "$dir/$f"; then
10834 found_dir="$dir"
10835 found_so="$dir/$f"
10836 break
10837 fi
10838 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010839 fi
10840 fi
10841 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010842 if test "X$found_dir" = "X"; then
10843 if test -f "$dir/$libname.$acl_libext"; then
10844 found_dir="$dir"
10845 found_a="$dir/$libname.$acl_libext"
10846 fi
10847 fi
10848 if test "X$found_dir" != "X"; then
10849 if test -f "$dir/$libname.la"; then
10850 found_la="$dir/$libname.la"
10851 fi
10852 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010853 fi
10854 if test "X$found_dir" = "X"; then
10855 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010856
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010857 acl_save_prefix="$prefix"
10858 prefix="$acl_final_prefix"
10859 acl_save_exec_prefix="$exec_prefix"
10860 exec_prefix="$acl_final_exec_prefix"
10861 eval x=\"$x\"
10862 exec_prefix="$acl_save_exec_prefix"
10863 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010864
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010865 case "$x" in
10866 -L*)
10867 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040010868 if test -n "$acl_shlibext"; then
10869 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010870 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040010871 found_so="$dir/$libname$shrext"
10872 else
10873 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10874 ver=`(cd "$dir" && \
10875 for f in "$libname$shrext".*; do echo "$f"; done \
10876 | sed -e "s,^$libname$shrext\\\\.,," \
10877 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10878 | sed 1q ) 2>/dev/null`
10879 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10880 found_dir="$dir"
10881 found_so="$dir/$libname$shrext.$ver"
10882 fi
10883 else
10884 eval library_names=\"$acl_library_names_spec\"
10885 for f in $library_names; do
10886 if test -f "$dir/$f"; then
10887 found_dir="$dir"
10888 found_so="$dir/$f"
10889 break
10890 fi
10891 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010892 fi
10893 fi
10894 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010895 if test "X$found_dir" = "X"; then
10896 if test -f "$dir/$libname.$acl_libext"; then
10897 found_dir="$dir"
10898 found_a="$dir/$libname.$acl_libext"
10899 fi
10900 fi
10901 if test "X$found_dir" != "X"; then
10902 if test -f "$dir/$libname.la"; then
10903 found_la="$dir/$libname.la"
10904 fi
10905 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010906 ;;
10907 esac
10908 if test "X$found_dir" != "X"; then
10909 break
10910 fi
10911 done
10912 fi
10913 if test "X$found_dir" != "X"; then
10914 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10915 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010916 if test "$enable_rpath" = no \
10917 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10918 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010919 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10920 else
10921 haveit=
10922 for x in $ltrpathdirs; do
10923 if test "X$x" = "X$found_dir"; then
10924 haveit=yes
10925 break
10926 fi
10927 done
10928 if test -z "$haveit"; then
10929 ltrpathdirs="$ltrpathdirs $found_dir"
10930 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010931 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010932 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10933 else
Theodore Ts'o93613952014-07-03 23:44:13 -040010934 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010935 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10936 haveit=
10937 for x in $rpathdirs; do
10938 if test "X$x" = "X$found_dir"; then
10939 haveit=yes
10940 break
10941 fi
10942 done
10943 if test -z "$haveit"; then
10944 rpathdirs="$rpathdirs $found_dir"
10945 fi
10946 else
10947 haveit=
10948 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010949
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010950 acl_save_prefix="$prefix"
10951 prefix="$acl_final_prefix"
10952 acl_save_exec_prefix="$exec_prefix"
10953 exec_prefix="$acl_final_exec_prefix"
10954 eval x=\"$x\"
10955 exec_prefix="$acl_save_exec_prefix"
10956 prefix="$acl_save_prefix"
10957
10958 if test "X$x" = "X-L$found_dir"; then
10959 haveit=yes
10960 break
10961 fi
10962 done
10963 if test -z "$haveit"; then
10964 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10965 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010966 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010967 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10968 else
10969 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10970 fi
10971 fi
10972 fi
10973 fi
10974 else
10975 if test "X$found_a" != "X"; then
10976 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10977 else
10978 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10979 fi
10980 fi
10981 additional_includedir=
10982 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -040010983 */$acl_libdirstem | */$acl_libdirstem/)
10984 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10985 if test "$name" = 'intl'; then
10986 LIBINTL_PREFIX="$basedir"
10987 fi
10988 additional_includedir="$basedir/include"
10989 ;;
10990 */$acl_libdirstem2 | */$acl_libdirstem2/)
10991 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10992 if test "$name" = 'intl'; then
10993 LIBINTL_PREFIX="$basedir"
10994 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010995 additional_includedir="$basedir/include"
10996 ;;
10997 esac
10998 if test "X$additional_includedir" != "X"; then
10999 if test "X$additional_includedir" != "X/usr/include"; then
11000 haveit=
11001 if test "X$additional_includedir" = "X/usr/local/include"; then
11002 if test -n "$GCC"; then
11003 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011004 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011005 esac
11006 fi
11007 fi
11008 if test -z "$haveit"; then
11009 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011010
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011011 acl_save_prefix="$prefix"
11012 prefix="$acl_final_prefix"
11013 acl_save_exec_prefix="$exec_prefix"
11014 exec_prefix="$acl_final_exec_prefix"
11015 eval x=\"$x\"
11016 exec_prefix="$acl_save_exec_prefix"
11017 prefix="$acl_save_prefix"
11018
11019 if test "X$x" = "X-I$additional_includedir"; then
11020 haveit=yes
11021 break
11022 fi
11023 done
11024 if test -z "$haveit"; then
11025 if test -d "$additional_includedir"; then
11026 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11027 fi
11028 fi
11029 fi
11030 fi
11031 fi
11032 if test -n "$found_la"; then
11033 save_libdir="$libdir"
11034 case "$found_la" in
11035 */* | *\\*) . "$found_la" ;;
11036 *) . "./$found_la" ;;
11037 esac
11038 libdir="$save_libdir"
11039 for dep in $dependency_libs; do
11040 case "$dep" in
11041 -L*)
11042 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040011043 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11044 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011045 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -040011046 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11047 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011048 if test -n "$GCC"; then
11049 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011050 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011051 esac
11052 fi
11053 fi
11054 if test -z "$haveit"; then
11055 haveit=
11056 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011057
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011058 acl_save_prefix="$prefix"
11059 prefix="$acl_final_prefix"
11060 acl_save_exec_prefix="$exec_prefix"
11061 exec_prefix="$acl_final_exec_prefix"
11062 eval x=\"$x\"
11063 exec_prefix="$acl_save_exec_prefix"
11064 prefix="$acl_save_prefix"
11065
11066 if test "X$x" = "X-L$additional_libdir"; then
11067 haveit=yes
11068 break
11069 fi
11070 done
11071 if test -z "$haveit"; then
11072 if test -d "$additional_libdir"; then
11073 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11074 fi
11075 fi
11076 haveit=
11077 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011078
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011079 acl_save_prefix="$prefix"
11080 prefix="$acl_final_prefix"
11081 acl_save_exec_prefix="$exec_prefix"
11082 exec_prefix="$acl_final_exec_prefix"
11083 eval x=\"$x\"
11084 exec_prefix="$acl_save_exec_prefix"
11085 prefix="$acl_save_prefix"
11086
11087 if test "X$x" = "X-L$additional_libdir"; then
11088 haveit=yes
11089 break
11090 fi
11091 done
11092 if test -z "$haveit"; then
11093 if test -d "$additional_libdir"; then
11094 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11095 fi
11096 fi
11097 fi
11098 fi
11099 ;;
11100 -R*)
11101 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11102 if test "$enable_rpath" != no; then
11103 haveit=
11104 for x in $rpathdirs; do
11105 if test "X$x" = "X$dir"; then
11106 haveit=yes
11107 break
11108 fi
11109 done
11110 if test -z "$haveit"; then
11111 rpathdirs="$rpathdirs $dir"
11112 fi
11113 haveit=
11114 for x in $ltrpathdirs; do
11115 if test "X$x" = "X$dir"; then
11116 haveit=yes
11117 break
11118 fi
11119 done
11120 if test -z "$haveit"; then
11121 ltrpathdirs="$ltrpathdirs $dir"
11122 fi
11123 fi
11124 ;;
11125 -l*)
11126 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11127 ;;
11128 *.la)
11129 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11130 ;;
11131 *)
11132 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11133 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11134 ;;
11135 esac
11136 done
11137 fi
11138 else
11139 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11140 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11141 fi
11142 fi
11143 fi
11144 done
11145 done
11146 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011147 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011148 alldirs=
11149 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -040011150 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011151 done
11152 acl_save_libdir="$libdir"
11153 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -040011154 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011155 libdir="$acl_save_libdir"
11156 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11157 else
11158 for found_dir in $rpathdirs; do
11159 acl_save_libdir="$libdir"
11160 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040011161 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011162 libdir="$acl_save_libdir"
11163 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11164 done
11165 fi
11166 fi
11167 if test "X$ltrpathdirs" != "X"; then
11168 for found_dir in $ltrpathdirs; do
11169 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11170 done
11171 fi
11172
Theodore Ts'o93613952014-07-03 23:44:13 -040011173
11174
11175
11176
11177
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011179$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040011180if eval \${$gt_func_gnugettext_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011181 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011182else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011183 gt_save_CPPFLAGS="$CPPFLAGS"
11184 CPPFLAGS="$CPPFLAGS $INCINTL"
11185 gt_save_LIBS="$LIBS"
11186 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011188/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011189
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011190#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011191$gt_revision_test_code
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011192extern int _nl_msg_cat_cntr;
11193extern
11194#ifdef __cplusplus
11195"C"
11196#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011197const char *_nl_expand_alias (const char *);
11198
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011199int
11200main ()
11201{
Theodore Ts'o93613952014-07-03 23:44:13 -040011202
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011203bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011204return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11205
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011206 ;
11207 return 0;
11208}
11209_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011210if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040011211 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011212else
Theodore Ts'o93613952014-07-03 23:44:13 -040011213 eval "$gt_func_gnugettext_libintl=no"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011214fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011215rm -f core conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -040011217 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011218 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011220/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011221
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011222#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011223$gt_revision_test_code
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011224extern int _nl_msg_cat_cntr;
11225extern
11226#ifdef __cplusplus
11227"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011228#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011229const char *_nl_expand_alias (const char *);
11230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011231int
11232main ()
11233{
Theodore Ts'o93613952014-07-03 23:44:13 -040011234
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011235bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011236return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11237
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011238 ;
11239 return 0;
11240}
11241_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011242if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011243 LIBINTL="$LIBINTL $LIBICONV"
Theodore Ts'o93613952014-07-03 23:44:13 -040011244 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11245 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011246
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011247fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011248rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011250 fi
11251 CPPFLAGS="$gt_save_CPPFLAGS"
11252 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011253fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011254eval ac_res=\$$gt_func_gnugettext_libintl
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11256$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011257 fi
11258
Theodore Ts'o93613952014-07-03 23:44:13 -040011259 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11260 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011261 && test "$PACKAGE" != gettext-runtime \
11262 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011263 gt_use_preinstalled_gnugettext=yes
11264 else
11265 LIBINTL=
11266 LTLIBINTL=
11267 INCINTL=
11268 fi
11269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011270
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011271 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11272 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011273 fi
11274 fi
11275
11276 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011277 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011278 USE_INCLUDED_LIBINTL=yes
Theodore Ts'o93613952014-07-03 23:44:13 -040011279 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11280 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011281 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011282 fi
11283
Theodore Ts'o93613952014-07-03 23:44:13 -040011284 CATOBJEXT=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011285 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11286 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11287 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011288 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011289
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011290
Theodore Ts'o93613952014-07-03 23:44:13 -040011291 if test -n "$INTL_MACOSX_LIBS"; then
11292 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11293 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11294 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11295 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11296 fi
11297 fi
11298
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011299 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11300 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011301
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011302$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011303
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011304 else
11305 USE_NLS=no
11306 fi
11307 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011308
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011310$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011312$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011313 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011315$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011316 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011317 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011318 gt_source="external libintl"
11319 else
11320 gt_source="libc"
11321 fi
11322 else
11323 gt_source="included intl directory"
11324 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011326$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011327 fi
11328
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011329 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011330
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011331 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011332 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011334$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011336$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011337
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011338 for element in $INCINTL; do
11339 haveit=
11340 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011341
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011342 acl_save_prefix="$prefix"
11343 prefix="$acl_final_prefix"
11344 acl_save_exec_prefix="$exec_prefix"
11345 exec_prefix="$acl_final_exec_prefix"
11346 eval x=\"$x\"
11347 exec_prefix="$acl_save_exec_prefix"
11348 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011349
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011350 if test "X$x" = "X$element"; then
11351 haveit=yes
11352 break
11353 fi
11354 done
11355 if test -z "$haveit"; then
11356 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11357 fi
11358 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011359
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011360 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011361
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011362
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011363$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011364
11365
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011366$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011367
11368 fi
11369
11370 POSUB=po
11371 fi
11372
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011373
11374 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011375 BUILD_INCLUDED_LIBINTL=yes
11376 fi
11377
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011378
11379
11380
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011381
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011382 nls_cv_header_intl=
11383 nls_cv_header_libgt=
11384
11385 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011386
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011387
11388 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011389
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011390
11391 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011392
11393
Theodore Ts'o93613952014-07-03 23:44:13 -040011394 INTLOBJS=
11395 if test "$USE_INCLUDED_LIBINTL" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011396 INTLOBJS="\$(GETTOBJS)"
11397 fi
11398
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011399
11400 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011401
11402
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011403
11404 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011405
11406
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011407
11408
11409
11410
11411
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011413$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11414set x ${MAKE-make}
11415ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011416if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011417 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011418else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011419 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011420SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011421all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011422 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011423_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011424# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011425case `${MAKE-make} -f conftest.make 2>/dev/null` in
11426 *@@@%%%=?*=@@@%%%*)
11427 eval ac_cv_prog_make_${ac_make}_set=yes;;
11428 *)
11429 eval ac_cv_prog_make_${ac_make}_set=no;;
11430esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011431rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011432fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011433if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011435$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011436 SET_MAKE=
11437else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011439$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011440 SET_MAKE="MAKE=${MAKE-make}"
11441fi
11442
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011444$as_echo_n "checking for GNU make... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011445if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011446 $as_echo_n "(cached) " >&6
11447else
11448 _cv_gnu_make_command='' ;
11449 for a in "$MAKE" make gmake gnumake ; do
11450 if test -z "$a" ; then continue ; fi ;
11451 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11452 _cv_gnu_make_command=$a ;
11453 break;
11454 fi
11455 done ;
11456
11457fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011459$as_echo "$_cv_gnu_make_command" >&6; } ;
11460 if test "x$_cv_gnu_make_command" != "x" ; then
11461 ifGNUmake='' ;
11462 ifNotGNUmake='#' ;
11463 else
11464 ifGNUmake='#' ;
11465 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011467$as_echo "\"Not found\"" >&6; };
11468 fi
11469
11470
11471
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011472# Extract the first word of "ln", so it can be a program name with args.
11473set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011475$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011476if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011477 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011478else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011479 case $LN in
11480 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011481 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11482 ;;
11483 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11485for as_dir in $PATH
11486do
11487 IFS=$as_save_IFS
11488 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011489 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011491 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011493 break 2
11494 fi
11495done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011496 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011497IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011498
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011499 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11500 ;;
11501esac
11502fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011503LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011504if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011506$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011507else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011509$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011510fi
11511
Theodore Ts'oe1052142006-10-21 21:46:47 -040011512
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011514$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011515LN_S=$as_ln_s
11516if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011518$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011519else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011521$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011522fi
11523
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011524# Extract the first word of "mv", so it can be a program name with args.
11525set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011527$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011528if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011529 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011530else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011531 case $MV in
11532 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011533 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11534 ;;
11535 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537for as_dir in $PATH
11538do
11539 IFS=$as_save_IFS
11540 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011541 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011543 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011545 break 2
11546 fi
11547done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011548 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011549IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011550
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011551 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11552 ;;
11553esac
11554fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011555MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011556if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011558$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011559else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011561$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011562fi
11563
Theodore Ts'oe1052142006-10-21 21:46:47 -040011564
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011565# Extract the first word of "cp", so it can be a program name with args.
11566set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011568$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011569if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011570 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011571else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011572 case $CP in
11573 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011574 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11575 ;;
11576 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578for as_dir in $PATH
11579do
11580 IFS=$as_save_IFS
11581 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011582 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011584 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011586 break 2
11587 fi
11588done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011589 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011590IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011591
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011592 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11593 ;;
11594esac
11595fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011596CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011597if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011599$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011600else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011602$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011603fi
11604
Theodore Ts'oe1052142006-10-21 21:46:47 -040011605
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011606# Extract the first word of "rm", so it can be a program name with args.
11607set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011609$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011610if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011611 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011612else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011613 case $RM in
11614 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011615 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11616 ;;
11617 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619for as_dir in $PATH
11620do
11621 IFS=$as_save_IFS
11622 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011623 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011625 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011627 break 2
11628 fi
11629done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011630 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011631IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011632
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011633 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11634 ;;
11635esac
11636fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011637RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011638if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011640$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011641else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011643$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011644fi
11645
Theodore Ts'oe1052142006-10-21 21:46:47 -040011646
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011647# Extract the first word of "chmod", so it can be a program name with args.
11648set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011650$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011651if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011652 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011653else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011654 case $CHMOD in
11655 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011656 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11657 ;;
11658 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660for as_dir in $PATH
11661do
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011664 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011666 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011668 break 2
11669 fi
11670done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011671 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011672IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011673
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011674 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11675 ;;
11676esac
11677fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011678CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011679if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011681$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011682else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011684$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011685fi
11686
Theodore Ts'oe1052142006-10-21 21:46:47 -040011687
Theodore Ts'o32237012005-01-17 19:13:39 -050011688for ac_prog in gawk mawk nawk awk
11689do
11690 # Extract the first word of "$ac_prog", so it can be a program name with args.
11691set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011693$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011694if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011695 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011696else
Theodore Ts'o32237012005-01-17 19:13:39 -050011697 if test -n "$AWK"; then
11698 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11699else
11700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011701for as_dir in $PATH
11702do
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011705 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011707 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011709 break 2
11710 fi
11711done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011712 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011713IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011714
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011715fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011716fi
11717AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011718if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011720$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011721else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011723$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011724fi
11725
Theodore Ts'oe1052142006-10-21 21:46:47 -040011726
Theodore Ts'o32237012005-01-17 19:13:39 -050011727 test -n "$AWK" && break
11728done
11729
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011731$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011732if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011733 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011734else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11736 then ac_cv_path_EGREP="$GREP -E"
11737 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011738 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011739 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011740 # Loop through the user's path and test for each of PROGNAME-LIST
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11743do
11744 IFS=$as_save_IFS
11745 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011746 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011747 for ac_exec_ext in '' $ac_executable_extensions; do
11748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011749 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011750# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011751 # Check for GNU $ac_path_EGREP
11752case `"$ac_path_EGREP" --version 2>&1` in
11753*GNU*)
11754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11755*)
11756 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011757 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011758 while :
11759 do
11760 cat "conftest.in" "conftest.in" >"conftest.tmp"
11761 mv "conftest.tmp" "conftest.in"
11762 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011763 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011766 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -040011767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11768 # Best one so far, save it but keep looking for a better one
11769 ac_cv_path_EGREP="$ac_path_EGREP"
11770 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011771 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011772 # 10*(2^10) chars as input seems more than enough
11773 test $ac_count -gt 10 && break
11774 done
11775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11776esac
11777
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011778 $ac_path_EGREP_found && break 3
11779 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011780 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011781 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011782IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011783 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011784 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 +010011785 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011786else
11787 ac_cv_path_EGREP=$EGREP
11788fi
11789
Theodore Ts'oe1052142006-10-21 21:46:47 -040011790 fi
11791fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011793$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011794 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011795
11796
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011797# Extract the first word of "sed", so it can be a program name with args.
11798set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011800$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011801if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011802 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011803else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011804 case $SED in
11805 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011806 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11807 ;;
11808 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11810for as_dir in $PATH
11811do
11812 IFS=$as_save_IFS
11813 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011814 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011816 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011818 break 2
11819 fi
11820done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011821 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011822IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011823
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011824 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11825 ;;
11826esac
11827fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011828SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011829if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011831$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011832else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011834$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011835fi
11836
Theodore Ts'oe1052142006-10-21 21:46:47 -040011837
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011838# Extract the first word of "perl", so it can be a program name with args.
11839set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011841$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011842if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011843 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011844else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011845 case $PERL in
11846 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011847 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11848 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011849 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851for as_dir in $PATH
11852do
11853 IFS=$as_save_IFS
11854 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011855 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011857 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011859 break 2
11860 fi
11861done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011862 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011863IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011864
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011865 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11866 ;;
11867esac
11868fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011869PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011870if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011872$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011873else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011875$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011876fi
11877
Theodore Ts'oe1052142006-10-21 21:46:47 -040011878
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011879# Extract the first word of "ldconfig", so it can be a program name with args.
11880set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011882$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011883if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011884 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011885else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011886 case $LDCONFIG in
11887 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011888 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11889 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011890 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892for as_dir in $PATH
11893do
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011896 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011898 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011900 break 2
11901 fi
11902done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011903 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011904IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011905
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011906 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11907 ;;
11908esac
11909fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011910LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011911if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011913$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011914else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011916$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011917fi
11918
Theodore Ts'oe1052142006-10-21 21:46:47 -040011919
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011920if test -n "$ac_tool_prefix"; then
11921 # 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 +000011922set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011924$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011925if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011926 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011927else
11928 if test -n "$AR"; then
11929 ac_cv_prog_AR="$AR" # Let the user override the test.
11930else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11932for as_dir in $PATH
11933do
11934 IFS=$as_save_IFS
11935 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011936 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011938 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011940 break 2
11941 fi
11942done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011943 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011944IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011945
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011946fi
11947fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011948AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011949if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011951$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011952else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011954$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011955fi
11956
Theodore Ts'oe1052142006-10-21 21:46:47 -040011957
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011958fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011959if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011960 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011961 # Extract the first word of "ar", so it can be a program name with args.
11962set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011964$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011965if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011966 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011967else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011968 if test -n "$ac_ct_AR"; then
11969 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011970else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972for as_dir in $PATH
11973do
11974 IFS=$as_save_IFS
11975 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011976 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011978 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011980 break 2
11981 fi
11982done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011983 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011984IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011985
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011986fi
11987fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011988ac_ct_AR=$ac_cv_prog_ac_ct_AR
11989if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011991$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011992else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011994$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011995fi
11996
Theodore Ts'oe1052142006-10-21 21:46:47 -040011997 if test "x$ac_ct_AR" = x; then
11998 AR="ar"
11999 else
12000 case $cross_compiling:$ac_tool_warned in
12001yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012002{ $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 +010012003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012004ac_tool_warned=yes ;;
12005esac
12006 AR=$ac_ct_AR
12007 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012008else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012009 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012010fi
12011
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012012if test -n "$ac_tool_prefix"; then
12013 # 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 +000012014set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012016$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012017if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012018 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012019else
12020 if test -n "$RANLIB"; then
12021 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12022else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024for as_dir in $PATH
12025do
12026 IFS=$as_save_IFS
12027 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012028 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012030 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012032 break 2
12033 fi
12034done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012035 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012036IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012037
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012038fi
12039fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012040RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012041if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012043$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012044else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012046$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012047fi
12048
Theodore Ts'oe1052142006-10-21 21:46:47 -040012049
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012050fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012051if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012052 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012053 # Extract the first word of "ranlib", so it can be a program name with args.
12054set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012056$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012057if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012058 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012059else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012060 if test -n "$ac_ct_RANLIB"; then
12061 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012062else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064for as_dir in $PATH
12065do
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012068 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012070 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012072 break 2
12073 fi
12074done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012075 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012076IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012077
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012078fi
12079fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012080ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12081if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012083$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012084else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012086$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012087fi
12088
Theodore Ts'oe1052142006-10-21 21:46:47 -040012089 if test "x$ac_ct_RANLIB" = x; then
12090 RANLIB=":"
12091 else
12092 case $cross_compiling:$ac_tool_warned in
12093yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012094{ $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 +010012095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012096ac_tool_warned=yes ;;
12097esac
12098 RANLIB=$ac_ct_RANLIB
12099 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012100else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012101 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012102fi
12103
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012104if test -n "$ac_tool_prefix"; then
12105 # 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 +000012106set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012108$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012109if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012110 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012111else
12112 if test -n "$STRIP"; then
12113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12114else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12116for as_dir in $PATH
12117do
12118 IFS=$as_save_IFS
12119 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012120 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012122 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012124 break 2
12125 fi
12126done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012127 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012128IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012129
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012130fi
12131fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012132STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012133if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012135$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012136else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012138$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012139fi
12140
Theodore Ts'oe1052142006-10-21 21:46:47 -040012141
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012142fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012143if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012144 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012145 # Extract the first word of "strip", so it can be a program name with args.
12146set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012148$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012149if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012150 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012151else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012152 if test -n "$ac_ct_STRIP"; then
12153 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012154else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156for as_dir in $PATH
12157do
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012160 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012162 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012164 break 2
12165 fi
12166done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012167 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012168IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012169
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012170fi
12171fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012172ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12173if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012175$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012176else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012178$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012179fi
12180
Theodore Ts'oe1052142006-10-21 21:46:47 -040012181 if test "x$ac_ct_STRIP" = x; then
12182 STRIP=":"
12183 else
12184 case $cross_compiling:$ac_tool_warned in
12185yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012186{ $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 +010012187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012188ac_tool_warned=yes ;;
12189esac
12190 STRIP=$ac_ct_STRIP
12191 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012192else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012193 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012194fi
12195
Manish Katiyar7321d942008-04-14 17:20:03 +053012196# Extract the first word of "makeinfo", so it can be a program name with args.
12197set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012199$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012200if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012201 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012202else
12203 if test -n "$MAKEINFO"; then
12204 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12205else
12206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207for as_dir in $PATH
12208do
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012211 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053012213 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012215 break 2
12216 fi
12217done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012218 done
Manish Katiyar7321d942008-04-14 17:20:03 +053012219IFS=$as_save_IFS
12220
12221fi
12222fi
12223MAKEINFO=$ac_cv_prog_MAKEINFO
12224if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012226$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012227else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012229$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012230fi
12231
12232
12233if test "_$MAKEINFO" = "_"; then
12234 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12235else
12236 case "$MAKEINFO" in
12237 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012239*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012240$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012241*** Makeinfo is missing. Info documentation will not be built." >&2;}
12242 ;;
12243 *)
12244 ;;
12245 esac
12246fi
12247
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012248
Theodore Ts'o6c133521999-07-03 20:37:03 +000012249# See if we need a separate native compiler.
12250if test $cross_compiling = no; then
12251 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012252
Theodore Ts'o6c133521999-07-03 20:37:03 +000012253else
12254 for ac_prog in gcc cc
12255do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012256 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012257set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012259$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012260if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012261 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012262else
12263 if test -n "$BUILD_CC"; then
12264 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12265else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012268do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012269 IFS=$as_save_IFS
12270 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012271 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012273 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012275 break 2
12276 fi
12277done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012278 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012279IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012280
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012281fi
12282fi
12283BUILD_CC=$ac_cv_prog_BUILD_CC
12284if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012286$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012287else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012289$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012290fi
12291
Theodore Ts'oe1052142006-10-21 21:46:47 -040012292
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012293 test -n "$BUILD_CC" && break
12294done
12295
12296fi
Theodore Ts'o74f2c4a2015-06-19 19:28:25 -040012297for 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 -050012298do :
12299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12300ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012301if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012302 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012303#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012304_ACEOF
12305
12306fi
12307
12308done
12309
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012310for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012311do :
12312 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012313#if HAVE_SYS_TYPES_H
12314#include <sys/types.h>
12315#endif
12316#if HAVE_SYS_SOCKET
12317#include <sys/socket.h>
12318#endif
12319
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012320"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012321if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012322 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012323#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012324_ACEOF
12325
12326fi
12327
12328done
12329
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012330for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012331do :
12332 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012333if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012334 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012335#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012336_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012337
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012338ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012339if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012340
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012341$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012342
12343fi
12344
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012345fi
12346done
12347
12348
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012349ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12350"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012351if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012352
12353$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012354
12355fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012356
Theodore Ts'o28739272014-01-03 00:26:43 -050012357ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12358if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12359
12360cat >>confdefs.h <<_ACEOF
12361#define HAVE_STRUCT_STAT_ST_ATIM 1
12362_ACEOF
12363
12364
12365fi
12366
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012367ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12368"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012369if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012370
12371$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012372
Theodore Ts'offf45482003-04-13 00:44:19 -040012373fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012374
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012375ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12376"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012377if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012378
12379$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012380
12381fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012382
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012383ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012384 #define _LARGEFILE64_SOURCE
12385 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012386"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012387if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012388
12389$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012390
12391fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012392
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012393# The cast to long int works around a bug in the HP C Compiler
12394# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12395# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12396# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012398$as_echo_n "checking size of short... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012399if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012400 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012401else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012402 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 -050012403
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012404else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012405 if test "$ac_cv_type_short" = yes; then
12406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012408as_fn_error 77 "cannot compute sizeof (short)
12409See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012410 else
12411 ac_cv_sizeof_short=0
12412 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012413fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012414
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012415fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012417$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012418
12419
12420
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012421cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012422#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012423_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012424
12425
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012426# The cast to long int works around a bug in the HP C Compiler
12427# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12428# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12429# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012431$as_echo_n "checking size of int... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012432if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012433 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012434else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012435 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 -050012436
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012437else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012438 if test "$ac_cv_type_int" = yes; then
12439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012441as_fn_error 77 "cannot compute sizeof (int)
12442See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012443 else
12444 ac_cv_sizeof_int=0
12445 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012446fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012447
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012448fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012450$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012451
12452
12453
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012454cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012455#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012456_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012457
12458
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012459# The cast to long int works around a bug in the HP C Compiler
12460# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12461# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12462# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012464$as_echo_n "checking size of long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012465if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012466 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012467else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012468 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 -050012469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012470else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012471 if test "$ac_cv_type_long" = yes; then
12472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012474as_fn_error 77 "cannot compute sizeof (long)
12475See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012476 else
12477 ac_cv_sizeof_long=0
12478 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012479fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012480
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012481fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012483$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012484
12485
12486
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012487cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012488#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012489_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012490
12491
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012492# The cast to long int works around a bug in the HP C Compiler
12493# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12494# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12495# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012497$as_echo_n "checking size of long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012498if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012499 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012500else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012501 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 -050012502
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012503else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012504 if test "$ac_cv_type_long_long" = yes; then
12505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012507as_fn_error 77 "cannot compute sizeof (long long)
12508See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012509 else
12510 ac_cv_sizeof_long_long=0
12511 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012512fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012513
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012514fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012516$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012517
12518
12519
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012520cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012521#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012522_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012523
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012524
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012525# The cast to long int works around a bug in the HP C Compiler
12526# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12527# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12528# This bug is HP SR number 8606223364.
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12530$as_echo_n "checking size of off_t... " >&6; }
12531if ${ac_cv_sizeof_off_t+:} false; then :
12532 $as_echo_n "(cached) " >&6
12533else
12534 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12535
12536else
12537 if test "$ac_cv_type_off_t" = yes; then
12538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12540as_fn_error 77 "cannot compute sizeof (off_t)
12541See \`config.log' for more details" "$LINENO" 5; }
12542 else
12543 ac_cv_sizeof_off_t=0
12544 fi
12545fi
12546
12547fi
12548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12549$as_echo "$ac_cv_sizeof_off_t" >&6; }
12550
12551
12552
12553cat >>confdefs.h <<_ACEOF
12554#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12555_ACEOF
12556
12557
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012558SIZEOF_SHORT=$ac_cv_sizeof_short
12559SIZEOF_INT=$ac_cv_sizeof_int
12560SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012561SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012562SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12563
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012564
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012565
12566
12567
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012569$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012570if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012571 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012572else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012573 ac_cv_c_bigendian=unknown
12574 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012576/* end confdefs.h. */
12577#ifndef __APPLE_CC__
12578 not a universal capable compiler
12579 #endif
12580 typedef int dummy;
12581
12582_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012583if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012584
12585 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012586 # there are at least two -arch flags with different values.
12587 ac_arch=
12588 ac_prev=
12589 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12590 if test -n "$ac_prev"; then
12591 case $ac_word in
12592 i?86 | x86_64 | ppc | ppc64)
12593 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12594 ac_arch=$ac_word
12595 else
12596 ac_cv_c_bigendian=universal
12597 break
12598 fi
12599 ;;
12600 esac
12601 ac_prev=
12602 elif test "x$ac_word" = "x-arch"; then
12603 ac_prev=arch
12604 fi
12605 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012606fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12608 if test $ac_cv_c_bigendian = unknown; then
12609 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012611/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012612#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012613 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012614
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012615int
12616main ()
12617{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012618#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12619 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12620 && LITTLE_ENDIAN)
12621 bogus endian macros
12622 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012623
12624 ;
12625 return 0;
12626}
12627_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012628if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012629 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012631/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012632#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012633 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012634
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012635int
12636main ()
12637{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012638#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012639 not big endian
12640 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012641
12642 ;
12643 return 0;
12644}
12645_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012646if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012647 ac_cv_c_bigendian=yes
12648else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012649 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012650fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012652fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12654 fi
12655 if test $ac_cv_c_bigendian = unknown; then
12656 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012658/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012659#include <limits.h>
12660
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012661int
12662main ()
12663{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012664#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12665 bogus endian macros
12666 #endif
12667
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012668 ;
12669 return 0;
12670}
12671_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012672if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012673 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012675/* end confdefs.h. */
12676#include <limits.h>
12677
12678int
12679main ()
12680{
12681#ifndef _BIG_ENDIAN
12682 not big endian
12683 #endif
12684
12685 ;
12686 return 0;
12687}
12688_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012689if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012690 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012691else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012692 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012693fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012695fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 fi
12698 if test $ac_cv_c_bigendian = unknown; then
12699 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012700 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012701 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012703/* end confdefs.h. */
12704short int ascii_mm[] =
12705 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12706 short int ascii_ii[] =
12707 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12708 int use_ascii (int i) {
12709 return ascii_mm[i] + ascii_ii[i];
12710 }
12711 short int ebcdic_ii[] =
12712 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12713 short int ebcdic_mm[] =
12714 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12715 int use_ebcdic (int i) {
12716 return ebcdic_mm[i] + ebcdic_ii[i];
12717 }
12718 extern int foo;
12719
12720int
12721main ()
12722{
12723return use_ascii (foo) == use_ebcdic (foo);
12724 ;
12725 return 0;
12726}
12727_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012728if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012729 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12730 ac_cv_c_bigendian=yes
12731 fi
12732 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12733 if test "$ac_cv_c_bigendian" = unknown; then
12734 ac_cv_c_bigendian=no
12735 else
12736 # finding both strings is unlikely to happen, but who knows?
12737 ac_cv_c_bigendian=unknown
12738 fi
12739 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012740fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012742else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012744/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012745$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012746int
12747main ()
12748{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012749
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012750 /* Are we little or big endian? From Harbison&Steele. */
12751 union
12752 {
12753 long int l;
12754 char c[sizeof (long int)];
12755 } u;
12756 u.l = 1;
12757 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012758
12759 ;
12760 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012761}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012762_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012763if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012764 ac_cv_c_bigendian=no
12765else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012766 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012767fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12769 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012770fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012771
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012772 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012773fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012775$as_echo "$ac_cv_c_bigendian" >&6; }
12776 case $ac_cv_c_bigendian in #(
12777 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012778 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012779;; #(
12780 no)
12781 ;; #(
12782 universal)
12783
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012784$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012785
12786 ;; #(
12787 *)
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012788 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012789 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012790 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012791
Chen Qi91f04682014-05-05 21:08:42 -040012792if test $cross_compiling = no; then
12793 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12794else
12795 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12796fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040012797ASM_TYPES_HEADER=./asm_types.h
12798
Theodore Ts'o488c75a2008-06-07 08:55:21 -040012799echo "/* These defines are needed for the public ext2fs.h header file */" \
12800 > public_config.h
12801if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12802 uniq tmp_config.$$ >> public_config.h
12803else
12804 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12805fi
12806if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12807 uniq tmp_config.$$ >> public_config.h
12808else
12809 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12810fi
12811rm -f tmp_config.$$
12812PUBLIC_CONFIG_HEADER=./public_config.h
12813
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012814for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012815do :
12816 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012817if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012818 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012819#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012820_ACEOF
12821
12822fi
12823
Theodore Ts'o0c193f82003-08-01 14:26:23 -040012824done
12825
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012826ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012827if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012828
12829cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012830#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012831_ACEOF
12832
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012833
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012834fi
12835
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012836{ $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 +010012837$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012838if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012839 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012840else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012842/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012843#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012844int
12845main ()
12846{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012847struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012848 ;
12849 return 0;
12850}
12851_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012852if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012853 e2fsprogs_cv_struct_st_flags=yes
12854else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012855 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012856fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12858fi
12859
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012861$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012862if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012864$as_echo_n "checking whether st_flags field is useful... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012865 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012866 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012867else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012869/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012870#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012871int
12872main ()
12873{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012874struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012875 ;
12876 return 0;
12877}
12878_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012879if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012880 e2fsprogs_cv_struct_st_flags_immut=yes
12881else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012882 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012883fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12885fi
12886
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012888$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012889 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012890
12891$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012892
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012893 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012894fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012895ac_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 -050012896 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012897"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012898if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012899
12900cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050012901#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012902_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050012903
12904fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012905
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012906if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012908$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012909if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012910 $as_echo_n "(cached) " >&6
12911else
12912 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012914/* end confdefs.h. */
12915
12916/* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12919#ifdef __cplusplus
12920extern "C"
12921#endif
12922char blkid_probe_all ();
12923int
12924main ()
12925{
12926return blkid_probe_all ();
12927 ;
12928 return 0;
12929}
12930_ACEOF
12931for ac_lib in '' blkid; do
12932 if test -z "$ac_lib"; then
12933 ac_res="none required"
12934 else
12935 ac_res=-l$ac_lib
12936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12937 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012938 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012939 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012940fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012941rm -f core conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012943 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012944 break
12945fi
12946done
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012947if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012948
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012949else
12950 ac_cv_search_blkid_probe_all=no
12951fi
12952rm conftest.$ac_ext
12953LIBS=$ac_func_search_save_LIBS
12954fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012956$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
12957ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012958if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012959 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12960
12961fi
12962
12963fi
Theodore Ts'o74f2c4a2015-06-19 19:28:25 -040012964for 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 -050012965do :
12966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12967ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012968if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012969 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012970#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012971_ACEOF
12972
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012973fi
12974done
12975
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012976SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012978$as_echo_n "checking for socket in -lsocket... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012979if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012980 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012981else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012982 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012983LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012985/* end confdefs.h. */
12986
Theodore Ts'oe1052142006-10-21 21:46:47 -040012987/* Override any GCC internal prototype to avoid an error.
12988 Use char because int might match the return type of a GCC
12989 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012990#ifdef __cplusplus
12991extern "C"
12992#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012993char socket ();
12994int
12995main ()
12996{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012997return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012998 ;
12999 return 0;
13000}
13001_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013002if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013003 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013004else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013005 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013006fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013007rm -f core conftest.err conftest.$ac_objext \
13008 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013009LIBS=$ac_check_lib_save_LIBS
13010fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013012$as_echo "$ac_cv_lib_socket_socket" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013013if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013014 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013015fi
13016
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013017
Darrick J. Wongb291c112014-09-13 15:12:46 -070013018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13019$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13020if ${ac_cv_lib_magic_magic_file+:} false; then :
13021 $as_echo_n "(cached) " >&6
13022else
13023 ac_check_lib_save_LIBS=$LIBS
13024LIBS="-lmagic $LIBS"
13025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026/* end confdefs.h. */
13027
13028/* Override any GCC internal prototype to avoid an error.
13029 Use char because int might match the return type of a GCC
13030 builtin and then its argument prototype would still apply. */
13031#ifdef __cplusplus
13032extern "C"
13033#endif
13034char magic_file ();
13035int
13036main ()
13037{
13038return magic_file ();
13039 ;
13040 return 0;
13041}
13042_ACEOF
13043if ac_fn_c_try_link "$LINENO"; then :
13044 ac_cv_lib_magic_magic_file=yes
13045else
13046 ac_cv_lib_magic_magic_file=no
13047fi
13048rm -f core conftest.err conftest.$ac_objext \
13049 conftest$ac_exeext conftest.$ac_ext
13050LIBS=$ac_check_lib_save_LIBS
13051fi
13052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13053$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13054if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13055 MAGIC_LIB=-lmagic
13056for ac_header in magic.h
13057do :
13058 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13059if test "x$ac_cv_header_magic_h" = xyes; then :
13060 cat >>confdefs.h <<_ACEOF
13061#define HAVE_MAGIC_H 1
13062_ACEOF
13063
13064fi
13065
13066done
13067
13068fi
13069
Theodore Ts'od2e3c0d2014-09-21 01:25:58 -040013070if test "$ac_cv_lib_dl_dlopen" = yes ; then
13071 MAGIC_LIB=$DLOPEN_LIB
13072fi
Darrick J. Wongb291c112014-09-13 15:12:46 -070013073
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -070013074FUSE_CMT=
13075FUSE_LIB=
13076# Check whether --enable-fuse2fs was given.
13077if test "${enable_fuse2fs+set}" = set; then :
13078 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13079then
13080 FUSE_CMT="#"
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13082$as_echo "Disabling fuse2fs" >&6; }
13083else
13084 for ac_header in pthread.h fuse.h
13085do :
13086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13087ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13088#define FUSE_USE_VERSION 29
13089"
13090if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13091 cat >>confdefs.h <<_ACEOF
13092#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13093_ACEOF
13094
13095else
13096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13098as_fn_error $? "Cannot find fuse2fs headers.
13099See \`config.log' for more details" "$LINENO" 5; }
13100fi
13101
13102done
13103
13104
13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106/* end confdefs.h. */
13107#define FUSE_USE_VERSION 29
13108#ifdef __linux__
13109#include <linux/fs.h>
13110#include <linux/falloc.h>
13111#include <linux/xattr.h>
13112#endif
13113
13114int
13115main ()
13116{
13117
13118 ;
13119 return 0;
13120}
13121_ACEOF
13122if ac_fn_c_try_cpp "$LINENO"; then :
13123
13124else
13125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13127as_fn_error $? "Cannot find fuse2fs Linux headers.
13128See \`config.log' for more details" "$LINENO" 5; }
13129fi
13130rm -f conftest.err conftest.i conftest.$ac_ext
13131
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13133$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13134if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13135 $as_echo_n "(cached) " >&6
13136else
13137 ac_check_lib_save_LIBS=$LIBS
13138LIBS="-losxfuse $LIBS"
13139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140/* end confdefs.h. */
13141
13142/* Override any GCC internal prototype to avoid an error.
13143 Use char because int might match the return type of a GCC
13144 builtin and then its argument prototype would still apply. */
13145#ifdef __cplusplus
13146extern "C"
13147#endif
13148char fuse_main ();
13149int
13150main ()
13151{
13152return fuse_main ();
13153 ;
13154 return 0;
13155}
13156_ACEOF
13157if ac_fn_c_try_link "$LINENO"; then :
13158 ac_cv_lib_osxfuse_fuse_main=yes
13159else
13160 ac_cv_lib_osxfuse_fuse_main=no
13161fi
13162rm -f core conftest.err conftest.$ac_objext \
13163 conftest$ac_exeext conftest.$ac_ext
13164LIBS=$ac_check_lib_save_LIBS
13165fi
13166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13167$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13168if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13169 FUSE_LIB=-losxfuse
13170else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13172$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13173if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175else
13176 ac_check_lib_save_LIBS=$LIBS
13177LIBS="-lfuse $LIBS"
13178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179/* end confdefs.h. */
13180
13181/* Override any GCC internal prototype to avoid an error.
13182 Use char because int might match the return type of a GCC
13183 builtin and then its argument prototype would still apply. */
13184#ifdef __cplusplus
13185extern "C"
13186#endif
13187char fuse_main ();
13188int
13189main ()
13190{
13191return fuse_main ();
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196if ac_fn_c_try_link "$LINENO"; then :
13197 ac_cv_lib_fuse_fuse_main=yes
13198else
13199 ac_cv_lib_fuse_fuse_main=no
13200fi
13201rm -f core conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203LIBS=$ac_check_lib_save_LIBS
13204fi
13205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13206$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13207if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13208 FUSE_LIB=-lfuse
13209else
13210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13212as_fn_error $? "Cannot find fuse library.
13213See \`config.log' for more details" "$LINENO" 5; }
13214fi
13215
13216fi
13217
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13219$as_echo "Enabling fuse2fs" >&6; }
13220fi
13221
13222else
13223 for ac_header in pthread.h fuse.h
13224do :
13225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13226ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13227#define FUSE_USE_VERSION 29
13228#ifdef __linux__
13229# include <linux/fs.h>
13230# include <linux/falloc.h>
13231# include <linux/xattr.h>
13232#endif
13233"
13234if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13235 cat >>confdefs.h <<_ACEOF
13236#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13237_ACEOF
13238
13239else
13240 FUSE_CMT="#"
13241fi
13242
13243done
13244
13245if test -z "$FUSE_CMT"
13246then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13248$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13249if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13250 $as_echo_n "(cached) " >&6
13251else
13252 ac_check_lib_save_LIBS=$LIBS
13253LIBS="-losxfuse $LIBS"
13254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255/* end confdefs.h. */
13256
13257/* Override any GCC internal prototype to avoid an error.
13258 Use char because int might match the return type of a GCC
13259 builtin and then its argument prototype would still apply. */
13260#ifdef __cplusplus
13261extern "C"
13262#endif
13263char fuse_main ();
13264int
13265main ()
13266{
13267return fuse_main ();
13268 ;
13269 return 0;
13270}
13271_ACEOF
13272if ac_fn_c_try_link "$LINENO"; then :
13273 ac_cv_lib_osxfuse_fuse_main=yes
13274else
13275 ac_cv_lib_osxfuse_fuse_main=no
13276fi
13277rm -f core conftest.err conftest.$ac_objext \
13278 conftest$ac_exeext conftest.$ac_ext
13279LIBS=$ac_check_lib_save_LIBS
13280fi
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13282$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13283if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13284 FUSE_LIB=-losxfuse
13285else
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13287$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13288if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13289 $as_echo_n "(cached) " >&6
13290else
13291 ac_check_lib_save_LIBS=$LIBS
13292LIBS="-lfuse $LIBS"
13293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294/* end confdefs.h. */
13295
13296/* Override any GCC internal prototype to avoid an error.
13297 Use char because int might match the return type of a GCC
13298 builtin and then its argument prototype would still apply. */
13299#ifdef __cplusplus
13300extern "C"
13301#endif
13302char fuse_main ();
13303int
13304main ()
13305{
13306return fuse_main ();
13307 ;
13308 return 0;
13309}
13310_ACEOF
13311if ac_fn_c_try_link "$LINENO"; then :
13312 ac_cv_lib_fuse_fuse_main=yes
13313else
13314 ac_cv_lib_fuse_fuse_main=no
13315fi
13316rm -f core conftest.err conftest.$ac_objext \
13317 conftest$ac_exeext conftest.$ac_ext
13318LIBS=$ac_check_lib_save_LIBS
13319fi
13320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13321$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13322if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13323 FUSE_LIB=-lfuse
13324else
13325 FUSE_CMT="#"
13326fi
13327
13328fi
13329
13330fi
13331if test -z "$FUSE_CMT"
13332then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13334$as_echo "Enabling fuse2fs by default." >&6; }
13335fi
13336
13337fi
13338
13339
13340
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013342$as_echo_n "checking for optreset... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013343if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013344 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013345else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013347/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013348#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013349
13350_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013352 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013353 ac_cv_have_optreset=yes
13354else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013355 ac_cv_have_optreset=no
13356fi
13357rm -f conftest*
13358
13359fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013361$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013362if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013363
13364$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013365
13366fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013367
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013368SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013369ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013370if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013371
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013372else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013374$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013375if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013376 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013377else
13378 ac_check_lib_save_LIBS=$LIBS
13379LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013381/* end confdefs.h. */
13382
13383/* Override any GCC internal prototype to avoid an error.
13384 Use char because int might match the return type of a GCC
13385 builtin and then its argument prototype would still apply. */
13386#ifdef __cplusplus
13387extern "C"
13388#endif
13389char sem_init ();
13390int
13391main ()
13392{
13393return sem_init ();
13394 ;
13395 return 0;
13396}
13397_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013398if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013399 ac_cv_lib_pthread_sem_init=yes
13400else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013401 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013402fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013403rm -f core conftest.err conftest.$ac_objext \
13404 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013405LIBS=$ac_check_lib_save_LIBS
13406fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013408$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013409if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013410 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013411
13412 SEM_INIT_LIB=-lpthread
13413else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013415$as_echo_n "checking for sem_init in -lrt... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013416if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013417 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013418else
13419 ac_check_lib_save_LIBS=$LIBS
13420LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013422/* end confdefs.h. */
13423
13424/* Override any GCC internal prototype to avoid an error.
13425 Use char because int might match the return type of a GCC
13426 builtin and then its argument prototype would still apply. */
13427#ifdef __cplusplus
13428extern "C"
13429#endif
13430char sem_init ();
13431int
13432main ()
13433{
13434return sem_init ();
13435 ;
13436 return 0;
13437}
13438_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013439if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013440 ac_cv_lib_rt_sem_init=yes
13441else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013442 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013443fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013444rm -f core conftest.err conftest.$ac_objext \
13445 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013446LIBS=$ac_check_lib_save_LIBS
13447fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013449$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013450if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013451 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013452
13453 SEM_INIT_LIB=-lrt
13454else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013456$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013457if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013458 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013459else
13460 ac_check_lib_save_LIBS=$LIBS
13461LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013463/* end confdefs.h. */
13464
13465/* Override any GCC internal prototype to avoid an error.
13466 Use char because int might match the return type of a GCC
13467 builtin and then its argument prototype would still apply. */
13468#ifdef __cplusplus
13469extern "C"
13470#endif
13471char sem_init ();
13472int
13473main ()
13474{
13475return sem_init ();
13476 ;
13477 return 0;
13478}
13479_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013480if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013481 ac_cv_lib_posix4_sem_init=yes
13482else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013483 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013484fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013485rm -f core conftest.err conftest.$ac_objext \
13486 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013487LIBS=$ac_check_lib_save_LIBS
13488fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013490$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013491if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013492 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013493
13494 SEM_INIT_LIB=-lposix4
13495fi
13496
13497fi
13498
13499fi
13500
13501fi
13502
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013504$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040013505if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013506 UNI_DIFF_OPTS=-u
13507else
13508 UNI_DIFF_OPTS=-c
13509fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013511$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013512
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013513case "$host_os" in
13514linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013515
13516$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013517
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013518 ;;
13519esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013520LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013521CYGWIN_CMT="#"
13522UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013523case "$host_os" in
13524linux*)
13525 LINUX_CMT=
13526 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040013527cygwin)
13528 CYGWIN_CMT=
13529 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013530 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013531esac
13532
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013533
13534
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013535case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013536linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013537 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13538 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013539 { $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 +010013540$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013541 fi
13542 ;;
13543esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013544case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013545linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013546 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013547 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013548 { $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 +010013549$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013550 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013552$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013553 mandir=/usr/share/man
13554 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013555 fi
13556;;
13557esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013558if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000013559 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013560 root_prefix="$ac_default_prefix"
13561 else
13562 root_prefix="$prefix"
13563 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040013564 root_bindir=$bindir
13565 root_sbindir=$sbindir
13566 root_libdir=$libdir
13567 root_sysconfdir=$sysconfdir
13568else
13569 root_bindir='${root_prefix}/bin'
13570 root_sbindir='${root_prefix}/sbin'
13571 root_libdir='${root_prefix}/lib'
13572 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013573fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013574if test "$bindir" != '${exec_prefix}/bin'; then
13575 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013577$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013578fi
13579if test "$sbindir" != '${exec_prefix}/sbin'; then
13580 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013582$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013583fi
13584if test "$libdir" != '${exec_prefix}/lib'; then
13585 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013587$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013588fi
13589if test "$sysconfdir" != '${prefix}/etc'; then
13590 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013592$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013593fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013594
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013595
13596
13597
13598
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013599
13600# Check whether --with-multiarch was given.
13601if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050013602 withval=$with_multiarch; if test "$withval" = "lib64"; then
13603 libdir=/usr/lib64
13604 root_libdir=/lib64
13605else
13606 libdir=$libdir/$withval
13607 root_libdir=$root_libdir/$withval
13608fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013609
13610fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050013611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13612$as_echo_n "checking whether we can link with -static... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013613if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013614 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000013615else
13616 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013618/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000013619#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013620int
13621main ()
13622{
Theodore Ts'oae851481997-04-29 18:13:24 +000013623fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013624 ;
13625 return 0;
13626}
13627_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013628if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000013629 ac_cv_e2fsprogs_use_static=yes
13630else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013631 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000013632fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013633rm -f core conftest.err conftest.$ac_objext \
13634 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000013635LDFLAGS=$SAVE_LDFLAGS
13636fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013637
Theodore Ts'odefde781999-01-04 07:39:19 +000013638case "$host_os" in
13639solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013640 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000013641;;
13642esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013644$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000013645LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000013646if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013647 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000013648fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013649
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013650case "$host_os" in
13651darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013653$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013654
13655$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013656
13657 ;;
13658esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013659SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13660ET_DIR=`cd ${srcdir}/lib/et; pwd`
13661
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013662
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013663if test "$cross_compiling" = yes ; then
13664 DO_TEST_SUITE=
13665else
13666 DO_TEST_SUITE=check
13667fi
13668
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013669INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13670if test -n "$CPPFLAGS" ; then
13671 INCLUDES="$INCLUDES $CPPFLAGS"
13672fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013673if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013674 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013675fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050013676if test -n "$WITH_DIET_LIBC" ; then
13677 INCLUDES="$INCLUDES -D_REENTRANT"
13678fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013679
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -040013680
13681 MKINSTALLDIRS=
13682 if test -n "$ac_aux_dir"; then
13683 case "$ac_aux_dir" in
13684 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13685 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13686 esac
13687 fi
13688 if test -z "$MKINSTALLDIRS"; then
13689 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13690 fi
13691
13692
Theodore Ts'odd947da2005-11-09 18:37:07 -040013693if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050013694 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013695 BUILD_LDFLAGS="$LDFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013696fi
13697
13698
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013699test -d lib || mkdir lib
13700test -d include || mkdir include
13701test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000013702test -d include/asm || mkdir include/asm
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013703if test -z "$UUID_CMT" ; then
13704 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13705 lib/uuid/uuid_types.h"
13706fi
13707if test -z "$BLKID_CMT" ; then
13708 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13709 lib/blkid/blkid_types.h"
13710fi
Theodore Ts'obff0cc92003-03-23 01:37:53 -050013711for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040013712 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013713 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13714 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'of34af412015-07-11 23:05:57 -040013715 $uuid_out_list $blkid_out_list lib/support/Makefile \
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013716 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 -050013717 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013718 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020013719 resize/Makefile doc/Makefile intl/Makefile \
13720 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013721 if test -d `dirname ${srcdir}/$i` ; then
13722 outlist="$outlist $i"
13723 fi
13724done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013725ac_config_files="$ac_config_files $outlist"
13726
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013727cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013728# This file is a shell script that caches the results of configure
13729# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013730# scripts and configure runs, see configure's option --config-cache.
13731# It is not useful on other systems. If it contains results you don't
13732# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013733#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013734# config.status only pays attention to the cache file if you give it
13735# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013736#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013737# `ac_cv_env_foo' variables (set or unset) will be overridden when
13738# loading this file, other *unset* `ac_cv_foo' will be assigned the
13739# following values.
13740
13741_ACEOF
13742
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013743# The following way of writing the cache mishandles newlines in values,
13744# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013745# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013746# Ultrix sh set writes to stderr and can't be redirected directly,
13747# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013748(
13749 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13750 eval ac_val=\$$ac_var
13751 case $ac_val in #(
13752 *${as_nl}*)
13753 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013754 *_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 +010013755$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013756 esac
13757 case $ac_var in #(
13758 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013759 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013760 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013761 esac ;;
13762 esac
13763 done
13764
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013765 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013766 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13767 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013768 # `set' does not quote correctly, so add quotes: double-quote
13769 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013770 sed -n \
13771 "s/'/'\\\\''/g;
13772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013773 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013774 *)
13775 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013777 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013778 esac |
13779 sort
13780) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013781 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040013782 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013783 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040013784 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13786 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040013787 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13788 :end' >>confcache
13789if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13790 if test -w "$cache_file"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013791 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013792 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013793$as_echo "$as_me: updating cache $cache_file" >&6;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013794 if test ! -f "$cache_file" || test -h "$cache_file"; then
13795 cat confcache >"$cache_file"
13796 else
13797 case $cache_file in #(
13798 */* | ?:*)
13799 mv -f confcache "$cache_file"$$ &&
13800 mv -f "$cache_file"$$ "$cache_file" ;; #(
13801 *)
13802 mv -f confcache "$cache_file" ;;
13803 esac
13804 fi
13805 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013806 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013807 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013808$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013809 fi
13810fi
13811rm -f confcache
13812
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013813test "x$prefix" = xNONE && prefix=$ac_default_prefix
13814# Let make expand exec_prefix.
13815test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13816
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013817DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013818
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013819ac_libobjs=
13820ac_ltlibobjs=
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013821U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013822for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13823 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013824 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013825 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040013826 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13827 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013828 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13829 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013830done
13831LIBOBJS=$ac_libobjs
13832
13833LTLIBOBJS=$ac_ltlibobjs
13834
13835
13836
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013837
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013838: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013839ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013840ac_clean_files_save=$ac_clean_files
13841ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013842{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013843$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013844as_write_fail=0
13845cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013846#! $SHELL
13847# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013848# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013849# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013850# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013851
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013852debug=false
13853ac_cs_recheck=false
13854ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013855
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013856SHELL=\${CONFIG_SHELL-$SHELL}
13857export SHELL
13858_ASEOF
13859cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13860## -------------------- ##
13861## M4sh Initialization. ##
13862## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013863
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013864# Be more Bourne compatible
13865DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013866if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013867 emulate sh
13868 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013869 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013870 # is contrary to our usage. Disable this feature.
13871 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013872 setopt NO_GLOB_SUBST
13873else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013874 case `(set -o) 2>/dev/null` in #(
13875 *posix*) :
13876 set -o posix ;; #(
13877 *) :
13878 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013879esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013880fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013881
13882
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013883as_nl='
13884'
13885export as_nl
13886# Printing a long string crashes Solaris 7 /usr/bin/printf.
13887as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13888as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13889as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013890# Prefer a ksh shell builtin over an external printf program on Solaris,
13891# but without wasting forks for bash or zsh.
13892if test -z "$BASH_VERSION$ZSH_VERSION" \
13893 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13894 as_echo='print -r --'
13895 as_echo_n='print -rn --'
13896elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013897 as_echo='printf %s\n'
13898 as_echo_n='printf %s'
13899else
13900 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13901 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13902 as_echo_n='/usr/ucb/echo -n'
13903 else
13904 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13905 as_echo_n_body='eval
13906 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013907 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013908 *"$as_nl"*)
13909 expr "X$arg" : "X\\(.*\\)$as_nl";
13910 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13911 esac;
13912 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13913 '
13914 export as_echo_n_body
13915 as_echo_n='sh -c $as_echo_n_body as_echo'
13916 fi
13917 export as_echo_body
13918 as_echo='sh -c $as_echo_body as_echo'
13919fi
13920
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013921# The user is always right.
13922if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013923 PATH_SEPARATOR=:
13924 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13925 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13926 PATH_SEPARATOR=';'
13927 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013928fi
13929
Theodore Ts'oe1052142006-10-21 21:46:47 -040013930
13931# IFS
13932# We need space, tab and new line, in precisely that order. Quoting is
13933# there to prevent editors from complaining about space-tab.
13934# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13935# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013936IFS=" "" $as_nl"
13937
13938# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013939as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013940case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040013941 *[\\/]* ) as_myself=$0 ;;
13942 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013943for as_dir in $PATH
13944do
13945 IFS=$as_save_IFS
13946 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013947 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13948 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013949IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013950
Theodore Ts'oe1052142006-10-21 21:46:47 -040013951 ;;
13952esac
13953# We did not find ourselves, most probably we were run as `sh COMMAND'
13954# in which case we are not to be found in the path.
13955if test "x$as_myself" = x; then
13956 as_myself=$0
13957fi
13958if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013959 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013960 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040013961fi
13962
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013963# Unset variables that we do not need and which cause bugs (e.g. in
13964# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13965# suppresses any "Segmentation fault" message there. '((' could
13966# trigger a bug in pdksh 5.2.14.
13967for as_var in BASH_ENV ENV MAIL MAILPATH
13968do eval test x\${$as_var+set} = xset \
13969 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040013970done
13971PS1='$ '
13972PS2='> '
13973PS4='+ '
13974
13975# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013976LC_ALL=C
13977export LC_ALL
13978LANGUAGE=C
13979export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040013980
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013981# CDPATH.
13982(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13983
13984
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013985# as_fn_error STATUS ERROR [LINENO LOG_FD]
13986# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013987# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13988# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013989# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013990as_fn_error ()
13991{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013992 as_status=$1; test $as_status -eq 0 && as_status=1
13993 if test "$4"; then
13994 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13995 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013996 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013997 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013998 as_fn_exit $as_status
13999} # as_fn_error
14000
14001
14002# as_fn_set_status STATUS
14003# -----------------------
14004# Set $? to STATUS, without forking.
14005as_fn_set_status ()
14006{
14007 return $1
14008} # as_fn_set_status
14009
14010# as_fn_exit STATUS
14011# -----------------
14012# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14013as_fn_exit ()
14014{
14015 set +e
14016 as_fn_set_status $1
14017 exit $1
14018} # as_fn_exit
14019
14020# as_fn_unset VAR
14021# ---------------
14022# Portably unset VAR.
14023as_fn_unset ()
14024{
14025 { eval $1=; unset $1;}
14026}
14027as_unset=as_fn_unset
14028# as_fn_append VAR VALUE
14029# ----------------------
14030# Append the text in VALUE to the end of the definition contained in VAR. Take
14031# advantage of any shell optimizations that allow amortized linear growth over
14032# repeated appends, instead of the typical quadratic growth present in naive
14033# implementations.
14034if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14035 eval 'as_fn_append ()
14036 {
14037 eval $1+=\$2
14038 }'
14039else
14040 as_fn_append ()
14041 {
14042 eval $1=\$$1\$2
14043 }
14044fi # as_fn_append
14045
14046# as_fn_arith ARG...
14047# ------------------
14048# Perform arithmetic evaluation on the ARGs, and store the result in the
14049# global $as_val. Take advantage of shells that can avoid forks. The arguments
14050# must be portable across $(()) and expr.
14051if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14052 eval 'as_fn_arith ()
14053 {
14054 as_val=$(( $* ))
14055 }'
14056else
14057 as_fn_arith ()
14058 {
14059 as_val=`expr "$@" || test $? -eq 1`
14060 }
14061fi # as_fn_arith
14062
14063
Theodore Ts'oe1052142006-10-21 21:46:47 -040014064if expr a : '\(a\)' >/dev/null 2>&1 &&
14065 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14066 as_expr=expr
14067else
14068 as_expr=false
14069fi
14070
14071if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14072 as_basename=basename
14073else
14074 as_basename=false
14075fi
14076
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014077if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14078 as_dirname=dirname
14079else
14080 as_dirname=false
14081fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014082
Theodore Ts'oe1052142006-10-21 21:46:47 -040014083as_me=`$as_basename -- "$0" ||
14084$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14085 X"$0" : 'X\(//\)$' \| \
14086 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014087$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014088 sed '/^.*\/\([^/][^/]*\)\/*$/{
14089 s//\1/
14090 q
14091 }
14092 /^X\/\(\/\/\)$/{
14093 s//\1/
14094 q
14095 }
14096 /^X\/\(\/\).*/{
14097 s//\1/
14098 q
14099 }
14100 s/.*/./; q'`
14101
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014102# Avoid depending upon Character Ranges.
14103as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14104as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14105as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14106as_cr_digits='0123456789'
14107as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040014108
14109ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014110case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014111-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014112 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014113 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014114 xy) ECHO_C='\c';;
14115 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14116 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014117 esac;;
14118*)
14119 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014120esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014121
14122rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040014123if test -d conf$$.dir; then
14124 rm -f conf$$.dir/conf$$.file
14125else
14126 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014127 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040014128fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014129if (echo >conf$$.file) 2>/dev/null; then
14130 if ln -s conf$$.file conf$$ 2>/dev/null; then
14131 as_ln_s='ln -s'
14132 # ... but there are two gotchas:
14133 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14134 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014135 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014136 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014137 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014138 elif ln conf$$.file conf$$ 2>/dev/null; then
14139 as_ln_s=ln
14140 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014141 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014142 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014143else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014144 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014145fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014146rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14147rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014148
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014149
14150# as_fn_mkdir_p
14151# -------------
14152# Create "$as_dir" as a directory, including parents if necessary.
14153as_fn_mkdir_p ()
14154{
14155
14156 case $as_dir in #(
14157 -*) as_dir=./$as_dir;;
14158 esac
14159 test -d "$as_dir" || eval $as_mkdir_p || {
14160 as_dirs=
14161 while :; do
14162 case $as_dir in #(
14163 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14164 *) as_qdir=$as_dir;;
14165 esac
14166 as_dirs="'$as_qdir' $as_dirs"
14167 as_dir=`$as_dirname -- "$as_dir" ||
14168$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14169 X"$as_dir" : 'X\(//\)[^/]' \| \
14170 X"$as_dir" : 'X\(//\)$' \| \
14171 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14172$as_echo X"$as_dir" |
14173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14174 s//\1/
14175 q
14176 }
14177 /^X\(\/\/\)[^/].*/{
14178 s//\1/
14179 q
14180 }
14181 /^X\(\/\/\)$/{
14182 s//\1/
14183 q
14184 }
14185 /^X\(\/\).*/{
14186 s//\1/
14187 q
14188 }
14189 s/.*/./; q'`
14190 test -d "$as_dir" && break
14191 done
14192 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014193 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014194
14195
14196} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014197if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014198 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014199else
14200 test -d ./-p && rmdir ./-p
14201 as_mkdir_p=false
14202fi
14203
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014204
14205# as_fn_executable_p FILE
14206# -----------------------
14207# Test if FILE is an executable regular file.
14208as_fn_executable_p ()
14209{
14210 test -f "$1" && test -x "$1"
14211} # as_fn_executable_p
14212as_test_x='test -x'
14213as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014214
14215# Sed expression to map a string onto a valid CPP name.
14216as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14217
14218# Sed expression to map a string onto a valid variable name.
14219as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14220
14221
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014222exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014223## ----------------------------------- ##
14224## Main body of $CONFIG_STATUS script. ##
14225## ----------------------------------- ##
14226_ASEOF
14227test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014228
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14230# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014231# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040014232# values after options handling.
14233ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014234This file was extended by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014235generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014236
14237 CONFIG_FILES = $CONFIG_FILES
14238 CONFIG_HEADERS = $CONFIG_HEADERS
14239 CONFIG_LINKS = $CONFIG_LINKS
14240 CONFIG_COMMANDS = $CONFIG_COMMANDS
14241 $ $0 $@
14242
Theodore Ts'oe1052142006-10-21 21:46:47 -040014243on `(hostname || uname -n) 2>/dev/null | sed 1q`
14244"
14245
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014246_ACEOF
14247
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014248case $ac_config_files in *"
14249"*) set x $ac_config_files; shift; ac_config_files=$*;;
14250esac
14251
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014252case $ac_config_headers in *"
14253"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14254esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014255
14256
14257cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014258# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014259config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014260config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014261config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014262
Theodore Ts'oe1052142006-10-21 21:46:47 -040014263_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014264
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014266ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014267\`$as_me' instantiates files and other configuration actions
14268from templates according to the current configuration. Unless the files
14269and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014270
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014271Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014272
14273 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014274 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014275 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014276 -q, --quiet, --silent
14277 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014278 -d, --debug don't remove temporary files
14279 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014280 --file=FILE[:TEMPLATE]
14281 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014282 --header=FILE[:TEMPLATE]
14283 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014284
14285Configuration files:
14286$config_files
14287
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014288Configuration headers:
14289$config_headers
14290
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014291Configuration commands:
14292$config_commands
14293
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014294Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014295
Theodore Ts'oe1052142006-10-21 21:46:47 -040014296_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014298ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014299ac_cs_version="\\
14300config.status
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014301configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014302 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014303
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014304Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014305This config.status script is free software; the Free Software Foundation
14306gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040014307
14308ac_pwd='$ac_pwd'
14309srcdir='$srcdir'
14310INSTALL='$INSTALL'
Theodore Ts'o93613952014-07-03 23:44:13 -040014311MKDIR_P='$MKDIR_P'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014312AWK='$AWK'
14313test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014314_ACEOF
14315
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14317# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014318ac_need_defaults=:
14319while test $# != 0
14320do
14321 case $1 in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014322 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014323 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14324 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014325 ac_shift=:
14326 ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014327 --*=)
14328 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14329 ac_optarg=
14330 ac_shift=:
14331 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014332 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014333 ac_option=$1
14334 ac_optarg=$2
14335 ac_shift=shift
14336 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014337 esac
14338
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014339 case $ac_option in
14340 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14342 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014343 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014344 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014345 --config | --confi | --conf | --con | --co | --c )
14346 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014347 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014348 debug=: ;;
14349 --file | --fil | --fi | --f )
14350 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014351 case $ac_optarg in
14352 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014353 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014354 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014355 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014356 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014357 --header | --heade | --head | --hea )
14358 $ac_shift
14359 case $ac_optarg in
14360 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14361 esac
14362 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14363 ac_need_defaults=false;;
14364 --he | --h)
14365 # Conflict between --help and --header
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014366 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014367Try \`$0 --help' for more information.";;
14368 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014369 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14371 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14372 ac_cs_silent=: ;;
14373
14374 # This is an error.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014375 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014376Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014377
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014378 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014379 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014380
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014381 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014382 shift
14383done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014384
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014385ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014386
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014387if $ac_cs_silent; then
14388 exec 6>/dev/null
14389 ac_configure_extra_args="$ac_configure_extra_args --silent"
14390fi
14391
14392_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014394if \$ac_cs_recheck; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014395 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014396 shift
14397 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14398 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014399 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014400 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014401fi
14402
14403_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014405exec 5>>config.log
14406{
14407 echo
14408 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14409## Running $as_me. ##
14410_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014411 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014412} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014413
Theodore Ts'oe1052142006-10-21 21:46:47 -040014414_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014416#
Theodore Ts'oe1052142006-10-21 21:46:47 -040014417# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014418#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014419# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014420 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'o93613952014-07-03 23:44:13 -040014421 # from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014422 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014423 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14424 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014425
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014426
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
Theodore Ts'oe1052142006-10-21 21:46:47 -040014430
14431# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014432for ac_config_target in $ac_config_targets
14433do
Theodore Ts'oe1052142006-10-21 21:46:47 -040014434 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014435 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'o93613952014-07-03 23:44:13 -040014436 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014437 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14438
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014439 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014440 esac
14441done
14442
Theodore Ts'oe1052142006-10-21 21:46:47 -040014443
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014444# If the user did not use the arguments to specify the items to instantiate,
14445# then the envvar interface is used. Set only those that are not.
14446# We use the long form for the default assignment because of an extremely
14447# bizarre bug on SunOS 4.1.3.
14448if $ac_need_defaults; then
14449 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014450 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014451 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14452fi
14453
14454# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040014455# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014456# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014457# Hook for its removal unless debugging.
14458# Note that there is a small window in which the directory will not be cleaned:
14459# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014460$debug ||
14461{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014462 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040014463 trap 'exit_status=$?
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014464 : "${ac_tmp:=$tmp}"
14465 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040014466' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014467 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014468}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014469# Create a (secure) tmp directory for tmp files.
14470
14471{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014472 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014473 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014474} ||
14475{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014476 tmp=./conf$$-$RANDOM
14477 (umask 077 && mkdir "$tmp")
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014478} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14479ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014480
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014481# Set up the scripts for CONFIG_FILES section.
14482# No need to generate them if there are no CONFIG_FILES.
14483# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014484if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014485
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014486if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14487 ac_cs_awk_getline=:
14488 ac_cs_awk_pipe_init=
14489 ac_cs_awk_read_file='
14490 while ((getline aline < (F[key])) > 0)
14491 print(aline)
14492 close(F[key])'
14493 ac_cs_awk_pipe_fini=
14494else
14495 ac_cs_awk_getline=false
14496 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14497 ac_cs_awk_read_file='
14498 print "|#_!!_#|"
14499 print "cat " F[key] " &&"
14500 '$ac_cs_awk_pipe_init
14501 # The final `:' finishes the AND list.
14502 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14503fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014504ac_cr=`echo X | tr X '\015'`
14505# On cygwin, bash can eat \r inside `` if the user requested igncr.
14506# But we know of no other shell where ac_cr would be empty at this
14507# point, so we can use a bashism as a fallback.
14508if test "x$ac_cr" = x; then
14509 eval ac_cr=\$\'\\r\'
14510fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014511ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14512if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014513 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014514else
14515 ac_cs_awk_cr=$ac_cr
14516fi
14517
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014518echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014519_ACEOF
14520
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014521# Create commands to substitute file output variables.
14522{
14523 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014524 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014525 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14526 echo "_ACAWK" &&
14527 echo "_ACEOF"
14528} >conf$$files.sh &&
14529. ./conf$$files.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014531rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014532
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014533{
14534 echo "cat >conf$$subs.awk <<_ACEOF" &&
14535 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14536 echo "_ACEOF"
14537} >conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014538 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14539ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014540ac_delim='%!_!# '
14541for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014542 . ./conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014543 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014544
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014545 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14546 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014547 break
14548 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014549 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014550 else
14551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014552 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014553done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014554rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014555
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014557cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014558_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014559sed -n '
14560h
14561s/^/S["/; s/!.*/"]=/
14562p
14563g
14564s/^[^!]*!//
14565:repl
14566t repl
14567s/'"$ac_delim"'$//
14568t delim
14569:nl
14570h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014571s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014572t more1
14573s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14574p
14575n
14576b repl
14577:more1
14578s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14579p
14580g
14581s/.\{148\}//
14582t nl
14583:delim
14584h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014585s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014586t more2
14587s/["\\]/\\&/g; s/^/"/; s/$/"/
14588p
14589b
14590:more2
14591s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14592p
14593g
14594s/.\{148\}//
14595t delim
14596' <conf$$subs.awk | sed '
14597/^[^""]/{
14598 N
14599 s/\n//
14600}
14601' >>$CONFIG_STATUS || ac_write_fail=1
14602rm -f conf$$subs.awk
14603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14604_ACAWK
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014605cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014606 for (key in S) S_is_set[key] = 1
14607 FS = ""
14608 \$ac_cs_awk_pipe_init
14609}
14610{
14611 line = $ 0
14612 nfields = split(line, field, "@")
14613 substed = 0
14614 len = length(field[1])
14615 for (i = 2; i < nfields; i++) {
14616 key = field[i]
14617 keylen = length(key)
14618 if (S_is_set[key]) {
14619 value = S[key]
14620 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14621 len += length(value) + length(field[++i])
14622 substed = 1
14623 } else
14624 len += 1 + keylen
14625 }
14626 if (nfields == 3 && !substed) {
14627 key = field[2]
14628 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14629 \$ac_cs_awk_read_file
14630 next
14631 }
14632 }
14633 print line
14634}
14635\$ac_cs_awk_pipe_fini
14636_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040014637_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14639if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14640 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14641else
14642 cat
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014643fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14644 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014645_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014646
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014647# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14648# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040014649# trailing colons and then remove the whole line if VPATH becomes empty
14650# (actually we leave an empty line to preserve line numbers).
14651if test "x$srcdir" = x.; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014652 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14653h
14654s///
14655s/^/:/
14656s/[ ]*$/:/
14657s/:\$(srcdir):/:/g
14658s/:\${srcdir}:/:/g
14659s/:@srcdir@:/:/g
14660s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014661s/:*$//
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014662x
14663s/\(=[ ]*\).*/\1/
14664G
14665s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014666s/^[^=]*=[ ]*$//
14667}'
14668fi
14669
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014671fi # test -n "$CONFIG_FILES"
14672
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014673# Set up the scripts for CONFIG_HEADERS section.
14674# No need to generate them if there are no CONFIG_HEADERS.
14675# This happens for instance with `./config.status Makefile'.
14676if test -n "$CONFIG_HEADERS"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014677cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014678BEGIN {
14679_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014680
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014681# Transform confdefs.h into an awk script `defines.awk', embedded as
14682# here-document in config.status, that substitutes the proper values into
14683# config.h.in to produce config.h.
14684
14685# Create a delimiter string that does not exist in confdefs.h, to ease
14686# handling of long lines.
14687ac_delim='%!_!# '
14688for ac_last_try in false false :; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014689 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14690 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014691 break
14692 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014693 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014694 else
14695 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14696 fi
14697done
14698
14699# For the awk script, D is an array of macro values keyed by name,
14700# likewise P contains macro parameters if any. Preserve backslash
14701# newline sequences.
14702
14703ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14704sed -n '
14705s/.\{148\}/&'"$ac_delim"'/g
14706t rset
14707:rset
14708s/^[ ]*#[ ]*define[ ][ ]*/ /
14709t def
14710d
14711:def
14712s/\\$//
14713t bsnl
14714s/["\\]/\\&/g
14715s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14716D["\1"]=" \3"/p
14717s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14718d
14719:bsnl
14720s/["\\]/\\&/g
14721s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14722D["\1"]=" \3\\\\\\n"\\/p
14723t cont
14724s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14725t cont
14726d
14727:cont
14728n
14729s/.\{148\}/&'"$ac_delim"'/g
14730t clear
14731:clear
14732s/\\$//
14733t bsnlc
14734s/["\\]/\\&/g; s/^/"/; s/$/"/p
14735d
14736:bsnlc
14737s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14738b cont
14739' <confdefs.h | sed '
14740s/'"$ac_delim"'/"\\\
14741"/g' >>$CONFIG_STATUS || ac_write_fail=1
14742
14743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14744 for (key in D) D_is_set[key] = 1
14745 FS = ""
14746}
14747/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14748 line = \$ 0
14749 split(line, arg, " ")
14750 if (arg[1] == "#") {
14751 defundef = arg[2]
14752 mac1 = arg[3]
14753 } else {
14754 defundef = substr(arg[1], 2)
14755 mac1 = arg[2]
14756 }
14757 split(mac1, mac2, "(") #)
14758 macro = mac2[1]
14759 prefix = substr(line, 1, index(line, defundef) - 1)
14760 if (D_is_set[macro]) {
14761 # Preserve the white space surrounding the "#".
14762 print prefix "define", macro P[macro] D[macro]
14763 next
14764 } else {
14765 # Replace #undef with comments. This is necessary, for example,
14766 # in the case of _POSIX_SOURCE, which is predefined and required
14767 # on some systems where configure will not decide to define it.
14768 if (defundef == "undef") {
14769 print "/*", prefix defundef, macro, "*/"
14770 next
14771 }
14772 }
14773}
14774{ print }
14775_ACAWK
14776_ACEOF
14777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014778 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014779fi # test -n "$CONFIG_HEADERS"
14780
14781
14782eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014783shift
14784for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040014785do
14786 case $ac_tag in
14787 :[FHLC]) ac_mode=$ac_tag; continue;;
14788 esac
14789 case $ac_mode$ac_tag in
14790 :[FHL]*:*);;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014791 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014792 :[FH]-) ac_tag=-:-;;
14793 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14794 esac
14795 ac_save_IFS=$IFS
14796 IFS=:
14797 set x $ac_tag
14798 IFS=$ac_save_IFS
14799 shift
14800 ac_file=$1
14801 shift
14802
14803 case $ac_mode in
14804 :L) ac_source=$1;;
14805 :[FH])
14806 ac_file_inputs=
14807 for ac_f
14808 do
14809 case $ac_f in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014810 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014811 *) # Look for the file first in the build tree, then in the source tree
14812 # (if the path is not absolute). The absolute path cannot be DOS-style,
14813 # because $ac_f cannot contain `:'.
14814 test -f "$ac_f" ||
14815 case $ac_f in
14816 [\\/$]*) false;;
14817 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14818 esac ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014819 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014820 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014821 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014822 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014823 done
14824
14825 # Let's still pretend it is `configure' which instantiates (i.e., don't
14826 # use $as_me), people would be surprised to read:
14827 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014828 configure_input='Generated from '`
14829 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14830 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014831 if test x"$ac_file" != x-; then
14832 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014833 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014834$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014835 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014836 # Neutralize special characters interpreted by sed in replacement strings.
14837 case $configure_input in #(
14838 *\&* | *\|* | *\\* )
14839 ac_sed_conf_input=`$as_echo "$configure_input" |
14840 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14841 *) ac_sed_conf_input=$configure_input;;
14842 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014843
14844 case $ac_tag in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014845 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014847 esac
14848 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014849 esac
14850
Theodore Ts'oe1052142006-10-21 21:46:47 -040014851 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014852$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14853 X"$ac_file" : 'X\(//\)[^/]' \| \
14854 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040014855 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014856$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14858 s//\1/
14859 q
14860 }
14861 /^X\(\/\/\)[^/].*/{
14862 s//\1/
14863 q
14864 }
14865 /^X\(\/\/\)$/{
14866 s//\1/
14867 q
14868 }
14869 /^X\(\/\).*/{
14870 s//\1/
14871 q
14872 }
14873 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014874 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014875 ac_builddir=.
14876
Theodore Ts'oe1052142006-10-21 21:46:47 -040014877case "$ac_dir" in
14878.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14879*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014880 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014881 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014882 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014883 case $ac_top_builddir_sub in
14884 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14885 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14886 esac ;;
14887esac
14888ac_abs_top_builddir=$ac_pwd
14889ac_abs_builddir=$ac_pwd$ac_dir_suffix
14890# for backward compatibility:
14891ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014892
14893case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014894 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014895 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014896 ac_top_srcdir=$ac_top_builddir_sub
14897 ac_abs_top_srcdir=$ac_pwd ;;
14898 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014899 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014900 ac_top_srcdir=$srcdir
14901 ac_abs_top_srcdir=$srcdir ;;
14902 *) # Relative name.
14903 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14904 ac_top_srcdir=$ac_top_build_prefix$srcdir
14905 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014906esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014907ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014908
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014909
Theodore Ts'oe1052142006-10-21 21:46:47 -040014910 case $ac_mode in
14911 :F)
14912 #
14913 # CONFIG_FILE
14914 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014915
14916 case $INSTALL in
14917 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014918 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014919 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040014920 ac_MKDIR_P=$MKDIR_P
14921 case $MKDIR_P in
14922 [\\/$]* | ?:[\\/]* ) ;;
14923 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14924 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014925_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014926
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014928# If the template does not know about datarootdir, expand it.
14929# FIXME: This hack should be removed a few years after 2.60.
14930ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014931ac_sed_dataroot='
14932/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014933 p
14934 q
14935}
14936/@datadir@/p
14937/@docdir@/p
14938/@infodir@/p
14939/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014940/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014941case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014942*datarootdir*) ac_datarootdir_seen=yes;;
14943*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014944 { $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 +010014945$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014946_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014948 ac_datarootdir_hack='
14949 s&@datadir@&$datadir&g
14950 s&@docdir@&$docdir&g
14951 s&@infodir@&$infodir&g
14952 s&@localedir@&$localedir&g
14953 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014954 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014955esac
14956_ACEOF
14957
14958# Neutralize VPATH when `$srcdir' = `.'.
14959# Shell code in configure.ac might set extrasub.
14960# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14962ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014963$extrasub
14964_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014966:t
14967/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014968s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014969s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014970s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014971s&@srcdir@&$ac_srcdir&;t t
14972s&@abs_srcdir@&$ac_abs_srcdir&;t t
14973s&@top_srcdir@&$ac_top_srcdir&;t t
14974s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14975s&@builddir@&$ac_builddir&;t t
14976s&@abs_builddir@&$ac_abs_builddir&;t t
14977s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14978s&@INSTALL@&$ac_INSTALL&;t t
Theodore Ts'o93613952014-07-03 23:44:13 -040014979s&@MKDIR_P@&$ac_MKDIR_P&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014980$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014981"
14982eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14983if $ac_cs_awk_getline; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014984 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014985else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014986 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14987fi \
14988 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014989
Theodore Ts'oe1052142006-10-21 21:46:47 -040014990test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014991 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14992 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14993 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014995which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014996$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014997which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014998
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014999 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015000 case $ac_file in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015001 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15002 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015003 esac \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015005 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015006 :H)
15007 #
15008 # CONFIG_HEADER
15009 #
15010 if test x"$ac_file" != x-; then
15011 {
15012 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015013 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15014 } >"$ac_tmp/config.h" \
15015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15016 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015017 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15018$as_echo "$as_me: $ac_file is unchanged" >&6;}
15019 else
15020 rm -f "$ac_file"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015021 mv "$ac_tmp/config.h" "$ac_file" \
15022 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015023 fi
15024 else
15025 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015026 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15027 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015028 fi
15029 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015030
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015031 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015032$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015033 ;;
15034 esac
15035
15036
15037 case $ac_file$ac_mode in
Theodore Ts'o93613952014-07-03 23:44:13 -040015038 "po-directories":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015039 for ac_file in $CONFIG_FILES; do
15040 # Support "outfile[:infile[:infile...]]"
15041 case "$ac_file" in
15042 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000015043 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015044 # PO directories have a Makefile.in generated from Makefile.in.in.
15045 case "$ac_file" in */Makefile.in)
15046 # Adjust a relative srcdir.
15047 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o93613952014-07-03 23:44:13 -040015048 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015049 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15050 # In autoconf-2.13 it is called $ac_given_srcdir.
15051 # In autoconf-2.50 it is called $srcdir.
15052 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15053 case "$ac_given_srcdir" in
15054 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15055 /*) top_srcdir="$ac_given_srcdir" ;;
15056 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15057 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040015058 # Treat a directory as a PO directory if and only if it has a
15059 # POTFILES.in file. This allows packages to have multiple PO
15060 # directories under different names or in different locations.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015061 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15062 rm -f "$ac_dir/POTFILES"
15063 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
Theodore Ts'o93613952014-07-03 23:44:13 -040015064 gt_tab=`printf '\t'`
15065 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 -050015066 POMAKEFILEDEPS="POTFILES.in"
15067 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015068 # on $ac_dir but don't depend on user-specified configuration
15069 # parameters.
15070 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15071 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015072 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015073 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15074 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040015075 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15076 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015077 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015078 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15079 else
15080 # The set of available languages was given in configure.in.
Theodore Ts'o93613952014-07-03 23:44:13 -040015081 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015082 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015083 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015084 # Compute POFILES
15085 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15086 # Compute UPDATEPOFILES
15087 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15088 # Compute DUMMYPOFILES
15089 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15090 # Compute GMOFILES
15091 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015092 case "$ac_given_srcdir" in
15093 .) srcdirpre= ;;
15094 *) srcdirpre='$(srcdir)/' ;;
15095 esac
15096 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015097 UPDATEPOFILES=
15098 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015099 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015100 for lang in $ALL_LINGUAS; do
15101 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015102 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15103 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015104 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015105 done
15106 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15107 # environment variable.
15108 INST_LINGUAS=
15109 if test -n "$ALL_LINGUAS"; then
15110 for presentlang in $ALL_LINGUAS; do
15111 useit=no
15112 if test "%UNSET%" != "$LINGUAS"; then
15113 desiredlanguages="$LINGUAS"
15114 else
15115 desiredlanguages="$ALL_LINGUAS"
15116 fi
15117 for desiredlang in $desiredlanguages; do
15118 # Use the presentlang catalog if desiredlang is
15119 # a. equal to presentlang, or
15120 # b. a variant of presentlang (because in this case,
15121 # presentlang can be used as a fallback for messages
15122 # which are not translated in the desiredlang catalog).
15123 case "$desiredlang" in
15124 "$presentlang"*) useit=yes;;
15125 esac
15126 done
15127 if test $useit = yes; then
15128 INST_LINGUAS="$INST_LINGUAS $presentlang"
15129 fi
15130 done
15131 fi
15132 CATALOGS=
15133 if test -n "$INST_LINGUAS"; then
15134 for lang in $INST_LINGUAS; do
15135 CATALOGS="$CATALOGS $lang.gmo"
15136 done
15137 fi
15138 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015139 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 -040015140 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15141 if test -f "$f"; then
15142 case "$f" in
15143 *.orig | *.bak | *~) ;;
15144 *) cat "$f" >> "$ac_dir/Makefile" ;;
15145 esac
15146 fi
15147 done
15148 fi
15149 ;;
15150 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015151 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015152
Theodore Ts'oe1052142006-10-21 21:46:47 -040015153 esac
15154done # for ac_tag
15155
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015156
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015157as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015158_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015159ac_clean_files=$ac_clean_files_save
15160
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015161test $ac_write_fail = 0 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015162 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015163
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015164
15165# configure is writing to config.log, and then calls config.status.
15166# config.status does its own redirection, appending to config.log.
15167# Unfortunately, on DOS this fails, as config.log is still kept open
15168# by configure, so config.status won't be able to write to it; its
15169# output is simply discarded. So we exec the FD to /dev/null,
15170# effectively closing config.log, so it can be properly (re)opened and
15171# appended to by config.status. When coming back to configure, we
15172# need to make the FD available again.
15173if test "$no_create" != yes; then
15174 ac_cs_success=:
15175 ac_config_status_args=
15176 test "$silent" = yes &&
15177 ac_config_status_args="$ac_config_status_args --quiet"
15178 exec 5>/dev/null
15179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15180 exec 5>>config.log
15181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15182 # would make configure fail if this is the last instruction.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015183 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015184fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015185if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015187$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15188fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015189
Theodore Ts'oee683a12005-02-05 15:53:56 -050015190if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi