blob: 39998de88d73bf38cc00a1142bbbf99bce5a5f54 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003# Generated by GNU Autoconf 2.69.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005#
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018 emulate sh
19 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040023 setopt NO_GLOB_SUBST
24else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040030esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040032
33
Scott James Remnant39fd3d42009-05-14 13:03:25 +010034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050041# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010048 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050058 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010059 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050079fi
80
Theodore Ts'oe1052142006-10-21 21:46:47 -040081
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040087IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040090as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050091case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050094for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
Theodore Ts'oe1052142006-10-21 21:46:47 -0400100IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500101
Theodore Ts'oe1052142006-10-21 21:46:47 -0400102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500111 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -0400112fi
113
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -0400121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400131
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500356
357
358} # as_fn_mkdir_p
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400407# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500408as_fn_error ()
409{
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500414 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400415 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500416 as_fn_exit $as_status
417} # as_fn_error
418
Theodore Ts'oe1052142006-10-21 21:46:47 -0400419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400437
Theodore Ts'oe1052142006-10-21 21:46:47 -0400438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100442$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -0400463
464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500474 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500479 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500482 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500484 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400485 chmod +x "$as_me.lineno" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500487
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500496 # Exit status is that of the last command.
497 exit
498}
499
Theodore Ts'oe1052142006-10-21 21:46:47 -0400500ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500501case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -0400502-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500503 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -0400504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400508 esac;;
509*)
510 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500511esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500512
513rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100518 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400519fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400526 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400528 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400532 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100533 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500534else
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400535 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500539
540if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500541 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559
560# Name of the host.
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565#
566# Initializations.
567#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000568ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400569ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500570ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400571LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500583PACKAGE_URL=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <sys/types.h>
591#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400592#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500593# include <sys/stat.h>
594#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400595#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500596# include <stdlib.h>
597# include <stddef.h>
598#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400599# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500600# include <stdlib.h>
601# endif
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500605# include <memory.h>
606# endif
607# include <string.h>
608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500610# include <strings.h>
611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400614#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400615#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500617#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400618#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500619# include <unistd.h>
620#endif"
621
Theodore Ts'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'od1154eb2011-09-18 17:34:37 -0400630INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100631DO_TEST_SUITE
632ET_DIR
633SS_DIR
634LDFLAG_STATIC
635root_sysconfdir
636root_libdir
637root_sbindir
638root_bindir
639root_prefix
640UNIX_CMT
641CYGWIN_CMT
642LINUX_CMT
643UNI_DIFF_OPTS
644SEM_INIT_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100645SOCKET_LIB
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400646SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100647SIZEOF_LONG_LONG
648SIZEOF_LONG
649SIZEOF_INT
650SIZEOF_SHORT
651BUILD_CC
652MAKEINFO
653STRIP
654AR
655LDCONFIG
656PERL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100657AWK
658CHMOD
659RM
660CP
661MV
662LN_S
663LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400664ifNotGNUmake
665ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100666BINARY_TYPE
667POSUB
668LTLIBINTL
669LIBINTL
670INTLLIBS
671INTL_LIBTOOL_SUFFIX_PREFIX
672INTLOBJS
673GENCAT
674INSTOBJEXT
675DATADIRNAME
676CATOBJEXT
677USE_INCLUDED_LIBINTL
678BUILD_INCLUDED_LIBINTL
Theodore Ts'o93613952014-07-03 23:44:13 -0400679LTLIBC
680WINDRES
681WOE32
682WOE32DLL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100683HAVE_WPRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400684HAVE_NEWLOCALE
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100685HAVE_SNPRINTF
686HAVE_ASPRINTF
687HAVE_POSIX_PRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400688INTL_DEFAULT_VERBOSITY
689INTL_MACOSX_LIBS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100690GLIBC21
Theodore Ts'o93613952014-07-03 23:44:13 -0400691INTLBISON
692LTLIBICONV
693LIBICONV
694LTLIBMULTITHREAD
695LIBMULTITHREAD
696LTLIBTHREAD
697LIBTHREAD
698LIBPTH_PREFIX
699LTLIBPTH
700LIBPTH
701PRI_MACROS_BROKEN
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100702ALLOCA
Theodore Ts'o93613952014-07-03 23:44:13 -0400703HAVE_VISIBILITY
704CFLAG_VISIBILITY
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100705RANLIB
Theodore Ts'o93613952014-07-03 23:44:13 -0400706GLIBC2
707XGETTEXT_EXTRA_OPTIONS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100708MSGMERGE
Theodore Ts'o93613952014-07-03 23:44:13 -0400709XGETTEXT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100710XGETTEXT
Theodore Ts'o93613952014-07-03 23:44:13 -0400711GMSGFMT_015
712MSGFMT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100713GMSGFMT
714MSGFMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400715GETTEXT_MACRO_VERSION
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100716USE_NLS
Theodore Ts'o93613952014-07-03 23:44:13 -0400717SED
718MKDIR_P
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100719INSTALL_DATA
720INSTALL_SCRIPT
721INSTALL_PROGRAM
722SET_MAKE
723VERSION
724PACKAGE
725GETTEXT_PACKAGE
726UUIDD_CMT
727E2INITRD_MAN
728E2INITRD_PROG
729FSCK_MAN
730FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500731DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100732RESIZER_CMT
733IMAGER_CMT
734DEBUGFS_CMT
Aditya Kalif239fef2011-07-20 11:40:02 -0700735QUOTA_CMT
736DEPPROFILED_LIBQUOTA
737PROFILED_LIBQUOTA
738DEPSTATIC_LIBQUOTA
739STATIC_LIBQUOTA
740DEPLIBQUOTA
741LIBQUOTA
Eric Sandeenf5589f42013-10-14 08:54:15 -0400742QUOTA_MAN_COMMENT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100743BLKID_CMT
744DEPPROFILED_LIBBLKID
745PROFILED_LIBBLKID
746DEPSTATIC_LIBBLKID
747STATIC_LIBBLKID
748DEPLIBBLKID
749LIBBLKID
750UUID_CMT
751DEPPROFILED_LIBUUID
752PROFILED_LIBUUID
753DEPSTATIC_LIBUUID
754STATIC_LIBUUID
755DEPLIBUUID
756LIBUUID
Theodore Ts'o93613952014-07-03 23:44:13 -0400757PKG_CONFIG_LIBDIR
758PKG_CONFIG_PATH
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100759PKG_CONFIG
760TEST_IO_CMT
761PRIVATE_LIBS_CMT
762LDFLAG_DYNAMIC
763PROFILED_LIB_EXT
764STATIC_LIB_EXT
765LIB_EXT
766CHECKER_CMT
767PROFILE_CMT
768BSDLIB_CMT
769ELF_CMT
770HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400771Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400772ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400773E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400774LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400775SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400776LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100777MAINTAINER_CMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400778EGREP
779GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100780CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400781RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500782DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100783OBJEXT
784EXEEXT
785ac_ct_CC
786CPPFLAGS
787LDFLAGS
788CFLAGS
789CC
790host_os
791host_vendor
792host_cpu
793host
794build_os
795build_vendor
796build_cpu
797build
798E2FSPROGS_PKGVER
799E2FSPROGS_VERSION
800E2FSPROGS_DAY
801E2FSPROGS_MONTH
802E2FSPROGS_YEAR
803target_alias
804host_alias
805build_alias
806LIBS
807ECHO_T
808ECHO_N
809ECHO_C
810DEFS
811mandir
812localedir
813libdir
814psdir
815pdfdir
816dvidir
817htmldir
818infodir
819docdir
820oldincludedir
821includedir
822localstatedir
823sharedstatedir
824sysconfdir
825datadir
826datarootdir
827libexecdir
828sbindir
829bindir
830program_transform_name
831prefix
832exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500833PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100834PACKAGE_BUGREPORT
835PACKAGE_STRING
836PACKAGE_VERSION
837PACKAGE_TARNAME
838PACKAGE_NAME
839PATH_SEPARATOR
840SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400841ac_subst_files='MCONFIG
842MAKEFILE_ELF
843MAKEFILE_BSDLIB
844MAKEFILE_PROFILE
845MAKEFILE_CHECKER
846MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400847ASM_TYPES_HEADER
848PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100849ac_user_opts='
850enable_option_checking
851with_diet_libc
852with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100853with_ccopts
854with_ldopts
855with_root_prefix
856enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400857enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400858enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400859enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400860enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400861enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100862enable_compression
863enable_htree
864enable_elf_shlibs
865enable_bsd_shlibs
866enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500867enable_gcov
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100868enable_checker
869enable_jbd_debug
870enable_blkid_debug
871enable_testio_debug
872enable_libuuid
873enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500874enable_quota
Theodore Ts'o3df60142013-06-16 16:14:40 -0400875enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100876enable_debugfs
877enable_imager
878enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500879enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100880enable_fsck
881enable_e2initrd_helper
882enable_tls
883enable_uuidd
884enable_nls
Theodore Ts'o93613952014-07-03 23:44:13 -0400885enable_threads
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100886with_gnu_ld
887enable_rpath
Theodore Ts'o93613952014-07-03 23:44:13 -0400888with_libpth_prefix
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100889with_libiconv_prefix
890with_included_gettext
891with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400892with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100893'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400894 ac_precious_vars='build_alias
895host_alias
896target_alias
897CC
898CFLAGS
899LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400900LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400901CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400902CPP
Theodore Ts'o93613952014-07-03 23:44:13 -0400903PKG_CONFIG
904PKG_CONFIG_PATH
905PKG_CONFIG_LIBDIR'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400906
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000907
908# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500909ac_init_help=
910ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100911ac_unrecognized_opts=
912ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000913# The variables have the same names as the options, with
914# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500915cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000916exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000917no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000918no_recursion=
919prefix=NONE
920program_prefix=NONE
921program_suffix=NONE
922program_transform_name=s,x,x,
923silent=
924site=
925srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000926verbose=
927x_includes=NONE
928x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500929
930# Installation directory options.
931# These are left unexpanded so users can "make install exec_prefix=/foo"
932# and all the variables that are supposed to be based on exec_prefix
933# by default will actually change.
934# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400935# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000936bindir='${exec_prefix}/bin'
937sbindir='${exec_prefix}/sbin'
938libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400939datarootdir='${prefix}/share'
940datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000941sysconfdir='${prefix}/etc'
942sharedstatedir='${prefix}/com'
943localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000944includedir='${prefix}/include'
945oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400946docdir='${datarootdir}/doc/${PACKAGE}'
947infodir='${datarootdir}/info'
948htmldir='${docdir}'
949dvidir='${docdir}'
950pdfdir='${docdir}'
951psdir='${docdir}'
952libdir='${exec_prefix}/lib'
953localedir='${datarootdir}/locale'
954mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000955
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000956ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400957ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000958for ac_option
959do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400962 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000963 ac_prev=
964 continue
965 fi
966
Theodore Ts'oe1052142006-10-21 21:46:47 -0400967 case $ac_option in
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400968 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 *=) ac_optarg= ;;
970 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400971 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000972
973 # Accept the important Cygnus configure options, so we can diagnose typos.
974
Theodore Ts'oe1052142006-10-21 21:46:47 -0400975 case $ac_dashdash$ac_option in
976 --)
977 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000978
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500982 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000983
984 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500985 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500987 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000988
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500994 cache_file=$ac_optarg ;;
995
996 --config-cache | -C)
997 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000998
Theodore Ts'oe1052142006-10-21 21:46:47 -0400999 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001000 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001002 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001003
Theodore Ts'oe1052142006-10-21 21:46:47 -04001004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1010
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001011 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001013 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001015 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020"enable_$ac_useropt"
1021"*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001026
1027 -docdir | --docdir | --docdi | --doc | --do)
1028 ac_prev=docdir ;;
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1031
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 ac_prev=dvidir ;;
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001036
1037 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001039 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001041 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1045 *"
1046"enable_$ac_useropt"
1047"*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001052
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001060 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001061
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1064 with_gas=yes ;;
1065
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001072
1073 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001074 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001075 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001076 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001077
Theodore Ts'oe1052142006-10-21 21:46:47 -04001078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079 ac_prev=htmldir ;;
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081 | --ht=*)
1082 htmldir=$ac_optarg ;;
1083
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001089 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001090
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1092 ac_prev=infodir ;;
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001094 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001095
1096 -libdir | --libdir | --libdi | --libd)
1097 ac_prev=libdir ;;
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001099 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001100
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001106 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001107
Theodore Ts'oe1052142006-10-21 21:46:47 -04001108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1112
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001113 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001114 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001118 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001119
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121 ac_prev=mandir ;;
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001123 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001124
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1127 with_fp=no ;;
1128
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001130 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001131 no_create=yes ;;
1132
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135 no_recursion=yes ;;
1136
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001144 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001145
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147 ac_prev=prefix ;;
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001149 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001150
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001156 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001157
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001163 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001164
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001180 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001181
Theodore Ts'oe1052142006-10-21 21:46:47 -04001182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183 ac_prev=pdfdir ;;
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1186
1187 -psdir | --psdir | --psdi | --psd | --ps)
1188 ac_prev=psdir ;;
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190 psdir=$ac_optarg ;;
1191
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1194 silent=yes ;;
1195
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1197 ac_prev=sbindir ;;
1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1199 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001200 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001201
1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204 | --sharedst | --shareds | --shared | --share | --shar \
1205 | --sha | --sh)
1206 ac_prev=sharedstatedir ;;
1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1210 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001211 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001212
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001213 -site | --site | --sit)
1214 ac_prev=site ;;
1215 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001216 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001217
1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1219 ac_prev=srcdir ;;
1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001221 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001222
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224 | --syscon | --sysco | --sysc | --sys | --sy)
1225 ac_prev=sysconfdir ;;
1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001228 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001229
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001230 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001231 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001233 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001234
1235 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1236 verbose=yes ;;
1237
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001238 -version | --version | --versio | --versi | --vers | -V)
1239 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001240
1241 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001242 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001243 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001245 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1249 *"
1250"with_$ac_useropt"
1251"*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001256
1257 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001258 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001259 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001261 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1265 *"
1266"with_$ac_useropt"
1267"*) ;;
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1270 esac
1271 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001272
1273 --x)
1274 # Obsolete; use --with-x.
1275 with_x=yes ;;
1276
1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278 | --x-incl | --x-inc | --x-in | --x-i)
1279 ac_prev=x_includes ;;
1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001282 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001283
1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286 ac_prev=x_libraries ;;
1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001289 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001290
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001291 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1292Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001293 ;;
1294
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001295 *=*)
1296 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001298 case $ac_envvar in #(
1299 '' | [0-9]* | *[!_$as_cr_alnum]* )
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001300 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001301 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001302 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001303 export $ac_envvar ;;
1304
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001305 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001306 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001310 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001311 ;;
1312
1313 esac
1314done
1315
1316if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001317 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001318 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001319fi
1320
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001321if test -n "$ac_unrecognized_opts"; then
1322 case $enable_option_checking in
1323 no) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001324 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1326 esac
1327fi
1328
1329# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001330for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331 datadir sysconfdir sharedstatedir localstatedir includedir \
1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001334do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001335 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001336 # Remove trailing slashes.
1337 case $ac_val in
1338 */ )
1339 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340 eval $ac_var=\$ac_val;;
1341 esac
1342 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001343 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001346 esac
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001347 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001348done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001349
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001350# There might be people who depend on the old broken behavior: `$host'
1351# used to hold the argument of --host etc.
1352# FIXME: To remove some day.
1353build=$build_alias
1354host=$host_alias
1355target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001356
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001357# FIXME: To remove some day.
1358if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001361 elif test "x$build_alias" != "x$host_alias"; then
1362 cross_compiling=yes
1363 fi
1364fi
1365
1366ac_tool_prefix=
1367test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369test "$silent" = yes && exec 6>/dev/null
1370
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001371
Theodore Ts'oe1052142006-10-21 21:46:47 -04001372ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373ac_ls_di=`ls -di .` &&
1374ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001375 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001376test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001377 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001378
1379
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001380# Find the source files, if location was not specified.
1381if test -z "$srcdir"; then
1382 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001383 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001384 ac_confdir=`$as_dirname -- "$as_myself" ||
1385$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$as_myself" : 'X\(//\)[^/]' \| \
1387 X"$as_myself" : 'X\(//\)$' \| \
1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\/\)[^/].*/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\).*/{
1403 s//\1/
1404 q
1405 }
1406 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001407 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001408 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001409 srcdir=..
1410 fi
1411else
1412 ac_srcdir_defaulted=no
1413fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001414if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001416 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001417fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001418ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419ac_abs_confdir=`(
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001421 pwd)`
1422# When building in place, set srcdir=.
1423if test "$ac_abs_confdir" = "$ac_pwd"; then
1424 srcdir=.
1425fi
1426# Remove unnecessary trailing slashes from srcdir.
1427# Double slashes in file names in object file debugging info
1428# mess up M-x gdb in Emacs.
1429case $srcdir in
1430*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431esac
1432for ac_var in $ac_precious_vars; do
1433 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_${ac_var}_value=\$${ac_var}
1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001438
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001439#
1440# Report the --help message.
1441#
1442if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1445 cat <<_ACEOF
1446\`configure' configures this package to adapt to many kinds of systems.
1447
1448Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451VAR=VALUE. See below for descriptions of some of the useful variables.
1452
1453Defaults for the options are specified in brackets.
1454
1455Configuration:
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001460 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for \`--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001466Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001468 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001470 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001471
1472By default, \`make install' will install all the files in
1473\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475for instance \`--prefix=\$HOME'.
1476
1477For better control, use the options below.
1478
1479Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --libdir=DIR object code libraries [EPREFIX/lib]
1487 --includedir=DIR C header files [PREFIX/include]
1488 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491 --infodir=DIR info documentation [DATAROOTDIR/info]
1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493 --mandir=DIR man documentation [DATAROOTDIR/man]
1494 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1495 --htmldir=DIR html documentation [DOCDIR]
1496 --dvidir=DIR dvi documentation [DOCDIR]
1497 --pdfdir=DIR pdf documentation [DOCDIR]
1498 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001499_ACEOF
1500
1501 cat <<\_ACEOF
1502
1503System types:
1504 --build=BUILD configure for building on BUILD [guessed]
1505 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506_ACEOF
1507fi
1508
1509if test -n "$ac_init_help"; then
1510
1511 cat <<\_ACEOF
1512
1513Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001514 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001517 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001518 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001519 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001520
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001521 --enable-symlink-build use symlinks while building instead of hard links
1522 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001523 --enable-compression enable EXPERIMENTAL compression support
1524 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001525 --enable-elf-shlibs select ELF shared libraries
1526 --enable-bsd-shlibs select BSD shared libraries
1527 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001528 --enable-gcov build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001529 --enable-checker build checker libraries
1530 --enable-jbd-debug enable journal debugging
1531 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001532 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001533 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001534 --disable-libblkid do not build private blkid library
Eric Sandeen7b8912e2012-11-27 12:21:56 -06001535 --enable-quota enable quota support
Theodore Ts'o3df60142013-06-16 16:14:40 -04001536 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001537 --disable-debugfs disable support of debugfs program
1538 --disable-imager disable support of e2image program
1539 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001540 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001541 --enable-fsck build fsck wrapper program
1542 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001543 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001544 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001545 --disable-nls do not use Native Language Support
Theodore Ts'o93613952014-07-03 23:44:13 -04001546 --enable-threads={posix|solaris|pth|windows}
1547 specify multithreading API
1548 --disable-threads build without multithread safety
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001549 --disable-rpath do not hardcode runtime library paths
1550
1551Optional Packages:
1552 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1553 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001554 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001555 --with-cc no longer supported, use CC= instead
1556 --with-ccopts no longer supported, use CFLAGS= instead
1557 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001558 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
Theodore Ts'o93613952014-07-03 23:44:13 -04001559 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1560 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1561 --without-libpth-prefix don't search for libpth in includedir and libdir
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001562 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1563 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1564 --with-included-gettext use the GNU gettext library included here
1565 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1566 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001567 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001568
1569Some influential environment variables:
1570 CC C compiler command
1571 CFLAGS C compiler flags
1572 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1573 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001574 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001575 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001576 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001577 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001578 PKG_CONFIG path to pkg-config utility
Theodore Ts'o93613952014-07-03 23:44:13 -04001579 PKG_CONFIG_PATH
1580 directories to add to pkg-config's search path
1581 PKG_CONFIG_LIBDIR
1582 path overriding pkg-config's built-in search path
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001583
1584Use these variables to override the choices made by `configure' or to help
1585it to find libraries and programs with nonstandard names/locations.
1586
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001587Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001588_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001589ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001590fi
1591
1592if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001595 test -d "$ac_dir" ||
1596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001598 ac_builddir=.
1599
Theodore Ts'oe1052142006-10-21 21:46:47 -04001600case "$ac_dir" in
1601.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001604 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001606 case $ac_top_builddir_sub in
1607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1609 esac ;;
1610esac
1611ac_abs_top_builddir=$ac_pwd
1612ac_abs_builddir=$ac_pwd$ac_dir_suffix
1613# for backward compatibility:
1614ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001615
1616case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001617 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001618 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001619 ac_top_srcdir=$ac_top_builddir_sub
1620 ac_abs_top_srcdir=$ac_pwd ;;
1621 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001622 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001623 ac_top_srcdir=$srcdir
1624 ac_abs_top_srcdir=$srcdir ;;
1625 *) # Relative name.
1626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627 ac_top_srcdir=$ac_top_build_prefix$srcdir
1628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001629esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001630ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001631
Theodore Ts'oe1052142006-10-21 21:46:47 -04001632 cd "$ac_dir" || { ac_status=$?; continue; }
1633 # Check for guested configure.
1634 if test -f "$ac_srcdir/configure.gnu"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637 elif test -f "$ac_srcdir/configure"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001640 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001642 fi || ac_status=$?
1643 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001644 done
1645fi
1646
Theodore Ts'oe1052142006-10-21 21:46:47 -04001647test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001648if $ac_init_version; then
1649 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001650configure
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001651generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001652
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001653Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001654This configure script is free software; the Free Software Foundation
1655gives unlimited permission to copy, distribute and modify it.
1656_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001657 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001658fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001659
1660## ------------------------ ##
1661## Autoconf initialization. ##
1662## ------------------------ ##
1663
1664# ac_fn_c_try_compile LINENO
1665# --------------------------
1666# Try to compile conftest.$ac_ext, and return whether this succeeded.
1667ac_fn_c_try_compile ()
1668{
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext
1671 if { { ac_try="$ac_compile"
1672case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1690 ac_retval=0
1691else
1692 $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001698 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001699
1700} # ac_fn_c_try_compile
1701
1702# ac_fn_c_try_link LINENO
1703# -----------------------
1704# Try to link conftest.$ac_ext, and return whether this succeeded.
1705ac_fn_c_try_link ()
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext conftest$ac_exeext
1709 if { { ac_try="$ac_link"
1710case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest$ac_exeext && {
1728 test "$cross_compiling" = yes ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001729 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001730 }; then :
1731 ac_retval=0
1732else
1733 $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=1
1737fi
1738 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1739 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1740 # interfere with the next link command; also delete a directory that is
1741 # left behind by Apple's compiler. We do this before executing the actions.
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001744 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001745
1746} # ac_fn_c_try_link
1747
1748# ac_fn_c_try_cpp LINENO
1749# ----------------------
1750# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1751ac_fn_c_try_cpp ()
1752{
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_cpp conftest.$ac_ext"
1755case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758esac
1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760$as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1767 fi
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001769 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 }; then :
1773 ac_retval=0
1774else
1775 $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=1
1779fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001781 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001782
1783} # ac_fn_c_try_cpp
1784
1785# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786# -------------------------------------------------------
1787# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788# the include files in INCLUDES and setting the cache variable VAR
1789# accordingly.
1790ac_fn_c_check_header_mongrel ()
1791{
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001793 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001796if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001797 $as_echo_n "(cached) " >&6
1798fi
1799eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801$as_echo "$ac_res" >&6; }
1802else
1803 # Is the header compilable?
1804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805$as_echo_n "checking $2 usability... " >&6; }
1806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h. */
1808$4
1809#include <$2>
1810_ACEOF
1811if ac_fn_c_try_compile "$LINENO"; then :
1812 ac_header_compiler=yes
1813else
1814 ac_header_compiler=no
1815fi
1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818$as_echo "$ac_header_compiler" >&6; }
1819
1820# Is the header present?
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822$as_echo_n "checking $2 presence... " >&6; }
1823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h. */
1825#include <$2>
1826_ACEOF
1827if ac_fn_c_try_cpp "$LINENO"; then :
1828 ac_header_preproc=yes
1829else
1830 ac_header_preproc=no
1831fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001832rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834$as_echo "$ac_header_preproc" >&6; }
1835
1836# So? What about this header?
1837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1838 yes:no: )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ;;
1844 no:yes:* )
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1848$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1852$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855 ;;
1856esac
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001859if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001860 $as_echo_n "(cached) " >&6
1861else
1862 eval "$3=\$ac_header_compiler"
1863fi
1864eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
1867fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001869
1870} # ac_fn_c_check_header_mongrel
1871
Theodore Ts'o93613952014-07-03 23:44:13 -04001872# ac_fn_c_try_run LINENO
1873# ----------------------
1874# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1875# that executables *can* be run.
1876ac_fn_c_try_run ()
1877{
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if { { ac_try="$ac_link"
1880case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883esac
1884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885$as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_link") 2>&5
1887 ac_status=$?
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1890 { { case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893esac
1894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895$as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_try") 2>&5
1897 ac_status=$?
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; }; }; then :
1900 ac_retval=0
1901else
1902 $as_echo "$as_me: program exited with status $ac_status" >&5
1903 $as_echo "$as_me: failed program was:" >&5
1904sed 's/^/| /' conftest.$ac_ext >&5
1905
1906 ac_retval=$ac_status
1907fi
1908 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 as_fn_set_status $ac_retval
1911
1912} # ac_fn_c_try_run
1913
1914# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1915# -------------------------------------------------------
1916# Tests whether HEADER exists and can be compiled using the include files in
1917# INCLUDES, setting the cache variable VAR accordingly.
1918ac_fn_c_check_header_compile ()
1919{
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922$as_echo_n "checking for $2... " >&6; }
1923if eval \${$3+:} false; then :
1924 $as_echo_n "(cached) " >&6
1925else
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h. */
1928$4
1929#include <$2>
1930_ACEOF
1931if ac_fn_c_try_compile "$LINENO"; then :
1932 eval "$3=yes"
1933else
1934 eval "$3=no"
1935fi
1936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937fi
1938eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940$as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943} # ac_fn_c_check_header_compile
1944
1945# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1946# -------------------------------------------
1947# Tests whether TYPE exists after having included INCLUDES, setting cache
1948# variable VAR accordingly.
1949ac_fn_c_check_type ()
1950{
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953$as_echo_n "checking for $2... " >&6; }
1954if eval \${$3+:} false; then :
1955 $as_echo_n "(cached) " >&6
1956else
1957 eval "$3=no"
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959/* end confdefs.h. */
1960$4
1961int
1962main ()
1963{
1964if (sizeof ($2))
1965 return 0;
1966 ;
1967 return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_compile "$LINENO"; then :
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h. */
1973$4
1974int
1975main ()
1976{
1977if (sizeof (($2)))
1978 return 0;
1979 ;
1980 return 0;
1981}
1982_ACEOF
1983if ac_fn_c_try_compile "$LINENO"; then :
1984
1985else
1986 eval "$3=yes"
1987fi
1988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989fi
1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991fi
1992eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994$as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996
1997} # ac_fn_c_check_type
1998
1999# ac_fn_c_check_func LINENO FUNC VAR
2000# ----------------------------------
2001# Tests whether FUNC exists, setting the cache variable VAR accordingly
2002ac_fn_c_check_func ()
2003{
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006$as_echo_n "checking for $2... " >&6; }
2007if eval \${$3+:} false; then :
2008 $as_echo_n "(cached) " >&6
2009else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h. */
2012/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2014#define $2 innocuous_$2
2015
2016/* System header to define __stub macros and hopefully few prototypes,
2017 which can conflict with char $2 (); below.
2018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2019 <limits.h> exists even on freestanding compilers. */
2020
2021#ifdef __STDC__
2022# include <limits.h>
2023#else
2024# include <assert.h>
2025#endif
2026
2027#undef $2
2028
2029/* Override any GCC internal prototype to avoid an error.
2030 Use char because int might match the return type of a GCC
2031 builtin and then its argument prototype would still apply. */
2032#ifdef __cplusplus
2033extern "C"
2034#endif
2035char $2 ();
2036/* The GNU C library defines this for functions which it implements
2037 to always fail with ENOSYS. Some functions are actually named
2038 something starting with __ and the normal name is an alias. */
2039#if defined __stub_$2 || defined __stub___$2
2040choke me
2041#endif
2042
2043int
2044main ()
2045{
2046return $2 ();
2047 ;
2048 return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_link "$LINENO"; then :
2052 eval "$3=yes"
2053else
2054 eval "$3=no"
2055fi
2056rm -f core conftest.err conftest.$ac_objext \
2057 conftest$ac_exeext conftest.$ac_ext
2058fi
2059eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061$as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063
2064} # ac_fn_c_check_func
2065
2066# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2067# ---------------------------------------------
2068# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2069# accordingly.
2070ac_fn_c_check_decl ()
2071{
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 as_decl_name=`echo $2|sed 's/ *(.*//'`
2074 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2076$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2077if eval \${$3+:} false; then :
2078 $as_echo_n "(cached) " >&6
2079else
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h. */
2082$4
2083int
2084main ()
2085{
2086#ifndef $as_decl_name
2087#ifdef __cplusplus
2088 (void) $as_decl_use;
2089#else
2090 (void) $as_decl_name;
2091#endif
2092#endif
2093
2094 ;
2095 return 0;
2096}
2097_ACEOF
2098if ac_fn_c_try_compile "$LINENO"; then :
2099 eval "$3=yes"
2100else
2101 eval "$3=no"
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104fi
2105eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107$as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109
2110} # ac_fn_c_check_decl
2111
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002112# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2113# --------------------------------------------
2114# Tries to find the compile-time value of EXPR in a program that includes
2115# INCLUDES, setting VAR accordingly. Returns whether the value could be
2116# computed
2117ac_fn_c_compute_int ()
2118{
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 if test "$cross_compiling" = yes; then
2121 # Depending upon the size, compute the lo and hi bounds.
2122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123/* end confdefs.h. */
2124$4
2125int
2126main ()
2127{
2128static int test_array [1 - 2 * !(($2) >= 0)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002129test_array [0] = 0;
2130return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002131
2132 ;
2133 return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_lo=0 ac_mid=0
2138 while :; do
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h. */
2141$4
2142int
2143main ()
2144{
2145static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002146test_array [0] = 0;
2147return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002148
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_hi=$ac_mid; break
2155else
2156 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2157 if test $ac_lo -le $ac_mid; then
2158 ac_lo= ac_hi=
2159 break
2160 fi
2161 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2162fi
2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 done
2165else
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167/* end confdefs.h. */
2168$4
2169int
2170main ()
2171{
2172static int test_array [1 - 2 * !(($2) < 0)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002173test_array [0] = 0;
2174return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002175
2176 ;
2177 return 0;
2178}
2179_ACEOF
2180if ac_fn_c_try_compile "$LINENO"; then :
2181 ac_hi=-1 ac_mid=-1
2182 while :; do
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184/* end confdefs.h. */
2185$4
2186int
2187main ()
2188{
2189static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002190test_array [0] = 0;
2191return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002192
2193 ;
2194 return 0;
2195}
2196_ACEOF
2197if ac_fn_c_try_compile "$LINENO"; then :
2198 ac_lo=$ac_mid; break
2199else
2200 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2201 if test $ac_mid -le $ac_hi; then
2202 ac_lo= ac_hi=
2203 break
2204 fi
2205 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2206fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 done
2209else
2210 ac_lo= ac_hi=
2211fi
2212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213fi
2214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215# Binary search between lo and hi bounds.
2216while test "x$ac_lo" != "x$ac_hi"; do
2217 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h. */
2220$4
2221int
2222main ()
2223{
2224static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002225test_array [0] = 0;
2226return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002227
2228 ;
2229 return 0;
2230}
2231_ACEOF
2232if ac_fn_c_try_compile "$LINENO"; then :
2233 ac_hi=$ac_mid
2234else
2235 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2236fi
2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238done
2239case $ac_lo in #((
2240?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2241'') ac_retval=1 ;;
2242esac
2243 else
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245/* end confdefs.h. */
2246$4
2247static long int longval () { return $2; }
2248static unsigned long int ulongval () { return $2; }
2249#include <stdio.h>
2250#include <stdlib.h>
2251int
2252main ()
2253{
2254
2255 FILE *f = fopen ("conftest.val", "w");
2256 if (! f)
2257 return 1;
2258 if (($2) < 0)
2259 {
2260 long int i = longval ();
2261 if (i != ($2))
2262 return 1;
2263 fprintf (f, "%ld", i);
2264 }
2265 else
2266 {
2267 unsigned long int i = ulongval ();
2268 if (i != ($2))
2269 return 1;
2270 fprintf (f, "%lu", i);
2271 }
2272 /* Do not output a trailing newline, as this causes \r\n confusion
2273 on some platforms. */
2274 return ferror (f) || fclose (f) != 0;
2275
2276 ;
2277 return 0;
2278}
2279_ACEOF
2280if ac_fn_c_try_run "$LINENO"; then :
2281 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2282else
2283 ac_retval=1
2284fi
2285rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2286 conftest.$ac_objext conftest.beam conftest.$ac_ext
2287rm -f conftest.val
2288
2289 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002291 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002292
2293} # ac_fn_c_compute_int
2294
2295# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2296# ----------------------------------------------------
2297# Tries to find if the field MEMBER exists in type AGGR, after including
2298# INCLUDES, setting cache variable VAR accordingly.
2299ac_fn_c_check_member ()
2300{
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2303$as_echo_n "checking for $2.$3... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002304if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002305 $as_echo_n "(cached) " >&6
2306else
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308/* end confdefs.h. */
2309$5
2310int
2311main ()
2312{
2313static $2 ac_aggr;
2314if (ac_aggr.$3)
2315return 0;
2316 ;
2317 return 0;
2318}
2319_ACEOF
2320if ac_fn_c_try_compile "$LINENO"; then :
2321 eval "$4=yes"
2322else
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324/* end confdefs.h. */
2325$5
2326int
2327main ()
2328{
2329static $2 ac_aggr;
2330if (sizeof ac_aggr.$3)
2331return 0;
2332 ;
2333 return 0;
2334}
2335_ACEOF
2336if ac_fn_c_try_compile "$LINENO"; then :
2337 eval "$4=yes"
2338else
2339 eval "$4=no"
2340fi
2341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342fi
2343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344fi
2345eval ac_res=\$$4
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002348 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002349
2350} # ac_fn_c_check_member
Theodore Ts'oe1052142006-10-21 21:46:47 -04002351cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002352This file contains any messages produced by compilers while
2353running configure, to aid debugging if configure makes a mistake.
2354
2355It was created by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002356generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002357
2358 $ $0 $@
2359
2360_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002361exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002362{
2363cat <<_ASUNAME
2364## --------- ##
2365## Platform. ##
2366## --------- ##
2367
2368hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2369uname -m = `(uname -m) 2>/dev/null || echo unknown`
2370uname -r = `(uname -r) 2>/dev/null || echo unknown`
2371uname -s = `(uname -s) 2>/dev/null || echo unknown`
2372uname -v = `(uname -v) 2>/dev/null || echo unknown`
2373
2374/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2375/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2376
2377/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2378/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2379/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002380/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002381/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2382/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2383/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2384
2385_ASUNAME
2386
2387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388for as_dir in $PATH
2389do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002392 $as_echo "PATH: $as_dir"
2393 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002394IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002395
2396} >&5
2397
2398cat >&5 <<_ACEOF
2399
2400
2401## ----------- ##
2402## Core tests. ##
2403## ----------- ##
2404
2405_ACEOF
2406
2407
2408# Keep a trace of the command line.
2409# Strip out --no-create and --no-recursion so they do not pile up.
2410# Strip out --silent because we don't want to record it for future runs.
2411# Also quote any args containing shell meta-characters.
2412# Make two passes to allow for proper duplicate-argument suppression.
2413ac_configure_args=
2414ac_configure_args0=
2415ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002416ac_must_keep_next=false
2417for ac_pass in 1 2
2418do
2419 for ac_arg
2420 do
2421 case $ac_arg in
2422 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2423 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2424 | -silent | --silent | --silen | --sile | --sil)
2425 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002426 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002427 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002428 esac
2429 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002430 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002431 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002432 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002433 if test $ac_must_keep_next = true; then
2434 ac_must_keep_next=false # Got value, back to normal.
2435 else
2436 case $ac_arg in
2437 *=* | --config-cache | -C | -disable-* | --disable-* \
2438 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2439 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2440 | -with-* | --with-* | -without-* | --without-* | --x)
2441 case "$ac_configure_args0 " in
2442 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2443 esac
2444 ;;
2445 -* ) ac_must_keep_next=true ;;
2446 esac
2447 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002448 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002449 ;;
2450 esac
2451 done
2452done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002453{ ac_configure_args0=; unset ac_configure_args0;}
2454{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002455
2456# When interrupted or exit'd, cleanup temporary files, and complete
2457# config.log. We remove comments because anyway the quotes in there
2458# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002459# WARNING: Use '\'' to represent an apostrophe within the trap.
2460# 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 -05002461trap 'exit_status=$?
2462 # Save into config.log some information that might help in debugging.
2463 {
2464 echo
2465
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002466 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002467## Cache variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002468## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002469 echo
2470 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002471(
2472 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2473 eval ac_val=\$$ac_var
2474 case $ac_val in #(
2475 *${as_nl}*)
2476 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002477 *_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 +01002478$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002479 esac
2480 case $ac_var in #(
2481 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002482 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002483 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002484 esac ;;
2485 esac
2486 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002487 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002488 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2489 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002490 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002491 "s/'\''/'\''\\\\'\'''\''/g;
2492 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2493 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002494 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002495 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002496 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002497 esac |
2498 sort
2499)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002500 echo
2501
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002502 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002503## Output variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002504## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002505 echo
2506 for ac_var in $ac_subst_vars
2507 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002508 eval ac_val=\$$ac_var
2509 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002510 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002511 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002512 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002513 done | sort
2514 echo
2515
2516 if test -n "$ac_subst_files"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002517 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002518## File substitutions. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002519## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002520 echo
2521 for ac_var in $ac_subst_files
2522 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002523 eval ac_val=\$$ac_var
2524 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002525 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002526 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002527 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002528 done | sort
2529 echo
2530 fi
2531
2532 if test -s confdefs.h; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002533 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002534## confdefs.h. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002535## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002536 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002537 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002538 echo
2539 fi
2540 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002541 $as_echo "$as_me: caught signal $ac_signal"
2542 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002543 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002544 rm -f core *.core core.conftest.* &&
2545 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002546 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002547' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002548for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002549 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002550done
2551ac_signal=0
2552
2553# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002554rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002555
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002556$as_echo "/* confdefs.h */" > confdefs.h
2557
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002558# Predefined preprocessor variables.
2559
2560cat >>confdefs.h <<_ACEOF
2561#define PACKAGE_NAME "$PACKAGE_NAME"
2562_ACEOF
2563
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002564cat >>confdefs.h <<_ACEOF
2565#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2566_ACEOF
2567
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002568cat >>confdefs.h <<_ACEOF
2569#define PACKAGE_VERSION "$PACKAGE_VERSION"
2570_ACEOF
2571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002572cat >>confdefs.h <<_ACEOF
2573#define PACKAGE_STRING "$PACKAGE_STRING"
2574_ACEOF
2575
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002576cat >>confdefs.h <<_ACEOF
2577#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2578_ACEOF
2579
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002580cat >>confdefs.h <<_ACEOF
2581#define PACKAGE_URL "$PACKAGE_URL"
2582_ACEOF
2583
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002584
2585# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002586# Prefer an explicitly selected file to automatically selected ones.
2587ac_site_file1=NONE
2588ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002589if test -n "$CONFIG_SITE"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002590 # We do not want a PATH search for config.site.
2591 case $CONFIG_SITE in #((
2592 -*) ac_site_file1=./$CONFIG_SITE;;
2593 */*) ac_site_file1=$CONFIG_SITE;;
2594 *) ac_site_file1=./$CONFIG_SITE;;
2595 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002596elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002597 ac_site_file1=$prefix/share/config.site
2598 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002599else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002600 ac_site_file1=$ac_default_prefix/share/config.site
2601 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002602fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002603for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002604do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002605 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002606 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002607 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002608$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002609 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002610 . "$ac_site_file" \
2611 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613as_fn_error $? "failed to load site script $ac_site_file
2614See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002615 fi
2616done
2617
2618if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002619 # Some versions of bash will fail to source /dev/null (special files
2620 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2621 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002622 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002623$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002624 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002625 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2626 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002627 esac
2628 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002629else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002630 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002631$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002632 >$cache_file
2633fi
2634
Theodore Ts'o93613952014-07-03 23:44:13 -04002635gt_needs="$gt_needs "
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002636as_fn_append ac_header_list " stdlib.h"
2637as_fn_append ac_header_list " unistd.h"
2638as_fn_append ac_header_list " sys/param.h"
Theodore Ts'o93613952014-07-03 23:44:13 -04002639as_fn_append ac_func_list " symlink"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002640# Check that the precious variables saved in the cache have kept the same
2641# value.
2642ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002643for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002644 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2645 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002646 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2647 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002648 case $ac_old_set,$ac_new_set in
2649 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002650 { $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 +01002651$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 -05002652 ac_cache_corrupted=: ;;
2653 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002654 { $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 +01002655$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002656 ac_cache_corrupted=: ;;
2657 ,);;
2658 *)
2659 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002660 # differences in whitespace do not lead to failure.
2661 ac_old_val_w=`echo x $ac_old_val`
2662 ac_new_val_w=`echo x $ac_new_val`
2663 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002664 { $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 +01002665$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2666 ac_cache_corrupted=:
2667 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002668 { $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 +01002669$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2670 eval $ac_var=\$ac_old_val
2671 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002672 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002673$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002674 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002675$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002676 fi;;
2677 esac
2678 # Pass precious variables to config.status.
2679 if test "$ac_new_set" = set; then
2680 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002681 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002682 *) ac_arg=$ac_var=$ac_new_val ;;
2683 esac
2684 case " $ac_configure_args " in
2685 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002686 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002687 esac
2688 fi
2689done
2690if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002693 { $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 +01002694$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002695 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002696fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002697## -------------------- ##
2698## Main body of script. ##
2699## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002700
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002701ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002702ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2705ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002706
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002707
2708
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002709ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002710for ac_dir in config "$srcdir"/config; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002711 if test -f "$ac_dir/install-sh"; then
2712 ac_aux_dir=$ac_dir
2713 ac_install_sh="$ac_aux_dir/install-sh -c"
2714 break
2715 elif test -f "$ac_dir/install.sh"; then
2716 ac_aux_dir=$ac_dir
2717 ac_install_sh="$ac_aux_dir/install.sh -c"
2718 break
2719 elif test -f "$ac_dir/shtool"; then
2720 ac_aux_dir=$ac_dir
2721 ac_install_sh="$ac_aux_dir/shtool install -c"
2722 break
2723 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002724done
2725if test -z "$ac_aux_dir"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002726 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 +00002727fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002728
2729# These three variables are undocumented and unsupported,
2730# and are intended to be withdrawn in a future Autoconf release.
2731# They can cause serious problems if a builder's source tree is in a directory
2732# whose full name contains unusual characters.
2733ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2734ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2735ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2736
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002737
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002738ac_config_headers="$ac_config_headers lib/config.h"
2739
2740
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002741MCONFIG=./MCONFIG
2742
Theodore Ts'o74becf31997-04-26 14:37:06 +00002743BINARY_TYPE=bin
2744E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2745 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2746DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2747 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002748E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002749MONTH=`echo $DATE | awk -F- '{print $2}'`
2750YEAR=`echo $DATE | awk -F- '{print $3}'`
2751
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002752if expr $YEAR ">" 1900 > /dev/null ; then
2753 E2FSPROGS_YEAR=$YEAR
2754elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002755 E2FSPROGS_YEAR=19$YEAR
2756else
2757 E2FSPROGS_YEAR=20$YEAR
2758fi
2759
2760case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002761Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2762Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2763Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2764Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2765May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2766Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2767Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2768Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2769Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2770Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2771Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2772Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002773*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002774$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002775esac
2776
Andreas Dilger927566a2006-11-12 19:41:25 -05002777base_ver=`echo $E2FSPROGS_VERSION | \
2778 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002779
2780date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2781
2782case $E2FSPROGS_VERSION in
2783*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002784 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002785 ;;
2786*)
2787 E2FSPROGS_PKGVER="$base_ver"
2788 ;;
2789esac
2790
2791unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002792{ $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 +01002793$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002795$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002796
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002797
2798
2799
Andreas Dilger927566a2006-11-12 19:41:25 -05002800
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002801WITH_DIET_LIBC=
2802
2803# Check whether --with-diet-libc was given.
2804if test "${with_diet_libc+set}" = set; then :
2805 withval=$with_diet_libc; CC="diet cc -nostdinc"
2806WITH_DIET_LIBC=yes
2807if test -z "$LIBS"
2808then
2809 LIBS="-lcompat"
2810else
2811 LIBS="$LIBS -lcompat"
2812fi
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2814$as_echo "CC=$CC" >&6; }
2815fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002816# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002817$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002818 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002819
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002821$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002822if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002823 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002824else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002825 ac_build_alias=$build_alias
2826test "x$ac_build_alias" = x &&
2827 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2828test "x$ac_build_alias" = x &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002829 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002830ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002831 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002832
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002833fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002835$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002836case $ac_cv_build in
2837*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002838*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002839esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002840build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002841ac_save_IFS=$IFS; IFS='-'
2842set x $ac_cv_build
2843shift
2844build_cpu=$1
2845build_vendor=$2
2846shift; shift
2847# Remember, the first character of IFS is used to create $*,
2848# except with old shells:
2849build_os=$*
2850IFS=$ac_save_IFS
2851case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002852
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002853
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002855$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002856if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002857 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002858else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002859 if test "x$host_alias" = x; then
2860 ac_cv_host=$ac_cv_build
2861else
2862 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002863 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002864fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002865
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002866fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002868$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002869case $ac_cv_host in
2870*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002871*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002872esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002873host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002874ac_save_IFS=$IFS; IFS='-'
2875set x $ac_cv_host
2876shift
2877host_cpu=$1
2878host_vendor=$2
2879shift; shift
2880# Remember, the first character of IFS is used to create $*,
2881# except with old shells:
2882host_os=$*
2883IFS=$ac_save_IFS
2884case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002885
2886
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002887DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002888ac_ext=c
2889ac_cpp='$CPP $CPPFLAGS'
2890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893if test -n "$ac_tool_prefix"; then
2894 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2895set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002897$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002898if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002899 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002900else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905for as_dir in $PATH
2906do
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002909 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002911 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002913 break 2
2914 fi
2915done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002916 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002917IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002918
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002919fi
2920fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002921CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002922if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002924$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002925else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002927$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002928fi
2929
Theodore Ts'oe1052142006-10-21 21:46:47 -04002930
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002931fi
2932if test -z "$ac_cv_prog_CC"; then
2933 ac_ct_CC=$CC
2934 # Extract the first word of "gcc", so it can be a program name with args.
2935set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002937$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002938if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002939 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002940else
2941 if test -n "$ac_ct_CC"; then
2942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943else
2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002949 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002951 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002953 break 2
2954 fi
2955done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002956 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002957IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002958
2959fi
2960fi
2961ac_ct_CC=$ac_cv_prog_ac_ct_CC
2962if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002964$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002965else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002967$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002968fi
2969
Theodore Ts'oe1052142006-10-21 21:46:47 -04002970 if test "x$ac_ct_CC" = x; then
2971 CC=""
2972 else
2973 case $cross_compiling:$ac_tool_warned in
2974yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002975{ $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 +01002976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002977ac_tool_warned=yes ;;
2978esac
2979 CC=$ac_ct_CC
2980 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002981else
2982 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002983fi
2984
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002985if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002986 if test -n "$ac_tool_prefix"; then
2987 # 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 -05002988set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002990$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002991if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002992 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002993else
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC="$CC" # Let the user override the test.
2996else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998for as_dir in $PATH
2999do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003002 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003004 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003006 break 2
3007 fi
3008done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003009 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003010IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003011
3012fi
3013fi
3014CC=$ac_cv_prog_CC
3015if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003017$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003018else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003020$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003021fi
3022
Theodore Ts'oe1052142006-10-21 21:46:47 -04003023
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003024 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003025fi
3026if test -z "$CC"; then
3027 # Extract the first word of "cc", so it can be a program name with args.
3028set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003030$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003031if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003032 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003033else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003037 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003043 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003045 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3046 ac_prog_rejected=yes
3047 continue
3048 fi
3049 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003051 break 2
3052 fi
3053done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003054 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003055IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003056
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003057if test $ac_prog_rejected = yes; then
3058 # We found a bogon in the path, so make sure we never use it.
3059 set dummy $ac_cv_prog_CC
3060 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003061 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003062 # We chose a different compiler from the bogus one.
3063 # However, it has the same basename, so the bogon will be chosen
3064 # first if we set CC to just the basename; use the full file name.
3065 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003066 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003067 fi
3068fi
3069fi
3070fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003071CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003072if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003074$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003075else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003077$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003078fi
3079
Theodore Ts'oe1052142006-10-21 21:46:47 -04003080
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003081fi
3082if test -z "$CC"; then
3083 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003084 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003085 do
3086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003089$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003090if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003091 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003092else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003101 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003103 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003105 break 2
3106 fi
3107done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003108 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003109IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003110
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003111fi
3112fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003113CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003114if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003116$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003117else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003119$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003120fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003121
Theodore Ts'oe1052142006-10-21 21:46:47 -04003122
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003123 test -n "$CC" && break
3124 done
3125fi
3126if test -z "$CC"; then
3127 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003128 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003129do
3130 # Extract the first word of "$ac_prog", so it can be a program name with args.
3131set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003133$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003134if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003135 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003136else
3137 if test -n "$ac_ct_CC"; then
3138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139else
3140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141for as_dir in $PATH
3142do
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003145 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003147 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003149 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003150 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003151done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003152 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003153IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003154
3155fi
3156fi
3157ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003160$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003161else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003163$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003164fi
3165
Theodore Ts'oe1052142006-10-21 21:46:47 -04003166
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003167 test -n "$ac_ct_CC" && break
3168done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003169
Theodore Ts'oe1052142006-10-21 21:46:47 -04003170 if test "x$ac_ct_CC" = x; then
3171 CC=""
3172 else
3173 case $cross_compiling:$ac_tool_warned in
3174yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003175{ $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 +01003176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003177ac_tool_warned=yes ;;
3178esac
3179 CC=$ac_ct_CC
3180 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003181fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003182
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003183fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003184
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003185
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003186test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003188as_fn_error $? "no acceptable C compiler found in \$PATH
3189See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003190
3191# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003192$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003193set X $ac_compile
3194ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003195for ac_option in --version -v -V -qversion; do
3196 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003197case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202$as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003204 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003205 if test -s conftest.err; then
3206 sed '10a\
3207... rest of stderr output deleted ...
3208 10q' conftest.err >conftest.er1
3209 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003210 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003211 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }
3214done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003215
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003217/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003218
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003219int
3220main ()
3221{
3222
3223 ;
3224 return 0;
3225}
3226_ACEOF
3227ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003228ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003229# Try to create an executable without -o first, disregard a.out.
3230# It will help us diagnose broken compilers, and finding out an intuition
3231# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3233$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003234ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3235
3236# The possible output files:
3237ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3238
Theodore Ts'oe1052142006-10-21 21:46:47 -04003239ac_rmfiles=
3240for ac_file in $ac_files
3241do
3242 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003244 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3245 esac
3246done
3247rm -f $ac_rmfiles
3248
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003249if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003250case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003256 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003257 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003260 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3261# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3262# in a Makefile. We should not override ac_cv_exeext if it was cached,
3263# so that the user can short-circuit this test for compilers unknown to
3264# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003265for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003266do
3267 test -f "$ac_file" || continue
3268 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003270 ;;
3271 [ab].out )
3272 # We found the default executable, but exeext='' is most
3273 # certainly right.
3274 break;;
3275 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003276 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003277 then :; else
3278 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279 fi
3280 # We set ac_cv_exeext here because the later test for it is not
3281 # safe: cross compilers may not add the suffix if given an `-o'
3282 # argument, so we may need to know it at that point already.
3283 # Even if this section looks crufty: it has the advantage of
3284 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003285 break;;
3286 * )
3287 break;;
3288 esac
3289done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003290test "$ac_cv_exeext" = no && ac_cv_exeext=
3291
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003292else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003293 ac_file=''
3294fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003295if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297$as_echo "no" >&6; }
3298$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003299sed 's/^/| /' conftest.$ac_ext >&5
3300
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003301{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003303as_fn_error 77 "C compiler cannot create executables
3304See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003305else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3307$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003308fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3310$as_echo_n "checking for C compiler default output file name... " >&6; }
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3312$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003313ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003314
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003315rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003316ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003318$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003319if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003320case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003326 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003327 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003330 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3331# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3332# work properly (i.e., refer to `conftest.exe'), while it won't with
3333# `rm'.
3334for ac_file in conftest.exe conftest conftest.*; do
3335 test -f "$ac_file" || continue
3336 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003338 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003339 break;;
3340 * ) break;;
3341 esac
3342done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003343else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003346as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3347See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003348fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003349rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003351$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003352
3353rm -f conftest.$ac_ext
3354EXEEXT=$ac_cv_exeext
3355ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357/* end confdefs.h. */
3358#include <stdio.h>
3359int
3360main ()
3361{
3362FILE *f = fopen ("conftest.out", "w");
3363 return ferror (f) || fclose (f) != 0;
3364
3365 ;
3366 return 0;
3367}
3368_ACEOF
3369ac_clean_files="$ac_clean_files conftest.out"
3370# Check that the compiler produces executables we can run. If not, either
3371# the compiler is broken, or we cross compile.
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3373$as_echo_n "checking whether we are cross compiling... " >&6; }
3374if test "$cross_compiling" != yes; then
3375 { { ac_try="$ac_link"
3376case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379esac
3380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381$as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_link") 2>&5
3383 ac_status=$?
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }
3386 if { ac_try='./conftest$ac_cv_exeext'
3387 { { case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390esac
3391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392$as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_try") 2>&5
3394 ac_status=$?
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }; }; then
3397 cross_compiling=no
3398 else
3399 if test "$cross_compiling" = maybe; then
3400 cross_compiling=yes
3401 else
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003404as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003405If you meant to cross compile, use \`--host'.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003406See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003407 fi
3408 fi
3409fi
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3411$as_echo "$cross_compiling" >&6; }
3412
3413rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3414ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003416$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003417if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003418 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003419else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003421/* end confdefs.h. */
3422
3423int
3424main ()
3425{
3426
3427 ;
3428 return 0;
3429}
3430_ACEOF
3431rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003432if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003433case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003439 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003440 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003443 for ac_file in conftest.o conftest.obj conftest.*; do
3444 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003445 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003447 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3448 break;;
3449 esac
3450done
3451else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003452 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003453sed 's/^/| /' conftest.$ac_ext >&5
3454
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003455{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003457as_fn_error $? "cannot compute suffix of object files: cannot compile
3458See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003459fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003460rm -f conftest.$ac_cv_objext conftest.$ac_ext
3461fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003463$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003464OBJEXT=$ac_cv_objext
3465ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003466{ $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 +01003467$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003468if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003469 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003470else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003472/* end confdefs.h. */
3473
3474int
3475main ()
3476{
3477#ifndef __GNUC__
3478 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003479#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003480
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003481 ;
3482 return 0;
3483}
3484_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003485if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003486 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003487else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003488 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003489fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003491ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003492
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003493fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003495$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3496if test $ac_compiler_gnu = yes; then
3497 GCC=yes
3498else
3499 GCC=
3500fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003501ac_test_CFLAGS=${CFLAGS+set}
3502ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003504$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003505if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003506 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003507else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003508 ac_save_c_werror_flag=$ac_c_werror_flag
3509 ac_c_werror_flag=yes
3510 ac_cv_prog_cc_g=no
3511 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003513/* end confdefs.h. */
3514
3515int
3516main ()
3517{
3518
3519 ;
3520 return 0;
3521}
3522_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003523if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003524 ac_cv_prog_cc_g=yes
3525else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003526 CFLAGS=""
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003528/* end confdefs.h. */
3529
3530int
3531main ()
3532{
3533
3534 ;
3535 return 0;
3536}
3537_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003538if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003539
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003540else
3541 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003542 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003544/* end confdefs.h. */
3545
3546int
3547main ()
3548{
3549
3550 ;
3551 return 0;
3552}
3553_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003554if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003555 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003556fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003558fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 ac_c_werror_flag=$ac_save_c_werror_flag
3563fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003565$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003566if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003567 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003568elif test $ac_cv_prog_cc_g = yes; then
3569 if test "$GCC" = yes; then
3570 CFLAGS="-g -O2"
3571 else
3572 CFLAGS="-g"
3573 fi
3574else
3575 if test "$GCC" = yes; then
3576 CFLAGS="-O2"
3577 else
3578 CFLAGS=
3579 fi
3580fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003582$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003583if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003584 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003585else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003586 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003587ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003589/* end confdefs.h. */
3590#include <stdarg.h>
3591#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003592struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003593/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3594struct buf { int x; };
3595FILE * (*rcsopen) (struct buf *, struct stat *, int);
3596static char *e (p, i)
3597 char **p;
3598 int i;
3599{
3600 return p[i];
3601}
3602static char *f (char * (*g) (char **, int), char **p, ...)
3603{
3604 char *s;
3605 va_list v;
3606 va_start (v,p);
3607 s = g (p, va_arg (v,int));
3608 va_end (v);
3609 return s;
3610}
3611
3612/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3613 function prototypes and stuff, but not '\xHH' hex character constants.
3614 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003615 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003616 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3617 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003618 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003619int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3620
Theodore Ts'oe1052142006-10-21 21:46:47 -04003621/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3622 inside strings and character constants. */
3623#define FOO(x) 'x'
3624int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3625
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003626int test (int i, double x);
3627struct s1 {int (*f) (int a);};
3628struct s2 {int (*f) (double a);};
3629int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3630int argc;
3631char **argv;
3632int
3633main ()
3634{
3635return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3636 ;
3637 return 0;
3638}
3639_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003640for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3641 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003642do
3643 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003644 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003645 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003646fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003647rm -f core conftest.err conftest.$ac_objext
3648 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003649done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003650rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003651CC=$ac_save_CC
3652
3653fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003654# AC_CACHE_VAL
3655case "x$ac_cv_prog_cc_c89" in
3656 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003658$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003659 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003661$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003662 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003663 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003665$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003666esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003667if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003668
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003669fi
3670
3671ac_ext=c
3672ac_cpp='$CPP $CPPFLAGS'
3673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676
3677
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3679$as_echo_n "checking for dlopen in -ldl... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003680if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003681 $as_echo_n "(cached) " >&6
3682else
3683 ac_check_lib_save_LIBS=$LIBS
3684LIBS="-ldl $LIBS"
3685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h. */
3687
3688/* Override any GCC internal prototype to avoid an error.
3689 Use char because int might match the return type of a GCC
3690 builtin and then its argument prototype would still apply. */
3691#ifdef __cplusplus
3692extern "C"
3693#endif
3694char dlopen ();
3695int
3696main ()
3697{
3698return dlopen ();
3699 ;
3700 return 0;
3701}
3702_ACEOF
3703if ac_fn_c_try_link "$LINENO"; then :
3704 ac_cv_lib_dl_dlopen=yes
3705else
3706 ac_cv_lib_dl_dlopen=no
3707fi
3708rm -f core conftest.err conftest.$ac_objext \
3709 conftest$ac_exeext conftest.$ac_ext
3710LIBS=$ac_check_lib_save_LIBS
3711fi
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3713$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003714if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003715 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003716
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003717$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3718
3719fi
3720
3721
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003722
3723# Check whether --with-cc was given.
3724if test "${with_cc+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003725 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003726fi
3727
3728
3729# Check whether --with-ccopts was given.
3730if test "${with_ccopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003731 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003732fi
3733
3734
3735# Check whether --with-ldopts was given.
3736if test "${with_ldopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003737 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003738fi
3739
3740ac_ext=c
3741ac_cpp='$CPP $CPPFLAGS'
3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745if test -n "$ac_tool_prefix"; then
3746 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3747set dummy ${ac_tool_prefix}gcc; ac_word=$2
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003750if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003751 $as_echo_n "(cached) " >&6
3752else
3753 if test -n "$CC"; then
3754 ac_cv_prog_CC="$CC" # Let the user override the test.
3755else
3756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757for as_dir in $PATH
3758do
3759 IFS=$as_save_IFS
3760 test -z "$as_dir" && as_dir=.
3761 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003763 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 break 2
3766 fi
3767done
3768 done
3769IFS=$as_save_IFS
3770
3771fi
3772fi
3773CC=$ac_cv_prog_CC
3774if test -n "$CC"; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3776$as_echo "$CC" >&6; }
3777else
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779$as_echo "no" >&6; }
3780fi
3781
3782
3783fi
3784if test -z "$ac_cv_prog_CC"; then
3785 ac_ct_CC=$CC
3786 # Extract the first word of "gcc", so it can be a program name with args.
3787set dummy gcc; ac_word=$2
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003790if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003791 $as_echo_n "(cached) " >&6
3792else
3793 if test -n "$ac_ct_CC"; then
3794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3795else
3796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797for as_dir in $PATH
3798do
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003803 ac_cv_prog_ac_ct_CC="gcc"
3804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 break 2
3806 fi
3807done
3808 done
3809IFS=$as_save_IFS
3810
3811fi
3812fi
3813ac_ct_CC=$ac_cv_prog_ac_ct_CC
3814if test -n "$ac_ct_CC"; then
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3816$as_echo "$ac_ct_CC" >&6; }
3817else
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819$as_echo "no" >&6; }
3820fi
3821
3822 if test "x$ac_ct_CC" = x; then
3823 CC=""
3824 else
3825 case $cross_compiling:$ac_tool_warned in
3826yes:)
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3829ac_tool_warned=yes ;;
3830esac
3831 CC=$ac_ct_CC
3832 fi
3833else
3834 CC="$ac_cv_prog_CC"
3835fi
3836
3837if test -z "$CC"; then
3838 if test -n "$ac_tool_prefix"; then
3839 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3840set dummy ${ac_tool_prefix}cc; ac_word=$2
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003843if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003844 $as_echo_n "(cached) " >&6
3845else
3846 if test -n "$CC"; then
3847 ac_cv_prog_CC="$CC" # Let the user override the test.
3848else
3849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850for as_dir in $PATH
3851do
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003856 ac_cv_prog_CC="${ac_tool_prefix}cc"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 break 2
3859 fi
3860done
3861 done
3862IFS=$as_save_IFS
3863
3864fi
3865fi
3866CC=$ac_cv_prog_CC
3867if test -n "$CC"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3869$as_echo "$CC" >&6; }
3870else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872$as_echo "no" >&6; }
3873fi
3874
3875
3876 fi
3877fi
3878if test -z "$CC"; then
3879 # Extract the first word of "cc", so it can be a program name with args.
3880set dummy cc; ac_word=$2
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003883if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003884 $as_echo_n "(cached) " >&6
3885else
3886 if test -n "$CC"; then
3887 ac_cv_prog_CC="$CC" # Let the user override the test.
3888else
3889 ac_prog_rejected=no
3890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891for as_dir in $PATH
3892do
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003897 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3898 ac_prog_rejected=yes
3899 continue
3900 fi
3901 ac_cv_prog_CC="cc"
3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 break 2
3904 fi
3905done
3906 done
3907IFS=$as_save_IFS
3908
3909if test $ac_prog_rejected = yes; then
3910 # We found a bogon in the path, so make sure we never use it.
3911 set dummy $ac_cv_prog_CC
3912 shift
3913 if test $# != 0; then
3914 # We chose a different compiler from the bogus one.
3915 # However, it has the same basename, so the bogon will be chosen
3916 # first if we set CC to just the basename; use the full file name.
3917 shift
3918 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3919 fi
3920fi
3921fi
3922fi
3923CC=$ac_cv_prog_CC
3924if test -n "$CC"; then
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3926$as_echo "$CC" >&6; }
3927else
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929$as_echo "no" >&6; }
3930fi
3931
3932
3933fi
3934if test -z "$CC"; then
3935 if test -n "$ac_tool_prefix"; then
3936 for ac_prog in cl.exe
3937 do
3938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3939set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003942if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003943 $as_echo_n "(cached) " >&6
3944else
3945 if test -n "$CC"; then
3946 ac_cv_prog_CC="$CC" # Let the user override the test.
3947else
3948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949for as_dir in $PATH
3950do
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003955 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3958 fi
3959done
3960 done
3961IFS=$as_save_IFS
3962
3963fi
3964fi
3965CC=$ac_cv_prog_CC
3966if test -n "$CC"; then
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3968$as_echo "$CC" >&6; }
3969else
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971$as_echo "no" >&6; }
3972fi
3973
3974
3975 test -n "$CC" && break
3976 done
3977fi
3978if test -z "$CC"; then
3979 ac_ct_CC=$CC
3980 for ac_prog in cl.exe
3981do
3982 # Extract the first word of "$ac_prog", so it can be a program name with args.
3983set dummy $ac_prog; ac_word=$2
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003986if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003987 $as_echo_n "(cached) " >&6
3988else
3989 if test -n "$ac_ct_CC"; then
3990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3991else
3992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH
3994do
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003999 ac_cv_prog_ac_ct_CC="$ac_prog"
4000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 break 2
4002 fi
4003done
4004 done
4005IFS=$as_save_IFS
4006
4007fi
4008fi
4009ac_ct_CC=$ac_cv_prog_ac_ct_CC
4010if test -n "$ac_ct_CC"; then
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4012$as_echo "$ac_ct_CC" >&6; }
4013else
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015$as_echo "no" >&6; }
4016fi
4017
4018
4019 test -n "$ac_ct_CC" && break
4020done
4021
4022 if test "x$ac_ct_CC" = x; then
4023 CC=""
4024 else
4025 case $cross_compiling:$ac_tool_warned in
4026yes:)
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4029ac_tool_warned=yes ;;
4030esac
4031 CC=$ac_ct_CC
4032 fi
4033fi
4034
4035fi
4036
4037
4038test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004040as_fn_error $? "no acceptable C compiler found in \$PATH
4041See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004042
4043# Provide some information about the compiler.
4044$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4045set X $ac_compile
4046ac_compiler=$2
4047for ac_option in --version -v -V -qversion; do
4048 { { ac_try="$ac_compiler $ac_option >&5"
4049case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052esac
4053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054$as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4056 ac_status=$?
4057 if test -s conftest.err; then
4058 sed '10a\
4059... rest of stderr output deleted ...
4060 10q' conftest.err >conftest.er1
4061 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004062 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004063 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 test $ac_status = 0; }
4066done
4067
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4069$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004070if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004071 $as_echo_n "(cached) " >&6
4072else
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074/* end confdefs.h. */
4075
4076int
4077main ()
4078{
4079#ifndef __GNUC__
4080 choke me
4081#endif
4082
4083 ;
4084 return 0;
4085}
4086_ACEOF
4087if ac_fn_c_try_compile "$LINENO"; then :
4088 ac_compiler_gnu=yes
4089else
4090 ac_compiler_gnu=no
4091fi
4092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093ac_cv_c_compiler_gnu=$ac_compiler_gnu
4094
4095fi
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4097$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4098if test $ac_compiler_gnu = yes; then
4099 GCC=yes
4100else
4101 GCC=
4102fi
4103ac_test_CFLAGS=${CFLAGS+set}
4104ac_save_CFLAGS=$CFLAGS
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4106$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004107if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004108 $as_echo_n "(cached) " >&6
4109else
4110 ac_save_c_werror_flag=$ac_c_werror_flag
4111 ac_c_werror_flag=yes
4112 ac_cv_prog_cc_g=no
4113 CFLAGS="-g"
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115/* end confdefs.h. */
4116
4117int
4118main ()
4119{
4120
4121 ;
4122 return 0;
4123}
4124_ACEOF
4125if ac_fn_c_try_compile "$LINENO"; then :
4126 ac_cv_prog_cc_g=yes
4127else
4128 CFLAGS=""
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130/* end confdefs.h. */
4131
4132int
4133main ()
4134{
4135
4136 ;
4137 return 0;
4138}
4139_ACEOF
4140if ac_fn_c_try_compile "$LINENO"; then :
4141
4142else
4143 ac_c_werror_flag=$ac_save_c_werror_flag
4144 CFLAGS="-g"
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146/* end confdefs.h. */
4147
4148int
4149main ()
4150{
4151
4152 ;
4153 return 0;
4154}
4155_ACEOF
4156if ac_fn_c_try_compile "$LINENO"; then :
4157 ac_cv_prog_cc_g=yes
4158fi
4159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160fi
4161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162fi
4163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 ac_c_werror_flag=$ac_save_c_werror_flag
4165fi
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4167$as_echo "$ac_cv_prog_cc_g" >&6; }
4168if test "$ac_test_CFLAGS" = set; then
4169 CFLAGS=$ac_save_CFLAGS
4170elif test $ac_cv_prog_cc_g = yes; then
4171 if test "$GCC" = yes; then
4172 CFLAGS="-g -O2"
4173 else
4174 CFLAGS="-g"
4175 fi
4176else
4177 if test "$GCC" = yes; then
4178 CFLAGS="-O2"
4179 else
4180 CFLAGS=
4181 fi
4182fi
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4184$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004185if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004186 $as_echo_n "(cached) " >&6
4187else
4188 ac_cv_prog_cc_c89=no
4189ac_save_CC=$CC
4190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191/* end confdefs.h. */
4192#include <stdarg.h>
4193#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004194struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004195/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4196struct buf { int x; };
4197FILE * (*rcsopen) (struct buf *, struct stat *, int);
4198static char *e (p, i)
4199 char **p;
4200 int i;
4201{
4202 return p[i];
4203}
4204static char *f (char * (*g) (char **, int), char **p, ...)
4205{
4206 char *s;
4207 va_list v;
4208 va_start (v,p);
4209 s = g (p, va_arg (v,int));
4210 va_end (v);
4211 return s;
4212}
4213
4214/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4215 function prototypes and stuff, but not '\xHH' hex character constants.
4216 These don't provoke an error unfortunately, instead are silently treated
4217 as 'x'. The following induces an error, until -std is added to get
4218 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4219 array size at least. It's necessary to write '\x00'==0 to get something
4220 that's true only with -std. */
4221int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4222
4223/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4224 inside strings and character constants. */
4225#define FOO(x) 'x'
4226int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4227
4228int test (int i, double x);
4229struct s1 {int (*f) (int a);};
4230struct s2 {int (*f) (double a);};
4231int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4232int argc;
4233char **argv;
4234int
4235main ()
4236{
4237return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4238 ;
4239 return 0;
4240}
4241_ACEOF
4242for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4243 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4244do
4245 CC="$ac_save_CC $ac_arg"
4246 if ac_fn_c_try_compile "$LINENO"; then :
4247 ac_cv_prog_cc_c89=$ac_arg
4248fi
4249rm -f core conftest.err conftest.$ac_objext
4250 test "x$ac_cv_prog_cc_c89" != "xno" && break
4251done
4252rm -f conftest.$ac_ext
4253CC=$ac_save_CC
4254
4255fi
4256# AC_CACHE_VAL
4257case "x$ac_cv_prog_cc_c89" in
4258 x)
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4260$as_echo "none needed" >&6; } ;;
4261 xno)
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4263$as_echo "unsupported" >&6; } ;;
4264 *)
4265 CC="$CC $ac_cv_prog_cc_c89"
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4267$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4268esac
4269if test "x$ac_cv_prog_cc_c89" != xno; then :
4270
4271fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004272
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004273ac_ext=c
4274ac_cpp='$CPP $CPPFLAGS'
4275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004279if test "$GCC" = yes; then
4280 RDYNAMIC="-rdynamic"
4281
4282fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004283ac_ext=c
4284ac_cpp='$CPP $CPPFLAGS'
4285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004289$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004290# On Suns, sometimes $CPP names a directory.
4291if test -n "$CPP" && test -d "$CPP"; then
4292 CPP=
4293fi
4294if test -z "$CPP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004295 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004296 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004297else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004298 # Double quotes because CPP needs to be expanded
4299 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4300 do
4301 ac_preproc_ok=false
4302for ac_c_preproc_warn_flag in '' yes
4303do
4304 # Use a header file that comes with gcc, so configuring glibc
4305 # with a fresh cross-compiler works.
4306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4307 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004308 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004309 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004311/* end confdefs.h. */
4312#ifdef __STDC__
4313# include <limits.h>
4314#else
4315# include <assert.h>
4316#endif
4317 Syntax error
4318_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004319if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004320
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004321else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004322 # Broken: fails on valid input.
4323continue
4324fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004325rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004326
Theodore Ts'oe1052142006-10-21 21:46:47 -04004327 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004328 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004330/* end confdefs.h. */
4331#include <ac_nonexistent.h>
4332_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004333if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004334 # Broken: success on invalid input.
4335continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004336else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004337 # Passes both tests.
4338ac_preproc_ok=:
4339break
4340fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004341rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004342
4343done
4344# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004345rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004346if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004347 break
4348fi
4349
4350 done
4351 ac_cv_prog_CPP=$CPP
4352
4353fi
4354 CPP=$ac_cv_prog_CPP
4355else
4356 ac_cv_prog_CPP=$CPP
4357fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004359$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004360ac_preproc_ok=false
4361for ac_c_preproc_warn_flag in '' yes
4362do
4363 # Use a header file that comes with gcc, so configuring glibc
4364 # with a fresh cross-compiler works.
4365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4366 # <limits.h> exists even on freestanding compilers.
4367 # On the NeXT, cc -E runs the code through the compiler's parser,
4368 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004370/* end confdefs.h. */
4371#ifdef __STDC__
4372# include <limits.h>
4373#else
4374# include <assert.h>
4375#endif
4376 Syntax error
4377_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004378if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004379
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004380else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004381 # Broken: fails on valid input.
4382continue
4383fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004384rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004385
Theodore Ts'oe1052142006-10-21 21:46:47 -04004386 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004387 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004389/* end confdefs.h. */
4390#include <ac_nonexistent.h>
4391_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004392if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004393 # Broken: success on invalid input.
4394continue
4395else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004396 # Passes both tests.
4397ac_preproc_ok=:
4398break
4399fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004400rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004401
4402done
4403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004404rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004405if $ac_preproc_ok; then :
4406
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004407else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004410as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4411See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004412fi
4413
4414ac_ext=c
4415ac_cpp='$CPP $CPPFLAGS'
4416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004421$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004422if test "$GCC" = yes
4423then
4424 case "$host_cpu" in
4425 alpha) addcflags="-mieee" ;;
4426 esac
4427fi
4428if test "x$addcflags" != x
4429then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004431$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004432 CFLAGS="$addcflags $CFLAGS"
4433else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004435$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004436fi
Theodore Ts'o93613952014-07-03 23:44:13 -04004437
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4439$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4440if ${ac_cv_path_GREP+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442else
4443 if test -z "$GREP"; then
4444 ac_path_GREP_found=false
4445 # Loop through the user's path and test for each of PROGNAME-LIST
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4448do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_prog in grep ggrep; do
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4454 as_fn_executable_p "$ac_path_GREP" || continue
4455# Check for GNU ac_path_GREP and select it if it is found.
4456 # Check for GNU $ac_path_GREP
4457case `"$ac_path_GREP" --version 2>&1` in
4458*GNU*)
4459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4460*)
4461 ac_count=0
4462 $as_echo_n 0123456789 >"conftest.in"
4463 while :
4464 do
4465 cat "conftest.in" "conftest.in" >"conftest.tmp"
4466 mv "conftest.tmp" "conftest.in"
4467 cp "conftest.in" "conftest.nl"
4468 $as_echo 'GREP' >> "conftest.nl"
4469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471 as_fn_arith $ac_count + 1 && ac_count=$as_val
4472 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4473 # Best one so far, save it but keep looking for a better one
4474 ac_cv_path_GREP="$ac_path_GREP"
4475 ac_path_GREP_max=$ac_count
4476 fi
4477 # 10*(2^10) chars as input seems more than enough
4478 test $ac_count -gt 10 && break
4479 done
4480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481esac
4482
4483 $ac_path_GREP_found && break 3
4484 done
4485 done
4486 done
4487IFS=$as_save_IFS
4488 if test -z "$ac_cv_path_GREP"; then
4489 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4490 fi
4491else
4492 ac_cv_path_GREP=$GREP
4493fi
4494
4495fi
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4497$as_echo "$ac_cv_path_GREP" >&6; }
4498 GREP="$ac_cv_path_GREP"
4499
4500
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4502$as_echo_n "checking for egrep... " >&6; }
4503if ${ac_cv_path_EGREP+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505else
4506 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4507 then ac_cv_path_EGREP="$GREP -E"
4508 else
4509 if test -z "$EGREP"; then
4510 ac_path_EGREP_found=false
4511 # Loop through the user's path and test for each of PROGNAME-LIST
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4514do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_prog in egrep; do
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4520 as_fn_executable_p "$ac_path_EGREP" || continue
4521# Check for GNU ac_path_EGREP and select it if it is found.
4522 # Check for GNU $ac_path_EGREP
4523case `"$ac_path_EGREP" --version 2>&1` in
4524*GNU*)
4525 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4526*)
4527 ac_count=0
4528 $as_echo_n 0123456789 >"conftest.in"
4529 while :
4530 do
4531 cat "conftest.in" "conftest.in" >"conftest.tmp"
4532 mv "conftest.tmp" "conftest.in"
4533 cp "conftest.in" "conftest.nl"
4534 $as_echo 'EGREP' >> "conftest.nl"
4535 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4537 as_fn_arith $ac_count + 1 && ac_count=$as_val
4538 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4539 # Best one so far, save it but keep looking for a better one
4540 ac_cv_path_EGREP="$ac_path_EGREP"
4541 ac_path_EGREP_max=$ac_count
4542 fi
4543 # 10*(2^10) chars as input seems more than enough
4544 test $ac_count -gt 10 && break
4545 done
4546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4547esac
4548
4549 $ac_path_EGREP_found && break 3
4550 done
4551 done
4552 done
4553IFS=$as_save_IFS
4554 if test -z "$ac_cv_path_EGREP"; then
4555 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4556 fi
4557else
4558 ac_cv_path_EGREP=$EGREP
4559fi
4560
4561 fi
4562fi
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4564$as_echo "$ac_cv_path_EGREP" >&6; }
4565 EGREP="$ac_cv_path_EGREP"
4566
4567
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4569$as_echo_n "checking for ANSI C header files... " >&6; }
4570if ${ac_cv_header_stdc+:} false; then :
4571 $as_echo_n "(cached) " >&6
4572else
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574/* end confdefs.h. */
4575#include <stdlib.h>
4576#include <stdarg.h>
4577#include <string.h>
4578#include <float.h>
4579
4580int
4581main ()
4582{
4583
4584 ;
4585 return 0;
4586}
4587_ACEOF
4588if ac_fn_c_try_compile "$LINENO"; then :
4589 ac_cv_header_stdc=yes
4590else
4591 ac_cv_header_stdc=no
4592fi
4593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594
4595if test $ac_cv_header_stdc = yes; then
4596 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598/* end confdefs.h. */
4599#include <string.h>
4600
4601_ACEOF
4602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4603 $EGREP "memchr" >/dev/null 2>&1; then :
4604
4605else
4606 ac_cv_header_stdc=no
4607fi
4608rm -f conftest*
4609
4610fi
4611
4612if test $ac_cv_header_stdc = yes; then
4613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615/* end confdefs.h. */
4616#include <stdlib.h>
4617
4618_ACEOF
4619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4620 $EGREP "free" >/dev/null 2>&1; then :
4621
4622else
4623 ac_cv_header_stdc=no
4624fi
4625rm -f conftest*
4626
4627fi
4628
4629if test $ac_cv_header_stdc = yes; then
4630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4631 if test "$cross_compiling" = yes; then :
4632 :
4633else
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635/* end confdefs.h. */
4636#include <ctype.h>
4637#include <stdlib.h>
4638#if ((' ' & 0x0FF) == 0x020)
4639# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4640# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4641#else
4642# define ISLOWER(c) \
4643 (('a' <= (c) && (c) <= 'i') \
4644 || ('j' <= (c) && (c) <= 'r') \
4645 || ('s' <= (c) && (c) <= 'z'))
4646# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4647#endif
4648
4649#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4650int
4651main ()
4652{
4653 int i;
4654 for (i = 0; i < 256; i++)
4655 if (XOR (islower (i), ISLOWER (i))
4656 || toupper (i) != TOUPPER (i))
4657 return 2;
4658 return 0;
4659}
4660_ACEOF
4661if ac_fn_c_try_run "$LINENO"; then :
4662
4663else
4664 ac_cv_header_stdc=no
4665fi
4666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4667 conftest.$ac_objext conftest.beam conftest.$ac_ext
4668fi
4669
4670fi
4671fi
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4673$as_echo "$ac_cv_header_stdc" >&6; }
4674if test $ac_cv_header_stdc = yes; then
4675
4676$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4677
4678fi
4679
4680# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4681for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4682 inttypes.h stdint.h unistd.h
4683do :
4684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4685ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4686"
4687if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4688 cat >>confdefs.h <<_ACEOF
4689#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4690_ACEOF
4691
4692fi
4693
4694done
4695
4696
4697
4698 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4699if test "x$ac_cv_header_minix_config_h" = xyes; then :
4700 MINIX=yes
4701else
4702 MINIX=
4703fi
4704
4705
4706 if test "$MINIX" = yes; then
4707
4708$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4709
4710
4711$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4712
4713
4714$as_echo "#define _MINIX 1" >>confdefs.h
4715
4716 fi
4717
4718
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4720$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4721if ${ac_cv_safe_to_define___extensions__+:} false; then :
4722 $as_echo_n "(cached) " >&6
4723else
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725/* end confdefs.h. */
4726
4727# define __EXTENSIONS__ 1
4728 $ac_includes_default
4729int
4730main ()
4731{
4732
4733 ;
4734 return 0;
4735}
4736_ACEOF
4737if ac_fn_c_try_compile "$LINENO"; then :
4738 ac_cv_safe_to_define___extensions__=yes
4739else
4740 ac_cv_safe_to_define___extensions__=no
4741fi
4742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743fi
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4745$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4746 test $ac_cv_safe_to_define___extensions__ = yes &&
4747 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4748
4749 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4750
4751 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4752
4753 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4754
4755 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4756
4757
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004758LIB_EXT=.a
4759STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004760PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004761
Theodore Ts'oe1052142006-10-21 21:46:47 -04004762# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004763if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004764 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004765else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004766 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004767fi
4768# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004769if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004770 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004771then
4772 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004774$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004775else
4776 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004778$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004779fi
4780
4781else
4782 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004784$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004785
Theodore Ts'oe1052142006-10-21 21:46:47 -04004786fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004787
Theodore Ts'oe1052142006-10-21 21:46:47 -04004788
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004789# Check whether --enable-symlink-install was given.
4790if test "${enable_symlink_install+set}" = set; then :
4791 enableval=$enable_symlink_install; if test "$enableval" = "no"
4792then
4793 LINK_INSTALL_FLAGS=-f
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4795$as_echo "Disabling symlinks for install" >&6; }
4796else
4797 LINK_INSTALL_FLAGS=-sf
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4799$as_echo "Enabling symlinks for install" >&6; }
4800fi
4801
4802else
4803 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4805$as_echo "Disabling symlinks for install by default" >&6; }
4806
4807fi
4808
4809
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004810relative_symlink_defined=
4811# Check whether --enable-relative-symlinks was given.
4812if test "${enable_relative_symlinks+set}" = set; then :
4813 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004814then
4815 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004816 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4818$as_echo "Disabling relative symlinks for install" >&6; }
4819else
4820 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004821 relative_symlink_defined=yes
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4823$as_echo "Enabling relative symlinks for install" >&6; }
4824fi
4825fi
4826
4827# Check whether --enable-symlink-relative-symlinks was given.
4828if test "${enable_symlink_relative_symlinks+set}" = set; then :
4829 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4830then
4831 SYMLINK_RELATIVE=yes
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4833$as_echo "Disabling relative symlinks for install" >&6; }
4834else
4835 SYMLINK_RELATIVE=--relative
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4837$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004838fi
4839
4840else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004841 if test -z "$relative_symlink_defined"
4842then
4843 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4845$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004846fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004847
4848fi
4849
4850
4851# Check whether --enable-symlink-build was given.
4852if test "${enable_symlink_build+set}" = set; then :
4853 enableval=$enable_symlink_build; if test "$enableval" = "no"
4854then
4855 LINK_BUILD_FLAGS=
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4857$as_echo "Disabling symlinks for build" >&6; }
4858else
4859 LINK_BUILD_FLAGS=-s
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4861$as_echo "Enabling symlinks for build" >&6; }
4862fi
4863
4864else
4865 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4867$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004868
4869fi
4870
4871
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004872# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004873if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004874 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4875then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004877$as_echo "Disabling verbose make commands" >&6; }
4878 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004879 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004880 Q=@
4881else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004883$as_echo "Enabling verbose make commands" >&6; }
4884 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004885 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004886 Q=
4887fi
4888
4889else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004891$as_echo "Disabling verbose make commands" >&6; }
4892E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004893ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004894Q=@
4895
4896fi
4897
4898
4899
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004900
Theodore Ts'oe1052142006-10-21 21:46:47 -04004901# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004902if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004903 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004904then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004906$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004907else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004908
4909$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004910
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004912$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004914$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004915fi
4916
4917else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004919$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004920
Theodore Ts'oe1052142006-10-21 21:46:47 -04004921fi
4922
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004923
Theodore Ts'oe1052142006-10-21 21:46:47 -04004924# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004925if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004926 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004927then
4928 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004930$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004931else
4932 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004933 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004934
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004936$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004937fi
4938
4939else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004940 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004941$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004942
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004944$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004945
Theodore Ts'oe1052142006-10-21 21:46:47 -04004946fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004947
Theodore Ts'oe1052142006-10-21 21:46:47 -04004948
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004949E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004950LDFLAG_DYNAMIC=
4951PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004952# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004953if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004954 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004955then
4956 ELF_CMT=#
4957 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004959$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004960else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004961 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004962 ELF_CMT=
4963 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004964 case "$host_os" in
4965 solaris2.*)
4966 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4967 ;;
4968 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004969 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004970 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004971 PRIVATE_LIBS_CMT=#
4972 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004974$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004975fi
4976
4977else
4978 MAKEFILE_ELF=/dev/null
4979ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004981$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004982
Theodore Ts'oe1052142006-10-21 21:46:47 -04004983fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004984
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004985
Theodore Ts'oe1052142006-10-21 21:46:47 -04004986
4987# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004988if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004989 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004990then
4991 BSDLIB_CMT=#
4992 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004994$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004995else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004996 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004997 BSDLIB_CMT=
4998 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004999 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05005000 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05005001 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05005002 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5003 LIB_EXT=.dylib
5004 ;;
5005 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005007$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005008fi
5009
5010else
5011 MAKEFILE_BSDLIB=/dev/null
5012BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005014$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005015
Theodore Ts'oe1052142006-10-21 21:46:47 -04005016fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005017
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005018
Theodore Ts'oe1052142006-10-21 21:46:47 -04005019
5020# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005021if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005022 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005023then
5024 PROFILE_CMT=#
5025 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005027$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005028else
5029 PROFILE_CMT=
5030 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5031 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005033$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005034fi
5035
5036else
5037 PROFILE_CMT=#
5038MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005040$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005041
Theodore Ts'oe1052142006-10-21 21:46:47 -04005042fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005043
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005044
Theodore Ts'oe1052142006-10-21 21:46:47 -04005045
Theodore Ts'ofedfb272014-02-23 00:17:09 -05005046# Check whether --enable-gcov was given.
5047if test "${enable_gcov+set}" = set; then :
5048 enableval=$enable_gcov; if test "$enableval" = "yes"
5049then
5050 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5051 LDFLAGS="-fprofile-arcs -ftest-coverage"
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5053$as_echo "Enabling gcov support" >&6; }
5054fi
5055
5056fi
5057
Theodore Ts'oe1052142006-10-21 21:46:47 -04005058# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005059if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005060 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005061then
5062 CHECKER_CMT=#
5063 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005065$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005066else
5067 CHECKER_CMT=
5068 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005070$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005071fi
5072
5073else
5074 CHECKER_CMT=#
5075MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005077$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005078
Theodore Ts'oe1052142006-10-21 21:46:47 -04005079fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005080
5081
5082
5083
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005084
Theodore Ts'oe1052142006-10-21 21:46:47 -04005085
Theodore Ts'o55da9872008-09-02 23:12:38 -04005086
5087
Theodore Ts'oe1052142006-10-21 21:46:47 -04005088# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005089if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005090 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005091then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005093$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005094else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005095
5096$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005097
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005099$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005100fi
5101
5102else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005104$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005105
Theodore Ts'oe1052142006-10-21 21:46:47 -04005106fi
5107
5108# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005109if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005110 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005111then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005113$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005114else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005115
5116$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005117
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005119$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005120fi
5121
5122else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005124$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005125
Theodore Ts'oe1052142006-10-21 21:46:47 -04005126fi
5127
5128# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005129if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005130 enableval=$enable_testio_debug;
5131if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005132then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005134$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04005135 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005136else
Theodore Ts'oaf773652008-09-01 11:27:27 -04005137 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005138 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005139
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005141$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005142fi
5143
5144else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005146$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005147$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04005148
5149TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005150
Theodore Ts'oe1052142006-10-21 21:46:47 -04005151fi
5152
Theodore Ts'oaf773652008-09-01 11:27:27 -04005153
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005154
5155
Theodore Ts'o93613952014-07-03 23:44:13 -04005156
5157
5158
5159
5160
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005161if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005162 if test -n "$ac_tool_prefix"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005163 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5164set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005166$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005167if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005168 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005169else
5170 case $PKG_CONFIG in
5171 [\\/]* | ?:[\\/]*)
5172 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5173 ;;
5174 *)
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176for as_dir in $PATH
5177do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005180 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005182 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005184 break 2
5185 fi
5186done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005187 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005188IFS=$as_save_IFS
5189
5190 ;;
5191esac
5192fi
5193PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5194if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005196$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005197else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005199$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005200fi
5201
5202
5203fi
5204if test -z "$ac_cv_path_PKG_CONFIG"; then
5205 ac_pt_PKG_CONFIG=$PKG_CONFIG
5206 # Extract the first word of "pkg-config", so it can be a program name with args.
5207set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005209$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005210if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005211 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005212else
5213 case $ac_pt_PKG_CONFIG in
5214 [\\/]* | ?:[\\/]*)
5215 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5216 ;;
5217 *)
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005223 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005225 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005227 break 2
5228 fi
5229done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005230 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005231IFS=$as_save_IFS
5232
5233 ;;
5234esac
5235fi
5236ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5237if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005239$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005240else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005242$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005243fi
5244
5245 if test "x$ac_pt_PKG_CONFIG" = x; then
5246 PKG_CONFIG=""
5247 else
5248 case $cross_compiling:$ac_tool_warned in
5249yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005250{ $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 +01005251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005252ac_tool_warned=yes ;;
5253esac
5254 PKG_CONFIG=$ac_pt_PKG_CONFIG
5255 fi
5256else
5257 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5258fi
5259
5260fi
5261if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005262 _pkg_min_version=0.9.0
5263 { $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 +01005264$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005265 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005267$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005268 else
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005270$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005271 PKG_CONFIG=""
5272 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005273fi
5274LIBUUID=
5275DEPLIBUUID=
5276STATIC_LIBUUID=
5277DEPSTATIC_LIBUUID=
5278PROFILED_LIBUUID=
5279DEPPROFILED_LIBUUID=
5280UUID_CMT=
5281# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005282if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005283 enableval=$enable_libuuid; if test "$enableval" = "no"
5284then
5285 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005286 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005287 fi
5288
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005290$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005291if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005292 $as_echo_n "(cached) " >&6
5293else
5294 ac_check_lib_save_LIBS=$LIBS
5295LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005297/* end confdefs.h. */
5298
5299/* Override any GCC internal prototype to avoid an error.
5300 Use char because int might match the return type of a GCC
5301 builtin and then its argument prototype would still apply. */
5302#ifdef __cplusplus
5303extern "C"
5304#endif
5305char uuid_generate ();
5306int
5307main ()
5308{
5309return uuid_generate ();
5310 ;
5311 return 0;
5312}
5313_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005314if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005315 ac_cv_lib_uuid_uuid_generate=yes
5316else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005317 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005318fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005319rm -f core conftest.err conftest.$ac_objext \
5320 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005321LIBS=$ac_check_lib_save_LIBS
5322fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005324$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005325if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005326 LIBUUID=`$PKG_CONFIG --libs uuid`;
5327 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5328else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005329 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005330fi
5331
5332 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005334$as_echo "Disabling private uuid library" >&6; }
5335else
5336 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5337 DEPLIBUUID=$LIBUUID
5338 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5339 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5340 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5341 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005343$as_echo "Enabling private uuid library" >&6; }
5344fi
5345
5346else
5347 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5348DEPLIBUUID=$LIBUUID
5349STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5350DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5351PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5352DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005354$as_echo "Enabling private uuid library by default" >&6; }
5355
5356fi
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
Theodore Ts'o93613952014-07-03 23:44:13 -04005367
5368
5369
5370
5371
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005372if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005373 if test -n "$ac_tool_prefix"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005374 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5375set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005377$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005378if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005379 $as_echo_n "(cached) " >&6
5380else
5381 case $PKG_CONFIG in
5382 [\\/]* | ?:[\\/]*)
5383 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5384 ;;
5385 *)
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387for as_dir in $PATH
5388do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005391 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005393 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005395 break 2
5396 fi
5397done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005398 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005399IFS=$as_save_IFS
5400
5401 ;;
5402esac
5403fi
5404PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5405if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005407$as_echo "$PKG_CONFIG" >&6; }
5408else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005410$as_echo "no" >&6; }
5411fi
5412
5413
5414fi
5415if test -z "$ac_cv_path_PKG_CONFIG"; then
5416 ac_pt_PKG_CONFIG=$PKG_CONFIG
5417 # Extract the first word of "pkg-config", so it can be a program name with args.
5418set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005420$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005421if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005422 $as_echo_n "(cached) " >&6
5423else
5424 case $ac_pt_PKG_CONFIG in
5425 [\\/]* | ?:[\\/]*)
5426 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5427 ;;
5428 *)
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430for as_dir in $PATH
5431do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005434 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005436 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005438 break 2
5439 fi
5440done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005441 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005442IFS=$as_save_IFS
5443
5444 ;;
5445esac
5446fi
5447ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5448if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005450$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5451else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005453$as_echo "no" >&6; }
5454fi
5455
5456 if test "x$ac_pt_PKG_CONFIG" = x; then
5457 PKG_CONFIG=""
5458 else
5459 case $cross_compiling:$ac_tool_warned in
5460yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005461{ $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 +01005462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5463ac_tool_warned=yes ;;
5464esac
5465 PKG_CONFIG=$ac_pt_PKG_CONFIG
5466 fi
5467else
5468 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5469fi
5470
5471fi
5472if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005473 _pkg_min_version=0.9.0
5474 { $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 +01005475$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005476 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005478$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005479 else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005481$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005482 PKG_CONFIG=""
5483 fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005484fi
5485LIBBLKID=
5486DEPLIBBLKID=
5487STATIC_LIBBLKID=
5488DEPSTATIC_LIBBLKID=
5489PROFILED_LIBBLKID=
5490DEPPROFILED_LIBBLKID=
5491BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005492
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005493# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005494if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005495 enableval=$enable_libblkid; if test "$enableval" = "no"
5496then
5497 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005498 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005499 fi
5500
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005502$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005503if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005504 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005505else
5506 ac_check_lib_save_LIBS=$LIBS
5507LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005509/* end confdefs.h. */
5510
5511/* Override any GCC internal prototype to avoid an error.
5512 Use char because int might match the return type of a GCC
5513 builtin and then its argument prototype would still apply. */
5514#ifdef __cplusplus
5515extern "C"
5516#endif
5517char blkid_get_cache ();
5518int
5519main ()
5520{
5521return blkid_get_cache ();
5522 ;
5523 return 0;
5524}
5525_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005526if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005527 ac_cv_lib_blkid_blkid_get_cache=yes
5528else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005529 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005530fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005531rm -f core conftest.err conftest.$ac_objext \
5532 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005533LIBS=$ac_check_lib_save_LIBS
5534fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005536$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005537if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005538 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5539 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5540else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005541 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005542fi
5543
5544 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005546$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005547else
5548 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5549 DEPLIBBLKID=$LIBBLKID
5550 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5551 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5552 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5553 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005554 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005555
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005557$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005558fi
5559
5560else
5561 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5562DEPLIBBLKID=$LIBBLKID
5563STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5564DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5565PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5566DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005567$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005568
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005570$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005571
5572fi
5573
5574
5575
5576
5577
5578
5579
5580
Eric Sandeenf5589f42013-10-14 08:54:15 -04005581QUOTA_MAN_COMMENT='.\"'
Niu Yawei43075b42013-10-14 09:49:27 -04005582QUOTA_CMT=
Eric Sandeenf5589f42013-10-14 08:54:15 -04005583
Aditya Kalif239fef2011-07-20 11:40:02 -07005584
5585
Theodore Ts'o93613952014-07-03 23:44:13 -04005586
5587
5588
5589
5590
Aditya Kalif239fef2011-07-20 11:40:02 -07005591if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005592 if test -n "$ac_tool_prefix"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005593 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5594set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5596$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005597if ${ac_cv_path_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005598 $as_echo_n "(cached) " >&6
5599else
5600 case $PKG_CONFIG in
5601 [\\/]* | ?:[\\/]*)
5602 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5603 ;;
5604 *)
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606for as_dir in $PATH
5607do
5608 IFS=$as_save_IFS
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005612 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 break 2
5615 fi
5616done
5617 done
5618IFS=$as_save_IFS
5619
5620 ;;
5621esac
5622fi
5623PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5624if test -n "$PKG_CONFIG"; then
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5626$as_echo "$PKG_CONFIG" >&6; }
5627else
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5629$as_echo "no" >&6; }
5630fi
5631
5632
5633fi
5634if test -z "$ac_cv_path_PKG_CONFIG"; then
5635 ac_pt_PKG_CONFIG=$PKG_CONFIG
5636 # Extract the first word of "pkg-config", so it can be a program name with args.
5637set dummy pkg-config; ac_word=$2
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005640if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005641 $as_echo_n "(cached) " >&6
5642else
5643 case $ac_pt_PKG_CONFIG in
5644 [\\/]* | ?:[\\/]*)
5645 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5646 ;;
5647 *)
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649for as_dir in $PATH
5650do
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005655 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5658 fi
5659done
5660 done
5661IFS=$as_save_IFS
5662
5663 ;;
5664esac
5665fi
5666ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5667if test -n "$ac_pt_PKG_CONFIG"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5669$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5670else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672$as_echo "no" >&6; }
5673fi
5674
5675 if test "x$ac_pt_PKG_CONFIG" = x; then
5676 PKG_CONFIG=""
5677 else
5678 case $cross_compiling:$ac_tool_warned in
5679yes:)
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682ac_tool_warned=yes ;;
5683esac
5684 PKG_CONFIG=$ac_pt_PKG_CONFIG
5685 fi
5686else
5687 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5688fi
5689
5690fi
5691if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005692 _pkg_min_version=0.9.0
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005694$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005695 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005697$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005698 else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005700$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005701 PKG_CONFIG=""
5702 fi
Aditya Kalif239fef2011-07-20 11:40:02 -07005703fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005704
5705# Check whether --enable-quota was given.
5706if test "${enable_quota+set}" = set; then :
5707 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005708then
Niu Yawei43075b42013-10-14 09:49:27 -04005709 QUOTA_CMT=#
Theodore Ts'o7becb202011-11-14 10:40:43 -05005710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5711$as_echo "Disabling quota support" >&6; }
5712else
Niu Yawei43075b42013-10-14 09:49:27 -04005713 QUOTA_CMT=
Theodore Ts'o7becb202011-11-14 10:40:43 -05005714 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005715
Theodore Ts'o7becb202011-11-14 10:40:43 -05005716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5717$as_echo "Enabling quota support" >&6; }
Eric Sandeenf5589f42013-10-14 08:54:15 -04005718 QUOTA_MAN_COMMENT=""
5719
Aditya Kalif239fef2011-07-20 11:40:02 -07005720fi
5721
5722else
Niu Yawei43075b42013-10-14 09:49:27 -04005723 QUOTA_CMT=#
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
Theodore Ts'o7becb202011-11-14 10:40:43 -05005725$as_echo "Disabling quota support by default" >&6; }
5726
5727fi
5728
5729LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005730DEPLIBQUOTA=$LIBQUOTA
5731STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5732DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5733PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5734DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005735
5736
5737
5738
5739
5740
5741
Theodore Ts'o3df60142013-06-16 16:14:40 -04005742
5743# Check whether --enable-backtrace was given.
5744if test "${enable_backtrace+set}" = set; then :
5745 enableval=$enable_backtrace; if test "$enableval" = "no"
5746then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5748$as_echo "Disabling use of backtrace" >&6; }
5749 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5750
5751else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5753$as_echo "Enabling use of backtrace" >&6; }
5754fi
5755
5756else
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5758$as_echo "Enabling use of backtrace by default" >&6; }
5759
5760fi
5761
Theodore Ts'oe1052142006-10-21 21:46:47 -04005762# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005763if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005764 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005765then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005767$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005768 DEBUGFS_CMT="#"
5769else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005770 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005772$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005773fi
5774
5775else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005777$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005778DEBUGFS_CMT=
5779
Theodore Ts'oe1052142006-10-21 21:46:47 -04005780fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005781
Theodore Ts'oe1052142006-10-21 21:46:47 -04005782
5783# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005784if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005785 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005786then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005788$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005789 IMAGER_CMT="#"
5790else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005791 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005793$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005794fi
5795
5796else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005798$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005799IMAGER_CMT=
5800
Theodore Ts'oe1052142006-10-21 21:46:47 -04005801fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005802
Theodore Ts'oe1052142006-10-21 21:46:47 -04005803
5804# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005805if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005806 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005807then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005809$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005810 RESIZER_CMT="#"
5811else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005812 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005814$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005815fi
5816
5817else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005819$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005820RESIZER_CMT=
5821
Theodore Ts'oe1052142006-10-21 21:46:47 -04005822fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005823
Theodore Ts'oe1052142006-10-21 21:46:47 -04005824
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005825# Check whether --enable-defrag was given.
5826if test "${enable_defrag+set}" = set; then :
5827 enableval=$enable_defrag; if test "$enableval" = "no"
5828then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5830$as_echo "Disabling e4defrag support" >&6; }
5831 DEFRAG_CMT="#"
5832else
5833 DEFRAG_CMT=
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5835$as_echo "Enabling e4defrag support" >&6; }
5836fi
5837
5838else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005839 if test -z "$WITH_DIET_LIBC"
5840then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005842$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005843 DEFRAG_CMT=
5844else
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5846$as_echo "Disabling e4defrag support by default" >&6; }
5847 DEFRAG_CMT="#"
5848fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005849
5850fi
5851
5852
Theodore Ts'oe1052142006-10-21 21:46:47 -04005853# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005854if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005855 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005856then
5857 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005859$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005860else
5861 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005863$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005864fi
5865
5866else
5867 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005868 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005869 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005871$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005872 ;;
5873 *)
5874 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005876$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005877esac
5878
Theodore Ts'oe1052142006-10-21 21:46:47 -04005879fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005880
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005881
Theodore Ts'oe1052142006-10-21 21:46:47 -04005882
5883# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005884if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005885 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005886then
5887 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005889$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005890else
5891 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005893$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005894fi
5895
5896else
5897 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005899$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005900
Theodore Ts'oe1052142006-10-21 21:46:47 -04005901fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005902
5903
Theodore Ts'oe1052142006-10-21 21:46:47 -04005904
Theodore Ts'o32493942007-12-31 10:45:01 -05005905# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005906if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005907 enableval=$enable_tls; if test "$enableval" = "no"
5908then
5909 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005911$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005912else
5913 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005915$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005916fi
5917
5918else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005919 if test -n "$WITH_DIET_LIBC"
5920then
5921 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005922 { $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 +01005923$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005924else
5925 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005927$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005928fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005929
5930fi
5931
5932if test "$try_tls" = "yes"
5933then
5934
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005936$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005937 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005938 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005939else
5940
5941 ax_tls_keywords="__thread __declspec(thread) none"
5942 for ax_tls_keyword in $ax_tls_keywords; do
5943 case $ax_tls_keyword in
5944 none) ac_cv_tls=none ; break ;;
5945 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005947/* end confdefs.h. */
5948#include <stdlib.h>
5949 static void
5950 foo(void) {
5951 static $ax_tls_keyword int bar;
5952 exit(1);
5953 }
5954int
5955main ()
5956{
5957
5958 ;
5959 return 0;
5960}
5961_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005962if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005963 ac_cv_tls=$ax_tls_keyword ; break
5964else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005965 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005966
5967fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969 esac
5970 done
5971
5972fi
5973
5974
5975 if test "$ac_cv_tls" != "none"; then
5976
5977cat >>confdefs.h <<_ACEOF
5978#define TLS $ac_cv_tls
5979_ACEOF
5980
5981 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005983$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005984
5985fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005986
Theodore Ts'o5610f992007-12-31 11:16:56 -05005987# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005988if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005989 enableval=$enable_uuidd; if test "$enableval" = "no"
5990then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005992$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005993 UUIDD_CMT="#"
5994else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005995 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005996
5997 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005999$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05006000fi
6001
6002else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006003 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05006004
6005UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006007$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05006008
6009fi
6010
6011
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00006012MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6013
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006014GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006015PACKAGE=e2fsprogs
6016VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006017VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006018
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006019cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006020#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006021_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006022
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006023
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006024cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006025#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006026_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006027
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006028
6029
6030
6031
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006033$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6034set x ${MAKE-make}
6035ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006036if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006037 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006038else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006039 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006040SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006041all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04006042 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006043_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006044# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04006045case `${MAKE-make} -f conftest.make 2>/dev/null` in
6046 *@@@%%%=?*=@@@%%%*)
6047 eval ac_cv_prog_make_${ac_make}_set=yes;;
6048 *)
6049 eval ac_cv_prog_make_${ac_make}_set=no;;
6050esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006051rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006052fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006053if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006055$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006056 SET_MAKE=
6057else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006059$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006060 SET_MAKE="MAKE=${MAKE-make}"
6061fi
6062
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006063# Find a good install program. We prefer a C program (faster),
6064# so one script is as good as another. But avoid the broken or
6065# incompatible versions:
6066# SysV /etc/install, /usr/sbin/install
6067# SunOS /usr/etc/install
6068# IRIX /sbin/install
6069# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006070# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006071# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6072# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6073# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006074# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006075# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006076# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006078$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006079if test -z "$INSTALL"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006080if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006081 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006082else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084for as_dir in $PATH
6085do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006088 # Account for people who put trailing slashes in PATH elements.
6089case $as_dir/ in #((
6090 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006091 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006092 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006093 /usr/ucb/* ) ;;
6094 *)
6095 # OSF1 and SCO ODT 3.0 have their own names for install.
6096 # Don't use installbsd from OSF since it installs stuff as root
6097 # by default.
6098 for ac_prog in ginstall scoinst install; do
6099 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006100 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006101 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006102 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006103 # AIX install. It has an incompatible calling convention.
6104 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006105 elif test $ac_prog = install &&
6106 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6107 # program-specific install script used by HP pwplus--don't use.
6108 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006109 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006110 rm -rf conftest.one conftest.two conftest.dir
6111 echo one > conftest.one
6112 echo two > conftest.two
6113 mkdir conftest.dir
6114 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6115 test -s conftest.one && test -s conftest.two &&
6116 test -s conftest.dir/conftest.one &&
6117 test -s conftest.dir/conftest.two
6118 then
6119 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6120 break 3
6121 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006122 fi
6123 fi
6124 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006125 done
6126 ;;
6127esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006128
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006129 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006130IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006131
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006132rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006133
6134fi
6135 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006136 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006137 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04006138 # As a last resort, use the slow shell script. Don't cache a
6139 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006140 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04006141 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006142 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006143 fi
6144fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006146$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006147
6148# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6149# It thinks the first close brace ends the variable substitution.
6150test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6151
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006152test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006153
6154test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6155
Theodore Ts'o93613952014-07-03 23:44:13 -04006156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6157$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6158if test -z "$MKDIR_P"; then
6159 if ${ac_cv_path_mkdir+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161else
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6164do
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_prog in mkdir gmkdir; do
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6170 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6171 'mkdir (GNU coreutils) '* | \
6172 'mkdir (coreutils) '* | \
6173 'mkdir (fileutils) '4.1*)
6174 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6175 break 3;;
6176 esac
6177 done
6178 done
6179 done
6180IFS=$as_save_IFS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006181
Theodore Ts'o93613952014-07-03 23:44:13 -04006182fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006183
Theodore Ts'o93613952014-07-03 23:44:13 -04006184 test -d ./--version && rmdir ./--version
6185 if test "${ac_cv_path_mkdir+set}" = set; then
6186 MKDIR_P="$ac_cv_path_mkdir -p"
6187 else
6188 # As a last resort, use the slow shell script. Don't cache a
6189 # value for MKDIR_P within a source directory, because that will
6190 # break other packages using the cache if that directory is
6191 # removed, or if the value is a relative name.
6192 MKDIR_P="$ac_install_sh -d"
6193 fi
6194fi
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6196$as_echo "$MKDIR_P" >&6; }
6197
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6199$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6200if ${ac_cv_path_SED+:} false; then :
6201 $as_echo_n "(cached) " >&6
6202else
6203 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6204 for ac_i in 1 2 3 4 5 6 7; do
6205 ac_script="$ac_script$as_nl$ac_script"
6206 done
6207 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6208 { ac_script=; unset ac_script;}
6209 if test -z "$SED"; then
6210 ac_path_SED_found=false
6211 # Loop through the user's path and test for each of PROGNAME-LIST
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213for as_dir in $PATH
6214do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_prog in sed gsed; do
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6220 as_fn_executable_p "$ac_path_SED" || continue
6221# Check for GNU ac_path_SED and select it if it is found.
6222 # Check for GNU $ac_path_SED
6223case `"$ac_path_SED" --version 2>&1` in
6224*GNU*)
6225 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6226*)
6227 ac_count=0
6228 $as_echo_n 0123456789 >"conftest.in"
6229 while :
6230 do
6231 cat "conftest.in" "conftest.in" >"conftest.tmp"
6232 mv "conftest.tmp" "conftest.in"
6233 cp "conftest.in" "conftest.nl"
6234 $as_echo '' >> "conftest.nl"
6235 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6237 as_fn_arith $ac_count + 1 && ac_count=$as_val
6238 if test $ac_count -gt ${ac_path_SED_max-0}; then
6239 # Best one so far, save it but keep looking for a better one
6240 ac_cv_path_SED="$ac_path_SED"
6241 ac_path_SED_max=$ac_count
6242 fi
6243 # 10*(2^10) chars as input seems more than enough
6244 test $ac_count -gt 10 && break
6245 done
6246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6247esac
6248
6249 $ac_path_SED_found && break 3
6250 done
6251 done
6252 done
6253IFS=$as_save_IFS
6254 if test -z "$ac_cv_path_SED"; then
6255 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6256 fi
6257else
6258 ac_cv_path_SED=$SED
6259fi
6260
6261fi
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6263$as_echo "$ac_cv_path_SED" >&6; }
6264 SED="$ac_cv_path_SED"
6265 rm -f conftest.sed
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006266
6267
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006269$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006270 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006271if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006272 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006273else
6274 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04006275fi
6276
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006278$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006279
6280
6281
6282
Theodore Ts'o93613952014-07-03 23:44:13 -04006283 GETTEXT_MACRO_VERSION=0.18
6284
6285
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006286
6287
6288# Prepare PATH_SEPARATOR.
6289# The user is always right.
6290if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006291 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6292 # contains only /bin. Note that ksh looks also at the FPATH variable,
6293 # so we have to set that as well for the test.
6294 PATH_SEPARATOR=:
6295 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6296 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6297 || PATH_SEPARATOR=';'
6298 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006299fi
6300
6301# Find out how to test for executable files. Don't use a zero-byte file,
6302# as systems may use methods other than mode bits to determine executability.
6303cat >conf$$.file <<_ASEOF
6304#! /bin/sh
6305exit 0
6306_ASEOF
6307chmod +x conf$$.file
6308if test -x conf$$.file >/dev/null 2>&1; then
6309 ac_executable_p="test -x"
6310else
6311 ac_executable_p="test -f"
6312fi
6313rm -f conf$$.file
6314
6315# Extract the first word of "msgfmt", so it can be a program name with args.
6316set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006318$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006319if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006320 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006321else
6322 case "$MSGFMT" in
6323 [\\/]* | ?:[\\/]*)
6324 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6325 ;;
6326 *)
6327 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6328 for ac_dir in $PATH; do
6329 IFS="$ac_save_IFS"
6330 test -z "$ac_dir" && ac_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006333 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6334 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006335 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6336 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6337 break 2
6338 fi
6339 fi
6340 done
6341 done
6342 IFS="$ac_save_IFS"
6343 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6344 ;;
6345esac
6346fi
6347MSGFMT="$ac_cv_path_MSGFMT"
6348if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006350$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006351else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006353$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006354fi
6355
6356 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6357set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006359$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006360if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006361 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006362else
6363 case $GMSGFMT in
6364 [\\/]* | ?:[\\/]*)
6365 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6366 ;;
6367 *)
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006373 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006375 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006377 break 2
6378 fi
6379done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006380 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006381IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006382
6383 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6384 ;;
6385esac
6386fi
6387GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006388if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006390$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006391else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006393$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006394fi
6395
6396
6397
Theodore Ts'o93613952014-07-03 23:44:13 -04006398 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6399 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6400 *) MSGFMT_015=$MSGFMT ;;
6401 esac
6402
6403 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6404 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6405 *) GMSGFMT_015=$GMSGFMT ;;
6406 esac
6407
6408
Theodore Ts'oe1052142006-10-21 21:46:47 -04006409
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006410# Prepare PATH_SEPARATOR.
6411# The user is always right.
6412if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006413 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6414 # contains only /bin. Note that ksh looks also at the FPATH variable,
6415 # so we have to set that as well for the test.
6416 PATH_SEPARATOR=:
6417 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6418 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6419 || PATH_SEPARATOR=';'
6420 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006421fi
6422
6423# Find out how to test for executable files. Don't use a zero-byte file,
6424# as systems may use methods other than mode bits to determine executability.
6425cat >conf$$.file <<_ASEOF
6426#! /bin/sh
6427exit 0
6428_ASEOF
6429chmod +x conf$$.file
6430if test -x conf$$.file >/dev/null 2>&1; then
6431 ac_executable_p="test -x"
6432else
6433 ac_executable_p="test -f"
6434fi
6435rm -f conf$$.file
6436
6437# Extract the first word of "xgettext", so it can be a program name with args.
6438set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006440$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006441if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006442 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006443else
6444 case "$XGETTEXT" in
6445 [\\/]* | ?:[\\/]*)
6446 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6447 ;;
6448 *)
6449 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6450 for ac_dir in $PATH; do
6451 IFS="$ac_save_IFS"
6452 test -z "$ac_dir" && ac_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006455 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6456 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 -05006457 (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
6458 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6459 break 2
6460 fi
6461 fi
6462 done
6463 done
6464 IFS="$ac_save_IFS"
6465 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6466 ;;
6467esac
6468fi
6469XGETTEXT="$ac_cv_path_XGETTEXT"
6470if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006472$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006473else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006475$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006476fi
6477
6478 rm -f messages.po
6479
Theodore Ts'o93613952014-07-03 23:44:13 -04006480 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6481 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6482 *) XGETTEXT_015=$XGETTEXT ;;
6483 esac
6484
6485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006486
6487# Prepare PATH_SEPARATOR.
6488# The user is always right.
6489if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006490 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6491 # contains only /bin. Note that ksh looks also at the FPATH variable,
6492 # so we have to set that as well for the test.
6493 PATH_SEPARATOR=:
6494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6495 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6496 || PATH_SEPARATOR=';'
6497 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006498fi
6499
6500# Find out how to test for executable files. Don't use a zero-byte file,
6501# as systems may use methods other than mode bits to determine executability.
6502cat >conf$$.file <<_ASEOF
6503#! /bin/sh
6504exit 0
6505_ASEOF
6506chmod +x conf$$.file
6507if test -x conf$$.file >/dev/null 2>&1; then
6508 ac_executable_p="test -x"
6509else
6510 ac_executable_p="test -f"
6511fi
6512rm -f conf$$.file
6513
6514# Extract the first word of "msgmerge", so it can be a program name with args.
6515set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006517$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006518if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006519 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006520else
6521 case "$MSGMERGE" in
6522 [\\/]* | ?:[\\/]*)
6523 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6524 ;;
6525 *)
6526 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6527 for ac_dir in $PATH; do
6528 IFS="$ac_save_IFS"
6529 test -z "$ac_dir" && ac_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006532 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6533 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006534 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6535 break 2
6536 fi
6537 fi
6538 done
6539 done
6540 IFS="$ac_save_IFS"
6541 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6542 ;;
6543esac
6544fi
6545MSGMERGE="$ac_cv_path_MSGMERGE"
6546if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006548$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006549else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006551$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006552fi
6553
6554
Theodore Ts'o93613952014-07-03 23:44:13 -04006555 test -n "$localedir" || localedir='${datadir}/locale'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006556
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006557
Theodore Ts'o93613952014-07-03 23:44:13 -04006558 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6559
6560
6561 ac_config_commands="$ac_config_commands po-directories"
6562
6563
6564
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6566$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6567if ${ac_cv_gnu_library_2+:} false; then :
6568 $as_echo_n "(cached) " >&6
6569else
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571/* end confdefs.h. */
6572
6573#include <features.h>
6574#ifdef __GNU_LIBRARY__
6575 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6576 Lucky GNU user
6577 #endif
6578#endif
6579
6580_ACEOF
6581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6582 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6583 ac_cv_gnu_library_2=yes
6584else
6585 ac_cv_gnu_library_2=no
6586fi
6587rm -f conftest*
6588
6589
6590
6591fi
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6593$as_echo "$ac_cv_gnu_library_2" >&6; }
6594
6595 GLIBC2="$ac_cv_gnu_library_2"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006596
6597
6598if test -n "$ac_tool_prefix"; then
6599 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6600set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006602$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006603if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006604 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006605else
6606 if test -n "$RANLIB"; then
6607 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6608else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610for as_dir in $PATH
6611do
6612 IFS=$as_save_IFS
6613 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006614 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006616 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006618 break 2
6619 fi
6620done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006621 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006622IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006623
6624fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006625fi
6626RANLIB=$ac_cv_prog_RANLIB
6627if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006629$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006630else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006632$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006633fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006634
Theodore Ts'oe1052142006-10-21 21:46:47 -04006635
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006636fi
6637if test -z "$ac_cv_prog_RANLIB"; then
6638 ac_ct_RANLIB=$RANLIB
6639 # Extract the first word of "ranlib", so it can be a program name with args.
6640set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006642$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006643if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006644 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006645else
6646 if test -n "$ac_ct_RANLIB"; then
6647 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6648else
6649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006654 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006656 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006658 break 2
6659 fi
6660done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006661 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006662IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006664fi
6665fi
6666ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6667if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006669$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006670else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006672$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006673fi
6674
Theodore Ts'oe1052142006-10-21 21:46:47 -04006675 if test "x$ac_ct_RANLIB" = x; then
6676 RANLIB=":"
6677 else
6678 case $cross_compiling:$ac_tool_warned in
6679yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006680{ $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 +01006681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006682ac_tool_warned=yes ;;
6683esac
6684 RANLIB=$ac_ct_RANLIB
6685 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006686else
6687 RANLIB="$ac_cv_prog_RANLIB"
6688fi
6689
6690
Theodore Ts'o93613952014-07-03 23:44:13 -04006691
6692 CFLAG_VISIBILITY=
6693 HAVE_VISIBILITY=0
6694 if test -n "$GCC"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6696$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6697 if ${gl_cv_cc_vis_werror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006698 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006699else
Theodore Ts'o93613952014-07-03 23:44:13 -04006700
6701 gl_save_CFLAGS="$CFLAGS"
6702 CFLAGS="$CFLAGS -Werror"
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006704/* end confdefs.h. */
6705
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006706int
6707main ()
6708{
Theodore Ts'o93613952014-07-03 23:44:13 -04006709
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006710 ;
6711 return 0;
6712}
6713_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04006714if ac_fn_c_try_compile "$LINENO"; then :
6715 gl_cv_cc_vis_werror=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006716else
Theodore Ts'o93613952014-07-03 23:44:13 -04006717 gl_cv_cc_vis_werror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006718fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 CFLAGS="$gl_save_CFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006721fi
6722
Theodore Ts'o93613952014-07-03 23:44:13 -04006723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6724$as_echo "$gl_cv_cc_vis_werror" >&6; }
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6726$as_echo_n "checking for simple visibility declarations... " >&6; }
6727 if ${gl_cv_cc_visibility+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006728 $as_echo_n "(cached) " >&6
6729else
Theodore Ts'o93613952014-07-03 23:44:13 -04006730
6731 gl_save_CFLAGS="$CFLAGS"
6732 CFLAGS="$CFLAGS -fvisibility=hidden"
6733 if test $gl_cv_cc_vis_werror = yes; then
6734 CFLAGS="$CFLAGS -Werror"
6735 fi
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737/* end confdefs.h. */
6738extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6739 extern __attribute__((__visibility__("default"))) int exportedvar;
6740 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6741 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6742 void dummyfunc (void) {}
6743
6744int
6745main ()
6746{
6747
6748 ;
6749 return 0;
6750}
6751_ACEOF
6752if ac_fn_c_try_compile "$LINENO"; then :
6753 gl_cv_cc_visibility=yes
6754else
6755 gl_cv_cc_visibility=no
6756fi
6757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 CFLAGS="$gl_save_CFLAGS"
6759fi
6760
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6762$as_echo "$gl_cv_cc_visibility" >&6; }
6763 if test $gl_cv_cc_visibility = yes; then
6764 CFLAG_VISIBILITY="-fvisibility=hidden"
6765 HAVE_VISIBILITY=1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006766 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006767 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006768
6769
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006770
Theodore Ts'o93613952014-07-03 23:44:13 -04006771cat >>confdefs.h <<_ACEOF
6772#define HAVE_VISIBILITY $HAVE_VISIBILITY
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006773_ACEOF
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006774
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006775
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006777$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006778if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006779 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006780else
6781 ac_cv_c_inline=no
6782for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006784/* end confdefs.h. */
6785#ifndef __cplusplus
6786typedef int foo_t;
6787static $ac_kw foo_t static_foo () {return 0; }
6788$ac_kw foo_t foo () {return 0; }
6789#endif
6790
6791_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006792if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006793 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006794fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006797done
6798
6799fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006801$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006802
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006803case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006804 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006805 *)
6806 case $ac_cv_c_inline in
6807 no) ac_val=;;
6808 *) ac_val=$ac_cv_c_inline;;
6809 esac
6810 cat >>confdefs.h <<_ACEOF
6811#ifndef __cplusplus
6812#define inline $ac_val
6813#endif
6814_ACEOF
6815 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006816esac
6817
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006818ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006819if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006820
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006821else
6822
6823cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006824#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006825_ACEOF
6826
6827fi
6828
6829
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006831$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04006832if ${gl_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006833 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006834else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006836/* end confdefs.h. */
6837#include <sys/types.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04006838 #include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006839int
6840main ()
6841{
Theodore Ts'o93613952014-07-03 23:44:13 -04006842uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006843 ;
6844 return 0;
6845}
6846_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006847if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04006848 gl_cv_header_stdint_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006849else
Theodore Ts'o93613952014-07-03 23:44:13 -04006850 gl_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006851fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006853fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6855$as_echo "$gl_cv_header_stdint_h" >&6; }
6856 if test $gl_cv_header_stdint_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006857
6858cat >>confdefs.h <<_ACEOF
6859#define HAVE_STDINT_H_WITH_UINTMAX 1
6860_ACEOF
6861
6862 fi
6863
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006864# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6865# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006867$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006868if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006869 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006870else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006872/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006873#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006874int
6875main ()
6876{
6877char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006878 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006879 ;
6880 return 0;
6881}
6882_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006883if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006884 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006885else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006886 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006887fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006888rm -f core conftest.err conftest.$ac_objext \
6889 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006890fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006892$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006893if test $ac_cv_working_alloca_h = yes; then
6894
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006895$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006896
6897fi
6898
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006900$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006901if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006902 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006903else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006905/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006906#ifdef __GNUC__
6907# define alloca __builtin_alloca
6908#else
6909# ifdef _MSC_VER
6910# include <malloc.h>
6911# define alloca _alloca
6912# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006913# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006914# include <alloca.h>
6915# else
6916# ifdef _AIX
6917 #pragma alloca
6918# else
6919# ifndef alloca /* predefined by HP cc +Olibcalls */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006920void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006921# endif
6922# endif
6923# endif
6924# endif
6925#endif
6926
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006927int
6928main ()
6929{
6930char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006931 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006932 ;
6933 return 0;
6934}
6935_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006936if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006937 ac_cv_func_alloca_works=yes
6938else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006939 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006940fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006941rm -f core conftest.err conftest.$ac_objext \
6942 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006943fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006945$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006946
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006947if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006948
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006949$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006950
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006951else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006952 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6953# that cause trouble. Some versions do not even contain alloca or
6954# contain a buggy version. If you still want to use their alloca,
6955# use ar to extract alloca.o from them instead of compiling alloca.c.
6956
Theodore Ts'oe1052142006-10-21 21:46:47 -04006957ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006958
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006959$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006960
6961
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006963$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006964if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006965 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006966else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006968/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006969#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006970webecray
6971#else
6972wenotbecray
6973#endif
6974
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006975_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006977 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006978 ac_cv_os_cray=yes
6979else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006980 ac_cv_os_cray=no
6981fi
6982rm -f conftest*
6983
6984fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006986$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006987if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006988 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006990ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006991if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006992
6993cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006994#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006995_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006996
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006997 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006998fi
6999
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007000 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007001fi
7002
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007004$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007005if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007006 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007007else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007008 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007009 ac_cv_c_stack_direction=0
7010else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007012/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007013$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007014int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007015find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007016{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007017 int dir, dummy = 0;
7018 if (! addr)
7019 addr = &dummy;
7020 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7021 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7022 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007023}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007024
7025int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007026main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007027{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007028 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007029}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007030_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007031if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007032 ac_cv_c_stack_direction=1
7033else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007034 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007035fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7037 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007038fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007039
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007040fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007042$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007043cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007044#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007045_ACEOF
7046
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007047
7048fi
7049
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007050
7051
7052
7053 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007054do :
7055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007056ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7057"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007058if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007059 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007060#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007061_ACEOF
7062
7063fi
7064
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007065done
7066
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007067
7068
7069
7070
7071
7072
7073
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007074for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007075do :
7076 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007077if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007078 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007079#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007080_ACEOF
7081
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007082fi
7083done
7084
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007086$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007087if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007088 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007089else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007090 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007091 ac_cv_func_mmap_fixed_mapped=no
7092else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007094/* end confdefs.h. */
7095$ac_includes_default
7096/* malloc might have been renamed as rpl_malloc. */
7097#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007098
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007099/* Thanks to Mike Haertel and Jim Avera for this test.
7100 Here is a matrix of mmap possibilities:
7101 mmap private not fixed
7102 mmap private fixed at somewhere currently unmapped
7103 mmap private fixed at somewhere already mapped
7104 mmap shared not fixed
7105 mmap shared fixed at somewhere currently unmapped
7106 mmap shared fixed at somewhere already mapped
7107 For private mappings, we should verify that changes cannot be read()
7108 back from the file, nor mmap's back from the file at a different
7109 address. (There have been systems where private was not correctly
7110 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007111 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007112 like early versions of FreeBSD and possibly contemporary NetBSD.)
7113 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007114 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007115
7116 Grep wants private fixed already mapped.
7117 The main things grep needs to know about mmap are:
7118 * does it exist and is it safe to write into the mmap'd area
7119 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007120
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007121#include <fcntl.h>
7122#include <sys/mman.h>
7123
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007124#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007125char *malloc ();
7126#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007127
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007128/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007129#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007130# ifdef _SC_PAGESIZE
7131# define getpagesize() sysconf(_SC_PAGESIZE)
7132# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007133# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007134# include <sys/param.h>
7135# ifdef EXEC_PAGESIZE
7136# define getpagesize() EXEC_PAGESIZE
7137# else /* no EXEC_PAGESIZE */
7138# ifdef NBPG
7139# define getpagesize() NBPG * CLSIZE
7140# ifndef CLSIZE
7141# define CLSIZE 1
7142# endif /* no CLSIZE */
7143# else /* no NBPG */
7144# ifdef NBPC
7145# define getpagesize() NBPC
7146# else /* no NBPC */
7147# ifdef PAGESIZE
7148# define getpagesize() PAGESIZE
7149# endif /* PAGESIZE */
7150# endif /* no NBPC */
7151# endif /* no NBPG */
7152# endif /* no EXEC_PAGESIZE */
7153# else /* no HAVE_SYS_PARAM_H */
7154# define getpagesize() 8192 /* punt totally */
7155# endif /* no HAVE_SYS_PARAM_H */
7156# endif /* no _SC_PAGESIZE */
7157
7158#endif /* no HAVE_GETPAGESIZE */
7159
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007160int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007161main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007162{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007163 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007164 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007165 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007166 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007167
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007168 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007169
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007170 /* First, make a file with some known garbage in it. */
7171 data = (char *) malloc (pagesize);
7172 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007173 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007174 for (i = 0; i < pagesize; ++i)
7175 *(data + i) = rand ();
7176 umask (0);
7177 fd = creat ("conftest.mmap", 0600);
7178 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007179 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007180 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007181 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007182 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007183
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007184 /* Next, check that the tail of a page is zero-filled. File must have
7185 non-zero length, otherwise we risk SIGBUS for entire page. */
7186 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7187 if (fd2 < 0)
7188 return 4;
7189 cdata2 = "";
7190 if (write (fd2, cdata2, 1) != 1)
7191 return 5;
7192 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7193 if (data2 == MAP_FAILED)
7194 return 6;
7195 for (i = 0; i < pagesize; ++i)
7196 if (*(data2 + i))
7197 return 7;
7198 close (fd2);
7199 if (munmap (data2, pagesize))
7200 return 8;
7201
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007202 /* Next, try to mmap the file at a fixed address which already has
7203 something else allocated at it. If we can, also make sure that
7204 we see the same garbage. */
7205 fd = open ("conftest.mmap", O_RDWR);
7206 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007207 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007208 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7209 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007210 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007211 for (i = 0; i < pagesize; ++i)
7212 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007213 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007214
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007215 /* Finally, make sure that changes to the mapped area do not
7216 percolate back to the file as seen by read(). (This is a bug on
7217 some variants of i386 svr4.0.) */
7218 for (i = 0; i < pagesize; ++i)
7219 *(data2 + i) = *(data2 + i) + 1;
7220 data3 = (char *) malloc (pagesize);
7221 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007222 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007223 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007224 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007225 for (i = 0; i < pagesize; ++i)
7226 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007227 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007228 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007229 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007230}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007231_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007232if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007233 ac_cv_func_mmap_fixed_mapped=yes
7234else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007235 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007236fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007237rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7238 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007239fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007240
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007241fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007243$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007244if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007245
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007246$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007247
7248fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007249rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007250
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007251
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007252
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007254$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007255if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007256 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007257else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007258
Theodore Ts'o93613952014-07-03 23:44:13 -04007259 gt_cv_int_divbyzero_sigfpe=
7260 case "$host_os" in
7261 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7262 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7263 # compiling. If we were to perform the real test, 1 Crash Report
7264 # dialog window would pop up.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007265 case "$host_cpu" in
Theodore Ts'o93613952014-07-03 23:44:13 -04007266 i[34567]86 | x86_64)
7267 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007268 esac
Theodore Ts'o93613952014-07-03 23:44:13 -04007269 ;;
7270 esac
7271 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7272 if test "$cross_compiling" = yes; then :
7273
7274 # Guess based on the CPU.
7275 case "$host_cpu" in
7276 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7277 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7278 *)
7279 gt_cv_int_divbyzero_sigfpe="guessing no";;
7280 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007281
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007282else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007284/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007285
7286#include <stdlib.h>
7287#include <signal.h>
7288
7289static void
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007290sigfpe_handler (int sig)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007291{
7292 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7293 exit (sig != SIGFPE);
7294}
7295
7296int x = 1;
7297int y = 0;
7298int z;
7299int nan;
7300
7301int main ()
7302{
7303 signal (SIGFPE, sigfpe_handler);
7304/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7305#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7306 signal (SIGTRAP, sigfpe_handler);
7307#endif
7308/* Linux/SPARC yields signal SIGILL. */
7309#if defined (__sparc__) && defined (__linux__)
7310 signal (SIGILL, sigfpe_handler);
7311#endif
7312
7313 z = x / y;
7314 nan = y / y;
Theodore Ts'o93613952014-07-03 23:44:13 -04007315 exit (2);
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007316}
7317
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007318_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007319if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007320 gt_cv_int_divbyzero_sigfpe=yes
7321else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007322 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007323fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7325 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007326fi
7327
Theodore Ts'o93613952014-07-03 23:44:13 -04007328 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007329
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007330fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007332$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007333 case "$gt_cv_int_divbyzero_sigfpe" in
7334 *yes) value=1;;
7335 *) value=0;;
7336 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007337
7338cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007339#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007340_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007341
7342
7343
Theodore Ts'o93613952014-07-03 23:44:13 -04007344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7345$as_echo_n "checking for inttypes.h... " >&6; }
7346if ${gl_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007347 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007348else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007350/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007351
7352#include <sys/types.h>
7353#include <inttypes.h>
7354
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007355int
7356main ()
7357{
Theodore Ts'o93613952014-07-03 23:44:13 -04007358uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007359 ;
7360 return 0;
7361}
7362_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04007363if ac_fn_c_try_compile "$LINENO"; then :
7364 gl_cv_header_inttypes_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007365else
Theodore Ts'o93613952014-07-03 23:44:13 -04007366 gl_cv_header_inttypes_h=no
7367fi
7368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369fi
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7371$as_echo "$gl_cv_header_inttypes_h" >&6; }
7372 if test $gl_cv_header_inttypes_h = yes; then
7373
7374cat >>confdefs.h <<_ACEOF
7375#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7376_ACEOF
7377
7378 fi
7379
7380
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7382$as_echo_n "checking for unsigned long long int... " >&6; }
7383if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385else
7386 ac_cv_type_unsigned_long_long_int=yes
7387 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389/* end confdefs.h. */
7390
7391 /* For now, do not test the preprocessor; as of 2007 there are too many
7392 implementations with broken preprocessors. Perhaps this can
7393 be revisited in 2012. In the meantime, code should not expect
7394 #if to work with literals wider than 32 bits. */
7395 /* Test literals. */
7396 long long int ll = 9223372036854775807ll;
7397 long long int nll = -9223372036854775807LL;
7398 unsigned long long int ull = 18446744073709551615ULL;
7399 /* Test constant expressions. */
7400 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7401 ? 1 : -1)];
7402 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7403 ? 1 : -1)];
7404 int i = 63;
7405int
7406main ()
7407{
7408/* Test availability of runtime routines for shift and division. */
7409 long long int llmax = 9223372036854775807ll;
7410 unsigned long long int ullmax = 18446744073709551615ull;
7411 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7412 | (llmax / ll) | (llmax % ll)
7413 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7414 | (ullmax / ull) | (ullmax % ull));
7415 ;
7416 return 0;
7417}
7418
7419_ACEOF
7420if ac_fn_c_try_link "$LINENO"; then :
7421
7422else
7423 ac_cv_type_unsigned_long_long_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007424fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007425rm -f core conftest.err conftest.$ac_objext \
7426 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -04007427 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007428fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7430$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7431 if test $ac_cv_type_unsigned_long_long_int = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007432
Theodore Ts'o93613952014-07-03 23:44:13 -04007433$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007434
7435 fi
7436
7437
7438
7439
Theodore Ts'o93613952014-07-03 23:44:13 -04007440 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007441
Theodore Ts'o93613952014-07-03 23:44:13 -04007442 test $ac_cv_type_unsigned_long_long_int = yes \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007443 && ac_type='unsigned long long' \
7444 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007445
7446cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007447#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007448_ACEOF
7449
7450 else
7451
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007452$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007453
7454 fi
7455
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007456
Theodore Ts'o93613952014-07-03 23:44:13 -04007457 for ac_header in inttypes.h
7458do :
7459 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7460if test "x$ac_cv_header_inttypes_h" = xyes; then :
7461 cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007462#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007463_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007464
Theodore Ts'o93613952014-07-03 23:44:13 -04007465fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007466
Theodore Ts'o93613952014-07-03 23:44:13 -04007467done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007468
Theodore Ts'o93613952014-07-03 23:44:13 -04007469 if test $ac_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007470 { $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 +01007471$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007472if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007473 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007474else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007475
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007477/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007478
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007479#include <inttypes.h>
7480#ifdef PRId32
7481char *p = PRId32;
7482#endif
7483
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007484int
7485main ()
7486{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007487
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007488 ;
7489 return 0;
7490}
7491_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007492if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007493 gt_cv_inttypes_pri_broken=no
7494else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007495 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007496fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007498
7499fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007501$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007502 fi
7503 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007504
7505cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007506#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007507_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007508
Theodore Ts'o93613952014-07-03 23:44:13 -04007509 PRI_MACROS_BROKEN=1
7510 else
7511 PRI_MACROS_BROKEN=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007512 fi
7513
7514
7515
Theodore Ts'o93613952014-07-03 23:44:13 -04007516
7517
7518
7519
7520 # Check whether --enable-threads was given.
7521if test "${enable_threads+set}" = set; then :
7522 enableval=$enable_threads; gl_use_threads=$enableval
7523else
7524 if test -n "$gl_use_threads_default"; then
7525 gl_use_threads="$gl_use_threads_default"
7526 else
7527 case "$host_os" in
7528 osf*) gl_use_threads=no ;;
7529 cygwin*)
7530 case `uname -r` in
7531 1.[0-5].*) gl_use_threads=no ;;
7532 *) gl_use_threads=yes ;;
7533 esac
7534 ;;
7535 *) gl_use_threads=yes ;;
7536 esac
7537 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007538
7539fi
7540
Theodore Ts'o93613952014-07-03 23:44:13 -04007541 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7542 # For using <pthread.h>:
7543 case "$host_os" in
7544 osf*)
7545 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7546 # groks <pthread.h>. cc also understands the flag -pthread, but
7547 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7548 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7549 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7550 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7551 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7552 ;;
7553 esac
7554 # Some systems optimize for single-threaded programs by default, and
7555 # need special flags to disable these optimizations. For example, the
7556 # definition of 'errno' in <errno.h>.
7557 case "$host_os" in
7558 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7559 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7560 esac
7561 fi
7562
7563
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007564
7565
7566
7567 if test "X$prefix" = "XNONE"; then
7568 acl_final_prefix="$ac_default_prefix"
7569 else
7570 acl_final_prefix="$prefix"
7571 fi
7572 if test "X$exec_prefix" = "XNONE"; then
7573 acl_final_exec_prefix='${prefix}'
7574 else
7575 acl_final_exec_prefix="$exec_prefix"
7576 fi
7577 acl_save_prefix="$prefix"
7578 prefix="$acl_final_prefix"
7579 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7580 prefix="$acl_save_prefix"
7581
7582
Theodore Ts'o93613952014-07-03 23:44:13 -04007583
Theodore Ts'oe1052142006-10-21 21:46:47 -04007584# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007585if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007586 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007587else
7588 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007589fi
7590
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007591# Prepare PATH_SEPARATOR.
7592# The user is always right.
7593if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007594 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7595 # contains only /bin. Note that ksh looks also at the FPATH variable,
7596 # so we have to set that as well for the test.
7597 PATH_SEPARATOR=:
7598 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7599 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7600 || PATH_SEPARATOR=';'
7601 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007602fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007603
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007604ac_prog=ld
7605if test "$GCC" = yes; then
7606 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o93613952014-07-03 23:44:13 -04007607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7608$as_echo_n "checking for ld used by $CC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007609 case $host in
7610 *-*-mingw*)
7611 # gcc leaves a trailing carriage return which upsets mingw
7612 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7613 *)
7614 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7615 esac
7616 case $ac_prog in
7617 # Accept absolute paths.
Theodore Ts'o93613952014-07-03 23:44:13 -04007618 [\\/]* | ?:[\\/]*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007619 re_direlt='/[^/][^/]*/\.\./'
Theodore Ts'o93613952014-07-03 23:44:13 -04007620 # Canonicalize the pathname of ld
7621 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7622 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7623 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007624 done
7625 test -z "$LD" && LD="$ac_prog"
7626 ;;
7627 "")
7628 # If it fails, then pretend we aren't using GCC.
7629 ac_prog=ld
7630 ;;
7631 *)
7632 # If it is relative, then search for the first ld in PATH.
7633 with_gnu_ld=unknown
7634 ;;
7635 esac
7636elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007638$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007639else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007641$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007642fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007643if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007644 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007645else
7646 if test -z "$LD"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007647 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007648 for ac_dir in $PATH; do
Theodore Ts'o93613952014-07-03 23:44:13 -04007649 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007650 test -z "$ac_dir" && ac_dir=.
7651 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7652 acl_cv_path_LD="$ac_dir/$ac_prog"
7653 # Check to see if the program is GNU ld. I'd rather use --version,
Theodore Ts'o93613952014-07-03 23:44:13 -04007654 # but apparently some variants of GNU ld only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007655 # Break only if it was the GNU/non-GNU ld that we prefer.
Theodore Ts'o93613952014-07-03 23:44:13 -04007656 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007657 *GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007658 test "$with_gnu_ld" != no && break
7659 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007660 *)
Theodore Ts'o93613952014-07-03 23:44:13 -04007661 test "$with_gnu_ld" != yes && break
7662 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007663 esac
7664 fi
7665 done
Theodore Ts'o93613952014-07-03 23:44:13 -04007666 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007667else
7668 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7669fi
7670fi
7671
7672LD="$acl_cv_path_LD"
7673if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007675$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007676else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007678$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007679fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007680test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007682$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007683if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007684 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007685else
Theodore Ts'o93613952014-07-03 23:44:13 -04007686 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007687case `$LD -v 2>&1 </dev/null` in
7688*GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007689 acl_cv_prog_gnu_ld=yes
7690 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007691*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007692 acl_cv_prog_gnu_ld=no
7693 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007694esac
7695fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007697$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007698with_gnu_ld=$acl_cv_prog_gnu_ld
7699
7700
7701
Theodore Ts'o93613952014-07-03 23:44:13 -04007702
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007704$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007705if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007706 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007707else
7708
7709 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7710 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7711 . ./conftest.sh
7712 rm -f ./conftest.sh
7713 acl_cv_rpath=done
7714
7715fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007717$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007718 wl="$acl_cv_wl"
Theodore Ts'o93613952014-07-03 23:44:13 -04007719 acl_libext="$acl_cv_libext"
7720 acl_shlibext="$acl_cv_shlibext"
7721 acl_libname_spec="$acl_cv_libname_spec"
7722 acl_library_names_spec="$acl_cv_library_names_spec"
7723 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7724 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7725 acl_hardcode_direct="$acl_cv_hardcode_direct"
7726 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007727 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007728if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007729 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007730else
7731 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007732fi
7733
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007734
7735
7736
Theodore Ts'o93613952014-07-03 23:44:13 -04007737 acl_libdirstem=lib
7738 acl_libdirstem2=
7739 case "$host_os" in
7740 solaris*)
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7742$as_echo_n "checking for 64-bit host... " >&6; }
7743if ${gl_cv_solaris_64bit+:} false; then :
7744 $as_echo_n "(cached) " >&6
7745else
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747/* end confdefs.h. */
7748
7749#ifdef _LP64
7750sixtyfour bits
7751#endif
7752
7753_ACEOF
7754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7755 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7756 gl_cv_solaris_64bit=yes
7757else
7758 gl_cv_solaris_64bit=no
7759fi
7760rm -f conftest*
7761
7762
7763fi
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7765$as_echo "$gl_cv_solaris_64bit" >&6; }
7766 if test $gl_cv_solaris_64bit = yes; then
7767 acl_libdirstem=lib/64
7768 case "$host_cpu" in
7769 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7770 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7771 esac
7772 fi
7773 ;;
7774 *)
7775 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7776 if test -n "$searchpath"; then
7777 acl_save_IFS="${IFS= }"; IFS=":"
7778 for searchdir in $searchpath; do
7779 if test -d "$searchdir"; then
7780 case "$searchdir" in
7781 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7782 */../ | */.. )
7783 # Better ignore directories of this form. They are misleading.
7784 ;;
7785 *) searchdir=`cd "$searchdir" && pwd`
7786 case "$searchdir" in
7787 */lib64 ) acl_libdirstem=lib64 ;;
7788 esac ;;
7789 esac
7790 fi
7791 done
7792 IFS="$acl_save_IFS"
7793 fi
7794 ;;
7795 esac
7796 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7797
7798
7799
7800 gl_threads_api=none
7801 LIBTHREAD=
7802 LTLIBTHREAD=
7803 LIBMULTITHREAD=
7804 LTLIBMULTITHREAD=
7805 if test "$gl_use_threads" != no; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7807$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7808if ${gl_cv_have_weak+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810else
7811 gl_cv_have_weak=no
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813/* end confdefs.h. */
7814extern void xyzzy ();
7815#pragma weak xyzzy
7816int
7817main ()
7818{
7819xyzzy();
7820 ;
7821 return 0;
7822}
7823_ACEOF
7824if ac_fn_c_try_link "$LINENO"; then :
7825 gl_cv_have_weak=maybe
7826fi
7827rm -f core conftest.err conftest.$ac_objext \
7828 conftest$ac_exeext conftest.$ac_ext
7829 if test $gl_cv_have_weak = maybe; then
7830 if test "$cross_compiling" = yes; then :
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832/* end confdefs.h. */
7833#ifdef __ELF__
7834 Extensible Linking Format
7835 #endif
7836
7837_ACEOF
7838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7839 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7840 gl_cv_have_weak="guessing yes"
7841else
7842 gl_cv_have_weak="guessing no"
7843fi
7844rm -f conftest*
7845
7846
7847else
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849/* end confdefs.h. */
7850
7851#include <stdio.h>
7852#pragma weak fputs
7853int main ()
7854{
7855 return (fputs == NULL);
7856}
7857_ACEOF
7858if ac_fn_c_try_run "$LINENO"; then :
7859 gl_cv_have_weak=yes
7860else
7861 gl_cv_have_weak=no
7862fi
7863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7864 conftest.$ac_objext conftest.beam conftest.$ac_ext
7865fi
7866
7867 fi
7868
7869fi
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7871$as_echo "$gl_cv_have_weak" >&6; }
7872 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7873 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7874 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7875 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7876if test "x$ac_cv_header_pthread_h" = xyes; then :
7877 gl_have_pthread_h=yes
7878else
7879 gl_have_pthread_h=no
7880fi
7881
7882
7883 if test "$gl_have_pthread_h" = yes; then
7884 # Other possible tests:
7885 # -lpthreads (FSU threads, PCthreads)
7886 # -lgthreads
7887 gl_have_pthread=
7888 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7889 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7890 # the second one only in libpthread, and lock.c needs it.
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892/* end confdefs.h. */
7893#include <pthread.h>
7894int
7895main ()
7896{
7897pthread_mutex_lock((pthread_mutex_t*)0);
7898 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7899 ;
7900 return 0;
7901}
7902_ACEOF
7903if ac_fn_c_try_link "$LINENO"; then :
7904 gl_have_pthread=yes
7905fi
7906rm -f core conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
7908 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7909 # since it is defined as a macro on OSF/1.)
7910 if test -n "$gl_have_pthread"; then
7911 # The program links fine without libpthread. But it may actually
7912 # need to link with libpthread in order to create multiple threads.
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7914$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7915if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7916 $as_echo_n "(cached) " >&6
7917else
7918 ac_check_lib_save_LIBS=$LIBS
7919LIBS="-lpthread $LIBS"
7920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921/* end confdefs.h. */
7922
7923/* Override any GCC internal prototype to avoid an error.
7924 Use char because int might match the return type of a GCC
7925 builtin and then its argument prototype would still apply. */
7926#ifdef __cplusplus
7927extern "C"
7928#endif
7929char pthread_kill ();
7930int
7931main ()
7932{
7933return pthread_kill ();
7934 ;
7935 return 0;
7936}
7937_ACEOF
7938if ac_fn_c_try_link "$LINENO"; then :
7939 ac_cv_lib_pthread_pthread_kill=yes
7940else
7941 ac_cv_lib_pthread_pthread_kill=no
7942fi
7943rm -f core conftest.err conftest.$ac_objext \
7944 conftest$ac_exeext conftest.$ac_ext
7945LIBS=$ac_check_lib_save_LIBS
7946fi
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7948$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7949if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7950 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7951 # On Solaris and HP-UX, most pthread functions exist also in libc.
7952 # Therefore pthread_in_use() needs to actually try to create a
7953 # thread: pthread_create from libc will fail, whereas
7954 # pthread_create will actually create a thread.
7955 case "$host_os" in
7956 solaris* | hpux*)
7957
7958$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7959
7960 esac
7961
7962fi
7963
7964 else
7965 # Some library is needed. Try libpthread and libc_r.
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7967$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7968if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7969 $as_echo_n "(cached) " >&6
7970else
7971 ac_check_lib_save_LIBS=$LIBS
7972LIBS="-lpthread $LIBS"
7973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974/* end confdefs.h. */
7975
7976/* Override any GCC internal prototype to avoid an error.
7977 Use char because int might match the return type of a GCC
7978 builtin and then its argument prototype would still apply. */
7979#ifdef __cplusplus
7980extern "C"
7981#endif
7982char pthread_kill ();
7983int
7984main ()
7985{
7986return pthread_kill ();
7987 ;
7988 return 0;
7989}
7990_ACEOF
7991if ac_fn_c_try_link "$LINENO"; then :
7992 ac_cv_lib_pthread_pthread_kill=yes
7993else
7994 ac_cv_lib_pthread_pthread_kill=no
7995fi
7996rm -f core conftest.err conftest.$ac_objext \
7997 conftest$ac_exeext conftest.$ac_ext
7998LIBS=$ac_check_lib_save_LIBS
7999fi
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8001$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8002if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8003 gl_have_pthread=yes
8004 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8005 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8006fi
8007
8008 if test -z "$gl_have_pthread"; then
8009 # For FreeBSD 4.
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8011$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8012if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8013 $as_echo_n "(cached) " >&6
8014else
8015 ac_check_lib_save_LIBS=$LIBS
8016LIBS="-lc_r $LIBS"
8017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018/* end confdefs.h. */
8019
8020/* Override any GCC internal prototype to avoid an error.
8021 Use char because int might match the return type of a GCC
8022 builtin and then its argument prototype would still apply. */
8023#ifdef __cplusplus
8024extern "C"
8025#endif
8026char pthread_kill ();
8027int
8028main ()
8029{
8030return pthread_kill ();
8031 ;
8032 return 0;
8033}
8034_ACEOF
8035if ac_fn_c_try_link "$LINENO"; then :
8036 ac_cv_lib_c_r_pthread_kill=yes
8037else
8038 ac_cv_lib_c_r_pthread_kill=no
8039fi
8040rm -f core conftest.err conftest.$ac_objext \
8041 conftest$ac_exeext conftest.$ac_ext
8042LIBS=$ac_check_lib_save_LIBS
8043fi
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8045$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8046if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8047 gl_have_pthread=yes
8048 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8049 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8050fi
8051
8052 fi
8053 fi
8054 if test -n "$gl_have_pthread"; then
8055 gl_threads_api=posix
8056
8057$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8058
8059 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8060 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8061
8062$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8063
8064 LIBTHREAD=
8065 LTLIBTHREAD=
8066 fi
8067 fi
8068 fi
8069 fi
8070 fi
8071 if test -z "$gl_have_pthread"; then
8072 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8073 gl_have_solaristhread=
8074 gl_save_LIBS="$LIBS"
8075 LIBS="$LIBS -lthread"
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077/* end confdefs.h. */
8078
8079#include <thread.h>
8080#include <synch.h>
8081
8082int
8083main ()
8084{
8085thr_self();
8086 ;
8087 return 0;
8088}
8089_ACEOF
8090if ac_fn_c_try_link "$LINENO"; then :
8091 gl_have_solaristhread=yes
8092fi
8093rm -f core conftest.err conftest.$ac_objext \
8094 conftest$ac_exeext conftest.$ac_ext
8095 LIBS="$gl_save_LIBS"
8096 if test -n "$gl_have_solaristhread"; then
8097 gl_threads_api=solaris
8098 LIBTHREAD=-lthread
8099 LTLIBTHREAD=-lthread
8100 LIBMULTITHREAD="$LIBTHREAD"
8101 LTLIBMULTITHREAD="$LTLIBTHREAD"
8102
8103$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8104
8105 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8106
8107$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8108
8109 LIBTHREAD=
8110 LTLIBTHREAD=
8111 fi
8112 fi
8113 fi
8114 fi
8115 if test "$gl_use_threads" = pth; then
8116 gl_save_CPPFLAGS="$CPPFLAGS"
8117
8118
8119
8120
8121
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8123$as_echo_n "checking how to link with libpth... " >&6; }
8124if ${ac_cv_libpth_libs+:} false; then :
8125 $as_echo_n "(cached) " >&6
8126else
8127
8128
8129
8130
8131
8132
8133
8134
8135 use_additional=yes
8136
8137 acl_save_prefix="$prefix"
8138 prefix="$acl_final_prefix"
8139 acl_save_exec_prefix="$exec_prefix"
8140 exec_prefix="$acl_final_exec_prefix"
8141
8142 eval additional_includedir=\"$includedir\"
8143 eval additional_libdir=\"$libdir\"
8144
8145 exec_prefix="$acl_save_exec_prefix"
8146 prefix="$acl_save_prefix"
8147
8148
8149# Check whether --with-libpth-prefix was given.
8150if test "${with_libpth_prefix+set}" = set; then :
8151 withval=$with_libpth_prefix;
8152 if test "X$withval" = "Xno"; then
8153 use_additional=no
8154 else
8155 if test "X$withval" = "X"; then
8156
8157 acl_save_prefix="$prefix"
8158 prefix="$acl_final_prefix"
8159 acl_save_exec_prefix="$exec_prefix"
8160 exec_prefix="$acl_final_exec_prefix"
8161
8162 eval additional_includedir=\"$includedir\"
8163 eval additional_libdir=\"$libdir\"
8164
8165 exec_prefix="$acl_save_exec_prefix"
8166 prefix="$acl_save_prefix"
8167
8168 else
8169 additional_includedir="$withval/include"
8170 additional_libdir="$withval/$acl_libdirstem"
8171 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8172 && ! test -d "$withval/$acl_libdirstem"; then
8173 additional_libdir="$withval/$acl_libdirstem2"
8174 fi
8175 fi
8176 fi
8177
8178fi
8179
8180 LIBPTH=
8181 LTLIBPTH=
8182 INCPTH=
8183 LIBPTH_PREFIX=
8184 HAVE_LIBPTH=
8185 rpathdirs=
8186 ltrpathdirs=
8187 names_already_handled=
8188 names_next_round='pth '
8189 while test -n "$names_next_round"; do
8190 names_this_round="$names_next_round"
8191 names_next_round=
8192 for name in $names_this_round; do
8193 already_handled=
8194 for n in $names_already_handled; do
8195 if test "$n" = "$name"; then
8196 already_handled=yes
8197 break
8198 fi
8199 done
8200 if test -z "$already_handled"; then
8201 names_already_handled="$names_already_handled $name"
8202 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8203 eval value=\"\$HAVE_LIB$uppername\"
8204 if test -n "$value"; then
8205 if test "$value" = yes; then
8206 eval value=\"\$LIB$uppername\"
8207 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8208 eval value=\"\$LTLIB$uppername\"
8209 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8210 else
8211 :
8212 fi
8213 else
8214 found_dir=
8215 found_la=
8216 found_so=
8217 found_a=
8218 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8219 if test -n "$acl_shlibext"; then
8220 shrext=".$acl_shlibext" # typically: shrext=.so
8221 else
8222 shrext=
8223 fi
8224 if test $use_additional = yes; then
8225 dir="$additional_libdir"
8226 if test -n "$acl_shlibext"; then
8227 if test -f "$dir/$libname$shrext"; then
8228 found_dir="$dir"
8229 found_so="$dir/$libname$shrext"
8230 else
8231 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8232 ver=`(cd "$dir" && \
8233 for f in "$libname$shrext".*; do echo "$f"; done \
8234 | sed -e "s,^$libname$shrext\\\\.,," \
8235 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8236 | sed 1q ) 2>/dev/null`
8237 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8238 found_dir="$dir"
8239 found_so="$dir/$libname$shrext.$ver"
8240 fi
8241 else
8242 eval library_names=\"$acl_library_names_spec\"
8243 for f in $library_names; do
8244 if test -f "$dir/$f"; then
8245 found_dir="$dir"
8246 found_so="$dir/$f"
8247 break
8248 fi
8249 done
8250 fi
8251 fi
8252 fi
8253 if test "X$found_dir" = "X"; then
8254 if test -f "$dir/$libname.$acl_libext"; then
8255 found_dir="$dir"
8256 found_a="$dir/$libname.$acl_libext"
8257 fi
8258 fi
8259 if test "X$found_dir" != "X"; then
8260 if test -f "$dir/$libname.la"; then
8261 found_la="$dir/$libname.la"
8262 fi
8263 fi
8264 fi
8265 if test "X$found_dir" = "X"; then
8266 for x in $LDFLAGS $LTLIBPTH; do
8267
8268 acl_save_prefix="$prefix"
8269 prefix="$acl_final_prefix"
8270 acl_save_exec_prefix="$exec_prefix"
8271 exec_prefix="$acl_final_exec_prefix"
8272 eval x=\"$x\"
8273 exec_prefix="$acl_save_exec_prefix"
8274 prefix="$acl_save_prefix"
8275
8276 case "$x" in
8277 -L*)
8278 dir=`echo "X$x" | sed -e 's/^X-L//'`
8279 if test -n "$acl_shlibext"; then
8280 if test -f "$dir/$libname$shrext"; then
8281 found_dir="$dir"
8282 found_so="$dir/$libname$shrext"
8283 else
8284 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8285 ver=`(cd "$dir" && \
8286 for f in "$libname$shrext".*; do echo "$f"; done \
8287 | sed -e "s,^$libname$shrext\\\\.,," \
8288 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8289 | sed 1q ) 2>/dev/null`
8290 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8291 found_dir="$dir"
8292 found_so="$dir/$libname$shrext.$ver"
8293 fi
8294 else
8295 eval library_names=\"$acl_library_names_spec\"
8296 for f in $library_names; do
8297 if test -f "$dir/$f"; then
8298 found_dir="$dir"
8299 found_so="$dir/$f"
8300 break
8301 fi
8302 done
8303 fi
8304 fi
8305 fi
8306 if test "X$found_dir" = "X"; then
8307 if test -f "$dir/$libname.$acl_libext"; then
8308 found_dir="$dir"
8309 found_a="$dir/$libname.$acl_libext"
8310 fi
8311 fi
8312 if test "X$found_dir" != "X"; then
8313 if test -f "$dir/$libname.la"; then
8314 found_la="$dir/$libname.la"
8315 fi
8316 fi
8317 ;;
8318 esac
8319 if test "X$found_dir" != "X"; then
8320 break
8321 fi
8322 done
8323 fi
8324 if test "X$found_dir" != "X"; then
8325 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8326 if test "X$found_so" != "X"; then
8327 if test "$enable_rpath" = no \
8328 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8329 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8330 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8331 else
8332 haveit=
8333 for x in $ltrpathdirs; do
8334 if test "X$x" = "X$found_dir"; then
8335 haveit=yes
8336 break
8337 fi
8338 done
8339 if test -z "$haveit"; then
8340 ltrpathdirs="$ltrpathdirs $found_dir"
8341 fi
8342 if test "$acl_hardcode_direct" = yes; then
8343 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8344 else
8345 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8346 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8347 haveit=
8348 for x in $rpathdirs; do
8349 if test "X$x" = "X$found_dir"; then
8350 haveit=yes
8351 break
8352 fi
8353 done
8354 if test -z "$haveit"; then
8355 rpathdirs="$rpathdirs $found_dir"
8356 fi
8357 else
8358 haveit=
8359 for x in $LDFLAGS $LIBPTH; do
8360
8361 acl_save_prefix="$prefix"
8362 prefix="$acl_final_prefix"
8363 acl_save_exec_prefix="$exec_prefix"
8364 exec_prefix="$acl_final_exec_prefix"
8365 eval x=\"$x\"
8366 exec_prefix="$acl_save_exec_prefix"
8367 prefix="$acl_save_prefix"
8368
8369 if test "X$x" = "X-L$found_dir"; then
8370 haveit=yes
8371 break
8372 fi
8373 done
8374 if test -z "$haveit"; then
8375 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8376 fi
8377 if test "$acl_hardcode_minus_L" != no; then
8378 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8379 else
8380 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8381 fi
8382 fi
8383 fi
8384 fi
8385 else
8386 if test "X$found_a" != "X"; then
8387 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8388 else
8389 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8390 fi
8391 fi
8392 additional_includedir=
8393 case "$found_dir" in
8394 */$acl_libdirstem | */$acl_libdirstem/)
8395 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8396 if test "$name" = 'pth'; then
8397 LIBPTH_PREFIX="$basedir"
8398 fi
8399 additional_includedir="$basedir/include"
8400 ;;
8401 */$acl_libdirstem2 | */$acl_libdirstem2/)
8402 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8403 if test "$name" = 'pth'; then
8404 LIBPTH_PREFIX="$basedir"
8405 fi
8406 additional_includedir="$basedir/include"
8407 ;;
8408 esac
8409 if test "X$additional_includedir" != "X"; then
8410 if test "X$additional_includedir" != "X/usr/include"; then
8411 haveit=
8412 if test "X$additional_includedir" = "X/usr/local/include"; then
8413 if test -n "$GCC"; then
8414 case $host_os in
8415 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8416 esac
8417 fi
8418 fi
8419 if test -z "$haveit"; then
8420 for x in $CPPFLAGS $INCPTH; do
8421
8422 acl_save_prefix="$prefix"
8423 prefix="$acl_final_prefix"
8424 acl_save_exec_prefix="$exec_prefix"
8425 exec_prefix="$acl_final_exec_prefix"
8426 eval x=\"$x\"
8427 exec_prefix="$acl_save_exec_prefix"
8428 prefix="$acl_save_prefix"
8429
8430 if test "X$x" = "X-I$additional_includedir"; then
8431 haveit=yes
8432 break
8433 fi
8434 done
8435 if test -z "$haveit"; then
8436 if test -d "$additional_includedir"; then
8437 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8438 fi
8439 fi
8440 fi
8441 fi
8442 fi
8443 if test -n "$found_la"; then
8444 save_libdir="$libdir"
8445 case "$found_la" in
8446 */* | *\\*) . "$found_la" ;;
8447 *) . "./$found_la" ;;
8448 esac
8449 libdir="$save_libdir"
8450 for dep in $dependency_libs; do
8451 case "$dep" in
8452 -L*)
8453 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8454 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8455 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8456 haveit=
8457 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8458 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8459 if test -n "$GCC"; then
8460 case $host_os in
8461 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8462 esac
8463 fi
8464 fi
8465 if test -z "$haveit"; then
8466 haveit=
8467 for x in $LDFLAGS $LIBPTH; do
8468
8469 acl_save_prefix="$prefix"
8470 prefix="$acl_final_prefix"
8471 acl_save_exec_prefix="$exec_prefix"
8472 exec_prefix="$acl_final_exec_prefix"
8473 eval x=\"$x\"
8474 exec_prefix="$acl_save_exec_prefix"
8475 prefix="$acl_save_prefix"
8476
8477 if test "X$x" = "X-L$additional_libdir"; then
8478 haveit=yes
8479 break
8480 fi
8481 done
8482 if test -z "$haveit"; then
8483 if test -d "$additional_libdir"; then
8484 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8485 fi
8486 fi
8487 haveit=
8488 for x in $LDFLAGS $LTLIBPTH; do
8489
8490 acl_save_prefix="$prefix"
8491 prefix="$acl_final_prefix"
8492 acl_save_exec_prefix="$exec_prefix"
8493 exec_prefix="$acl_final_exec_prefix"
8494 eval x=\"$x\"
8495 exec_prefix="$acl_save_exec_prefix"
8496 prefix="$acl_save_prefix"
8497
8498 if test "X$x" = "X-L$additional_libdir"; then
8499 haveit=yes
8500 break
8501 fi
8502 done
8503 if test -z "$haveit"; then
8504 if test -d "$additional_libdir"; then
8505 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8506 fi
8507 fi
8508 fi
8509 fi
8510 ;;
8511 -R*)
8512 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8513 if test "$enable_rpath" != no; then
8514 haveit=
8515 for x in $rpathdirs; do
8516 if test "X$x" = "X$dir"; then
8517 haveit=yes
8518 break
8519 fi
8520 done
8521 if test -z "$haveit"; then
8522 rpathdirs="$rpathdirs $dir"
8523 fi
8524 haveit=
8525 for x in $ltrpathdirs; do
8526 if test "X$x" = "X$dir"; then
8527 haveit=yes
8528 break
8529 fi
8530 done
8531 if test -z "$haveit"; then
8532 ltrpathdirs="$ltrpathdirs $dir"
8533 fi
8534 fi
8535 ;;
8536 -l*)
8537 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8538 ;;
8539 *.la)
8540 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8541 ;;
8542 *)
8543 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8544 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8545 ;;
8546 esac
8547 done
8548 fi
8549 else
8550 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8551 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8552 fi
8553 fi
8554 fi
8555 done
8556 done
8557 if test "X$rpathdirs" != "X"; then
8558 if test -n "$acl_hardcode_libdir_separator"; then
8559 alldirs=
8560 for found_dir in $rpathdirs; do
8561 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8562 done
8563 acl_save_libdir="$libdir"
8564 libdir="$alldirs"
8565 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8566 libdir="$acl_save_libdir"
8567 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8568 else
8569 for found_dir in $rpathdirs; do
8570 acl_save_libdir="$libdir"
8571 libdir="$found_dir"
8572 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8573 libdir="$acl_save_libdir"
8574 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8575 done
8576 fi
8577 fi
8578 if test "X$ltrpathdirs" != "X"; then
8579 for found_dir in $ltrpathdirs; do
8580 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8581 done
8582 fi
8583
8584
8585
8586
8587
8588
8589 ac_cv_libpth_libs="$LIBPTH"
8590 ac_cv_libpth_ltlibs="$LTLIBPTH"
8591 ac_cv_libpth_cppflags="$INCPTH"
8592 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8593
8594fi
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8596$as_echo "$ac_cv_libpth_libs" >&6; }
8597 LIBPTH="$ac_cv_libpth_libs"
8598 LTLIBPTH="$ac_cv_libpth_ltlibs"
8599 INCPTH="$ac_cv_libpth_cppflags"
8600 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8601
8602 for element in $INCPTH; do
8603 haveit=
8604 for x in $CPPFLAGS; do
8605
8606 acl_save_prefix="$prefix"
8607 prefix="$acl_final_prefix"
8608 acl_save_exec_prefix="$exec_prefix"
8609 exec_prefix="$acl_final_exec_prefix"
8610 eval x=\"$x\"
8611 exec_prefix="$acl_save_exec_prefix"
8612 prefix="$acl_save_prefix"
8613
8614 if test "X$x" = "X$element"; then
8615 haveit=yes
8616 break
8617 fi
8618 done
8619 if test -z "$haveit"; then
8620 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8621 fi
8622 done
8623
8624
8625
8626
8627 HAVE_LIBPTH=yes
8628
8629
8630
8631 gl_have_pth=
8632 gl_save_LIBS="$LIBS"
8633 LIBS="$LIBS $LIBPTH"
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635/* end confdefs.h. */
8636#include <pth.h>
8637int
8638main ()
8639{
8640pth_self();
8641 ;
8642 return 0;
8643}
8644_ACEOF
8645if ac_fn_c_try_link "$LINENO"; then :
8646 gl_have_pth=yes
8647fi
8648rm -f core conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
8650 LIBS="$gl_save_LIBS"
8651 if test -n "$gl_have_pth"; then
8652 gl_threads_api=pth
8653 LIBTHREAD="$LIBPTH"
8654 LTLIBTHREAD="$LTLIBPTH"
8655 LIBMULTITHREAD="$LIBTHREAD"
8656 LTLIBMULTITHREAD="$LTLIBTHREAD"
8657
8658$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8659
8660 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8661 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8662
8663$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8664
8665 LIBTHREAD=
8666 LTLIBTHREAD=
8667 fi
8668 fi
8669 else
8670 CPPFLAGS="$gl_save_CPPFLAGS"
8671 fi
8672 fi
8673 if test -z "$gl_have_pthread"; then
8674 case "$gl_use_threads" in
8675 yes | windows | win32) # The 'win32' is for backward compatibility.
8676 if { case "$host_os" in
8677 mingw*) true;;
8678 *) false;;
8679 esac
8680 }; then
8681 gl_threads_api=windows
8682
8683$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8684
8685 fi
8686 ;;
8687 esac
8688 fi
8689 fi
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8691$as_echo_n "checking for multithread API to use... " >&6; }
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8693$as_echo "$gl_threads_api" >&6; }
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705 if test "$gl_threads_api" = posix; then
8706 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8707 # pthread_rwlock_* functions.
8708 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8709"
8710if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8711
8712$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8713
8714fi
8715
8716 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718/* end confdefs.h. */
8719
8720 #include <pthread.h>
8721int
8722main ()
8723{
8724
8725#if __FreeBSD__ == 4
8726error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8727#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8728 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8729error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8730#else
8731int x = (int)PTHREAD_MUTEX_RECURSIVE;
8732return !x;
8733#endif
8734
8735 ;
8736 return 0;
8737}
8738_ACEOF
8739if ac_fn_c_try_compile "$LINENO"; then :
8740
8741$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8742
8743fi
8744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8745 fi
8746 :
8747
8748
8749
8750
8751
8752
8753
8754
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008755
8756
8757
8758
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008759 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008760
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008761 acl_save_prefix="$prefix"
8762 prefix="$acl_final_prefix"
8763 acl_save_exec_prefix="$exec_prefix"
8764 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008765
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008766 eval additional_includedir=\"$includedir\"
8767 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008768
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008769 exec_prefix="$acl_save_exec_prefix"
8770 prefix="$acl_save_prefix"
8771
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008772
Theodore Ts'oe1052142006-10-21 21:46:47 -04008773# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008774if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008775 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008776 if test "X$withval" = "Xno"; then
8777 use_additional=no
8778 else
8779 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008780
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008781 acl_save_prefix="$prefix"
8782 prefix="$acl_final_prefix"
8783 acl_save_exec_prefix="$exec_prefix"
8784 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008785
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008786 eval additional_includedir=\"$includedir\"
8787 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008788
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008789 exec_prefix="$acl_save_exec_prefix"
8790 prefix="$acl_save_prefix"
8791
8792 else
8793 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -04008794 additional_libdir="$withval/$acl_libdirstem"
8795 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8796 && ! test -d "$withval/$acl_libdirstem"; then
8797 additional_libdir="$withval/$acl_libdirstem2"
8798 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008799 fi
8800 fi
8801
Theodore Ts'oe1052142006-10-21 21:46:47 -04008802fi
8803
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008804 LIBICONV=
8805 LTLIBICONV=
8806 INCICONV=
Theodore Ts'o93613952014-07-03 23:44:13 -04008807 LIBICONV_PREFIX=
8808 HAVE_LIBICONV=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008809 rpathdirs=
8810 ltrpathdirs=
8811 names_already_handled=
8812 names_next_round='iconv '
8813 while test -n "$names_next_round"; do
8814 names_this_round="$names_next_round"
8815 names_next_round=
8816 for name in $names_this_round; do
8817 already_handled=
8818 for n in $names_already_handled; do
8819 if test "$n" = "$name"; then
8820 already_handled=yes
8821 break
8822 fi
8823 done
8824 if test -z "$already_handled"; then
8825 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -04008826 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008827 eval value=\"\$HAVE_LIB$uppername\"
8828 if test -n "$value"; then
8829 if test "$value" = yes; then
8830 eval value=\"\$LIB$uppername\"
8831 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8832 eval value=\"\$LTLIB$uppername\"
8833 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8834 else
8835 :
8836 fi
8837 else
8838 found_dir=
8839 found_la=
8840 found_so=
8841 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -04008842 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8843 if test -n "$acl_shlibext"; then
8844 shrext=".$acl_shlibext" # typically: shrext=.so
8845 else
8846 shrext=
8847 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008848 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008849 dir="$additional_libdir"
8850 if test -n "$acl_shlibext"; then
8851 if test -f "$dir/$libname$shrext"; then
8852 found_dir="$dir"
8853 found_so="$dir/$libname$shrext"
8854 else
8855 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8856 ver=`(cd "$dir" && \
8857 for f in "$libname$shrext".*; do echo "$f"; done \
8858 | sed -e "s,^$libname$shrext\\\\.,," \
8859 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8860 | sed 1q ) 2>/dev/null`
8861 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8862 found_dir="$dir"
8863 found_so="$dir/$libname$shrext.$ver"
8864 fi
8865 else
8866 eval library_names=\"$acl_library_names_spec\"
8867 for f in $library_names; do
8868 if test -f "$dir/$f"; then
8869 found_dir="$dir"
8870 found_so="$dir/$f"
8871 break
8872 fi
8873 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008874 fi
8875 fi
8876 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008877 if test "X$found_dir" = "X"; then
8878 if test -f "$dir/$libname.$acl_libext"; then
8879 found_dir="$dir"
8880 found_a="$dir/$libname.$acl_libext"
8881 fi
8882 fi
8883 if test "X$found_dir" != "X"; then
8884 if test -f "$dir/$libname.la"; then
8885 found_la="$dir/$libname.la"
8886 fi
8887 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008888 fi
8889 if test "X$found_dir" = "X"; then
8890 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008891
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008892 acl_save_prefix="$prefix"
8893 prefix="$acl_final_prefix"
8894 acl_save_exec_prefix="$exec_prefix"
8895 exec_prefix="$acl_final_exec_prefix"
8896 eval x=\"$x\"
8897 exec_prefix="$acl_save_exec_prefix"
8898 prefix="$acl_save_prefix"
8899
8900 case "$x" in
8901 -L*)
8902 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04008903 if test -n "$acl_shlibext"; then
8904 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008905 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04008906 found_so="$dir/$libname$shrext"
8907 else
8908 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8909 ver=`(cd "$dir" && \
8910 for f in "$libname$shrext".*; do echo "$f"; done \
8911 | sed -e "s,^$libname$shrext\\\\.,," \
8912 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8913 | sed 1q ) 2>/dev/null`
8914 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8915 found_dir="$dir"
8916 found_so="$dir/$libname$shrext.$ver"
8917 fi
8918 else
8919 eval library_names=\"$acl_library_names_spec\"
8920 for f in $library_names; do
8921 if test -f "$dir/$f"; then
8922 found_dir="$dir"
8923 found_so="$dir/$f"
8924 break
8925 fi
8926 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008927 fi
8928 fi
8929 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008930 if test "X$found_dir" = "X"; then
8931 if test -f "$dir/$libname.$acl_libext"; then
8932 found_dir="$dir"
8933 found_a="$dir/$libname.$acl_libext"
8934 fi
8935 fi
8936 if test "X$found_dir" != "X"; then
8937 if test -f "$dir/$libname.la"; then
8938 found_la="$dir/$libname.la"
8939 fi
8940 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008941 ;;
8942 esac
8943 if test "X$found_dir" != "X"; then
8944 break
8945 fi
8946 done
8947 fi
8948 if test "X$found_dir" != "X"; then
8949 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8950 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008951 if test "$enable_rpath" = no \
8952 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8953 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008954 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8955 else
8956 haveit=
8957 for x in $ltrpathdirs; do
8958 if test "X$x" = "X$found_dir"; then
8959 haveit=yes
8960 break
8961 fi
8962 done
8963 if test -z "$haveit"; then
8964 ltrpathdirs="$ltrpathdirs $found_dir"
8965 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008966 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008967 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8968 else
Theodore Ts'o93613952014-07-03 23:44:13 -04008969 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008970 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8971 haveit=
8972 for x in $rpathdirs; do
8973 if test "X$x" = "X$found_dir"; then
8974 haveit=yes
8975 break
8976 fi
8977 done
8978 if test -z "$haveit"; then
8979 rpathdirs="$rpathdirs $found_dir"
8980 fi
8981 else
8982 haveit=
8983 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008984
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008985 acl_save_prefix="$prefix"
8986 prefix="$acl_final_prefix"
8987 acl_save_exec_prefix="$exec_prefix"
8988 exec_prefix="$acl_final_exec_prefix"
8989 eval x=\"$x\"
8990 exec_prefix="$acl_save_exec_prefix"
8991 prefix="$acl_save_prefix"
8992
8993 if test "X$x" = "X-L$found_dir"; then
8994 haveit=yes
8995 break
8996 fi
8997 done
8998 if test -z "$haveit"; then
8999 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9000 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009001 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009002 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9003 else
9004 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9005 fi
9006 fi
9007 fi
9008 fi
9009 else
9010 if test "X$found_a" != "X"; then
9011 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9012 else
9013 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9014 fi
9015 fi
9016 additional_includedir=
9017 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -04009018 */$acl_libdirstem | */$acl_libdirstem/)
9019 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9020 if test "$name" = 'iconv'; then
9021 LIBICONV_PREFIX="$basedir"
9022 fi
9023 additional_includedir="$basedir/include"
9024 ;;
9025 */$acl_libdirstem2 | */$acl_libdirstem2/)
9026 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9027 if test "$name" = 'iconv'; then
9028 LIBICONV_PREFIX="$basedir"
9029 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009030 additional_includedir="$basedir/include"
9031 ;;
9032 esac
9033 if test "X$additional_includedir" != "X"; then
9034 if test "X$additional_includedir" != "X/usr/include"; then
9035 haveit=
9036 if test "X$additional_includedir" = "X/usr/local/include"; then
9037 if test -n "$GCC"; then
9038 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009039 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009040 esac
9041 fi
9042 fi
9043 if test -z "$haveit"; then
9044 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009045
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009046 acl_save_prefix="$prefix"
9047 prefix="$acl_final_prefix"
9048 acl_save_exec_prefix="$exec_prefix"
9049 exec_prefix="$acl_final_exec_prefix"
9050 eval x=\"$x\"
9051 exec_prefix="$acl_save_exec_prefix"
9052 prefix="$acl_save_prefix"
9053
9054 if test "X$x" = "X-I$additional_includedir"; then
9055 haveit=yes
9056 break
9057 fi
9058 done
9059 if test -z "$haveit"; then
9060 if test -d "$additional_includedir"; then
9061 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9062 fi
9063 fi
9064 fi
9065 fi
9066 fi
9067 if test -n "$found_la"; then
9068 save_libdir="$libdir"
9069 case "$found_la" in
9070 */* | *\\*) . "$found_la" ;;
9071 *) . "./$found_la" ;;
9072 esac
9073 libdir="$save_libdir"
9074 for dep in $dependency_libs; do
9075 case "$dep" in
9076 -L*)
9077 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009078 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9079 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009080 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -04009081 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9082 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009083 if test -n "$GCC"; then
9084 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009085 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009086 esac
9087 fi
9088 fi
9089 if test -z "$haveit"; then
9090 haveit=
9091 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009092
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009093 acl_save_prefix="$prefix"
9094 prefix="$acl_final_prefix"
9095 acl_save_exec_prefix="$exec_prefix"
9096 exec_prefix="$acl_final_exec_prefix"
9097 eval x=\"$x\"
9098 exec_prefix="$acl_save_exec_prefix"
9099 prefix="$acl_save_prefix"
9100
9101 if test "X$x" = "X-L$additional_libdir"; then
9102 haveit=yes
9103 break
9104 fi
9105 done
9106 if test -z "$haveit"; then
9107 if test -d "$additional_libdir"; then
9108 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9109 fi
9110 fi
9111 haveit=
9112 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009113
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009114 acl_save_prefix="$prefix"
9115 prefix="$acl_final_prefix"
9116 acl_save_exec_prefix="$exec_prefix"
9117 exec_prefix="$acl_final_exec_prefix"
9118 eval x=\"$x\"
9119 exec_prefix="$acl_save_exec_prefix"
9120 prefix="$acl_save_prefix"
9121
9122 if test "X$x" = "X-L$additional_libdir"; then
9123 haveit=yes
9124 break
9125 fi
9126 done
9127 if test -z "$haveit"; then
9128 if test -d "$additional_libdir"; then
9129 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9130 fi
9131 fi
9132 fi
9133 fi
9134 ;;
9135 -R*)
9136 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9137 if test "$enable_rpath" != no; then
9138 haveit=
9139 for x in $rpathdirs; do
9140 if test "X$x" = "X$dir"; then
9141 haveit=yes
9142 break
9143 fi
9144 done
9145 if test -z "$haveit"; then
9146 rpathdirs="$rpathdirs $dir"
9147 fi
9148 haveit=
9149 for x in $ltrpathdirs; do
9150 if test "X$x" = "X$dir"; then
9151 haveit=yes
9152 break
9153 fi
9154 done
9155 if test -z "$haveit"; then
9156 ltrpathdirs="$ltrpathdirs $dir"
9157 fi
9158 fi
9159 ;;
9160 -l*)
9161 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9162 ;;
9163 *.la)
9164 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9165 ;;
9166 *)
9167 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9168 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9169 ;;
9170 esac
9171 done
9172 fi
9173 else
9174 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9175 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9176 fi
9177 fi
9178 fi
9179 done
9180 done
9181 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009182 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009183 alldirs=
9184 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -04009185 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009186 done
9187 acl_save_libdir="$libdir"
9188 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -04009189 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009190 libdir="$acl_save_libdir"
9191 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9192 else
9193 for found_dir in $rpathdirs; do
9194 acl_save_libdir="$libdir"
9195 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04009196 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009197 libdir="$acl_save_libdir"
9198 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9199 done
9200 fi
9201 fi
9202 if test "X$ltrpathdirs" != "X"; then
9203 for found_dir in $ltrpathdirs; do
9204 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9205 done
9206 fi
9207
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009208
9209
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009210
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009211
9212
9213
9214
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009215
9216
9217
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009218
9219 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009220
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009221 for element in $INCICONV; do
9222 haveit=
9223 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009224
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009225 acl_save_prefix="$prefix"
9226 prefix="$acl_final_prefix"
9227 acl_save_exec_prefix="$exec_prefix"
9228 exec_prefix="$acl_final_exec_prefix"
9229 eval x=\"$x\"
9230 exec_prefix="$acl_save_exec_prefix"
9231 prefix="$acl_save_prefix"
9232
9233 if test "X$x" = "X$element"; then
9234 haveit=yes
9235 break
9236 fi
9237 done
9238 if test -z "$haveit"; then
9239 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9240 fi
9241 done
9242
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009243
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009245$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009246if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009247 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009248else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009249
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009250 am_cv_func_iconv="no, consider installing GNU libiconv"
9251 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009253/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009254
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009255#include <stdlib.h>
9256#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009257
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009258int
9259main ()
9260{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009261iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009262 iconv(cd,NULL,NULL,NULL,NULL);
9263 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009264 ;
9265 return 0;
9266}
9267_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009268if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009269 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009270fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009271rm -f core conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009273 if test "$am_cv_func_iconv" != yes; then
9274 am_save_LIBS="$LIBS"
9275 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009277/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009278
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009279#include <stdlib.h>
9280#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009281
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009282int
9283main ()
9284{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009285iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009286 iconv(cd,NULL,NULL,NULL,NULL);
9287 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009288 ;
9289 return 0;
9290}
9291_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009292if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009293 am_cv_lib_iconv=yes
9294 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009295fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009296rm -f core conftest.err conftest.$ac_objext \
9297 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009298 LIBS="$am_save_LIBS"
9299 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009300
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009301fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009303$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009304 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9306$as_echo_n "checking for working iconv... " >&6; }
9307if ${am_cv_func_iconv_works+:} false; then :
9308 $as_echo_n "(cached) " >&6
9309else
9310
9311 am_save_LIBS="$LIBS"
9312 if test $am_cv_lib_iconv = yes; then
9313 LIBS="$LIBS $LIBICONV"
9314 fi
9315 if test "$cross_compiling" = yes; then :
9316
9317 case "$host_os" in
9318 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9319 *) am_cv_func_iconv_works="guessing yes" ;;
9320 esac
9321
9322else
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324/* end confdefs.h. */
9325
9326#include <iconv.h>
9327#include <string.h>
9328int main ()
9329{
9330 int result = 0;
9331 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9332 returns. */
9333 {
9334 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9335 if (cd_utf8_to_88591 != (iconv_t)(-1))
9336 {
9337 static const char input[] = "\342\202\254"; /* EURO SIGN */
9338 char buf[10];
9339 const char *inptr = input;
9340 size_t inbytesleft = strlen (input);
9341 char *outptr = buf;
9342 size_t outbytesleft = sizeof (buf);
9343 size_t res = iconv (cd_utf8_to_88591,
9344 (char **) &inptr, &inbytesleft,
9345 &outptr, &outbytesleft);
9346 if (res == 0)
9347 result |= 1;
9348 iconv_close (cd_utf8_to_88591);
9349 }
9350 }
9351 /* Test against Solaris 10 bug: Failures are not distinguishable from
9352 successful returns. */
9353 {
9354 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9355 if (cd_ascii_to_88591 != (iconv_t)(-1))
9356 {
9357 static const char input[] = "\263";
9358 char buf[10];
9359 const char *inptr = input;
9360 size_t inbytesleft = strlen (input);
9361 char *outptr = buf;
9362 size_t outbytesleft = sizeof (buf);
9363 size_t res = iconv (cd_ascii_to_88591,
9364 (char **) &inptr, &inbytesleft,
9365 &outptr, &outbytesleft);
9366 if (res == 0)
9367 result |= 2;
9368 iconv_close (cd_ascii_to_88591);
9369 }
9370 }
9371 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9372 {
9373 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9374 if (cd_88591_to_utf8 != (iconv_t)(-1))
9375 {
9376 static const char input[] = "\304";
9377 static char buf[2] = { (char)0xDE, (char)0xAD };
9378 const char *inptr = input;
9379 size_t inbytesleft = 1;
9380 char *outptr = buf;
9381 size_t outbytesleft = 1;
9382 size_t res = iconv (cd_88591_to_utf8,
9383 (char **) &inptr, &inbytesleft,
9384 &outptr, &outbytesleft);
9385 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9386 result |= 4;
9387 iconv_close (cd_88591_to_utf8);
9388 }
9389 }
9390#if 0 /* This bug could be worked around by the caller. */
9391 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9392 {
9393 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9394 if (cd_88591_to_utf8 != (iconv_t)(-1))
9395 {
9396 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9397 char buf[50];
9398 const char *inptr = input;
9399 size_t inbytesleft = strlen (input);
9400 char *outptr = buf;
9401 size_t outbytesleft = sizeof (buf);
9402 size_t res = iconv (cd_88591_to_utf8,
9403 (char **) &inptr, &inbytesleft,
9404 &outptr, &outbytesleft);
9405 if ((int)res > 0)
9406 result |= 8;
9407 iconv_close (cd_88591_to_utf8);
9408 }
9409 }
9410#endif
9411 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9412 provided. */
9413 if (/* Try standardized names. */
9414 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9415 /* Try IRIX, OSF/1 names. */
9416 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9417 /* Try AIX names. */
9418 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9419 /* Try HP-UX names. */
9420 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9421 result |= 16;
9422 return result;
9423}
9424_ACEOF
9425if ac_fn_c_try_run "$LINENO"; then :
9426 am_cv_func_iconv_works=yes
9427else
9428 am_cv_func_iconv_works=no
9429fi
9430rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9431 conftest.$ac_objext conftest.beam conftest.$ac_ext
9432fi
9433
9434 LIBS="$am_save_LIBS"
9435
9436fi
9437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9438$as_echo "$am_cv_func_iconv_works" >&6; }
9439 case "$am_cv_func_iconv_works" in
9440 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9441 *) am_func_iconv=yes ;;
9442 esac
9443 else
9444 am_func_iconv=no am_cv_lib_iconv=no
9445 fi
9446 if test "$am_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009447
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009448$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009449
9450 fi
9451 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009453$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009455$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009456 else
9457 CPPFLAGS="$am_save_CPPFLAGS"
9458 LIBICONV=
9459 LTLIBICONV=
9460 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009461
9462
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009463
9464 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009466$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009467 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009468 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009469else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009470
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009472/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009473
9474#include <stdlib.h>
9475#include <iconv.h>
9476extern
9477#ifdef __cplusplus
9478"C"
9479#endif
Theodore Ts'o93613952014-07-03 23:44:13 -04009480#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009481size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9482#else
9483size_t iconv();
9484#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009486int
9487main ()
9488{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009489
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009490 ;
9491 return 0;
9492}
9493_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009494if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009495 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009496else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009497 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009498fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009500 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 +00009501fi
9502
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009503 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009504 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9505 $am_cv_proto_iconv" >&5
9506$as_echo "
9507 $am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009508
9509cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009510#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009511_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009512
Theodore Ts'o93613952014-07-03 23:44:13 -04009513
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009514 fi
9515
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009516
Theodore Ts'o93613952014-07-03 23:44:13 -04009517
9518
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009520/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009521int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009522int
9523main ()
9524{
Theodore Ts'o93613952014-07-03 23:44:13 -04009525
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009526 ;
9527 return 0;
9528}
9529_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009530if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04009531
9532$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9533
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009534fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009535rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009537
Theodore Ts'o93613952014-07-03 23:44:13 -04009538 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9539do :
9540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9541ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9542if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9543 cat >>confdefs.h <<_ACEOF
9544#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009545_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04009546
9547fi
9548
9549done
9550
9551 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9552 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9553 argz_stringify argz_next __fsetlocking
9554do :
9555 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9556ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9557if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9558 cat >>confdefs.h <<_ACEOF
9559#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9560_ACEOF
9561
9562fi
9563done
9564
9565
9566 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9567"
9568if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9569 ac_have_decl=1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009570else
Theodore Ts'o93613952014-07-03 23:44:13 -04009571 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009572fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009573
9574cat >>confdefs.h <<_ACEOF
9575#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9576_ACEOF
9577ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9578"
9579if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9580 ac_have_decl=1
9581else
9582 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009583fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009584
Theodore Ts'o93613952014-07-03 23:44:13 -04009585cat >>confdefs.h <<_ACEOF
9586#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9587_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009588
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009589
Theodore Ts'o93613952014-07-03 23:44:13 -04009590
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009591
9592 for ac_prog in bison
9593do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009594 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009595set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009597$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009598if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009599 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009600else
9601 if test -n "$INTLBISON"; then
9602 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9603else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605for as_dir in $PATH
9606do
9607 IFS=$as_save_IFS
9608 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009609 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009611 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009613 break 2
9614 fi
9615done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009616 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009617IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009618
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009619fi
9620fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009621INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009622if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009624$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009625else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009627$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009628fi
9629
Theodore Ts'oe1052142006-10-21 21:46:47 -04009630
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009631 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009632done
9633
9634 if test -z "$INTLBISON"; then
9635 ac_verc_fail=yes
9636 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009638$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009639 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9640 case $ac_prog_version in
9641 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9642 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9643 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9644 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9645 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009647$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009648 fi
9649 if test $ac_verc_fail = yes; then
9650 INTLBISON=:
9651 fi
9652
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009653
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009654
Theodore Ts'o93613952014-07-03 23:44:13 -04009655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9656$as_echo_n "checking for long long int... " >&6; }
9657if ${ac_cv_type_long_long_int+:} false; then :
9658 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009659else
Theodore Ts'o93613952014-07-03 23:44:13 -04009660 ac_cv_type_long_long_int=yes
9661 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9662 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9663 if test $ac_cv_type_long_long_int = yes; then
9664 if test "$cross_compiling" = yes; then :
9665 :
9666else
9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668/* end confdefs.h. */
9669#include <limits.h>
9670 #ifndef LLONG_MAX
9671 # define HALF \
9672 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9673 # define LLONG_MAX (HALF - 1 + HALF)
9674 #endif
9675int
9676main ()
9677{
9678long long int n = 1;
9679 int i;
9680 for (i = 0; ; i++)
9681 {
9682 long long int m = n << i;
9683 if (m >> i != n)
9684 return 1;
9685 if (LLONG_MAX / 2 < m)
9686 break;
9687 }
9688 return 0;
9689 ;
9690 return 0;
9691}
9692_ACEOF
9693if ac_fn_c_try_run "$LINENO"; then :
9694
9695else
9696 ac_cv_type_long_long_int=no
9697fi
9698rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9699 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009700fi
9701
Theodore Ts'o93613952014-07-03 23:44:13 -04009702 fi
9703 fi
9704fi
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9706$as_echo "$ac_cv_type_long_long_int" >&6; }
9707 if test $ac_cv_type_long_long_int = yes; then
9708
9709$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9710
9711 fi
9712
9713
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9715$as_echo_n "checking for wchar_t... " >&6; }
9716if ${gt_cv_c_wchar_t+:} false; then :
9717 $as_echo_n "(cached) " >&6
9718else
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720/* end confdefs.h. */
9721#include <stddef.h>
9722 wchar_t foo = (wchar_t)'\0';
9723int
9724main ()
9725{
9726
9727 ;
9728 return 0;
9729}
9730_ACEOF
9731if ac_fn_c_try_compile "$LINENO"; then :
9732 gt_cv_c_wchar_t=yes
9733else
9734 gt_cv_c_wchar_t=no
9735fi
9736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9737fi
9738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9739$as_echo "$gt_cv_c_wchar_t" >&6; }
9740 if test $gt_cv_c_wchar_t = yes; then
9741
9742$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9743
9744 fi
9745
9746
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9748$as_echo_n "checking for wint_t... " >&6; }
9749if ${gt_cv_c_wint_t+:} false; then :
9750 $as_echo_n "(cached) " >&6
9751else
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753/* end confdefs.h. */
9754
9755/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9756 <wchar.h>.
9757 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9758 before <wchar.h>. */
9759#include <stddef.h>
9760#include <stdio.h>
9761#include <time.h>
9762#include <wchar.h>
9763 wint_t foo = (wchar_t)'\0';
9764int
9765main ()
9766{
9767
9768 ;
9769 return 0;
9770}
9771_ACEOF
9772if ac_fn_c_try_compile "$LINENO"; then :
9773 gt_cv_c_wint_t=yes
9774else
9775 gt_cv_c_wint_t=no
9776fi
9777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9778fi
9779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9780$as_echo "$gt_cv_c_wint_t" >&6; }
9781 if test $gt_cv_c_wint_t = yes; then
9782
9783$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9784
9785 fi
9786
9787
9788
9789
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9791$as_echo_n "checking for intmax_t... " >&6; }
9792if ${gt_cv_c_intmax_t+:} false; then :
9793 $as_echo_n "(cached) " >&6
9794else
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796/* end confdefs.h. */
9797
9798#include <stddef.h>
9799#include <stdlib.h>
9800#if HAVE_STDINT_H_WITH_UINTMAX
9801#include <stdint.h>
9802#endif
9803#if HAVE_INTTYPES_H_WITH_UINTMAX
9804#include <inttypes.h>
9805#endif
9806
9807int
9808main ()
9809{
9810intmax_t x = -1;
9811 return !x;
9812 ;
9813 return 0;
9814}
9815_ACEOF
9816if ac_fn_c_try_compile "$LINENO"; then :
9817 gt_cv_c_intmax_t=yes
9818else
9819 gt_cv_c_intmax_t=no
9820fi
9821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822fi
9823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9824$as_echo "$gt_cv_c_intmax_t" >&6; }
9825 if test $gt_cv_c_intmax_t = yes; then
9826
9827$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9828
9829 fi
9830
9831
9832
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9834$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9835if ${gt_cv_func_printf_posix+:} false; then :
9836 $as_echo_n "(cached) " >&6
9837else
9838
9839 if test "$cross_compiling" = yes; then :
9840
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842/* end confdefs.h. */
9843
9844#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9845 notposix
9846#endif
9847
9848_ACEOF
9849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9850 $EGREP "notposix" >/dev/null 2>&1; then :
9851 gt_cv_func_printf_posix="guessing no"
9852else
9853 gt_cv_func_printf_posix="guessing yes"
9854fi
9855rm -f conftest*
9856
9857
9858else
9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860/* end confdefs.h. */
9861
9862#include <stdio.h>
9863#include <string.h>
9864/* The string "%2$d %1$d", with dollar characters protected from the shell's
9865 dollar expansion (possibly an autoconf bug). */
9866static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9867static char buf[100];
9868int main ()
9869{
9870 sprintf (buf, format, 33, 55);
9871 return (strcmp (buf, "55 33") != 0);
9872}
9873_ACEOF
9874if ac_fn_c_try_run "$LINENO"; then :
9875 gt_cv_func_printf_posix=yes
9876else
9877 gt_cv_func_printf_posix=no
9878fi
9879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9880 conftest.$ac_objext conftest.beam conftest.$ac_ext
9881fi
9882
9883
9884fi
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9886$as_echo "$gt_cv_func_printf_posix" >&6; }
9887 case $gt_cv_func_printf_posix in
9888 *yes)
9889
9890$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9891
9892 ;;
9893 esac
9894
9895
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9897$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9898if ${ac_cv_gnu_library_2_1+:} false; then :
9899 $as_echo_n "(cached) " >&6
9900else
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902/* end confdefs.h. */
9903
9904#include <features.h>
9905#ifdef __GNU_LIBRARY__
9906 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9907 Lucky GNU user
9908 #endif
9909#endif
9910#ifdef __UCLIBC__
9911 Lucky user
9912#endif
9913
9914_ACEOF
9915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9916 $EGREP "Lucky" >/dev/null 2>&1; then :
9917 ac_cv_gnu_library_2_1=yes
9918else
9919 ac_cv_gnu_library_2_1=no
9920fi
9921rm -f conftest*
9922
9923
9924
9925fi
9926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9927$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9928
9929 GLIBC21="$ac_cv_gnu_library_2_1"
9930
9931
9932
9933 for ac_header in stdint.h
9934do :
9935 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9936if test "x$ac_cv_header_stdint_h" = xyes; then :
9937 cat >>confdefs.h <<_ACEOF
9938#define HAVE_STDINT_H 1
9939_ACEOF
9940
9941fi
9942
9943done
9944
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9946$as_echo_n "checking for SIZE_MAX... " >&6; }
9947if ${gl_cv_size_max+:} false; then :
9948 $as_echo_n "(cached) " >&6
9949else
9950
9951 gl_cv_size_max=
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953/* end confdefs.h. */
9954
9955#include <limits.h>
9956#if HAVE_STDINT_H
9957#include <stdint.h>
9958#endif
9959#ifdef SIZE_MAX
9960Found it
9961#endif
9962
9963_ACEOF
9964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9965 $EGREP "Found it" >/dev/null 2>&1; then :
9966 gl_cv_size_max=yes
9967fi
9968rm -f conftest*
9969
9970 if test -z "$gl_cv_size_max"; then
9971 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9972#include <limits.h>"; then :
9973
9974else
9975 size_t_bits_minus_1=
9976fi
9977
9978 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9979
9980else
9981 fits_in_uint=
9982fi
9983
9984 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9985 if test $fits_in_uint = 1; then
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987/* end confdefs.h. */
9988#include <stddef.h>
9989 extern size_t foo;
9990 extern unsigned long foo;
9991
9992int
9993main ()
9994{
9995
9996 ;
9997 return 0;
9998}
9999_ACEOF
10000if ac_fn_c_try_compile "$LINENO"; then :
10001 fits_in_uint=0
10002fi
10003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10004 fi
10005 if test $fits_in_uint = 1; then
10006 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10007 else
10008 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10009 fi
10010 else
10011 gl_cv_size_max='((size_t)~(size_t)0)'
10012 fi
10013 fi
10014
10015fi
10016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10017$as_echo "$gl_cv_size_max" >&6; }
10018 if test "$gl_cv_size_max" != yes; then
10019
10020cat >>confdefs.h <<_ACEOF
10021#define SIZE_MAX $gl_cv_size_max
10022_ACEOF
10023
10024 fi
10025
10026
10027
10028
10029 for ac_header in stdint.h
10030do :
10031 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10032if test "x$ac_cv_header_stdint_h" = xyes; then :
10033 cat >>confdefs.h <<_ACEOF
10034#define HAVE_STDINT_H 1
10035_ACEOF
10036
10037fi
10038
10039done
10040
10041
10042
10043
10044
10045 for ac_func in $ac_func_list
10046do :
10047 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10048ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10049if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10050 cat >>confdefs.h <<_ACEOF
10051#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10052_ACEOF
10053
10054fi
10055done
10056
10057
10058
10059
10060
10061
10062
10063
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10065$as_echo_n "checking for working fcntl.h... " >&6; }
10066if ${gl_cv_header_working_fcntl_h+:} false; then :
10067 $as_echo_n "(cached) " >&6
10068else
10069 if test "$cross_compiling" = yes; then :
10070 gl_cv_header_working_fcntl_h=cross-compiling
10071else
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073/* end confdefs.h. */
10074#include <sys/types.h>
10075 #include <sys/stat.h>
10076 #if HAVE_UNISTD_H
10077 # include <unistd.h>
10078 #else /* on Windows with MSVC */
10079 # include <io.h>
10080 # include <stdlib.h>
10081 # defined sleep(n) _sleep ((n) * 1000)
10082 #endif
10083 #include <fcntl.h>
10084 #ifndef O_NOATIME
10085 #define O_NOATIME 0
10086 #endif
10087 #ifndef O_NOFOLLOW
10088 #define O_NOFOLLOW 0
10089 #endif
10090 static int const constants[] =
10091 {
10092 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10093 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10094 };
10095
10096int
10097main ()
10098{
10099
10100 int result = !constants;
10101 #if HAVE_SYMLINK
10102 {
10103 static char const sym[] = "conftest.sym";
10104 if (symlink ("/dev/null", sym) != 0)
10105 result |= 2;
10106 else
10107 {
10108 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10109 if (fd >= 0)
10110 {
10111 close (fd);
10112 result |= 4;
10113 }
10114 }
10115 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10116 result |= 2;
10117 else
10118 {
10119 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10120 if (fd >= 0)
10121 {
10122 close (fd);
10123 result |= 4;
10124 }
10125 }
10126 unlink (sym);
10127 }
10128 #endif
10129 {
10130 static char const file[] = "confdefs.h";
10131 int fd = open (file, O_RDONLY | O_NOATIME);
10132 if (fd < 0)
10133 result |= 8;
10134 else
10135 {
10136 struct stat st0;
10137 if (fstat (fd, &st0) != 0)
10138 result |= 16;
10139 else
10140 {
10141 char c;
10142 sleep (1);
10143 if (read (fd, &c, 1) != 1)
10144 result |= 24;
10145 else
10146 {
10147 if (close (fd) != 0)
10148 result |= 32;
10149 else
10150 {
10151 struct stat st1;
10152 if (stat (file, &st1) != 0)
10153 result |= 40;
10154 else
10155 if (st0.st_atime != st1.st_atime)
10156 result |= 64;
10157 }
10158 }
10159 }
10160 }
10161 }
10162 return result;
10163 ;
10164 return 0;
10165}
10166_ACEOF
10167if ac_fn_c_try_run "$LINENO"; then :
10168 gl_cv_header_working_fcntl_h=yes
10169else
10170 case $? in #(
10171 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10172 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10173 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10174 *) gl_cv_header_working_fcntl_h='no';;
10175 esac
10176fi
10177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10178 conftest.$ac_objext conftest.beam conftest.$ac_ext
10179fi
10180
10181fi
10182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10183$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10184
10185 case $gl_cv_header_working_fcntl_h in #(
10186 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10187 *) ac_val=1;;
10188 esac
10189
10190cat >>confdefs.h <<_ACEOF
10191#define HAVE_WORKING_O_NOATIME $ac_val
10192_ACEOF
10193
10194
10195 case $gl_cv_header_working_fcntl_h in #(
10196 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10197 *) ac_val=1;;
10198 esac
10199
10200cat >>confdefs.h <<_ACEOF
10201#define HAVE_WORKING_O_NOFOLLOW $ac_val
10202_ACEOF
10203
10204
10205
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10207$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10208if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10209 $as_echo_n "(cached) " >&6
10210else
10211 gt_save_LIBS="$LIBS"
10212 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214/* end confdefs.h. */
10215#include <CoreFoundation/CFPreferences.h>
10216int
10217main ()
10218{
10219CFPreferencesCopyAppValue(NULL, NULL)
10220 ;
10221 return 0;
10222}
10223_ACEOF
10224if ac_fn_c_try_link "$LINENO"; then :
10225 gt_cv_func_CFPreferencesCopyAppValue=yes
10226else
10227 gt_cv_func_CFPreferencesCopyAppValue=no
10228fi
10229rm -f core conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231 LIBS="$gt_save_LIBS"
10232fi
10233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10234$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10235 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10236
10237$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10238
10239 fi
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10241$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10242if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10243 $as_echo_n "(cached) " >&6
10244else
10245 gt_save_LIBS="$LIBS"
10246 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248/* end confdefs.h. */
10249#include <CoreFoundation/CFLocale.h>
10250int
10251main ()
10252{
10253CFLocaleCopyCurrent();
10254 ;
10255 return 0;
10256}
10257_ACEOF
10258if ac_fn_c_try_link "$LINENO"; then :
10259 gt_cv_func_CFLocaleCopyCurrent=yes
10260else
10261 gt_cv_func_CFLocaleCopyCurrent=no
10262fi
10263rm -f core conftest.err conftest.$ac_objext \
10264 conftest$ac_exeext conftest.$ac_ext
10265 LIBS="$gt_save_LIBS"
10266fi
10267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10268$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10269 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10270
10271$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10272
10273 fi
10274 INTL_MACOSX_LIBS=
10275 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10276 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10277 fi
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288 case "$enable_silent_rules" in
10289 yes) INTL_DEFAULT_VERBOSITY=0;;
10290 no) INTL_DEFAULT_VERBOSITY=1;;
10291 *) INTL_DEFAULT_VERBOSITY=1;;
10292 esac
10293
10294
10295 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10296if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10297
10298else
10299
10300$as_echo "#define ptrdiff_t long" >>confdefs.h
10301
10302
10303fi
10304
10305 for ac_header in features.h stddef.h stdlib.h string.h
10306do :
10307 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10308ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10309if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10310 cat >>confdefs.h <<_ACEOF
10311#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10312_ACEOF
10313
10314fi
10315
10316done
10317
10318 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10319 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10320do :
10321 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10322ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10323if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10324 cat >>confdefs.h <<_ACEOF
10325#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10326_ACEOF
10327
10328fi
10329done
10330
10331
10332 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10333"
10334if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10335 ac_have_decl=1
10336else
10337 ac_have_decl=0
10338fi
10339
10340cat >>confdefs.h <<_ACEOF
10341#define HAVE_DECL__SNPRINTF $ac_have_decl
10342_ACEOF
10343ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10344"
10345if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10346 ac_have_decl=1
10347else
10348 ac_have_decl=0
10349fi
10350
10351cat >>confdefs.h <<_ACEOF
10352#define HAVE_DECL__SNWPRINTF $ac_have_decl
10353_ACEOF
10354
10355
10356 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10357"
10358if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10359 ac_have_decl=1
10360else
10361 ac_have_decl=0
10362fi
10363
10364cat >>confdefs.h <<_ACEOF
10365#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10366_ACEOF
10367
10368
10369 case $gt_cv_func_printf_posix in
10370 *yes) HAVE_POSIX_PRINTF=1 ;;
10371 *) HAVE_POSIX_PRINTF=0 ;;
10372 esac
10373
10374 if test "$ac_cv_func_asprintf" = yes; then
10375 HAVE_ASPRINTF=1
10376 else
10377 HAVE_ASPRINTF=0
10378 fi
10379
10380 if test "$ac_cv_func_snprintf" = yes; then
10381 HAVE_SNPRINTF=1
10382 else
10383 HAVE_SNPRINTF=0
10384 fi
10385
10386 if test "$ac_cv_func_newlocale" = yes; then
10387 HAVE_NEWLOCALE=1
10388 else
10389 HAVE_NEWLOCALE=0
10390 fi
10391
10392 if test "$ac_cv_func_wprintf" = yes; then
10393 HAVE_WPRINTF=1
10394 else
10395 HAVE_WPRINTF=0
10396 fi
10397
10398
10399
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10401$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10402if ${am_cv_langinfo_codeset+:} false; then :
10403 $as_echo_n "(cached) " >&6
10404else
10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406/* end confdefs.h. */
10407#include <langinfo.h>
10408int
10409main ()
10410{
10411char* cs = nl_langinfo(CODESET); return !cs;
10412 ;
10413 return 0;
10414}
10415_ACEOF
10416if ac_fn_c_try_link "$LINENO"; then :
10417 am_cv_langinfo_codeset=yes
10418else
10419 am_cv_langinfo_codeset=no
10420fi
10421rm -f core conftest.err conftest.$ac_objext \
10422 conftest$ac_exeext conftest.$ac_ext
10423
10424fi
10425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10426$as_echo "$am_cv_langinfo_codeset" >&6; }
10427 if test $am_cv_langinfo_codeset = yes; then
10428
10429$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10430
10431 fi
10432
10433
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10435$as_echo_n "checking for LC_MESSAGES... " >&6; }
10436if ${gt_cv_val_LC_MESSAGES+:} false; then :
10437 $as_echo_n "(cached) " >&6
10438else
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440/* end confdefs.h. */
10441#include <locale.h>
10442int
10443main ()
10444{
10445return LC_MESSAGES
10446 ;
10447 return 0;
10448}
10449_ACEOF
10450if ac_fn_c_try_link "$LINENO"; then :
10451 gt_cv_val_LC_MESSAGES=yes
10452else
10453 gt_cv_val_LC_MESSAGES=no
10454fi
10455rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457fi
10458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10459$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10460 if test $gt_cv_val_LC_MESSAGES = yes; then
10461
10462$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10463
10464 fi
10465
10466
10467 if test "$enable_shared" = yes; then
10468 case "$host_os" in
10469 mingw* | cygwin*) is_woe32dll=yes ;;
10470 *) is_woe32dll=no ;;
10471 esac
10472 else
10473 is_woe32dll=no
10474 fi
10475 WOE32DLL=$is_woe32dll
10476
10477
10478 case "$host_os" in
10479 mingw* | cygwin*) is_woe32=yes ;;
10480 *) is_woe32=no ;;
10481 esac
10482 WOE32=$is_woe32
10483
10484 if test $WOE32 = yes; then
10485 if test -n "$ac_tool_prefix"; then
10486 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10487set dummy ${ac_tool_prefix}windres; ac_word=$2
10488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489$as_echo_n "checking for $ac_word... " >&6; }
10490if ${ac_cv_prog_WINDRES+:} false; then :
10491 $as_echo_n "(cached) " >&6
10492else
10493 if test -n "$WINDRES"; then
10494 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10495else
10496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497for as_dir in $PATH
10498do
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10503 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10505 break 2
10506 fi
10507done
10508 done
10509IFS=$as_save_IFS
10510
10511fi
10512fi
10513WINDRES=$ac_cv_prog_WINDRES
10514if test -n "$WINDRES"; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10516$as_echo "$WINDRES" >&6; }
10517else
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519$as_echo "no" >&6; }
10520fi
10521
10522
10523fi
10524if test -z "$ac_cv_prog_WINDRES"; then
10525 ac_ct_WINDRES=$WINDRES
10526 # Extract the first word of "windres", so it can be a program name with args.
10527set dummy windres; ac_word=$2
10528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10529$as_echo_n "checking for $ac_word... " >&6; }
10530if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10531 $as_echo_n "(cached) " >&6
10532else
10533 if test -n "$ac_ct_WINDRES"; then
10534 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10535else
10536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537for as_dir in $PATH
10538do
10539 IFS=$as_save_IFS
10540 test -z "$as_dir" && as_dir=.
10541 for ac_exec_ext in '' $ac_executable_extensions; do
10542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10543 ac_cv_prog_ac_ct_WINDRES="windres"
10544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10545 break 2
10546 fi
10547done
10548 done
10549IFS=$as_save_IFS
10550
10551fi
10552fi
10553ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10554if test -n "$ac_ct_WINDRES"; then
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10556$as_echo "$ac_ct_WINDRES" >&6; }
10557else
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559$as_echo "no" >&6; }
10560fi
10561
10562 if test "x$ac_ct_WINDRES" = x; then
10563 WINDRES=""
10564 else
10565 case $cross_compiling:$ac_tool_warned in
10566yes:)
10567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10569ac_tool_warned=yes ;;
10570esac
10571 WINDRES=$ac_ct_WINDRES
10572 fi
10573else
10574 WINDRES="$ac_cv_prog_WINDRES"
10575fi
10576
10577 fi
10578
10579 case "$host_os" in
10580 hpux*) LTLIBC="" ;;
10581 *) LTLIBC="-lc" ;;
10582 esac
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10611$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10612if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10613 $as_echo_n "(cached) " >&6
10614else
10615 gt_save_LIBS="$LIBS"
10616 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618/* end confdefs.h. */
10619#include <CoreFoundation/CFPreferences.h>
10620int
10621main ()
10622{
10623CFPreferencesCopyAppValue(NULL, NULL)
10624 ;
10625 return 0;
10626}
10627_ACEOF
10628if ac_fn_c_try_link "$LINENO"; then :
10629 gt_cv_func_CFPreferencesCopyAppValue=yes
10630else
10631 gt_cv_func_CFPreferencesCopyAppValue=no
10632fi
10633rm -f core conftest.err conftest.$ac_objext \
10634 conftest$ac_exeext conftest.$ac_ext
10635 LIBS="$gt_save_LIBS"
10636fi
10637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10638$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10639 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10640
10641$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10642
10643 fi
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10645$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10646if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10647 $as_echo_n "(cached) " >&6
10648else
10649 gt_save_LIBS="$LIBS"
10650 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652/* end confdefs.h. */
10653#include <CoreFoundation/CFLocale.h>
10654int
10655main ()
10656{
10657CFLocaleCopyCurrent();
10658 ;
10659 return 0;
10660}
10661_ACEOF
10662if ac_fn_c_try_link "$LINENO"; then :
10663 gt_cv_func_CFLocaleCopyCurrent=yes
10664else
10665 gt_cv_func_CFLocaleCopyCurrent=no
10666fi
10667rm -f core conftest.err conftest.$ac_objext \
10668 conftest$ac_exeext conftest.$ac_ext
10669 LIBS="$gt_save_LIBS"
10670fi
10671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10672$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10673 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10674
10675$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10676
10677 fi
10678 INTL_MACOSX_LIBS=
10679 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10680 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10681 fi
10682
10683
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010684
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010685
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010686
10687
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010688 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010689 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010690
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010691 LIBINTL=
10692 LTLIBINTL=
10693 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010694
Theodore Ts'o93613952014-07-03 23:44:13 -040010695 case " $gt_needs " in
10696 *" need-formatstring-macros "*) gt_api_version=3 ;;
10697 *" need-ngettext "*) gt_api_version=2 ;;
10698 *) gt_api_version=1 ;;
10699 esac
10700 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10701 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10702
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010703 if test "$USE_NLS" = "yes"; then
10704 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010705
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010707$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010708
Theodore Ts'oe1052142006-10-21 21:46:47 -040010709# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010710if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010711 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010712else
10713 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010714fi
10715
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010717$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010718
10719 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10720 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010721
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010722
Theodore Ts'o93613952014-07-03 23:44:13 -040010723 if test $gt_api_version -ge 3; then
10724 gt_revision_test_code='
10725#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10726#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10727#endif
10728typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10729'
10730 else
10731 gt_revision_test_code=
10732 fi
10733 if test $gt_api_version -ge 2; then
10734 gt_expression_test_code=' + * ngettext ("", "", 0)'
10735 else
10736 gt_expression_test_code=
10737 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010738
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010740$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040010741if eval \${$gt_func_gnugettext_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010742 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010743else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010745/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040010746
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010747#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040010748$gt_revision_test_code
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010749extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010750extern int *_nl_domain_bindings;
Theodore Ts'o93613952014-07-03 23:44:13 -040010751
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010752int
10753main ()
10754{
Theodore Ts'o93613952014-07-03 23:44:13 -040010755
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010756bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040010757return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10758
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010759 ;
10760 return 0;
10761}
10762_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010763if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040010764 eval "$gt_func_gnugettext_libc=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010765else
Theodore Ts'o93613952014-07-03 23:44:13 -040010766 eval "$gt_func_gnugettext_libc=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010767fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010768rm -f core conftest.err conftest.$ac_objext \
10769 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010770fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010771eval ac_res=\$$gt_func_gnugettext_libc
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10773$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010774
Theodore Ts'o93613952014-07-03 23:44:13 -040010775 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10776
10777
10778
10779
10780
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010781
10782
10783
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010784 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010785
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010786 acl_save_prefix="$prefix"
10787 prefix="$acl_final_prefix"
10788 acl_save_exec_prefix="$exec_prefix"
10789 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010790
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010791 eval additional_includedir=\"$includedir\"
10792 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010793
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010794 exec_prefix="$acl_save_exec_prefix"
10795 prefix="$acl_save_prefix"
10796
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010797
Theodore Ts'oe1052142006-10-21 21:46:47 -040010798# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010799if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010800 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010801 if test "X$withval" = "Xno"; then
10802 use_additional=no
10803 else
10804 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010805
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010806 acl_save_prefix="$prefix"
10807 prefix="$acl_final_prefix"
10808 acl_save_exec_prefix="$exec_prefix"
10809 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010810
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010811 eval additional_includedir=\"$includedir\"
10812 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010813
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010814 exec_prefix="$acl_save_exec_prefix"
10815 prefix="$acl_save_prefix"
10816
10817 else
10818 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -040010819 additional_libdir="$withval/$acl_libdirstem"
10820 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10821 && ! test -d "$withval/$acl_libdirstem"; then
10822 additional_libdir="$withval/$acl_libdirstem2"
10823 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010824 fi
10825 fi
10826
Theodore Ts'oe1052142006-10-21 21:46:47 -040010827fi
10828
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010829 LIBINTL=
10830 LTLIBINTL=
10831 INCINTL=
Theodore Ts'o93613952014-07-03 23:44:13 -040010832 LIBINTL_PREFIX=
10833 HAVE_LIBINTL=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010834 rpathdirs=
10835 ltrpathdirs=
10836 names_already_handled=
10837 names_next_round='intl '
10838 while test -n "$names_next_round"; do
10839 names_this_round="$names_next_round"
10840 names_next_round=
10841 for name in $names_this_round; do
10842 already_handled=
10843 for n in $names_already_handled; do
10844 if test "$n" = "$name"; then
10845 already_handled=yes
10846 break
10847 fi
10848 done
10849 if test -z "$already_handled"; then
10850 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -040010851 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010852 eval value=\"\$HAVE_LIB$uppername\"
10853 if test -n "$value"; then
10854 if test "$value" = yes; then
10855 eval value=\"\$LIB$uppername\"
10856 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10857 eval value=\"\$LTLIB$uppername\"
10858 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10859 else
10860 :
10861 fi
10862 else
10863 found_dir=
10864 found_la=
10865 found_so=
10866 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -040010867 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10868 if test -n "$acl_shlibext"; then
10869 shrext=".$acl_shlibext" # typically: shrext=.so
10870 else
10871 shrext=
10872 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010873 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010874 dir="$additional_libdir"
10875 if test -n "$acl_shlibext"; then
10876 if test -f "$dir/$libname$shrext"; then
10877 found_dir="$dir"
10878 found_so="$dir/$libname$shrext"
10879 else
10880 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10881 ver=`(cd "$dir" && \
10882 for f in "$libname$shrext".*; do echo "$f"; done \
10883 | sed -e "s,^$libname$shrext\\\\.,," \
10884 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10885 | sed 1q ) 2>/dev/null`
10886 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10887 found_dir="$dir"
10888 found_so="$dir/$libname$shrext.$ver"
10889 fi
10890 else
10891 eval library_names=\"$acl_library_names_spec\"
10892 for f in $library_names; do
10893 if test -f "$dir/$f"; then
10894 found_dir="$dir"
10895 found_so="$dir/$f"
10896 break
10897 fi
10898 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010899 fi
10900 fi
10901 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010902 if test "X$found_dir" = "X"; then
10903 if test -f "$dir/$libname.$acl_libext"; then
10904 found_dir="$dir"
10905 found_a="$dir/$libname.$acl_libext"
10906 fi
10907 fi
10908 if test "X$found_dir" != "X"; then
10909 if test -f "$dir/$libname.la"; then
10910 found_la="$dir/$libname.la"
10911 fi
10912 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010913 fi
10914 if test "X$found_dir" = "X"; then
10915 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010916
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010917 acl_save_prefix="$prefix"
10918 prefix="$acl_final_prefix"
10919 acl_save_exec_prefix="$exec_prefix"
10920 exec_prefix="$acl_final_exec_prefix"
10921 eval x=\"$x\"
10922 exec_prefix="$acl_save_exec_prefix"
10923 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010924
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010925 case "$x" in
10926 -L*)
10927 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040010928 if test -n "$acl_shlibext"; then
10929 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010930 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040010931 found_so="$dir/$libname$shrext"
10932 else
10933 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10934 ver=`(cd "$dir" && \
10935 for f in "$libname$shrext".*; do echo "$f"; done \
10936 | sed -e "s,^$libname$shrext\\\\.,," \
10937 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10938 | sed 1q ) 2>/dev/null`
10939 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10940 found_dir="$dir"
10941 found_so="$dir/$libname$shrext.$ver"
10942 fi
10943 else
10944 eval library_names=\"$acl_library_names_spec\"
10945 for f in $library_names; do
10946 if test -f "$dir/$f"; then
10947 found_dir="$dir"
10948 found_so="$dir/$f"
10949 break
10950 fi
10951 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010952 fi
10953 fi
10954 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010955 if test "X$found_dir" = "X"; then
10956 if test -f "$dir/$libname.$acl_libext"; then
10957 found_dir="$dir"
10958 found_a="$dir/$libname.$acl_libext"
10959 fi
10960 fi
10961 if test "X$found_dir" != "X"; then
10962 if test -f "$dir/$libname.la"; then
10963 found_la="$dir/$libname.la"
10964 fi
10965 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010966 ;;
10967 esac
10968 if test "X$found_dir" != "X"; then
10969 break
10970 fi
10971 done
10972 fi
10973 if test "X$found_dir" != "X"; then
10974 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10975 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010976 if test "$enable_rpath" = no \
10977 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10978 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010979 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10980 else
10981 haveit=
10982 for x in $ltrpathdirs; do
10983 if test "X$x" = "X$found_dir"; then
10984 haveit=yes
10985 break
10986 fi
10987 done
10988 if test -z "$haveit"; then
10989 ltrpathdirs="$ltrpathdirs $found_dir"
10990 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010991 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010992 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10993 else
Theodore Ts'o93613952014-07-03 23:44:13 -040010994 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010995 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10996 haveit=
10997 for x in $rpathdirs; do
10998 if test "X$x" = "X$found_dir"; then
10999 haveit=yes
11000 break
11001 fi
11002 done
11003 if test -z "$haveit"; then
11004 rpathdirs="$rpathdirs $found_dir"
11005 fi
11006 else
11007 haveit=
11008 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011009
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011010 acl_save_prefix="$prefix"
11011 prefix="$acl_final_prefix"
11012 acl_save_exec_prefix="$exec_prefix"
11013 exec_prefix="$acl_final_exec_prefix"
11014 eval x=\"$x\"
11015 exec_prefix="$acl_save_exec_prefix"
11016 prefix="$acl_save_prefix"
11017
11018 if test "X$x" = "X-L$found_dir"; then
11019 haveit=yes
11020 break
11021 fi
11022 done
11023 if test -z "$haveit"; then
11024 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11025 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011026 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011027 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11028 else
11029 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11030 fi
11031 fi
11032 fi
11033 fi
11034 else
11035 if test "X$found_a" != "X"; then
11036 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11037 else
11038 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11039 fi
11040 fi
11041 additional_includedir=
11042 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -040011043 */$acl_libdirstem | */$acl_libdirstem/)
11044 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11045 if test "$name" = 'intl'; then
11046 LIBINTL_PREFIX="$basedir"
11047 fi
11048 additional_includedir="$basedir/include"
11049 ;;
11050 */$acl_libdirstem2 | */$acl_libdirstem2/)
11051 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11052 if test "$name" = 'intl'; then
11053 LIBINTL_PREFIX="$basedir"
11054 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011055 additional_includedir="$basedir/include"
11056 ;;
11057 esac
11058 if test "X$additional_includedir" != "X"; then
11059 if test "X$additional_includedir" != "X/usr/include"; then
11060 haveit=
11061 if test "X$additional_includedir" = "X/usr/local/include"; then
11062 if test -n "$GCC"; then
11063 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011064 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011065 esac
11066 fi
11067 fi
11068 if test -z "$haveit"; then
11069 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011070
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011071 acl_save_prefix="$prefix"
11072 prefix="$acl_final_prefix"
11073 acl_save_exec_prefix="$exec_prefix"
11074 exec_prefix="$acl_final_exec_prefix"
11075 eval x=\"$x\"
11076 exec_prefix="$acl_save_exec_prefix"
11077 prefix="$acl_save_prefix"
11078
11079 if test "X$x" = "X-I$additional_includedir"; then
11080 haveit=yes
11081 break
11082 fi
11083 done
11084 if test -z "$haveit"; then
11085 if test -d "$additional_includedir"; then
11086 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11087 fi
11088 fi
11089 fi
11090 fi
11091 fi
11092 if test -n "$found_la"; then
11093 save_libdir="$libdir"
11094 case "$found_la" in
11095 */* | *\\*) . "$found_la" ;;
11096 *) . "./$found_la" ;;
11097 esac
11098 libdir="$save_libdir"
11099 for dep in $dependency_libs; do
11100 case "$dep" in
11101 -L*)
11102 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040011103 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11104 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011105 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -040011106 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11107 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011108 if test -n "$GCC"; then
11109 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011110 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011111 esac
11112 fi
11113 fi
11114 if test -z "$haveit"; then
11115 haveit=
11116 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011117
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011118 acl_save_prefix="$prefix"
11119 prefix="$acl_final_prefix"
11120 acl_save_exec_prefix="$exec_prefix"
11121 exec_prefix="$acl_final_exec_prefix"
11122 eval x=\"$x\"
11123 exec_prefix="$acl_save_exec_prefix"
11124 prefix="$acl_save_prefix"
11125
11126 if test "X$x" = "X-L$additional_libdir"; then
11127 haveit=yes
11128 break
11129 fi
11130 done
11131 if test -z "$haveit"; then
11132 if test -d "$additional_libdir"; then
11133 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11134 fi
11135 fi
11136 haveit=
11137 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011138
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011139 acl_save_prefix="$prefix"
11140 prefix="$acl_final_prefix"
11141 acl_save_exec_prefix="$exec_prefix"
11142 exec_prefix="$acl_final_exec_prefix"
11143 eval x=\"$x\"
11144 exec_prefix="$acl_save_exec_prefix"
11145 prefix="$acl_save_prefix"
11146
11147 if test "X$x" = "X-L$additional_libdir"; then
11148 haveit=yes
11149 break
11150 fi
11151 done
11152 if test -z "$haveit"; then
11153 if test -d "$additional_libdir"; then
11154 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11155 fi
11156 fi
11157 fi
11158 fi
11159 ;;
11160 -R*)
11161 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11162 if test "$enable_rpath" != no; then
11163 haveit=
11164 for x in $rpathdirs; do
11165 if test "X$x" = "X$dir"; then
11166 haveit=yes
11167 break
11168 fi
11169 done
11170 if test -z "$haveit"; then
11171 rpathdirs="$rpathdirs $dir"
11172 fi
11173 haveit=
11174 for x in $ltrpathdirs; do
11175 if test "X$x" = "X$dir"; then
11176 haveit=yes
11177 break
11178 fi
11179 done
11180 if test -z "$haveit"; then
11181 ltrpathdirs="$ltrpathdirs $dir"
11182 fi
11183 fi
11184 ;;
11185 -l*)
11186 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11187 ;;
11188 *.la)
11189 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11190 ;;
11191 *)
11192 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11193 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11194 ;;
11195 esac
11196 done
11197 fi
11198 else
11199 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11200 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11201 fi
11202 fi
11203 fi
11204 done
11205 done
11206 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011207 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011208 alldirs=
11209 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -040011210 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011211 done
11212 acl_save_libdir="$libdir"
11213 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -040011214 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011215 libdir="$acl_save_libdir"
11216 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11217 else
11218 for found_dir in $rpathdirs; do
11219 acl_save_libdir="$libdir"
11220 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040011221 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011222 libdir="$acl_save_libdir"
11223 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11224 done
11225 fi
11226 fi
11227 if test "X$ltrpathdirs" != "X"; then
11228 for found_dir in $ltrpathdirs; do
11229 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11230 done
11231 fi
11232
Theodore Ts'o93613952014-07-03 23:44:13 -040011233
11234
11235
11236
11237
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011239$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040011240if eval \${$gt_func_gnugettext_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011241 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011242else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011243 gt_save_CPPFLAGS="$CPPFLAGS"
11244 CPPFLAGS="$CPPFLAGS $INCINTL"
11245 gt_save_LIBS="$LIBS"
11246 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011248/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011249
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011250#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011251$gt_revision_test_code
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011252extern int _nl_msg_cat_cntr;
11253extern
11254#ifdef __cplusplus
11255"C"
11256#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011257const char *_nl_expand_alias (const char *);
11258
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011259int
11260main ()
11261{
Theodore Ts'o93613952014-07-03 23:44:13 -040011262
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011263bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011264return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11265
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011266 ;
11267 return 0;
11268}
11269_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011270if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040011271 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011272else
Theodore Ts'o93613952014-07-03 23:44:13 -040011273 eval "$gt_func_gnugettext_libintl=no"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011274fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011275rm -f core conftest.err conftest.$ac_objext \
11276 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -040011277 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011278 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011280/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011281
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011282#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011283$gt_revision_test_code
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011284extern int _nl_msg_cat_cntr;
11285extern
11286#ifdef __cplusplus
11287"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011288#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011289const char *_nl_expand_alias (const char *);
11290
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011291int
11292main ()
11293{
Theodore Ts'o93613952014-07-03 23:44:13 -040011294
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011295bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011296return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11297
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011298 ;
11299 return 0;
11300}
11301_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011302if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011303 LIBINTL="$LIBINTL $LIBICONV"
Theodore Ts'o93613952014-07-03 23:44:13 -040011304 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11305 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011306
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011307fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011308rm -f core conftest.err conftest.$ac_objext \
11309 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011310 fi
11311 CPPFLAGS="$gt_save_CPPFLAGS"
11312 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011313fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011314eval ac_res=\$$gt_func_gnugettext_libintl
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11316$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011317 fi
11318
Theodore Ts'o93613952014-07-03 23:44:13 -040011319 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11320 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011321 && test "$PACKAGE" != gettext-runtime \
11322 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011323 gt_use_preinstalled_gnugettext=yes
11324 else
11325 LIBINTL=
11326 LTLIBINTL=
11327 INCINTL=
11328 fi
11329
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011330
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011331 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11332 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011333 fi
11334 fi
11335
11336 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011337 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011338 USE_INCLUDED_LIBINTL=yes
Theodore Ts'o93613952014-07-03 23:44:13 -040011339 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11340 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011341 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011342 fi
11343
Theodore Ts'o93613952014-07-03 23:44:13 -040011344 CATOBJEXT=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011345 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11346 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11347 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011348 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011349
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011350
Theodore Ts'o93613952014-07-03 23:44:13 -040011351 if test -n "$INTL_MACOSX_LIBS"; then
11352 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11353 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11354 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11355 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11356 fi
11357 fi
11358
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011359 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11360 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011361
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011362$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011363
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011364 else
11365 USE_NLS=no
11366 fi
11367 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011368
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011370$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011372$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011373 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011375$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011376 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011377 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011378 gt_source="external libintl"
11379 else
11380 gt_source="libc"
11381 fi
11382 else
11383 gt_source="included intl directory"
11384 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011386$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011387 fi
11388
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011389 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011390
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011391 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011392 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011394$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011396$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011397
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011398 for element in $INCINTL; do
11399 haveit=
11400 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011401
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011402 acl_save_prefix="$prefix"
11403 prefix="$acl_final_prefix"
11404 acl_save_exec_prefix="$exec_prefix"
11405 exec_prefix="$acl_final_exec_prefix"
11406 eval x=\"$x\"
11407 exec_prefix="$acl_save_exec_prefix"
11408 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011409
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011410 if test "X$x" = "X$element"; then
11411 haveit=yes
11412 break
11413 fi
11414 done
11415 if test -z "$haveit"; then
11416 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11417 fi
11418 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011419
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011420 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011421
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011422
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011423$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011424
11425
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011426$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011427
11428 fi
11429
11430 POSUB=po
11431 fi
11432
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011433
11434 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011435 BUILD_INCLUDED_LIBINTL=yes
11436 fi
11437
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011438
11439
11440
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011441
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011442 nls_cv_header_intl=
11443 nls_cv_header_libgt=
11444
11445 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011446
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011447
11448 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011449
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011450
11451 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011452
11453
Theodore Ts'o93613952014-07-03 23:44:13 -040011454 INTLOBJS=
11455 if test "$USE_INCLUDED_LIBINTL" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011456 INTLOBJS="\$(GETTOBJS)"
11457 fi
11458
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011459
11460 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011461
11462
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011463
11464 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011465
11466
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011467
11468
11469
11470
11471
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011473$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11474set x ${MAKE-make}
11475ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011476if eval \${ac_cv_prog_make_${ac_make}_set+:} 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 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011480SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011481all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011482 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011483_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011484# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011485case `${MAKE-make} -f conftest.make 2>/dev/null` in
11486 *@@@%%%=?*=@@@%%%*)
11487 eval ac_cv_prog_make_${ac_make}_set=yes;;
11488 *)
11489 eval ac_cv_prog_make_${ac_make}_set=no;;
11490esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011491rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011492fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011493if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011495$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011496 SET_MAKE=
11497else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011499$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011500 SET_MAKE="MAKE=${MAKE-make}"
11501fi
11502
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011504$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011505if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011506 $as_echo_n "(cached) " >&6
11507else
11508 _cv_gnu_make_command='' ;
11509 for a in "$MAKE" make gmake gnumake ; do
11510 if test -z "$a" ; then continue ; fi ;
11511 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11512 _cv_gnu_make_command=$a ;
11513 break;
11514 fi
11515 done ;
11516
11517fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011519$as_echo "$_cv_gnu_make_command" >&6; } ;
11520 if test "x$_cv_gnu_make_command" != "x" ; then
11521 ifGNUmake='' ;
11522 ifNotGNUmake='#' ;
11523 else
11524 ifGNUmake='#' ;
11525 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011527$as_echo "\"Not found\"" >&6; };
11528 fi
11529
11530
11531
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011532# Extract the first word of "ln", so it can be a program name with args.
11533set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011535$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011536if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011537 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011538else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011539 case $LN in
11540 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011541 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11542 ;;
11543 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545for as_dir in $PATH
11546do
11547 IFS=$as_save_IFS
11548 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011549 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011551 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011553 break 2
11554 fi
11555done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011556 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011557IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011558
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011559 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11560 ;;
11561esac
11562fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011563LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011564if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011566$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011567else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011569$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011570fi
11571
Theodore Ts'oe1052142006-10-21 21:46:47 -040011572
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011574$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011575LN_S=$as_ln_s
11576if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011578$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011579else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011581$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011582fi
11583
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011584# Extract the first word of "mv", so it can be a program name with args.
11585set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011587$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011588if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011589 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011590else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011591 case $MV in
11592 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011593 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11594 ;;
11595 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597for as_dir in $PATH
11598do
11599 IFS=$as_save_IFS
11600 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011601 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011603 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011605 break 2
11606 fi
11607done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011608 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011609IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011610
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011611 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11612 ;;
11613esac
11614fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011615MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011616if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011618$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011619else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011621$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011622fi
11623
Theodore Ts'oe1052142006-10-21 21:46:47 -040011624
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011625# Extract the first word of "cp", so it can be a program name with args.
11626set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011628$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011629if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011630 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011631else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011632 case $CP in
11633 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011634 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11635 ;;
11636 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638for as_dir in $PATH
11639do
11640 IFS=$as_save_IFS
11641 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011642 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011644 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011646 break 2
11647 fi
11648done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011649 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011650IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011651
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011652 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11653 ;;
11654esac
11655fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011656CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011657if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011659$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011660else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011662$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011663fi
11664
Theodore Ts'oe1052142006-10-21 21:46:47 -040011665
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011666# Extract the first word of "rm", so it can be a program name with args.
11667set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011669$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011670if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011671 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011672else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011673 case $RM in
11674 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011675 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11676 ;;
11677 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679for as_dir in $PATH
11680do
11681 IFS=$as_save_IFS
11682 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011683 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011685 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011687 break 2
11688 fi
11689done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011690 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011691IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011692
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011693 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11694 ;;
11695esac
11696fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011697RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011698if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011700$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011701else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011703$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011704fi
11705
Theodore Ts'oe1052142006-10-21 21:46:47 -040011706
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011707# Extract the first word of "chmod", so it can be a program name with args.
11708set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011710$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011711if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011712 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011713else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011714 case $CHMOD in
11715 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011716 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11717 ;;
11718 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720for as_dir in $PATH
11721do
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011724 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011726 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011728 break 2
11729 fi
11730done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011731 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011732IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011733
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011734 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11735 ;;
11736esac
11737fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011738CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011739if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011741$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011742else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011744$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011745fi
11746
Theodore Ts'oe1052142006-10-21 21:46:47 -040011747
Theodore Ts'o32237012005-01-17 19:13:39 -050011748for ac_prog in gawk mawk nawk awk
11749do
11750 # Extract the first word of "$ac_prog", so it can be a program name with args.
11751set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011753$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011754if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011755 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011756else
Theodore Ts'o32237012005-01-17 19:13:39 -050011757 if test -n "$AWK"; then
11758 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11759else
11760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011761for as_dir in $PATH
11762do
11763 IFS=$as_save_IFS
11764 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011765 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011767 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011769 break 2
11770 fi
11771done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011772 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011773IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011774
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011775fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011776fi
11777AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011778if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011780$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011781else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011783$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011784fi
11785
Theodore Ts'oe1052142006-10-21 21:46:47 -040011786
Theodore Ts'o32237012005-01-17 19:13:39 -050011787 test -n "$AWK" && break
11788done
11789
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011791$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011792if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011793 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011794else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011795 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11796 then ac_cv_path_EGREP="$GREP -E"
11797 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011798 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011799 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011800 # Loop through the user's path and test for each of PROGNAME-LIST
11801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011802for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11803do
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011806 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011807 for ac_exec_ext in '' $ac_executable_extensions; do
11808 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011809 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011810# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011811 # Check for GNU $ac_path_EGREP
11812case `"$ac_path_EGREP" --version 2>&1` in
11813*GNU*)
11814 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11815*)
11816 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011817 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011818 while :
11819 do
11820 cat "conftest.in" "conftest.in" >"conftest.tmp"
11821 mv "conftest.tmp" "conftest.in"
11822 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011823 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011824 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011826 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -040011827 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11828 # Best one so far, save it but keep looking for a better one
11829 ac_cv_path_EGREP="$ac_path_EGREP"
11830 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011831 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011832 # 10*(2^10) chars as input seems more than enough
11833 test $ac_count -gt 10 && break
11834 done
11835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11836esac
11837
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011838 $ac_path_EGREP_found && break 3
11839 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011840 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011841 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011842IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011843 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011844 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 +010011845 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011846else
11847 ac_cv_path_EGREP=$EGREP
11848fi
11849
Theodore Ts'oe1052142006-10-21 21:46:47 -040011850 fi
11851fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011853$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011854 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011855
11856
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011857# Extract the first word of "sed", so it can be a program name with args.
11858set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011860$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011861if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011862 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011863else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011864 case $SED in
11865 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011866 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11867 ;;
11868 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11870for as_dir in $PATH
11871do
11872 IFS=$as_save_IFS
11873 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011874 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011876 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011878 break 2
11879 fi
11880done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011881 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011882IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011883
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011884 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11885 ;;
11886esac
11887fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011888SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011889if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011891$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011892else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011894$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011895fi
11896
Theodore Ts'oe1052142006-10-21 21:46:47 -040011897
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011898# Extract the first word of "perl", so it can be a program name with args.
11899set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011901$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011902if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011903 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011904else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011905 case $PERL in
11906 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011907 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11908 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011909 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911for as_dir in $PATH
11912do
11913 IFS=$as_save_IFS
11914 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011915 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011917 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011919 break 2
11920 fi
11921done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011922 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011923IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011924
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011925 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11926 ;;
11927esac
11928fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011929PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011930if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011932$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011933else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011935$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011936fi
11937
Theodore Ts'oe1052142006-10-21 21:46:47 -040011938
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011939# Extract the first word of "ldconfig", so it can be a program name with args.
11940set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011942$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011943if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011944 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011945else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011946 case $LDCONFIG in
11947 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011948 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11949 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011950 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952for as_dir in $PATH
11953do
11954 IFS=$as_save_IFS
11955 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011956 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011958 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011960 break 2
11961 fi
11962done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011963 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011964IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011965
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011966 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11967 ;;
11968esac
11969fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011970LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011971if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011973$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011974else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011976$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011977fi
11978
Theodore Ts'oe1052142006-10-21 21:46:47 -040011979
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011980if test -n "$ac_tool_prefix"; then
11981 # 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 +000011982set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011984$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011985if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011986 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011987else
11988 if test -n "$AR"; then
11989 ac_cv_prog_AR="$AR" # Let the user override the test.
11990else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992for as_dir in $PATH
11993do
11994 IFS=$as_save_IFS
11995 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011996 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011998 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012000 break 2
12001 fi
12002done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012003 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012004IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012005
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012006fi
12007fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012008AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012009if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012011$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012012else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012014$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012015fi
12016
Theodore Ts'oe1052142006-10-21 21:46:47 -040012017
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012018fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012019if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012020 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012021 # Extract the first word of "ar", so it can be a program name with args.
12022set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012024$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012025if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012026 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012027else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012028 if test -n "$ac_ct_AR"; then
12029 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012030else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032for as_dir in $PATH
12033do
12034 IFS=$as_save_IFS
12035 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012036 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012038 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012040 break 2
12041 fi
12042done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012043 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012044IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012045
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012046fi
12047fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012048ac_ct_AR=$ac_cv_prog_ac_ct_AR
12049if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012051$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012052else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012054$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012055fi
12056
Theodore Ts'oe1052142006-10-21 21:46:47 -040012057 if test "x$ac_ct_AR" = x; then
12058 AR="ar"
12059 else
12060 case $cross_compiling:$ac_tool_warned in
12061yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012062{ $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 +010012063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012064ac_tool_warned=yes ;;
12065esac
12066 AR=$ac_ct_AR
12067 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012068else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012069 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012070fi
12071
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012072if test -n "$ac_tool_prefix"; then
12073 # 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 +000012074set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012076$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012077if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012078 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012079else
12080 if test -n "$RANLIB"; then
12081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12082else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084for as_dir in $PATH
12085do
12086 IFS=$as_save_IFS
12087 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012088 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012090 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012092 break 2
12093 fi
12094done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012095 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012096IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012097
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012098fi
12099fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012100RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012101if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012103$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012104else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012106$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012107fi
12108
Theodore Ts'oe1052142006-10-21 21:46:47 -040012109
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012110fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012111if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012112 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012113 # Extract the first word of "ranlib", so it can be a program name with args.
12114set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012116$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012117if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012118 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012119else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012120 if test -n "$ac_ct_RANLIB"; then
12121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012122else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124for as_dir in $PATH
12125do
12126 IFS=$as_save_IFS
12127 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012128 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012130 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012132 break 2
12133 fi
12134done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012135 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012136IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012137
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012138fi
12139fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012140ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12141if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012143$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012144else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012146$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012147fi
12148
Theodore Ts'oe1052142006-10-21 21:46:47 -040012149 if test "x$ac_ct_RANLIB" = x; then
12150 RANLIB=":"
12151 else
12152 case $cross_compiling:$ac_tool_warned in
12153yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012154{ $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 +010012155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012156ac_tool_warned=yes ;;
12157esac
12158 RANLIB=$ac_ct_RANLIB
12159 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012160else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012161 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012162fi
12163
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012164if test -n "$ac_tool_prefix"; then
12165 # 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 +000012166set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012168$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012169if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012170 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012171else
12172 if test -n "$STRIP"; then
12173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12174else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176for as_dir in $PATH
12177do
12178 IFS=$as_save_IFS
12179 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012180 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012182 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012184 break 2
12185 fi
12186done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012187 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012188IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012189
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012190fi
12191fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012192STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012193if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012195$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012196else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012198$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012199fi
12200
Theodore Ts'oe1052142006-10-21 21:46:47 -040012201
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012202fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012203if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012204 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012205 # Extract the first word of "strip", so it can be a program name with args.
12206set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012208$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012209if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012210 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012211else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012212 if test -n "$ac_ct_STRIP"; then
12213 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012214else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216for as_dir in $PATH
12217do
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012220 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012222 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012224 break 2
12225 fi
12226done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012227 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012228IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012229
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012230fi
12231fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12233if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012235$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012236else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012238$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012239fi
12240
Theodore Ts'oe1052142006-10-21 21:46:47 -040012241 if test "x$ac_ct_STRIP" = x; then
12242 STRIP=":"
12243 else
12244 case $cross_compiling:$ac_tool_warned in
12245yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012246{ $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 +010012247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012248ac_tool_warned=yes ;;
12249esac
12250 STRIP=$ac_ct_STRIP
12251 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012252else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012253 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012254fi
12255
Manish Katiyar7321d942008-04-14 17:20:03 +053012256# Extract the first word of "makeinfo", so it can be a program name with args.
12257set dummy makeinfo; 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012260if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012261 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012262else
12263 if test -n "$MAKEINFO"; then
12264 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12265else
12266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267for as_dir in $PATH
12268do
12269 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053012273 ac_cv_prog_MAKEINFO="makeinfo"
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
Manish Katiyar7321d942008-04-14 17:20:03 +053012275 break 2
12276 fi
12277done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012278 done
Manish Katiyar7321d942008-04-14 17:20:03 +053012279IFS=$as_save_IFS
12280
12281fi
12282fi
12283MAKEINFO=$ac_cv_prog_MAKEINFO
12284if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012286$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012287else
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; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012290fi
12291
12292
12293if test "_$MAKEINFO" = "_"; then
12294 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12295else
12296 case "$MAKEINFO" in
12297 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012299*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012300$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012301*** Makeinfo is missing. Info documentation will not be built." >&2;}
12302 ;;
12303 *)
12304 ;;
12305 esac
12306fi
12307
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012308
Theodore Ts'o6c133521999-07-03 20:37:03 +000012309# See if we need a separate native compiler.
12310if test $cross_compiling = no; then
12311 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012312
Theodore Ts'o6c133521999-07-03 20:37:03 +000012313else
12314 for ac_prog in gcc cc
12315do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012316 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012317set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012319$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012320if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012321 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012322else
12323 if test -n "$BUILD_CC"; then
12324 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12325else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12327for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012328do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012329 IFS=$as_save_IFS
12330 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012331 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012333 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012335 break 2
12336 fi
12337done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012338 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012339IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012340
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012341fi
12342fi
12343BUILD_CC=$ac_cv_prog_BUILD_CC
12344if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012346$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012347else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012349$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012350fi
12351
Theodore Ts'oe1052142006-10-21 21:46:47 -040012352
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012353 test -n "$BUILD_CC" && break
12354done
12355
12356fi
Kazuya Miofbabd5c2013-12-16 00:48:12 -050012357for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012358do :
12359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12360ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012361if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012362 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012363#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012364_ACEOF
12365
12366fi
12367
12368done
12369
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012370for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012371do :
12372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12373ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012374#if HAVE_SYS_QUEUE_H
12375#include <sys/queue.h>
12376#endif
12377
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012378"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012379if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012380 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012381#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012382_ACEOF
12383
12384fi
12385
12386done
12387
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012388for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012389do :
12390 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012391#if HAVE_SYS_TYPES_H
12392#include <sys/types.h>
12393#endif
12394#if HAVE_SYS_SOCKET
12395#include <sys/socket.h>
12396#endif
12397
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012398"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012399if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012400 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012401#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012402_ACEOF
12403
12404fi
12405
12406done
12407
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012408for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012409do :
12410 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012411if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012412 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012413#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012414_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012415
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012416ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012417if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012418
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012419$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012420
12421fi
12422
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012423fi
12424done
12425
12426
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012427ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12428"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012429if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012430
12431$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012432
12433fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012434
Theodore Ts'o28739272014-01-03 00:26:43 -050012435ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12436if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12437
12438cat >>confdefs.h <<_ACEOF
12439#define HAVE_STRUCT_STAT_ST_ATIM 1
12440_ACEOF
12441
12442
12443fi
12444
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012445ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12446"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012447if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012448
12449$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012450
Theodore Ts'offf45482003-04-13 00:44:19 -040012451fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012452
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012453ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12454"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012455if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012456
12457$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012458
12459fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012460
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012461ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012462 #define _LARGEFILE64_SOURCE
12463 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012464"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012465if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012466
12467$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012468
12469fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012470
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012471# The cast to long int works around a bug in the HP C Compiler
12472# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12473# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12474# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012476$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012477if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012478 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012479else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012480 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 -050012481
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012482else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012483 if test "$ac_cv_type_short" = yes; then
12484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012486as_fn_error 77 "cannot compute sizeof (short)
12487See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012488 else
12489 ac_cv_sizeof_short=0
12490 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012491fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012492
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012493fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012495$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012496
12497
12498
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012499cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012500#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012501_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012502
12503
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012504# The cast to long int works around a bug in the HP C Compiler
12505# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12506# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12507# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012509$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012510if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012511 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012512else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012513 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 -050012514
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012515else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012516 if test "$ac_cv_type_int" = yes; then
12517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012519as_fn_error 77 "cannot compute sizeof (int)
12520See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012521 else
12522 ac_cv_sizeof_int=0
12523 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012524fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012525
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012526fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012528$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012529
12530
12531
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012532cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012533#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012534_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012535
12536
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012537# The cast to long int works around a bug in the HP C Compiler
12538# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12539# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12540# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012542$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012543if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012544 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012545else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012546 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 -050012547
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012548else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012549 if test "$ac_cv_type_long" = yes; then
12550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012552as_fn_error 77 "cannot compute sizeof (long)
12553See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012554 else
12555 ac_cv_sizeof_long=0
12556 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012557fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012558
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012559fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012561$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012562
12563
12564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012565cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012566#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012567_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012568
12569
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012570# The cast to long int works around a bug in the HP C Compiler
12571# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12572# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12573# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012575$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012576if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012577 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012578else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012579 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 -050012580
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012581else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012582 if test "$ac_cv_type_long_long" = yes; then
12583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012585as_fn_error 77 "cannot compute sizeof (long long)
12586See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012587 else
12588 ac_cv_sizeof_long_long=0
12589 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012590fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012591
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012592fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012594$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012595
12596
12597
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012598cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012599#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012600_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012601
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012602
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012603# The cast to long int works around a bug in the HP C Compiler
12604# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12605# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12606# This bug is HP SR number 8606223364.
12607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12608$as_echo_n "checking size of off_t... " >&6; }
12609if ${ac_cv_sizeof_off_t+:} false; then :
12610 $as_echo_n "(cached) " >&6
12611else
12612 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12613
12614else
12615 if test "$ac_cv_type_off_t" = yes; then
12616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12618as_fn_error 77 "cannot compute sizeof (off_t)
12619See \`config.log' for more details" "$LINENO" 5; }
12620 else
12621 ac_cv_sizeof_off_t=0
12622 fi
12623fi
12624
12625fi
12626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12627$as_echo "$ac_cv_sizeof_off_t" >&6; }
12628
12629
12630
12631cat >>confdefs.h <<_ACEOF
12632#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12633_ACEOF
12634
12635
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012636SIZEOF_SHORT=$ac_cv_sizeof_short
12637SIZEOF_INT=$ac_cv_sizeof_int
12638SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012639SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012640SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12641
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012642
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012643
12644
12645
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012647$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012648if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012649 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012650else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012651 ac_cv_c_bigendian=unknown
12652 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012654/* end confdefs.h. */
12655#ifndef __APPLE_CC__
12656 not a universal capable compiler
12657 #endif
12658 typedef int dummy;
12659
12660_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012661if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012662
12663 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012664 # there are at least two -arch flags with different values.
12665 ac_arch=
12666 ac_prev=
12667 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12668 if test -n "$ac_prev"; then
12669 case $ac_word in
12670 i?86 | x86_64 | ppc | ppc64)
12671 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12672 ac_arch=$ac_word
12673 else
12674 ac_cv_c_bigendian=universal
12675 break
12676 fi
12677 ;;
12678 esac
12679 ac_prev=
12680 elif test "x$ac_word" = "x-arch"; then
12681 ac_prev=arch
12682 fi
12683 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012684fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686 if test $ac_cv_c_bigendian = unknown; then
12687 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012689/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012690#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012691 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012692
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012693int
12694main ()
12695{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012696#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12697 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12698 && LITTLE_ENDIAN)
12699 bogus endian macros
12700 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012701
12702 ;
12703 return 0;
12704}
12705_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012706if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012707 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012709/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012710#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012711 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012712
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012713int
12714main ()
12715{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012716#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012717 not big endian
12718 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012719
12720 ;
12721 return 0;
12722}
12723_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012724if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012725 ac_cv_c_bigendian=yes
12726else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012727 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012728fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012730fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12732 fi
12733 if test $ac_cv_c_bigendian = unknown; then
12734 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012736/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012737#include <limits.h>
12738
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012739int
12740main ()
12741{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012742#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12743 bogus endian macros
12744 #endif
12745
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012746 ;
12747 return 0;
12748}
12749_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012750if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012751 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012753/* end confdefs.h. */
12754#include <limits.h>
12755
12756int
12757main ()
12758{
12759#ifndef _BIG_ENDIAN
12760 not big endian
12761 #endif
12762
12763 ;
12764 return 0;
12765}
12766_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012767if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012768 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012769else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012770 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012771fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012773fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12775 fi
12776 if test $ac_cv_c_bigendian = unknown; then
12777 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012778 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012779 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012781/* end confdefs.h. */
12782short int ascii_mm[] =
12783 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12784 short int ascii_ii[] =
12785 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12786 int use_ascii (int i) {
12787 return ascii_mm[i] + ascii_ii[i];
12788 }
12789 short int ebcdic_ii[] =
12790 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12791 short int ebcdic_mm[] =
12792 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12793 int use_ebcdic (int i) {
12794 return ebcdic_mm[i] + ebcdic_ii[i];
12795 }
12796 extern int foo;
12797
12798int
12799main ()
12800{
12801return use_ascii (foo) == use_ebcdic (foo);
12802 ;
12803 return 0;
12804}
12805_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012806if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012807 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12808 ac_cv_c_bigendian=yes
12809 fi
12810 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12811 if test "$ac_cv_c_bigendian" = unknown; then
12812 ac_cv_c_bigendian=no
12813 else
12814 # finding both strings is unlikely to happen, but who knows?
12815 ac_cv_c_bigendian=unknown
12816 fi
12817 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012818fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012820else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012822/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012823$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012824int
12825main ()
12826{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012827
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012828 /* Are we little or big endian? From Harbison&Steele. */
12829 union
12830 {
12831 long int l;
12832 char c[sizeof (long int)];
12833 } u;
12834 u.l = 1;
12835 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012836
12837 ;
12838 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012839}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012840_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012841if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012842 ac_cv_c_bigendian=no
12843else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012844 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012845fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012846rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12847 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012848fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012849
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012850 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012851fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012853$as_echo "$ac_cv_c_bigendian" >&6; }
12854 case $ac_cv_c_bigendian in #(
12855 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012856 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012857;; #(
12858 no)
12859 ;; #(
12860 universal)
12861
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012862$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012863
12864 ;; #(
12865 *)
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012866 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012867 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012868 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012869
Chen Qi91f04682014-05-05 21:08:42 -040012870if test $cross_compiling = no; then
12871 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12872else
12873 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12874fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040012875ASM_TYPES_HEADER=./asm_types.h
12876
Theodore Ts'o488c75a2008-06-07 08:55:21 -040012877echo "/* These defines are needed for the public ext2fs.h header file */" \
12878 > public_config.h
12879if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12880 uniq tmp_config.$$ >> public_config.h
12881else
12882 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12883fi
12884if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12885 uniq tmp_config.$$ >> public_config.h
12886else
12887 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12888fi
12889rm -f tmp_config.$$
12890PUBLIC_CONFIG_HEADER=./public_config.h
12891
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012892for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012893do :
12894 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012895if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012896 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012897#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012898_ACEOF
12899
12900fi
12901
Theodore Ts'o0c193f82003-08-01 14:26:23 -040012902done
12903
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012904ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012905if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012906
12907cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012908#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012909_ACEOF
12910
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012911
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012912fi
12913
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012914{ $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 +010012915$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012916if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012917 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012918else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012920/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012921#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012922int
12923main ()
12924{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012925struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012926 ;
12927 return 0;
12928}
12929_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012930if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012931 e2fsprogs_cv_struct_st_flags=yes
12932else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012933 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012934fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12936fi
12937
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012939$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012940if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012942$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012943 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012944 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012945else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012947/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012948#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012949int
12950main ()
12951{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012952struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012953 ;
12954 return 0;
12955}
12956_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012957if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012958 e2fsprogs_cv_struct_st_flags_immut=yes
12959else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012960 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012961fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12963fi
12964
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012966$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012967 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012968
12969$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012970
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012971 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012972fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012973ac_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 -050012974 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012975"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012976if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012977
12978cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050012979#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012980_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050012981
12982fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012983
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012984if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012986$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012987if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012988 $as_echo_n "(cached) " >&6
12989else
12990 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012992/* end confdefs.h. */
12993
12994/* Override any GCC internal prototype to avoid an error.
12995 Use char because int might match the return type of a GCC
12996 builtin and then its argument prototype would still apply. */
12997#ifdef __cplusplus
12998extern "C"
12999#endif
13000char blkid_probe_all ();
13001int
13002main ()
13003{
13004return blkid_probe_all ();
13005 ;
13006 return 0;
13007}
13008_ACEOF
13009for ac_lib in '' blkid; do
13010 if test -z "$ac_lib"; then
13011 ac_res="none required"
13012 else
13013 ac_res=-l$ac_lib
13014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13015 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013016 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013017 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013018fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013019rm -f core conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013021 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013022 break
13023fi
13024done
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013025if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013026
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013027else
13028 ac_cv_search_blkid_probe_all=no
13029fi
13030rm conftest.$ac_ext
13031LIBS=$ac_func_search_save_LIBS
13032fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013034$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13035ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013036if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13038
13039fi
13040
13041fi
Theodore Ts'o2de26282014-05-05 01:22:22 -040013042for ac_func in __secure_getenv backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl secure_getenv setmntent setresgid setresuid srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013043do :
13044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13045ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013046if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013047 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013048#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013049_ACEOF
13050
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013051fi
13052done
13053
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013054SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013056$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013057if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013058 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013059else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013060 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013061LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013063/* end confdefs.h. */
13064
Theodore Ts'oe1052142006-10-21 21:46:47 -040013065/* Override any GCC internal prototype to avoid an error.
13066 Use char because int might match the return type of a GCC
13067 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013068#ifdef __cplusplus
13069extern "C"
13070#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013071char socket ();
13072int
13073main ()
13074{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013075return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013076 ;
13077 return 0;
13078}
13079_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013080if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013081 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013082else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013083 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013084fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013085rm -f core conftest.err conftest.$ac_objext \
13086 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013087LIBS=$ac_check_lib_save_LIBS
13088fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013090$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013091if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013092 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013093fi
13094
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013095
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013097$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013098if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013099 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013100else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013102/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013103#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013104
13105_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013107 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013108 ac_cv_have_optreset=yes
13109else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013110 ac_cv_have_optreset=no
13111fi
13112rm -f conftest*
13113
13114fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013116$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013117if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013118
13119$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013120
13121fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013122
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013123SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013124ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013125if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013126
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013127else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013129$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013130if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013131 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013132else
13133 ac_check_lib_save_LIBS=$LIBS
13134LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013136/* end confdefs.h. */
13137
13138/* Override any GCC internal prototype to avoid an error.
13139 Use char because int might match the return type of a GCC
13140 builtin and then its argument prototype would still apply. */
13141#ifdef __cplusplus
13142extern "C"
13143#endif
13144char sem_init ();
13145int
13146main ()
13147{
13148return sem_init ();
13149 ;
13150 return 0;
13151}
13152_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013153if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013154 ac_cv_lib_pthread_sem_init=yes
13155else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013156 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013157fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013158rm -f core conftest.err conftest.$ac_objext \
13159 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013160LIBS=$ac_check_lib_save_LIBS
13161fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013163$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013164if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013165 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013166
13167 SEM_INIT_LIB=-lpthread
13168else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013170$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013171if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013172 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013173else
13174 ac_check_lib_save_LIBS=$LIBS
13175LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013177/* end confdefs.h. */
13178
13179/* Override any GCC internal prototype to avoid an error.
13180 Use char because int might match the return type of a GCC
13181 builtin and then its argument prototype would still apply. */
13182#ifdef __cplusplus
13183extern "C"
13184#endif
13185char sem_init ();
13186int
13187main ()
13188{
13189return sem_init ();
13190 ;
13191 return 0;
13192}
13193_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013194if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013195 ac_cv_lib_rt_sem_init=yes
13196else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013197 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013198fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013199rm -f core conftest.err conftest.$ac_objext \
13200 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013201LIBS=$ac_check_lib_save_LIBS
13202fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013204$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013205if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013206 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013207
13208 SEM_INIT_LIB=-lrt
13209else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013211$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013212if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013213 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013214else
13215 ac_check_lib_save_LIBS=$LIBS
13216LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013218/* end confdefs.h. */
13219
13220/* Override any GCC internal prototype to avoid an error.
13221 Use char because int might match the return type of a GCC
13222 builtin and then its argument prototype would still apply. */
13223#ifdef __cplusplus
13224extern "C"
13225#endif
13226char sem_init ();
13227int
13228main ()
13229{
13230return sem_init ();
13231 ;
13232 return 0;
13233}
13234_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013235if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013236 ac_cv_lib_posix4_sem_init=yes
13237else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013238 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013239fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013240rm -f core conftest.err conftest.$ac_objext \
13241 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013242LIBS=$ac_check_lib_save_LIBS
13243fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013245$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013246if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013247 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013248
13249 SEM_INIT_LIB=-lposix4
13250fi
13251
13252fi
13253
13254fi
13255
13256fi
13257
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013259$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040013260if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013261 UNI_DIFF_OPTS=-u
13262else
13263 UNI_DIFF_OPTS=-c
13264fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013266$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013267
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013268case "$host_os" in
13269linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013270
13271$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013272
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013273 ;;
13274esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013275LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013276CYGWIN_CMT="#"
13277UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013278case "$host_os" in
13279linux*)
13280 LINUX_CMT=
13281 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040013282cygwin)
13283 CYGWIN_CMT=
13284 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013285 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013286esac
13287
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013288
13289
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013290case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013291linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013292 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13293 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013294 { $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 +010013295$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013296 fi
13297 ;;
13298esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013299case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013300linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013301 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013302 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013303 { $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 +010013304$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013305 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013307$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013308 mandir=/usr/share/man
13309 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013310 fi
13311;;
13312esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013313if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000013314 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013315 root_prefix="$ac_default_prefix"
13316 else
13317 root_prefix="$prefix"
13318 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040013319 root_bindir=$bindir
13320 root_sbindir=$sbindir
13321 root_libdir=$libdir
13322 root_sysconfdir=$sysconfdir
13323else
13324 root_bindir='${root_prefix}/bin'
13325 root_sbindir='${root_prefix}/sbin'
13326 root_libdir='${root_prefix}/lib'
13327 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013328fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013329if test "$bindir" != '${exec_prefix}/bin'; then
13330 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013332$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013333fi
13334if test "$sbindir" != '${exec_prefix}/sbin'; then
13335 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013337$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013338fi
13339if test "$libdir" != '${exec_prefix}/lib'; then
13340 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013342$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013343fi
13344if test "$sysconfdir" != '${prefix}/etc'; then
13345 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013347$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013348fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013349
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013350
13351
13352
13353
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013354
13355# Check whether --with-multiarch was given.
13356if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050013357 withval=$with_multiarch; if test "$withval" = "lib64"; then
13358 libdir=/usr/lib64
13359 root_libdir=/lib64
13360else
13361 libdir=$libdir/$withval
13362 root_libdir=$root_libdir/$withval
13363fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013364
13365fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050013366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13367$as_echo_n "checking whether we can link with -static... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013368if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013369 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000013370else
13371 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013373/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000013374#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013375int
13376main ()
13377{
Theodore Ts'oae851481997-04-29 18:13:24 +000013378fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013379 ;
13380 return 0;
13381}
13382_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013383if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000013384 ac_cv_e2fsprogs_use_static=yes
13385else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013386 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000013387fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013388rm -f core conftest.err conftest.$ac_objext \
13389 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000013390LDFLAGS=$SAVE_LDFLAGS
13391fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013392
Theodore Ts'odefde781999-01-04 07:39:19 +000013393case "$host_os" in
13394solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013395 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000013396;;
13397esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013399$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000013400LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000013401if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013402 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000013403fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013404
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013405case "$host_os" in
13406darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013408$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013409
13410$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013411
13412 ;;
13413esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013414SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13415ET_DIR=`cd ${srcdir}/lib/et; pwd`
13416
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013417
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013418if test "$cross_compiling" = yes ; then
13419 DO_TEST_SUITE=
13420else
13421 DO_TEST_SUITE=check
13422fi
13423
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013424INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13425if test -n "$CPPFLAGS" ; then
13426 INCLUDES="$INCLUDES $CPPFLAGS"
13427fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013428if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013429 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013430fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050013431if test -n "$WITH_DIET_LIBC" ; then
13432 INCLUDES="$INCLUDES -D_REENTRANT"
13433fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013434
Theodore Ts'odd947da2005-11-09 18:37:07 -040013435if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050013436 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013437 BUILD_LDFLAGS="$LDFLAGS"
13438else
13439 BUILD_CFLAGS=
13440 BUILD_LDFLAGS=
13441fi
13442
13443
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013444test -d lib || mkdir lib
13445test -d include || mkdir include
13446test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000013447test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050013448for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040013449 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013450 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13451 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013452 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070013453 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050013454 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
13455 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050013456 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013457 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020013458 resize/Makefile doc/Makefile intl/Makefile \
13459 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013460 if test -d `dirname ${srcdir}/$i` ; then
13461 outlist="$outlist $i"
13462 fi
13463done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013464ac_config_files="$ac_config_files $outlist"
13465
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013466cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013467# This file is a shell script that caches the results of configure
13468# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013469# scripts and configure runs, see configure's option --config-cache.
13470# It is not useful on other systems. If it contains results you don't
13471# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013472#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013473# config.status only pays attention to the cache file if you give it
13474# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013475#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013476# `ac_cv_env_foo' variables (set or unset) will be overridden when
13477# loading this file, other *unset* `ac_cv_foo' will be assigned the
13478# following values.
13479
13480_ACEOF
13481
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013482# The following way of writing the cache mishandles newlines in values,
13483# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013484# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013485# Ultrix sh set writes to stderr and can't be redirected directly,
13486# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013487(
13488 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13489 eval ac_val=\$$ac_var
13490 case $ac_val in #(
13491 *${as_nl}*)
13492 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013493 *_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 +010013494$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013495 esac
13496 case $ac_var in #(
13497 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013498 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013499 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013500 esac ;;
13501 esac
13502 done
13503
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013504 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013505 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13506 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013507 # `set' does not quote correctly, so add quotes: double-quote
13508 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013509 sed -n \
13510 "s/'/'\\\\''/g;
13511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013512 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013513 *)
13514 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013516 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013517 esac |
13518 sort
13519) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013520 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040013521 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013522 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040013523 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013524 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13525 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040013526 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13527 :end' >>confcache
13528if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13529 if test -w "$cache_file"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013530 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013531 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013532$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013533 if test ! -f "$cache_file" || test -h "$cache_file"; then
13534 cat confcache >"$cache_file"
13535 else
13536 case $cache_file in #(
13537 */* | ?:*)
13538 mv -f confcache "$cache_file"$$ &&
13539 mv -f "$cache_file"$$ "$cache_file" ;; #(
13540 *)
13541 mv -f confcache "$cache_file" ;;
13542 esac
13543 fi
13544 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013545 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013546 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013547$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013548 fi
13549fi
13550rm -f confcache
13551
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013552test "x$prefix" = xNONE && prefix=$ac_default_prefix
13553# Let make expand exec_prefix.
13554test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13555
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013556DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013557
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013558ac_libobjs=
13559ac_ltlibobjs=
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013560U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013561for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13562 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013563 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013564 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040013565 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13566 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013567 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13568 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013569done
13570LIBOBJS=$ac_libobjs
13571
13572LTLIBOBJS=$ac_ltlibobjs
13573
13574
13575
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013576
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013577: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013578ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013579ac_clean_files_save=$ac_clean_files
13580ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013581{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013582$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013583as_write_fail=0
13584cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013585#! $SHELL
13586# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013587# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013588# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013589# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013590
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013591debug=false
13592ac_cs_recheck=false
13593ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013594
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013595SHELL=\${CONFIG_SHELL-$SHELL}
13596export SHELL
13597_ASEOF
13598cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13599## -------------------- ##
13600## M4sh Initialization. ##
13601## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013602
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013603# Be more Bourne compatible
13604DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013605if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013606 emulate sh
13607 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013608 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013609 # is contrary to our usage. Disable this feature.
13610 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013611 setopt NO_GLOB_SUBST
13612else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013613 case `(set -o) 2>/dev/null` in #(
13614 *posix*) :
13615 set -o posix ;; #(
13616 *) :
13617 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013618esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013619fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013620
13621
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013622as_nl='
13623'
13624export as_nl
13625# Printing a long string crashes Solaris 7 /usr/bin/printf.
13626as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13627as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13628as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013629# Prefer a ksh shell builtin over an external printf program on Solaris,
13630# but without wasting forks for bash or zsh.
13631if test -z "$BASH_VERSION$ZSH_VERSION" \
13632 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13633 as_echo='print -r --'
13634 as_echo_n='print -rn --'
13635elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013636 as_echo='printf %s\n'
13637 as_echo_n='printf %s'
13638else
13639 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13640 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13641 as_echo_n='/usr/ucb/echo -n'
13642 else
13643 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13644 as_echo_n_body='eval
13645 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013646 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013647 *"$as_nl"*)
13648 expr "X$arg" : "X\\(.*\\)$as_nl";
13649 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13650 esac;
13651 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13652 '
13653 export as_echo_n_body
13654 as_echo_n='sh -c $as_echo_n_body as_echo'
13655 fi
13656 export as_echo_body
13657 as_echo='sh -c $as_echo_body as_echo'
13658fi
13659
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013660# The user is always right.
13661if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013662 PATH_SEPARATOR=:
13663 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13664 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13665 PATH_SEPARATOR=';'
13666 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013667fi
13668
Theodore Ts'oe1052142006-10-21 21:46:47 -040013669
13670# IFS
13671# We need space, tab and new line, in precisely that order. Quoting is
13672# there to prevent editors from complaining about space-tab.
13673# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13674# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013675IFS=" "" $as_nl"
13676
13677# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013678as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013679case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040013680 *[\\/]* ) as_myself=$0 ;;
13681 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013682for as_dir in $PATH
13683do
13684 IFS=$as_save_IFS
13685 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013686 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13687 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013688IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013689
Theodore Ts'oe1052142006-10-21 21:46:47 -040013690 ;;
13691esac
13692# We did not find ourselves, most probably we were run as `sh COMMAND'
13693# in which case we are not to be found in the path.
13694if test "x$as_myself" = x; then
13695 as_myself=$0
13696fi
13697if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013698 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013699 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040013700fi
13701
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013702# Unset variables that we do not need and which cause bugs (e.g. in
13703# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13704# suppresses any "Segmentation fault" message there. '((' could
13705# trigger a bug in pdksh 5.2.14.
13706for as_var in BASH_ENV ENV MAIL MAILPATH
13707do eval test x\${$as_var+set} = xset \
13708 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040013709done
13710PS1='$ '
13711PS2='> '
13712PS4='+ '
13713
13714# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013715LC_ALL=C
13716export LC_ALL
13717LANGUAGE=C
13718export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040013719
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013720# CDPATH.
13721(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13722
13723
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013724# as_fn_error STATUS ERROR [LINENO LOG_FD]
13725# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013726# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13727# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013728# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013729as_fn_error ()
13730{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013731 as_status=$1; test $as_status -eq 0 && as_status=1
13732 if test "$4"; then
13733 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13734 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013735 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013736 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013737 as_fn_exit $as_status
13738} # as_fn_error
13739
13740
13741# as_fn_set_status STATUS
13742# -----------------------
13743# Set $? to STATUS, without forking.
13744as_fn_set_status ()
13745{
13746 return $1
13747} # as_fn_set_status
13748
13749# as_fn_exit STATUS
13750# -----------------
13751# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13752as_fn_exit ()
13753{
13754 set +e
13755 as_fn_set_status $1
13756 exit $1
13757} # as_fn_exit
13758
13759# as_fn_unset VAR
13760# ---------------
13761# Portably unset VAR.
13762as_fn_unset ()
13763{
13764 { eval $1=; unset $1;}
13765}
13766as_unset=as_fn_unset
13767# as_fn_append VAR VALUE
13768# ----------------------
13769# Append the text in VALUE to the end of the definition contained in VAR. Take
13770# advantage of any shell optimizations that allow amortized linear growth over
13771# repeated appends, instead of the typical quadratic growth present in naive
13772# implementations.
13773if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13774 eval 'as_fn_append ()
13775 {
13776 eval $1+=\$2
13777 }'
13778else
13779 as_fn_append ()
13780 {
13781 eval $1=\$$1\$2
13782 }
13783fi # as_fn_append
13784
13785# as_fn_arith ARG...
13786# ------------------
13787# Perform arithmetic evaluation on the ARGs, and store the result in the
13788# global $as_val. Take advantage of shells that can avoid forks. The arguments
13789# must be portable across $(()) and expr.
13790if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13791 eval 'as_fn_arith ()
13792 {
13793 as_val=$(( $* ))
13794 }'
13795else
13796 as_fn_arith ()
13797 {
13798 as_val=`expr "$@" || test $? -eq 1`
13799 }
13800fi # as_fn_arith
13801
13802
Theodore Ts'oe1052142006-10-21 21:46:47 -040013803if expr a : '\(a\)' >/dev/null 2>&1 &&
13804 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13805 as_expr=expr
13806else
13807 as_expr=false
13808fi
13809
13810if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13811 as_basename=basename
13812else
13813 as_basename=false
13814fi
13815
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013816if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13817 as_dirname=dirname
13818else
13819 as_dirname=false
13820fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013821
Theodore Ts'oe1052142006-10-21 21:46:47 -040013822as_me=`$as_basename -- "$0" ||
13823$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13824 X"$0" : 'X\(//\)$' \| \
13825 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013826$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013827 sed '/^.*\/\([^/][^/]*\)\/*$/{
13828 s//\1/
13829 q
13830 }
13831 /^X\/\(\/\/\)$/{
13832 s//\1/
13833 q
13834 }
13835 /^X\/\(\/\).*/{
13836 s//\1/
13837 q
13838 }
13839 s/.*/./; q'`
13840
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013841# Avoid depending upon Character Ranges.
13842as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13843as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13844as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13845as_cr_digits='0123456789'
13846as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040013847
13848ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013849case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040013850-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013851 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040013852 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013853 xy) ECHO_C='\c';;
13854 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13855 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013856 esac;;
13857*)
13858 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013859esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013860
13861rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040013862if test -d conf$$.dir; then
13863 rm -f conf$$.dir/conf$$.file
13864else
13865 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013866 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040013867fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013868if (echo >conf$$.file) 2>/dev/null; then
13869 if ln -s conf$$.file conf$$ 2>/dev/null; then
13870 as_ln_s='ln -s'
13871 # ... but there are two gotchas:
13872 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13873 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013874 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013875 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013876 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013877 elif ln conf$$.file conf$$ 2>/dev/null; then
13878 as_ln_s=ln
13879 else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013880 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013881 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013882else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013883 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013884fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013885rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13886rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013887
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013888
13889# as_fn_mkdir_p
13890# -------------
13891# Create "$as_dir" as a directory, including parents if necessary.
13892as_fn_mkdir_p ()
13893{
13894
13895 case $as_dir in #(
13896 -*) as_dir=./$as_dir;;
13897 esac
13898 test -d "$as_dir" || eval $as_mkdir_p || {
13899 as_dirs=
13900 while :; do
13901 case $as_dir in #(
13902 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13903 *) as_qdir=$as_dir;;
13904 esac
13905 as_dirs="'$as_qdir' $as_dirs"
13906 as_dir=`$as_dirname -- "$as_dir" ||
13907$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13908 X"$as_dir" : 'X\(//\)[^/]' \| \
13909 X"$as_dir" : 'X\(//\)$' \| \
13910 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13911$as_echo X"$as_dir" |
13912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13913 s//\1/
13914 q
13915 }
13916 /^X\(\/\/\)[^/].*/{
13917 s//\1/
13918 q
13919 }
13920 /^X\(\/\/\)$/{
13921 s//\1/
13922 q
13923 }
13924 /^X\(\/\).*/{
13925 s//\1/
13926 q
13927 }
13928 s/.*/./; q'`
13929 test -d "$as_dir" && break
13930 done
13931 test -z "$as_dirs" || eval "mkdir $as_dirs"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013932 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013933
13934
13935} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013936if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013937 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013938else
13939 test -d ./-p && rmdir ./-p
13940 as_mkdir_p=false
13941fi
13942
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013943
13944# as_fn_executable_p FILE
13945# -----------------------
13946# Test if FILE is an executable regular file.
13947as_fn_executable_p ()
13948{
13949 test -f "$1" && test -x "$1"
13950} # as_fn_executable_p
13951as_test_x='test -x'
13952as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013953
13954# Sed expression to map a string onto a valid CPP name.
13955as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13956
13957# Sed expression to map a string onto a valid variable name.
13958as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13959
13960
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013961exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013962## ----------------------------------- ##
13963## Main body of $CONFIG_STATUS script. ##
13964## ----------------------------------- ##
13965_ASEOF
13966test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013967
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13969# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013970# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040013971# values after options handling.
13972ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013973This file was extended by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013974generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013975
13976 CONFIG_FILES = $CONFIG_FILES
13977 CONFIG_HEADERS = $CONFIG_HEADERS
13978 CONFIG_LINKS = $CONFIG_LINKS
13979 CONFIG_COMMANDS = $CONFIG_COMMANDS
13980 $ $0 $@
13981
Theodore Ts'oe1052142006-10-21 21:46:47 -040013982on `(hostname || uname -n) 2>/dev/null | sed 1q`
13983"
13984
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013985_ACEOF
13986
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013987case $ac_config_files in *"
13988"*) set x $ac_config_files; shift; ac_config_files=$*;;
13989esac
13990
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013991case $ac_config_headers in *"
13992"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13993esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013994
13995
13996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013997# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013998config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013999config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014000config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014001
Theodore Ts'oe1052142006-10-21 21:46:47 -040014002_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014003
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014005ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014006\`$as_me' instantiates files and other configuration actions
14007from templates according to the current configuration. Unless the files
14008and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014009
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014010Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014011
14012 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014013 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014014 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014015 -q, --quiet, --silent
14016 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014017 -d, --debug don't remove temporary files
14018 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014019 --file=FILE[:TEMPLATE]
14020 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014021 --header=FILE[:TEMPLATE]
14022 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014023
14024Configuration files:
14025$config_files
14026
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014027Configuration headers:
14028$config_headers
14029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014030Configuration commands:
14031$config_commands
14032
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014033Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014034
Theodore Ts'oe1052142006-10-21 21:46:47 -040014035_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014037ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014038ac_cs_version="\\
14039config.status
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014040configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014041 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014042
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014043Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014044This config.status script is free software; the Free Software Foundation
14045gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040014046
14047ac_pwd='$ac_pwd'
14048srcdir='$srcdir'
14049INSTALL='$INSTALL'
Theodore Ts'o93613952014-07-03 23:44:13 -040014050MKDIR_P='$MKDIR_P'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014051AWK='$AWK'
14052test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014053_ACEOF
14054
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14056# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014057ac_need_defaults=:
14058while test $# != 0
14059do
14060 case $1 in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014061 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014062 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14063 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014064 ac_shift=:
14065 ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014066 --*=)
14067 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14068 ac_optarg=
14069 ac_shift=:
14070 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014071 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014072 ac_option=$1
14073 ac_optarg=$2
14074 ac_shift=shift
14075 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014076 esac
14077
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014078 case $ac_option in
14079 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014080 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14081 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014082 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014083 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014084 --config | --confi | --conf | --con | --co | --c )
14085 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014086 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014087 debug=: ;;
14088 --file | --fil | --fi | --f )
14089 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014090 case $ac_optarg in
14091 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014092 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014093 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014094 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014095 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014096 --header | --heade | --head | --hea )
14097 $ac_shift
14098 case $ac_optarg in
14099 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14100 esac
14101 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14102 ac_need_defaults=false;;
14103 --he | --h)
14104 # Conflict between --help and --header
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014105 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014106Try \`$0 --help' for more information.";;
14107 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014108 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14110 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14111 ac_cs_silent=: ;;
14112
14113 # This is an error.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014114 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014115Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014116
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014117 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014118 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014119
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014120 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014121 shift
14122done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014123
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014124ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014125
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014126if $ac_cs_silent; then
14127 exec 6>/dev/null
14128 ac_configure_extra_args="$ac_configure_extra_args --silent"
14129fi
14130
14131_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014133if \$ac_cs_recheck; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014134 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014135 shift
14136 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14137 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014138 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014139 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014140fi
14141
14142_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014144exec 5>>config.log
14145{
14146 echo
14147 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14148## Running $as_me. ##
14149_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014150 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014151} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014152
Theodore Ts'oe1052142006-10-21 21:46:47 -040014153_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014155#
Theodore Ts'oe1052142006-10-21 21:46:47 -040014156# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014157#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014158# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014159 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'o93613952014-07-03 23:44:13 -040014160 # from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014161 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014162 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14163 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014164
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014165
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014166_ACEOF
14167
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014169
14170# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014171for ac_config_target in $ac_config_targets
14172do
Theodore Ts'oe1052142006-10-21 21:46:47 -040014173 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014174 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'o93613952014-07-03 23:44:13 -040014175 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014176 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14177
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014178 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014179 esac
14180done
14181
Theodore Ts'oe1052142006-10-21 21:46:47 -040014182
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014183# If the user did not use the arguments to specify the items to instantiate,
14184# then the envvar interface is used. Set only those that are not.
14185# We use the long form for the default assignment because of an extremely
14186# bizarre bug on SunOS 4.1.3.
14187if $ac_need_defaults; then
14188 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014189 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014190 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14191fi
14192
14193# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040014194# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014195# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014196# Hook for its removal unless debugging.
14197# Note that there is a small window in which the directory will not be cleaned:
14198# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014199$debug ||
14200{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014201 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040014202 trap 'exit_status=$?
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014203 : "${ac_tmp:=$tmp}"
14204 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040014205' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014206 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014207}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014208# Create a (secure) tmp directory for tmp files.
14209
14210{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014211 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014212 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014213} ||
14214{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014215 tmp=./conf$$-$RANDOM
14216 (umask 077 && mkdir "$tmp")
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014217} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14218ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014219
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014220# Set up the scripts for CONFIG_FILES section.
14221# No need to generate them if there are no CONFIG_FILES.
14222# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014223if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014224
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014225if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14226 ac_cs_awk_getline=:
14227 ac_cs_awk_pipe_init=
14228 ac_cs_awk_read_file='
14229 while ((getline aline < (F[key])) > 0)
14230 print(aline)
14231 close(F[key])'
14232 ac_cs_awk_pipe_fini=
14233else
14234 ac_cs_awk_getline=false
14235 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14236 ac_cs_awk_read_file='
14237 print "|#_!!_#|"
14238 print "cat " F[key] " &&"
14239 '$ac_cs_awk_pipe_init
14240 # The final `:' finishes the AND list.
14241 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14242fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014243ac_cr=`echo X | tr X '\015'`
14244# On cygwin, bash can eat \r inside `` if the user requested igncr.
14245# But we know of no other shell where ac_cr would be empty at this
14246# point, so we can use a bashism as a fallback.
14247if test "x$ac_cr" = x; then
14248 eval ac_cr=\$\'\\r\'
14249fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014250ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14251if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014252 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014253else
14254 ac_cs_awk_cr=$ac_cr
14255fi
14256
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014257echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014258_ACEOF
14259
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014260# Create commands to substitute file output variables.
14261{
14262 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014263 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014264 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14265 echo "_ACAWK" &&
14266 echo "_ACEOF"
14267} >conf$$files.sh &&
14268. ./conf$$files.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014269 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014270rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014271
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014272{
14273 echo "cat >conf$$subs.awk <<_ACEOF" &&
14274 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14275 echo "_ACEOF"
14276} >conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014277 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14278ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014279ac_delim='%!_!# '
14280for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014281 . ./conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014282 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014283
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014284 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14285 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014286 break
14287 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014288 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014289 else
14290 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014291 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014292done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014293rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014294
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014296cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014297_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014298sed -n '
14299h
14300s/^/S["/; s/!.*/"]=/
14301p
14302g
14303s/^[^!]*!//
14304:repl
14305t repl
14306s/'"$ac_delim"'$//
14307t delim
14308:nl
14309h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014310s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014311t more1
14312s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14313p
14314n
14315b repl
14316:more1
14317s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14318p
14319g
14320s/.\{148\}//
14321t nl
14322:delim
14323h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014324s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014325t more2
14326s/["\\]/\\&/g; s/^/"/; s/$/"/
14327p
14328b
14329:more2
14330s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14331p
14332g
14333s/.\{148\}//
14334t delim
14335' <conf$$subs.awk | sed '
14336/^[^""]/{
14337 N
14338 s/\n//
14339}
14340' >>$CONFIG_STATUS || ac_write_fail=1
14341rm -f conf$$subs.awk
14342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14343_ACAWK
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014344cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014345 for (key in S) S_is_set[key] = 1
14346 FS = ""
14347 \$ac_cs_awk_pipe_init
14348}
14349{
14350 line = $ 0
14351 nfields = split(line, field, "@")
14352 substed = 0
14353 len = length(field[1])
14354 for (i = 2; i < nfields; i++) {
14355 key = field[i]
14356 keylen = length(key)
14357 if (S_is_set[key]) {
14358 value = S[key]
14359 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14360 len += length(value) + length(field[++i])
14361 substed = 1
14362 } else
14363 len += 1 + keylen
14364 }
14365 if (nfields == 3 && !substed) {
14366 key = field[2]
14367 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14368 \$ac_cs_awk_read_file
14369 next
14370 }
14371 }
14372 print line
14373}
14374\$ac_cs_awk_pipe_fini
14375_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040014376_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14378if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14379 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14380else
14381 cat
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014382fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14383 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014384_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014385
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014386# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14387# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040014388# trailing colons and then remove the whole line if VPATH becomes empty
14389# (actually we leave an empty line to preserve line numbers).
14390if test "x$srcdir" = x.; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014391 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14392h
14393s///
14394s/^/:/
14395s/[ ]*$/:/
14396s/:\$(srcdir):/:/g
14397s/:\${srcdir}:/:/g
14398s/:@srcdir@:/:/g
14399s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014400s/:*$//
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014401x
14402s/\(=[ ]*\).*/\1/
14403G
14404s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014405s/^[^=]*=[ ]*$//
14406}'
14407fi
14408
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014410fi # test -n "$CONFIG_FILES"
14411
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014412# Set up the scripts for CONFIG_HEADERS section.
14413# No need to generate them if there are no CONFIG_HEADERS.
14414# This happens for instance with `./config.status Makefile'.
14415if test -n "$CONFIG_HEADERS"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014416cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014417BEGIN {
14418_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014419
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014420# Transform confdefs.h into an awk script `defines.awk', embedded as
14421# here-document in config.status, that substitutes the proper values into
14422# config.h.in to produce config.h.
14423
14424# Create a delimiter string that does not exist in confdefs.h, to ease
14425# handling of long lines.
14426ac_delim='%!_!# '
14427for ac_last_try in false false :; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014428 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14429 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014430 break
14431 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014432 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014433 else
14434 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14435 fi
14436done
14437
14438# For the awk script, D is an array of macro values keyed by name,
14439# likewise P contains macro parameters if any. Preserve backslash
14440# newline sequences.
14441
14442ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14443sed -n '
14444s/.\{148\}/&'"$ac_delim"'/g
14445t rset
14446:rset
14447s/^[ ]*#[ ]*define[ ][ ]*/ /
14448t def
14449d
14450:def
14451s/\\$//
14452t bsnl
14453s/["\\]/\\&/g
14454s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14455D["\1"]=" \3"/p
14456s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14457d
14458:bsnl
14459s/["\\]/\\&/g
14460s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14461D["\1"]=" \3\\\\\\n"\\/p
14462t cont
14463s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14464t cont
14465d
14466:cont
14467n
14468s/.\{148\}/&'"$ac_delim"'/g
14469t clear
14470:clear
14471s/\\$//
14472t bsnlc
14473s/["\\]/\\&/g; s/^/"/; s/$/"/p
14474d
14475:bsnlc
14476s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14477b cont
14478' <confdefs.h | sed '
14479s/'"$ac_delim"'/"\\\
14480"/g' >>$CONFIG_STATUS || ac_write_fail=1
14481
14482cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14483 for (key in D) D_is_set[key] = 1
14484 FS = ""
14485}
14486/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14487 line = \$ 0
14488 split(line, arg, " ")
14489 if (arg[1] == "#") {
14490 defundef = arg[2]
14491 mac1 = arg[3]
14492 } else {
14493 defundef = substr(arg[1], 2)
14494 mac1 = arg[2]
14495 }
14496 split(mac1, mac2, "(") #)
14497 macro = mac2[1]
14498 prefix = substr(line, 1, index(line, defundef) - 1)
14499 if (D_is_set[macro]) {
14500 # Preserve the white space surrounding the "#".
14501 print prefix "define", macro P[macro] D[macro]
14502 next
14503 } else {
14504 # Replace #undef with comments. This is necessary, for example,
14505 # in the case of _POSIX_SOURCE, which is predefined and required
14506 # on some systems where configure will not decide to define it.
14507 if (defundef == "undef") {
14508 print "/*", prefix defundef, macro, "*/"
14509 next
14510 }
14511 }
14512}
14513{ print }
14514_ACAWK
14515_ACEOF
14516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014517 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014518fi # test -n "$CONFIG_HEADERS"
14519
14520
14521eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014522shift
14523for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040014524do
14525 case $ac_tag in
14526 :[FHLC]) ac_mode=$ac_tag; continue;;
14527 esac
14528 case $ac_mode$ac_tag in
14529 :[FHL]*:*);;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014530 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014531 :[FH]-) ac_tag=-:-;;
14532 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14533 esac
14534 ac_save_IFS=$IFS
14535 IFS=:
14536 set x $ac_tag
14537 IFS=$ac_save_IFS
14538 shift
14539 ac_file=$1
14540 shift
14541
14542 case $ac_mode in
14543 :L) ac_source=$1;;
14544 :[FH])
14545 ac_file_inputs=
14546 for ac_f
14547 do
14548 case $ac_f in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014549 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014550 *) # Look for the file first in the build tree, then in the source tree
14551 # (if the path is not absolute). The absolute path cannot be DOS-style,
14552 # because $ac_f cannot contain `:'.
14553 test -f "$ac_f" ||
14554 case $ac_f in
14555 [\\/$]*) false;;
14556 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14557 esac ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014558 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014559 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014560 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014561 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014562 done
14563
14564 # Let's still pretend it is `configure' which instantiates (i.e., don't
14565 # use $as_me), people would be surprised to read:
14566 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014567 configure_input='Generated from '`
14568 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14569 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014570 if test x"$ac_file" != x-; then
14571 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014572 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014573$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014574 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014575 # Neutralize special characters interpreted by sed in replacement strings.
14576 case $configure_input in #(
14577 *\&* | *\|* | *\\* )
14578 ac_sed_conf_input=`$as_echo "$configure_input" |
14579 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14580 *) ac_sed_conf_input=$configure_input;;
14581 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014582
14583 case $ac_tag in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014584 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14585 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014586 esac
14587 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014588 esac
14589
Theodore Ts'oe1052142006-10-21 21:46:47 -040014590 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014591$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14592 X"$ac_file" : 'X\(//\)[^/]' \| \
14593 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040014594 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014595$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14597 s//\1/
14598 q
14599 }
14600 /^X\(\/\/\)[^/].*/{
14601 s//\1/
14602 q
14603 }
14604 /^X\(\/\/\)$/{
14605 s//\1/
14606 q
14607 }
14608 /^X\(\/\).*/{
14609 s//\1/
14610 q
14611 }
14612 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014613 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014614 ac_builddir=.
14615
Theodore Ts'oe1052142006-10-21 21:46:47 -040014616case "$ac_dir" in
14617.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14618*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014619 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014620 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014621 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014622 case $ac_top_builddir_sub in
14623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14625 esac ;;
14626esac
14627ac_abs_top_builddir=$ac_pwd
14628ac_abs_builddir=$ac_pwd$ac_dir_suffix
14629# for backward compatibility:
14630ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014631
14632case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014633 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014634 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014635 ac_top_srcdir=$ac_top_builddir_sub
14636 ac_abs_top_srcdir=$ac_pwd ;;
14637 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014638 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014639 ac_top_srcdir=$srcdir
14640 ac_abs_top_srcdir=$srcdir ;;
14641 *) # Relative name.
14642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14643 ac_top_srcdir=$ac_top_build_prefix$srcdir
14644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014645esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014646ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014647
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014648
Theodore Ts'oe1052142006-10-21 21:46:47 -040014649 case $ac_mode in
14650 :F)
14651 #
14652 # CONFIG_FILE
14653 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014654
14655 case $INSTALL in
14656 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014657 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014658 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040014659 ac_MKDIR_P=$MKDIR_P
14660 case $MKDIR_P in
14661 [\\/$]* | ?:[\\/]* ) ;;
14662 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14663 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014664_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014665
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014667# If the template does not know about datarootdir, expand it.
14668# FIXME: This hack should be removed a few years after 2.60.
14669ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014670ac_sed_dataroot='
14671/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014672 p
14673 q
14674}
14675/@datadir@/p
14676/@docdir@/p
14677/@infodir@/p
14678/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014679/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014680case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014681*datarootdir*) ac_datarootdir_seen=yes;;
14682*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014683 { $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 +010014684$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014685_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014687 ac_datarootdir_hack='
14688 s&@datadir@&$datadir&g
14689 s&@docdir@&$docdir&g
14690 s&@infodir@&$infodir&g
14691 s&@localedir@&$localedir&g
14692 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014693 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014694esac
14695_ACEOF
14696
14697# Neutralize VPATH when `$srcdir' = `.'.
14698# Shell code in configure.ac might set extrasub.
14699# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14701ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014702$extrasub
14703_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014705:t
14706/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014707s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014708s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014709s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014710s&@srcdir@&$ac_srcdir&;t t
14711s&@abs_srcdir@&$ac_abs_srcdir&;t t
14712s&@top_srcdir@&$ac_top_srcdir&;t t
14713s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14714s&@builddir@&$ac_builddir&;t t
14715s&@abs_builddir@&$ac_abs_builddir&;t t
14716s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14717s&@INSTALL@&$ac_INSTALL&;t t
Theodore Ts'o93613952014-07-03 23:44:13 -040014718s&@MKDIR_P@&$ac_MKDIR_P&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014719$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014720"
14721eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14722if $ac_cs_awk_getline; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014723 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014724else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014725 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14726fi \
14727 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014728
Theodore Ts'oe1052142006-10-21 21:46:47 -040014729test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014730 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14731 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14732 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014734which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014735$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014736which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014737
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014738 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014739 case $ac_file in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014740 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14741 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014742 esac \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014743 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014744 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014745 :H)
14746 #
14747 # CONFIG_HEADER
14748 #
14749 if test x"$ac_file" != x-; then
14750 {
14751 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014752 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14753 } >"$ac_tmp/config.h" \
14754 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14755 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014756 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14757$as_echo "$as_me: $ac_file is unchanged" >&6;}
14758 else
14759 rm -f "$ac_file"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014760 mv "$ac_tmp/config.h" "$ac_file" \
14761 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014762 fi
14763 else
14764 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014765 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14766 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014767 fi
14768 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014769
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014770 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014771$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014772 ;;
14773 esac
14774
14775
14776 case $ac_file$ac_mode in
Theodore Ts'o93613952014-07-03 23:44:13 -040014777 "po-directories":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014778 for ac_file in $CONFIG_FILES; do
14779 # Support "outfile[:infile[:infile...]]"
14780 case "$ac_file" in
14781 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000014782 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014783 # PO directories have a Makefile.in generated from Makefile.in.in.
14784 case "$ac_file" in */Makefile.in)
14785 # Adjust a relative srcdir.
14786 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o93613952014-07-03 23:44:13 -040014787 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014788 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14789 # In autoconf-2.13 it is called $ac_given_srcdir.
14790 # In autoconf-2.50 it is called $srcdir.
14791 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14792 case "$ac_given_srcdir" in
14793 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14794 /*) top_srcdir="$ac_given_srcdir" ;;
14795 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14796 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040014797 # Treat a directory as a PO directory if and only if it has a
14798 # POTFILES.in file. This allows packages to have multiple PO
14799 # directories under different names or in different locations.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014800 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14801 rm -f "$ac_dir/POTFILES"
14802 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
Theodore Ts'o93613952014-07-03 23:44:13 -040014803 gt_tab=`printf '\t'`
14804 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 -050014805 POMAKEFILEDEPS="POTFILES.in"
14806 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014807 # on $ac_dir but don't depend on user-specified configuration
14808 # parameters.
14809 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14810 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014811 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014812 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14813 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040014814 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14815 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014816 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014817 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14818 else
14819 # The set of available languages was given in configure.in.
Theodore Ts'o93613952014-07-03 23:44:13 -040014820 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014821 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014822 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014823 # Compute POFILES
14824 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14825 # Compute UPDATEPOFILES
14826 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14827 # Compute DUMMYPOFILES
14828 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14829 # Compute GMOFILES
14830 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014831 case "$ac_given_srcdir" in
14832 .) srcdirpre= ;;
14833 *) srcdirpre='$(srcdir)/' ;;
14834 esac
14835 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014836 UPDATEPOFILES=
14837 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014838 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014839 for lang in $ALL_LINGUAS; do
14840 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014841 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14842 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014843 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014844 done
14845 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14846 # environment variable.
14847 INST_LINGUAS=
14848 if test -n "$ALL_LINGUAS"; then
14849 for presentlang in $ALL_LINGUAS; do
14850 useit=no
14851 if test "%UNSET%" != "$LINGUAS"; then
14852 desiredlanguages="$LINGUAS"
14853 else
14854 desiredlanguages="$ALL_LINGUAS"
14855 fi
14856 for desiredlang in $desiredlanguages; do
14857 # Use the presentlang catalog if desiredlang is
14858 # a. equal to presentlang, or
14859 # b. a variant of presentlang (because in this case,
14860 # presentlang can be used as a fallback for messages
14861 # which are not translated in the desiredlang catalog).
14862 case "$desiredlang" in
14863 "$presentlang"*) useit=yes;;
14864 esac
14865 done
14866 if test $useit = yes; then
14867 INST_LINGUAS="$INST_LINGUAS $presentlang"
14868 fi
14869 done
14870 fi
14871 CATALOGS=
14872 if test -n "$INST_LINGUAS"; then
14873 for lang in $INST_LINGUAS; do
14874 CATALOGS="$CATALOGS $lang.gmo"
14875 done
14876 fi
14877 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014878 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 -040014879 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14880 if test -f "$f"; then
14881 case "$f" in
14882 *.orig | *.bak | *~) ;;
14883 *) cat "$f" >> "$ac_dir/Makefile" ;;
14884 esac
14885 fi
14886 done
14887 fi
14888 ;;
14889 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014890 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014891
Theodore Ts'oe1052142006-10-21 21:46:47 -040014892 esac
14893done # for ac_tag
14894
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014895
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014896as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014897_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014898ac_clean_files=$ac_clean_files_save
14899
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014900test $ac_write_fail = 0 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014901 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014902
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014903
14904# configure is writing to config.log, and then calls config.status.
14905# config.status does its own redirection, appending to config.log.
14906# Unfortunately, on DOS this fails, as config.log is still kept open
14907# by configure, so config.status won't be able to write to it; its
14908# output is simply discarded. So we exec the FD to /dev/null,
14909# effectively closing config.log, so it can be properly (re)opened and
14910# appended to by config.status. When coming back to configure, we
14911# need to make the FD available again.
14912if test "$no_create" != yes; then
14913 ac_cs_success=:
14914 ac_config_status_args=
14915 test "$silent" = yes &&
14916 ac_config_status_args="$ac_config_status_args --quiet"
14917 exec 5>/dev/null
14918 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14919 exec 5>>config.log
14920 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14921 # would make configure fail if this is the last instruction.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014922 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014923fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014924if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014926$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14927fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014928
Theodore Ts'oee683a12005-02-05 15:53:56 -050014929if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi